#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*/ glColor3d(double, double, double);
int /*<<< orphan*/ glPopMatrix();
int /*<<< orphan*/ glPushMatrix();
int /*<<< orphan*/ glRotated(int, double, double, double);
int /*<<< orphan*/ glTranslated(double, double, int);
int /*<<< orphan*/ glutSolidCube(double);
void drawGifts() {
  glColor3d(0.99, 0.39, 0.11);
  glPushMatrix();
  glTranslated(-0.3, 0.55, -5);
  glRotated(65, -1.0, 0.0, 0.8);
  glutSolidCube(0.2);
  glPopMatrix();
  glColor3d(0.05, 0.70, 0.33);
  glPushMatrix();
  glTranslated(0.3, 0.95, -5);
  glRotated(65, -1.0, 0.0, 0.5);
  glutSolidCube(0.2);
  glPopMatrix();
  glColor3d(0.05, 0.06, 0.87);
  glPushMatrix();
  glTranslated(0, 1.6, -5);
  glRotated(65, -1.0, 0.0, 0.5);
  glutSolidCube(0.2);
  glPopMatrix();
  glColor3d(0.99, 0, 0);
  glPushMatrix();
  glTranslated(0.4, 0.25, -5);
  glRotated(65, -1.0, 0.0, 0.8);
  glutSolidCube(0.2);
  glPopMatrix();
}


