#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 */
typedef int /*<<< orphan*/ GLenum;
typedef int /*<<< orphan*/ GLdouble;

/* Variables and functions */
int /*<<< orphan*/ initdodec();
int /*<<< orphan*/ m_popmatrix();
int /*<<< orphan*/ m_pushmatrix();
int /*<<< orphan*/ m_scale(int /*<<< orphan*/, int /*<<< orphan*/,
                           int /*<<< orphan*/);
int /*<<< orphan*/ m_translate(int /*<<< orphan*/, int /*<<< orphan*/,
                               int /*<<< orphan*/);
int /*<<< orphan*/ pentagon(int, int, int, int, int, int /*<<< orphan*/);
void dodecahedron(GLdouble center[3], GLdouble sc, GLenum type) {
  static int inited = 0;
  if (inited == 0) {
    inited = 1;
    initdodec();
  }
  m_pushmatrix();
  m_translate(center[0], center[1], center[2]);
  m_scale(sc, sc, sc);
  pentagon(0, 1, 9, 16, 5, type);
  pentagon(1, 0, 3, 18, 7, type);
  pentagon(1, 7, 11, 10, 9, type);
  pentagon(11, 7, 18, 19, 6, type);
  pentagon(8, 17, 16, 9, 10, type);
  pentagon(2, 14, 15, 6, 19, type);
  pentagon(2, 13, 12, 4, 14, type);
  pentagon(2, 19, 18, 3, 13, type);
  pentagon(3, 0, 5, 12, 13, type);
  pentagon(6, 15, 8, 10, 11, type);
  pentagon(4, 17, 8, 15, 14, type);
  pentagon(4, 12, 5, 16, 17, type);
  m_popmatrix();
}


