#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*/ draw_base();
int /*<<< orphan*/ draw_torus();
int /*<<< orphan*/ glCallList(int);
int /*<<< orphan*/ glPopMatrix();
int /*<<< orphan*/ glPushMatrix();
int /*<<< orphan*/ glTranslatef(double, double, double);
void draw_holder(void) {
  glCallList(8);
  glPushMatrix();
  draw_base();
  glTranslatef(0.0, 0.0, 20.000000);
  draw_torus();
  glTranslatef(0.0, 0.0, 5.000000);
  draw_torus();
  glTranslatef(0.0, 0.0, 5.000000);
  draw_torus();
  glPopMatrix();
}


x86 assembly (clang, -O0):
<draw_holder>:
push   %rbp
mov    %rsp,%rbp
mov    $0x8,%edi
call   1050 <glCallList@plt>
mov    $0x0,%al
call   1040 <glPushMatrix@plt>
mov    $0x0,%al
call   1060 <draw_base@plt>
xorps  %xmm1,%xmm1
movsd  0xe81(%rip),%xmm2
movaps %xmm1,%xmm0
call   1070 <glTranslatef@plt>
mov    $0x0,%al
call   1080 <draw_torus@plt>
xorps  %xmm1,%xmm1
movsd  0xe5f(%rip),%xmm2
movaps %xmm1,%xmm0
call   1070 <glTranslatef@plt>
mov    $0x0,%al
call   1080 <draw_torus@plt>
xorps  %xmm1,%xmm1
movsd  0xe45(%rip),%xmm2
movaps %xmm1,%xmm0
call   1070 <glTranslatef@plt>
mov    $0x0,%al
call   1080 <draw_torus@plt>
mov    $0x0,%al
call   1030 <glPopMatrix@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<draw_holder>:
push   %rax
mov    $0x8,%edi
call   1050 <glCallList@plt>
xor    %eax,%eax
call   1040 <glPushMatrix@plt>
xor    %eax,%eax
call   1060 <draw_base@plt>
movsd  0xe7f(%rip),%xmm2
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
call   1070 <glTranslatef@plt>
xor    %eax,%eax
call   1080 <draw_torus@plt>
movsd  0xe6d(%rip),%xmm2
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
call   1070 <glTranslatef@plt>
xor    %eax,%eax
call   1080 <draw_torus@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
movsd  0xe4d(%rip),%xmm2
call   1070 <glTranslatef@plt>
xor    %eax,%eax
call   1080 <draw_torus@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <glPopMatrix@plt>

LLVM IR (-O0):
define void @draw_holder() {
%1 = call i32 @glCallList(i32 8)
%2 = call i32 (...) @glPushMatrix()
%3 = call i32 (...) @draw_base()
%4 = call i32 @glTranslatef(double 0.000000e+00, double 0.000000e+00, double 2.000000e+01)
%5 = call i32 (...) @draw_torus()
%6 = call i32 @glTranslatef(double 0.000000e+00, double 0.000000e+00, double 5.000000e+00)
%7 = call i32 (...) @draw_torus()
%8 = call i32 @glTranslatef(double 0.000000e+00, double 0.000000e+00, double 5.000000e+00)
%9 = call i32 (...) @draw_torus()
%10 = call i32 (...) @glPopMatrix()
ret void
}

LLVM IR (-O2):
define void @draw_holder() {
%1 = tail call i32 @glCallList(i32 8)
%2 = tail call i32 (...) @glPushMatrix()
%3 = tail call i32 (...) @draw_base()
%4 = tail call i32 @glTranslatef(double 0.000000e+00, double 0.000000e+00, double 2.000000e+01)
%5 = tail call i32 (...) @draw_torus()
%6 = tail call i32 @glTranslatef(double 0.000000e+00, double 0.000000e+00, double 5.000000e+00)
%7 = tail call i32 (...) @draw_torus()
%8 = tail call i32 @glTranslatef(double 0.000000e+00, double 0.000000e+00, double 5.000000e+00)
%9 = tail call i32 (...) @draw_torus()
%10 = tail call i32 (...) @glPopMatrix()
ret void
}