x86 assembly (clang, -O0):
<drawGifts>:
push   %rbp
mov    %rsp,%rbp
movsd  0xebc(%rip),%xmm0
movsd  0xf14(%rip),%xmm1
movsd  0xf14(%rip),%xmm2
call   1050 <glColor3d@plt>
mov    $0x0,%al
call   1060 <glPushMatrix@plt>
movsd  0xee8(%rip),%xmm0
movsd  0xee8(%rip),%xmm1
mov    $0xfffffffb,%edi
call   1070 <glTranslated@plt>
mov    $0x41,%edi
movsd  0xe59(%rip),%xmm0
xorps  %xmm1,%xmm1
movsd  0xe56(%rip),%xmm2
call   1080 <glRotated@plt>
movsd  0xe39(%rip),%xmm0
call   1030 <glutSolidCube@plt>
mov    $0x0,%al
call   1040 <glPopMatrix@plt>
movsd  0xe65(%rip),%xmm0
movsd  0xe85(%rip),%xmm1
movsd  0xe85(%rip),%xmm2
call   1050 <glColor3d@plt>
mov    $0x0,%al
call   1060 <glPushMatrix@plt>
movsd  0xe59(%rip),%xmm0
movsd  0xe59(%rip),%xmm1
mov    $0xfffffffb,%edi
call   1070 <glTranslated@plt>
mov    $0x41,%edi
movsd  0xdea(%rip),%xmm0
xorps  %xmm1,%xmm1
movsd  0xe07(%rip),%xmm2
call   1080 <glRotated@plt>
movsd  0xdca(%rip),%xmm0
call   1030 <glutSolidCube@plt>
mov    $0x0,%al
call   1040 <glPopMatrix@plt>
movsd  0xdf6(%rip),%xmm0
movsd  0xdf6(%rip),%xmm1
movsd  0xdf6(%rip),%xmm2
call   1050 <glColor3d@plt>
mov    $0x0,%al
call   1060 <glPushMatrix@plt>
xorps  %xmm0,%xmm0
movsd  0xdc7(%rip),%xmm1
mov    $0xfffffffb,%edi
call   1070 <glTranslated@plt>
mov    $0x41,%edi
movsd  0xd80(%rip),%xmm0
xorps  %xmm1,%xmm1
movsd  0xd9d(%rip),%xmm2
call   1080 <glRotated@plt>
movsd  0xd60(%rip),%xmm0
call   1030 <glutSolidCube@plt>
mov    $0x0,%al
call   1040 <glPopMatrix@plt>
movsd  0xd74(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   1050 <glColor3d@plt>
mov    $0x0,%al
call   1060 <glPushMatrix@plt>
movsd  0xd4a(%rip),%xmm0
movsd  0xd4a(%rip),%xmm1
mov    $0xfffffffb,%edi
call   1070 <glTranslated@plt>
mov    $0x41,%edi
movsd  0xd1b(%rip),%xmm0
xorps  %xmm1,%xmm1
movsd  0xd18(%rip),%xmm2
call   1080 <glRotated@plt>
movsd  0xcfb(%rip),%xmm0
call   1030 <glutSolidCube@plt>
mov    $0x0,%al
call   1040 <glPopMatrix@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<drawGifts>:
push   %rax
movsd  0xe97(%rip),%xmm0
movsd  0xe97(%rip),%xmm1
movsd  0xe97(%rip),%xmm2
call   1050 <glColor3d@plt>
xor    %eax,%eax
call   1060 <glPushMatrix@plt>
movsd  0xe8b(%rip),%xmm0
movsd  0xe8b(%rip),%xmm1
mov    $0xfffffffb,%edi
call   1070 <glTranslated@plt>
movsd  0xe81(%rip),%xmm0
movsd  0xe81(%rip),%xmm2
xorps  %xmm1,%xmm1
mov    $0x41,%edi
call   1080 <glRotated@plt>
movsd  0xe74(%rip),%xmm0
call   1030 <glutSolidCube@plt>
xor    %eax,%eax
call   1040 <glPopMatrix@plt>
movsd  0xe68(%rip),%xmm0
movsd  0xe68(%rip),%xmm1
movsd  0xe68(%rip),%xmm2
call   1050 <glColor3d@plt>
xor    %eax,%eax
call   1060 <glPushMatrix@plt>
movsd  0xe5c(%rip),%xmm0
movsd  0xe5c(%rip),%xmm1
mov    $0xfffffffb,%edi
call   1070 <glTranslated@plt>
movsd  0xe52(%rip),%xmm2
xorps  %xmm1,%xmm1
mov    $0x41,%edi
movsd  0xe02(%rip),%xmm0
call   1080 <glRotated@plt>
movsd  0xe05(%rip),%xmm0
call   1030 <glutSolidCube@plt>
xor    %eax,%eax
call   1040 <glPopMatrix@plt>
movsd  0xe29(%rip),%xmm1
movsd  0xe29(%rip),%xmm2
movsd  0xde9(%rip),%xmm0
call   1050 <glColor3d@plt>
xor    %eax,%eax
call   1060 <glPushMatrix@plt>
movsd  0xe15(%rip),%xmm1
xorps  %xmm0,%xmm0
mov    $0xfffffffb,%edi
call   1070 <glTranslated@plt>
xorps  %xmm1,%xmm1
mov    $0x41,%edi
movsd  0xda0(%rip),%xmm0
movsd  0xdd8(%rip),%xmm2
call   1080 <glRotated@plt>
movsd  0xd9b(%rip),%xmm0
call   1030 <glutSolidCube@plt>
xor    %eax,%eax
call   1040 <glPopMatrix@plt>
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
movsd  0xd49(%rip),%xmm0
call   1050 <glColor3d@plt>
xor    %eax,%eax
call   1060 <glPushMatrix@plt>
movsd  0xdbd(%rip),%xmm0
movsd  0xdbd(%rip),%xmm1
mov    $0xfffffffb,%edi
call   1070 <glTranslated@plt>
xorps  %xmm1,%xmm1
mov    $0x41,%edi
movsd  0xd3b(%rip),%xmm0
movsd  0xd3b(%rip),%xmm2
call   1080 <glRotated@plt>
movsd  0xd36(%rip),%xmm0
call   1030 <glutSolidCube@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <glPopMatrix@plt>

LLVM IR (-O0):
define void @drawGifts() {
%1 = call i32 @glColor3d(double 0x3FEFAE147AE147AE, double 3.900000e-01, double 1.100000e-01)
%2 = call i32 (...) @glPushMatrix()
%3 = call i32 @glTranslated(double -3.000000e-01, double 5.500000e-01, i32 -5)
%4 = call i32 @glRotated(i32 65, double -1.000000e+00, double 0.000000e+00, double 8.000000e-01)
%5 = call i32 @glutSolidCube(double 2.000000e-01)
%6 = call i32 (...) @glPopMatrix()
%7 = call i32 @glColor3d(double 5.000000e-02, double 0x3FE6666666666666, double 3.300000e-01)
%8 = call i32 (...) @glPushMatrix()
%9 = call i32 @glTranslated(double 3.000000e-01, double 0x3FEE666666666666, i32 -5)
%10 = call i32 @glRotated(i32 65, double -1.000000e+00, double 0.000000e+00, double 5.000000e-01)
%11 = call i32 @glutSolidCube(double 2.000000e-01)
%12 = call i32 (...) @glPopMatrix()
%13 = call i32 @glColor3d(double 5.000000e-02, double 6.000000e-02, double 8.700000e-01)
%14 = call i32 (...) @glPushMatrix()
%15 = call i32 @glTranslated(double 0.000000e+00, double 1.600000e+00, i32 -5)
%16 = call i32 @glRotated(i32 65, double -1.000000e+00, double 0.000000e+00, double 5.000000e-01)
%17 = call i32 @glutSolidCube(double 2.000000e-01)
%18 = call i32 (...) @glPopMatrix()
%19 = call i32 @glColor3d(double 0x3FEFAE147AE147AE, double 0.000000e+00, double 0.000000e+00)
%20 = call i32 (...) @glPushMatrix()
%21 = call i32 @glTranslated(double 4.000000e-01, double 2.500000e-01, i32 -5)
%22 = call i32 @glRotated(i32 65, double -1.000000e+00, double 0.000000e+00, double 8.000000e-01)
%23 = call i32 @glutSolidCube(double 2.000000e-01)
%24 = call i32 (...) @glPopMatrix()
ret void
}

LLVM IR (-O2):
define void @drawGifts() {
%1 = tail call i32 @glColor3d(double 0x3FEFAE147AE147AE, double 3.900000e-01, double 1.100000e-01)
%2 = tail call i32 (...) @glPushMatrix()
%3 = tail call i32 @glTranslated(double -3.000000e-01, double 5.500000e-01, i32 -5)
%4 = tail call i32 @glRotated(i32 65, double -1.000000e+00, double 0.000000e+00, double 8.000000e-01)
%5 = tail call i32 @glutSolidCube(double 2.000000e-01)
%6 = tail call i32 (...) @glPopMatrix()
%7 = tail call i32 @glColor3d(double 5.000000e-02, double 0x3FE6666666666666, double 3.300000e-01)
%8 = tail call i32 (...) @glPushMatrix()
%9 = tail call i32 @glTranslated(double 3.000000e-01, double 0x3FEE666666666666, i32 -5)
%10 = tail call i32 @glRotated(i32 65, double -1.000000e+00, double 0.000000e+00, double 5.000000e-01)
%11 = tail call i32 @glutSolidCube(double 2.000000e-01)
%12 = tail call i32 (...) @glPopMatrix()
%13 = tail call i32 @glColor3d(double 5.000000e-02, double 6.000000e-02, double 8.700000e-01)
%14 = tail call i32 (...) @glPushMatrix()
%15 = tail call i32 @glTranslated(double 0.000000e+00, double 1.600000e+00, i32 -5)
%16 = tail call i32 @glRotated(i32 65, double -1.000000e+00, double 0.000000e+00, double 5.000000e-01)
%17 = tail call i32 @glutSolidCube(double 2.000000e-01)
%18 = tail call i32 (...) @glPopMatrix()
%19 = tail call i32 @glColor3d(double 0x3FEFAE147AE147AE, double 0.000000e+00, double 0.000000e+00)
%20 = tail call i32 (...) @glPushMatrix()
%21 = tail call i32 @glTranslated(double 4.000000e-01, double 2.500000e-01, i32 -5)
%22 = tail call i32 @glRotated(i32 65, double -1.000000e+00, double 0.000000e+00, double 8.000000e-01)
%23 = tail call i32 @glutSolidCube(double 2.000000e-01)
%24 = tail call i32 (...) @glPopMatrix()
ret void
}