x86 assembly (clang, -O0):
<dodecahedron>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
cmpl   $0x0,0x2edb(%rip)
jne    1190 <dodecahedron+0x30>
movl   $0x1,0x2ecb(%rip)
mov    $0x0,%al
call   1050 <initdodec@plt>
mov    $0x0,%al
call   1070 <m_pushmatrix@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%esi
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%edx
call   1060 <m_translate@plt>
mov    -0xc(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1080 <m_scale@plt>
mov    -0x10(%rbp),%r9d
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x9,%edx
mov    $0x10,%ecx
mov    $0x5,%r8d
call   1030 <pentagon@plt>
mov    -0x10(%rbp),%r9d
mov    $0x1,%edi
xor    %esi,%esi
mov    $0x3,%edx
mov    $0x12,%ecx
mov    $0x7,%r8d
call   1030 <pentagon@plt>
mov    -0x10(%rbp),%r9d
mov    $0x1,%edi
mov    $0x7,%esi
mov    $0xb,%edx
mov    $0xa,%ecx
mov    $0x9,%r8d
call   1030 <pentagon@plt>
mov    -0x10(%rbp),%r9d
mov    $0xb,%edi
mov    $0x7,%esi
mov    $0x12,%edx
mov    $0x13,%ecx
mov    $0x6,%r8d
call   1030 <pentagon@plt>
mov    -0x10(%rbp),%r9d
mov    $0x8,%edi
mov    $0x11,%esi
mov    $0x10,%edx
mov    $0x9,%ecx
mov    $0xa,%r8d
call   1030 <pentagon@plt>
mov    -0x10(%rbp),%r9d
mov    $0x2,%edi
mov    $0xe,%esi
mov    $0xf,%edx
mov    $0x6,%ecx
mov    $0x13,%r8d
call   1030 <pentagon@plt>
mov    -0x10(%rbp),%r9d
mov    $0x2,%edi
mov    $0xd,%esi
mov    $0xc,%edx
mov    $0x4,%ecx
mov    $0xe,%r8d
call   1030 <pentagon@plt>
mov    -0x10(%rbp),%r9d
mov    $0x2,%edi
mov    $0x13,%esi
mov    $0x12,%edx
mov    $0x3,%ecx
mov    $0xd,%r8d
call   1030 <pentagon@plt>
mov    -0x10(%rbp),%r9d
mov    $0x3,%edi
xor    %esi,%esi
mov    $0x5,%edx
mov    $0xc,%ecx
mov    $0xd,%r8d
call   1030 <pentagon@plt>
mov    -0x10(%rbp),%r9d
mov    $0x6,%edi
mov    $0xf,%esi
mov    $0x8,%edx
mov    $0xa,%ecx
mov    $0xb,%r8d
call   1030 <pentagon@plt>
mov    -0x10(%rbp),%r9d
mov    $0x4,%edi
mov    $0x11,%esi
mov    $0x8,%edx
mov    $0xf,%ecx
mov    $0xe,%r8d
call   1030 <pentagon@plt>
mov    -0x10(%rbp),%r9d
mov    $0x4,%edi
mov    $0xc,%esi
mov    $0x5,%edx
mov    $0x10,%ecx
mov    $0x11,%r8d
call   1030 <pentagon@plt>
mov    $0x0,%al
call   1040 <m_popmatrix@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dodecahedron>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%ebx
mov    %esi,%r14d
mov    %rdi,%rbp
cmpb   $0x0,0x2ee1(%rip)
jne    1183 <dodecahedron+0x23>
movb   $0x1,0x2ed8(%rip)
xor    %eax,%eax
call   1050 <initdodec@plt>
xor    %eax,%eax
call   1070 <m_pushmatrix@plt>
mov    0x0(%rbp),%edi
mov    0x4(%rbp),%esi
mov    0x8(%rbp),%edx
call   1060 <m_translate@plt>
mov    %r14d,%edi
mov    %r14d,%esi
mov    %r14d,%edx
call   1080 <m_scale@plt>
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x9,%edx
mov    $0x10,%ecx
mov    $0x5,%r8d
mov    %ebx,%r9d
call   1030 <pentagon@plt>
mov    $0x1,%edi
xor    %esi,%esi
mov    $0x3,%edx
mov    $0x12,%ecx
mov    $0x7,%r8d
mov    %ebx,%r9d
call   1030 <pentagon@plt>
mov    $0x1,%edi
mov    $0x7,%esi
mov    $0xb,%edx
mov    $0xa,%ecx
mov    $0x9,%r8d
mov    %ebx,%r9d
call   1030 <pentagon@plt>
mov    $0xb,%edi
mov    $0x7,%esi
mov    $0x12,%edx
mov    $0x13,%ecx
mov    $0x6,%r8d
mov    %ebx,%r9d
call   1030 <pentagon@plt>
mov    $0x8,%edi
mov    $0x11,%esi
mov    $0x10,%edx
mov    $0x9,%ecx
mov    $0xa,%r8d
mov    %ebx,%r9d
call   1030 <pentagon@plt>
mov    $0x2,%edi
mov    $0xe,%esi
mov    $0xf,%edx
mov    $0x6,%ecx
mov    $0x13,%r8d
mov    %ebx,%r9d
call   1030 <pentagon@plt>
mov    $0x2,%edi
mov    $0xd,%esi
mov    $0xc,%edx
mov    $0x4,%ecx
mov    $0xe,%r8d
mov    %ebx,%r9d
call   1030 <pentagon@plt>
mov    $0x2,%edi
mov    $0x13,%esi
mov    $0x12,%edx
mov    $0x3,%ecx
mov    $0xd,%r8d
mov    %ebx,%r9d
call   1030 <pentagon@plt>
mov    $0x3,%edi
xor    %esi,%esi
mov    $0x5,%edx
mov    $0xc,%ecx
mov    $0xd,%r8d
mov    %ebx,%r9d
call   1030 <pentagon@plt>
mov    $0x6,%edi
mov    $0xf,%esi
mov    $0x8,%edx
mov    $0xa,%ecx
mov    $0xb,%r8d
mov    %ebx,%r9d
call   1030 <pentagon@plt>
mov    $0x4,%edi
mov    $0x11,%esi
mov    $0x8,%edx
mov    $0xf,%ecx
mov    $0xe,%r8d
mov    %ebx,%r9d
call   1030 <pentagon@plt>
mov    $0x4,%edi
mov    $0xc,%esi
mov    $0x5,%edx
mov    $0x10,%ecx
mov    $0x11,%r8d
mov    %ebx,%r9d
call   1030 <pentagon@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <m_popmatrix@plt>

LLVM IR (-O0):
@dodecahedron.inited = internal global i32 0
define void @dodecahedron(i32* %0, i32 %1, i32 %2) {
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
store i32* %0, i32** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* @dodecahedron.inited
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %3
store i32 1, i32* @dodecahedron.inited
%10 = call i32 (...) @initdodec()
br label %11
11: ; preds = %9, %3
%12 = call i32 (...) @m_pushmatrix()
%13 = load i32*, i32** %4
%14 = getelementptr inbounds i32, i32* %13, i64 0
%15 = load i32, i32* %14
%16 = load i32*, i32** %4
%17 = getelementptr inbounds i32, i32* %16, i64 1
%18 = load i32, i32* %17
%19 = load i32*, i32** %4
%20 = getelementptr inbounds i32, i32* %19, i64 2
%21 = load i32, i32* %20
%22 = call i32 @m_translate(i32 %15, i32 %18, i32 %21)
%23 = load i32, i32* %5
%24 = load i32, i32* %5
%25 = load i32, i32* %5
%26 = call i32 @m_scale(i32 %23, i32 %24, i32 %25)
%27 = load i32, i32* %6
%28 = call i32 @pentagon(i32 0, i32 1, i32 9, i32 16, i32 5, i32 %27)
%29 = load i32, i32* %6
%30 = call i32 @pentagon(i32 1, i32 0, i32 3, i32 18, i32 7, i32 %29)
%31 = load i32, i32* %6
%32 = call i32 @pentagon(i32 1, i32 7, i32 11, i32 10, i32 9, i32 %31)
%33 = load i32, i32* %6
%34 = call i32 @pentagon(i32 11, i32 7, i32 18, i32 19, i32 6, i32 %33)
%35 = load i32, i32* %6
%36 = call i32 @pentagon(i32 8, i32 17, i32 16, i32 9, i32 10, i32 %35)
%37 = load i32, i32* %6
%38 = call i32 @pentagon(i32 2, i32 14, i32 15, i32 6, i32 19, i32 %37)
%39 = load i32, i32* %6
%40 = call i32 @pentagon(i32 2, i32 13, i32 12, i32 4, i32 14, i32 %39)
%41 = load i32, i32* %6
%42 = call i32 @pentagon(i32 2, i32 19, i32 18, i32 3, i32 13, i32 %41)
%43 = load i32, i32* %6
%44 = call i32 @pentagon(i32 3, i32 0, i32 5, i32 12, i32 13, i32 %43)
%45 = load i32, i32* %6
%46 = call i32 @pentagon(i32 6, i32 15, i32 8, i32 10, i32 11, i32 %45)
%47 = load i32, i32* %6
%48 = call i32 @pentagon(i32 4, i32 17, i32 8, i32 15, i32 14, i32 %47)
%49 = load i32, i32* %6
%50 = call i32 @pentagon(i32 4, i32 12, i32 5, i32 16, i32 17, i32 %49)
%51 = call i32 (...) @m_popmatrix()
ret void
}

LLVM IR (-O2):
@dodecahedron.inited = internal unnamed_addr global i1 false
define void @dodecahedron(i32* nocapture %0, i32 %1, i32 %2) {
%4 = load i1, i1* @dodecahedron.inited
br i1 %4, label %7, label %5
5: ; preds = %3
store i1 true, i1* @dodecahedron.inited
%6 = tail call i32 (...) @initdodec()
br label %7
7: ; preds = %5, %3
%8 = tail call i32 (...) @m_pushmatrix()
%9 = load i32, i32* %0
%10 = getelementptr inbounds i32, i32* %0, i64 1
%11 = load i32, i32* %10
%12 = getelementptr inbounds i32, i32* %0, i64 2
%13 = load i32, i32* %12
%14 = tail call i32 @m_translate(i32 %9, i32 %11, i32 %13)
%15 = tail call i32 @m_scale(i32 %1, i32 %1, i32 %1)
%16 = tail call i32 @pentagon(i32 0, i32 1, i32 9, i32 16, i32 5, i32 %2)
%17 = tail call i32 @pentagon(i32 1, i32 0, i32 3, i32 18, i32 7, i32 %2)
%18 = tail call i32 @pentagon(i32 1, i32 7, i32 11, i32 10, i32 9, i32 %2)
%19 = tail call i32 @pentagon(i32 11, i32 7, i32 18, i32 19, i32 6, i32 %2)
%20 = tail call i32 @pentagon(i32 8, i32 17, i32 16, i32 9, i32 10, i32 %2)
%21 = tail call i32 @pentagon(i32 2, i32 14, i32 15, i32 6, i32 19, i32 %2)
%22 = tail call i32 @pentagon(i32 2, i32 13, i32 12, i32 4, i32 14, i32 %2)
%23 = tail call i32 @pentagon(i32 2, i32 19, i32 18, i32 3, i32 13, i32 %2)
%24 = tail call i32 @pentagon(i32 3, i32 0, i32 5, i32 12, i32 13, i32 %2)
%25 = tail call i32 @pentagon(i32 6, i32 15, i32 8, i32 10, i32 11, i32 %2)
%26 = tail call i32 @pentagon(i32 4, i32 17, i32 8, i32 15, i32 14, i32 %2)
%27 = tail call i32 @pentagon(i32 4, i32 12, i32 5, i32 16, i32 17, i32 %2)
%28 = tail call i32 (...) @m_popmatrix()
ret void
}