#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*/ d2rgb(double);
int /*<<< orphan*/ draw_leaf(int /*<<< orphan*/, int, int, int, int);
int /*<<< orphan*/ draw_leaf_shade(int /*<<< orphan*/, int, int);
int /*<<< orphan*/ draw_spinner_hole();
int /*<<< orphan*/ glColor3f(int /*<<< orphan*/, int /*<<< orphan*/,
                             int /*<<< orphan*/);
void draw_spinner() {
  draw_spinner_hole();
  glColor3f(d2rgb(255), d2rgb(152), d2rgb(0));
  draw_leaf_shade(0, 3, 4);
  glColor3f(d2rgb(255.0), d2rgb(188.0), d2rgb(0.0));
  draw_leaf(0, 1, 2, 3, 4);
  glColor3f(d2rgb(173), d2rgb(20), d2rgb(87));
  draw_leaf_shade(0, 6, 7);
  glColor3f(d2rgb(219.0), d2rgb(68.0), d2rgb(55.0));
  draw_leaf(0, 4, 5, 6, 7);
  glColor3f(d2rgb(51), d2rgb(102), d2rgb(211));
  draw_leaf_shade(0, 9, 10);
  glColor3f(d2rgb(66.0), d2rgb(133.0), d2rgb(244.0));
  draw_leaf(0, 7, 8, 9, 10);
  glColor3f(d2rgb(15), d2rgb(157), d2rgb(88));
  draw_leaf_shade(0, 12, 1);
  glColor3f(d2rgb(139.0), d2rgb(195.0), d2rgb(74.0));
  draw_leaf(0, 10, 11, 12, 1);
}


x86 assembly (clang, -O0):
<draw_spinner>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    $0x0,%al
call   1060 <draw_spinner_hole@plt>
movsd  0xf31(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,-0x40(%rbp)
movsd  0xf29(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,-0x3c(%rbp)
xorps  %xmm0,%xmm0
call   1070 <d2rgb@plt>
mov    -0x40(%rbp),%edi
mov    -0x3c(%rbp),%esi
mov    %eax,%edx
call   1050 <glColor3f@plt>
xor    %edi,%edi
mov    $0x3,%esi
mov    $0x4,%edx
call   1030 <draw_leaf_shade@plt>
movsd  0xeeb(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,-0x38(%rbp)
movsd  0xed3(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,-0x34(%rbp)
xorps  %xmm0,%xmm0
call   1070 <d2rgb@plt>
mov    -0x38(%rbp),%edi
mov    -0x34(%rbp),%esi
mov    %eax,%edx
call   1050 <glColor3f@plt>
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
mov    $0x4,%r8d
call   1040 <draw_leaf@plt>
movsd  0xe8a(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,-0x30(%rbp)
movsd  0xe72(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,-0x2c(%rbp)
movsd  0xe5a(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    -0x30(%rbp),%edi
mov    -0x2c(%rbp),%esi
mov    %eax,%edx
call   1050 <glColor3f@plt>
xor    %edi,%edi
mov    $0x6,%esi
mov    $0x7,%edx
call   1030 <draw_leaf_shade@plt>
movsd  0xe27(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,-0x28(%rbp)
movsd  0xe0f(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,-0x24(%rbp)
movsd  0xdf7(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    -0x28(%rbp),%edi
mov    -0x24(%rbp),%esi
mov    %eax,%edx
call   1050 <glColor3f@plt>
xor    %edi,%edi
mov    $0x4,%esi
mov    $0x5,%edx
mov    $0x6,%ecx
mov    $0x7,%r8d
call   1040 <draw_leaf@plt>
movsd  0xdb9(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,-0x20(%rbp)
movsd  0xda1(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,-0x1c(%rbp)
movsd  0xd89(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    -0x20(%rbp),%edi
mov    -0x1c(%rbp),%esi
mov    %eax,%edx
call   1050 <glColor3f@plt>
xor    %edi,%edi
mov    $0x9,%esi
mov    $0xa,%edx
call   1030 <draw_leaf_shade@plt>
movsd  0xd56(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,-0x18(%rbp)
movsd  0xd3e(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,-0x14(%rbp)
movsd  0xd26(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    -0x18(%rbp),%edi
mov    -0x14(%rbp),%esi
mov    %eax,%edx
call   1050 <glColor3f@plt>
xor    %edi,%edi
mov    $0x7,%esi
mov    $0x8,%edx
mov    $0x9,%ecx
mov    $0xa,%r8d
call   1040 <draw_leaf@plt>
movsd  0xce8(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,-0x10(%rbp)
movsd  0xcd0(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,-0xc(%rbp)
movsd  0xcb8(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    -0x10(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    %eax,%edx
call   1050 <glColor3f@plt>
xor    %edi,%edi
mov    $0xc,%esi
mov    $0x1,%edx
call   1030 <draw_leaf_shade@plt>
movsd  0xc85(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,-0x8(%rbp)
movsd  0xc6d(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,-0x4(%rbp)
movsd  0xc55(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    -0x8(%rbp),%edi
mov    -0x4(%rbp),%esi
mov    %eax,%edx
call   1050 <glColor3f@plt>
xor    %edi,%edi
mov    $0xa,%esi
mov    $0xb,%edx
mov    $0xc,%ecx
mov    $0x1,%r8d
call   1040 <draw_leaf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<draw_spinner>:
push   %rbp
push   %rbx
push   %rax
xor    %eax,%eax
call   1060 <draw_spinner_hole@plt>
movsd  0xe9e(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,%ebx
movsd  0xe97(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,%ebp
xorps  %xmm0,%xmm0
call   1070 <d2rgb@plt>
mov    %ebx,%edi
mov    %ebp,%esi
mov    %eax,%edx
call   1050 <glColor3f@plt>
xor    %edi,%edi
mov    $0x3,%esi
mov    $0x4,%edx
call   1030 <draw_leaf_shade@plt>
movsd  0xe5c(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,%ebx
movsd  0xe5d(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,%ebp
xorps  %xmm0,%xmm0
call   1070 <d2rgb@plt>
mov    %ebx,%edi
mov    %ebp,%esi
mov    %eax,%edx
call   1050 <glColor3f@plt>
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
mov    $0x4,%r8d
call   1040 <draw_leaf@plt>
movsd  0xe27(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,%ebx
movsd  0xe20(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,%ebp
movsd  0xe19(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %ebx,%edi
mov    %ebp,%esi
mov    %eax,%edx
call   1050 <glColor3f@plt>
xor    %edi,%edi
mov    $0x6,%esi
mov    $0x7,%edx
call   1030 <draw_leaf_shade@plt>
movsd  0xdf8(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,%ebx
movsd  0xdf1(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,%ebp
movsd  0xdea(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %ebx,%edi
mov    %ebp,%esi
mov    %eax,%edx
call   1050 <glColor3f@plt>
xor    %edi,%edi
mov    $0x4,%esi
mov    $0x5,%edx
mov    $0x6,%ecx
mov    $0x7,%r8d
call   1040 <draw_leaf@plt>
movsd  0xdbe(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,%ebx
movsd  0xdb7(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,%ebp
movsd  0xdb0(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %ebx,%edi
mov    %ebp,%esi
mov    %eax,%edx
call   1050 <glColor3f@plt>
xor    %edi,%edi
mov    $0x9,%esi
mov    $0xa,%edx
call   1030 <draw_leaf_shade@plt>
movsd  0xd8f(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,%ebx
movsd  0xd88(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,%ebp
movsd  0xd81(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %ebx,%edi
mov    %ebp,%esi
mov    %eax,%edx
call   1050 <glColor3f@plt>
xor    %edi,%edi
mov    $0x7,%esi
mov    $0x8,%edx
mov    $0x9,%ecx
mov    $0xa,%r8d
call   1040 <draw_leaf@plt>
movsd  0xd55(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,%ebx
movsd  0xd4e(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,%ebp
movsd  0xd47(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %ebx,%edi
mov    %ebp,%esi
mov    %eax,%edx
call   1050 <glColor3f@plt>
xor    %edi,%edi
mov    $0xc,%esi
mov    $0x1,%edx
call   1030 <draw_leaf_shade@plt>
movsd  0xd26(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,%ebx
movsd  0xd1f(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %eax,%ebp
movsd  0xd18(%rip),%xmm0
call   1070 <d2rgb@plt>
mov    %ebx,%edi
mov    %ebp,%esi
mov    %eax,%edx
call   1050 <glColor3f@plt>
xor    %edi,%edi
mov    $0xa,%esi
mov    $0xb,%edx
mov    $0xc,%ecx
mov    $0x1,%r8d
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1040 <draw_leaf@plt>

LLVM IR (-O0):
define void @draw_spinner() {
%1 = call i32 (...) @draw_spinner_hole()
%2 = call i32 @d2rgb(double 2.550000e+02)
%3 = call i32 @d2rgb(double 1.520000e+02)
%4 = call i32 @d2rgb(double 0.000000e+00)
%5 = call i32 @glColor3f(i32 %2, i32 %3, i32 %4)
%6 = call i32 @draw_leaf_shade(i32 0, i32 3, i32 4)
%7 = call i32 @d2rgb(double 2.550000e+02)
%8 = call i32 @d2rgb(double 1.880000e+02)
%9 = call i32 @d2rgb(double 0.000000e+00)
%10 = call i32 @glColor3f(i32 %7, i32 %8, i32 %9)
%11 = call i32 @draw_leaf(i32 0, i32 1, i32 2, i32 3, i32 4)
%12 = call i32 @d2rgb(double 1.730000e+02)
%13 = call i32 @d2rgb(double 2.000000e+01)
%14 = call i32 @d2rgb(double 8.700000e+01)
%15 = call i32 @glColor3f(i32 %12, i32 %13, i32 %14)
%16 = call i32 @draw_leaf_shade(i32 0, i32 6, i32 7)
%17 = call i32 @d2rgb(double 2.190000e+02)
%18 = call i32 @d2rgb(double 6.800000e+01)
%19 = call i32 @d2rgb(double 5.500000e+01)
%20 = call i32 @glColor3f(i32 %17, i32 %18, i32 %19)
%21 = call i32 @draw_leaf(i32 0, i32 4, i32 5, i32 6, i32 7)
%22 = call i32 @d2rgb(double 5.100000e+01)
%23 = call i32 @d2rgb(double 1.020000e+02)
%24 = call i32 @d2rgb(double 2.110000e+02)
%25 = call i32 @glColor3f(i32 %22, i32 %23, i32 %24)
%26 = call i32 @draw_leaf_shade(i32 0, i32 9, i32 10)
%27 = call i32 @d2rgb(double 6.600000e+01)
%28 = call i32 @d2rgb(double 1.330000e+02)
%29 = call i32 @d2rgb(double 2.440000e+02)
%30 = call i32 @glColor3f(i32 %27, i32 %28, i32 %29)
%31 = call i32 @draw_leaf(i32 0, i32 7, i32 8, i32 9, i32 10)
%32 = call i32 @d2rgb(double 1.500000e+01)
%33 = call i32 @d2rgb(double 1.570000e+02)
%34 = call i32 @d2rgb(double 8.800000e+01)
%35 = call i32 @glColor3f(i32 %32, i32 %33, i32 %34)
%36 = call i32 @draw_leaf_shade(i32 0, i32 12, i32 1)
%37 = call i32 @d2rgb(double 1.390000e+02)
%38 = call i32 @d2rgb(double 1.950000e+02)
%39 = call i32 @d2rgb(double 7.400000e+01)
%40 = call i32 @glColor3f(i32 %37, i32 %38, i32 %39)
%41 = call i32 @draw_leaf(i32 0, i32 10, i32 11, i32 12, i32 1)
ret void
}

LLVM IR (-O2):
define void @draw_spinner() {
%1 = tail call i32 (...) @draw_spinner_hole()
%2 = tail call i32 @d2rgb(double 2.550000e+02)
%3 = tail call i32 @d2rgb(double 1.520000e+02)
%4 = tail call i32 @d2rgb(double 0.000000e+00)
%5 = tail call i32 @glColor3f(i32 %2, i32 %3, i32 %4)
%6 = tail call i32 @draw_leaf_shade(i32 0, i32 3, i32 4)
%7 = tail call i32 @d2rgb(double 2.550000e+02)
%8 = tail call i32 @d2rgb(double 1.880000e+02)
%9 = tail call i32 @d2rgb(double 0.000000e+00)
%10 = tail call i32 @glColor3f(i32 %7, i32 %8, i32 %9)
%11 = tail call i32 @draw_leaf(i32 0, i32 1, i32 2, i32 3, i32 4)
%12 = tail call i32 @d2rgb(double 1.730000e+02)
%13 = tail call i32 @d2rgb(double 2.000000e+01)
%14 = tail call i32 @d2rgb(double 8.700000e+01)
%15 = tail call i32 @glColor3f(i32 %12, i32 %13, i32 %14)
%16 = tail call i32 @draw_leaf_shade(i32 0, i32 6, i32 7)
%17 = tail call i32 @d2rgb(double 2.190000e+02)
%18 = tail call i32 @d2rgb(double 6.800000e+01)
%19 = tail call i32 @d2rgb(double 5.500000e+01)
%20 = tail call i32 @glColor3f(i32 %17, i32 %18, i32 %19)
%21 = tail call i32 @draw_leaf(i32 0, i32 4, i32 5, i32 6, i32 7)
%22 = tail call i32 @d2rgb(double 5.100000e+01)
%23 = tail call i32 @d2rgb(double 1.020000e+02)
%24 = tail call i32 @d2rgb(double 2.110000e+02)
%25 = tail call i32 @glColor3f(i32 %22, i32 %23, i32 %24)
%26 = tail call i32 @draw_leaf_shade(i32 0, i32 9, i32 10)
%27 = tail call i32 @d2rgb(double 6.600000e+01)
%28 = tail call i32 @d2rgb(double 1.330000e+02)
%29 = tail call i32 @d2rgb(double 2.440000e+02)
%30 = tail call i32 @glColor3f(i32 %27, i32 %28, i32 %29)
%31 = tail call i32 @draw_leaf(i32 0, i32 7, i32 8, i32 9, i32 10)
%32 = tail call i32 @d2rgb(double 1.500000e+01)
%33 = tail call i32 @d2rgb(double 1.570000e+02)
%34 = tail call i32 @d2rgb(double 8.800000e+01)
%35 = tail call i32 @glColor3f(i32 %32, i32 %33, i32 %34)
%36 = tail call i32 @draw_leaf_shade(i32 0, i32 12, i32 1)
%37 = tail call i32 @d2rgb(double 1.390000e+02)
%38 = tail call i32 @d2rgb(double 1.950000e+02)
%39 = tail call i32 @d2rgb(double 7.400000e+01)
%40 = tail call i32 @glColor3f(i32 %37, i32 %38, i32 %39)
%41 = tail call i32 @draw_leaf(i32 0, i32 10, i32 11, i32 12, i32 1)
ret void
}