#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*/ GLUquadricObj;

/* Variables and functions */
int /*<<< orphan*/ GLU_FILL;
int /*<<< orphan*/ GLU_SMOOTH;
int /*<<< orphan*/ glRotated(double, double, double, double);
int /*<<< orphan*/ glScaled(double, int, double);
int /*<<< orphan*/ glTranslated(double, double, double);
int /*<<< orphan*/ gluCylinder(int /*<<< orphan*/ *, double, double, double,
                               int, int);
int /*<<< orphan*/ *gluNewQuadric();
int /*<<< orphan*/ gluQuadricDrawStyle(int /*<<< orphan*/ *,
                                       int /*<<< orphan*/);
int /*<<< orphan*/ gluQuadricNormals(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ gluSphere(int /*<<< orphan*/ *, double, int, int);
void myDrawLwrRightLeg(void) {
  GLUquadricObj *qobj;
  qobj = gluNewQuadric();
  gluQuadricDrawStyle(qobj, GLU_FILL);
  gluQuadricNormals(qobj, GLU_SMOOTH);
  gluSphere(qobj, 1.30, 30, 30);
  glTranslated(0.0, 0.0, -3.2);
  gluCylinder(qobj, 1.00, 1.30, 3.2, 30, 30);
  gluSphere(qobj, 1.0, 30, 30);
  glTranslated(0.0, -0.5, -0.5);
  glRotated(90.0, 1.0, 0.0, 0.0);
  glScaled(2.6, 1, 4.5);
  gluSphere(qobj, 0.45, 30, 30);
}


x86 assembly (clang, -O0):
<myDrawLwrRightLeg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <gluNewQuadric@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2e3a(%rip),%rax
mov    (%rax),%esi
call   1060 <gluQuadricDrawStyle@plt>
mov    -0x8(%rbp),%rdi
mov    0x2e38(%rip),%rax
mov    (%rax),%esi
call   1080 <gluQuadricNormals@plt>
mov    -0x8(%rbp),%rdi
movsd  0xe6d(%rip),%xmm0
mov    $0x1e,%edx
mov    %edx,%esi
call   1040 <gluSphere@plt>
xorps  %xmm1,%xmm1
movsd  0xe66(%rip),%xmm2
movaps %xmm1,%xmm0
call   1090 <glTranslated@plt>
mov    -0x8(%rbp),%rdi
movsd  0xe32(%rip),%xmm0
movsd  0xe3a(%rip),%xmm1
movsd  0xe3a(%rip),%xmm2
mov    $0x1e,%edx
mov    %edx,%esi
call   1070 <gluCylinder@plt>
mov    -0x8(%rbp),%rdi
movsd  0xe0a(%rip),%xmm0
mov    $0x1e,%edx
mov    %edx,%esi
call   1040 <gluSphere@plt>
xorps  %xmm0,%xmm0
movsd  0xdfb(%rip),%xmm2
movaps %xmm2,%xmm1
call   1090 <glTranslated@plt>
movsd  0xddb(%rip),%xmm0
movsd  0xddb(%rip),%xmm1
xorps  %xmm3,%xmm3
movaps %xmm3,%xmm2
call   10a0 <glRotated@plt>
movsd  0xdb0(%rip),%xmm0
mov    $0x1,%edi
movsd  0xdab(%rip),%xmm1
call   1050 <glScaled@plt>
mov    -0x8(%rbp),%rdi
movsd  0xd8a(%rip),%xmm0
mov    $0x1e,%edx
mov    %edx,%esi
call   1040 <gluSphere@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<myDrawLwrRightLeg>:
push   %rbx
xor    %eax,%eax
call   1030 <gluNewQuadric@plt>
mov    %rax,%rbx
mov    0x2e46(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1060 <gluQuadricDrawStyle@plt>
mov    0x2e45(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1080 <gluQuadricNormals@plt>
movsd  0xe4b(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1e,%esi
mov    $0x1e,%edx
call   1040 <gluSphere@plt>
movsd  0xe39(%rip),%xmm2
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
call   1090 <glTranslated@plt>
movsd  0xe2e(%rip),%xmm0
movsd  0xe2e(%rip),%xmm2
mov    %rbx,%rdi
movsd  0xe0b(%rip),%xmm1
mov    $0x1e,%esi
mov    $0x1e,%edx
call   1070 <gluCylinder@plt>
mov    %rbx,%rdi
movsd  0xe01(%rip),%xmm0
mov    $0x1e,%esi
mov    $0x1e,%edx
call   1040 <gluSphere@plt>
movsd  0xdfa(%rip),%xmm1
xorps  %xmm0,%xmm0
movaps %xmm1,%xmm2
call   1090 <glTranslated@plt>
movsd  0xdef(%rip),%xmm0
xorps  %xmm2,%xmm2
xorps  %xmm3,%xmm3
movsd  0xdc9(%rip),%xmm1
call   10a0 <glRotated@plt>
movsd  0xddc(%rip),%xmm0
movsd  0xddc(%rip),%xmm1
mov    $0x1,%edi
call   1050 <glScaled@plt>
movsd  0xdd2(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1e,%esi
mov    $0x1e,%edx
pop    %rbx
jmp    1040 <gluSphere@plt>

LLVM IR (-O0):
@GLU_FILL = global i32 0
@GLU_SMOOTH = global i32 0
define void @myDrawLwrRightLeg() {
%1 = alloca i32*
%2 = call i32* (...) @gluNewQuadric()
store i32* %2, i32** %1
%3 = load i32*, i32** %1
%4 = load i32, i32* @GLU_FILL
%5 = call i32 @gluQuadricDrawStyle(i32* %3, i32 %4)
%6 = load i32*, i32** %1
%7 = load i32, i32* @GLU_SMOOTH
%8 = call i32 @gluQuadricNormals(i32* %6, i32 %7)
%9 = load i32*, i32** %1
%10 = call i32 @gluSphere(i32* %9, double 1.300000e+00, i32 30, i32 30)
%11 = call i32 @glTranslated(double 0.000000e+00, double 0.000000e+00, double -3.200000e+00)
%12 = load i32*, i32** %1
%13 = call i32 @gluCylinder(i32* %12, double 1.000000e+00, double 1.300000e+00, double 3.200000e+00, i32 30, i32 30)
%14 = load i32*, i32** %1
%15 = call i32 @gluSphere(i32* %14, double 1.000000e+00, i32 30, i32 30)
%16 = call i32 @glTranslated(double 0.000000e+00, double -5.000000e-01, double -5.000000e-01)
%17 = call i32 @glRotated(double 9.000000e+01, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%18 = call i32 @glScaled(double 2.600000e+00, i32 1, double 4.500000e+00)
%19 = load i32*, i32** %1
%20 = call i32 @gluSphere(i32* %19, double 4.500000e-01, i32 30, i32 30)
ret void
}

LLVM IR (-O2):
@GLU_FILL = global i32 0
@GLU_SMOOTH = global i32 0
define void @myDrawLwrRightLeg() {
%1 = tail call i32* (...) @gluNewQuadric()
%2 = load i32, i32* @GLU_FILL
%3 = tail call i32 @gluQuadricDrawStyle(i32* %1, i32 %2)
%4 = load i32, i32* @GLU_SMOOTH
%5 = tail call i32 @gluQuadricNormals(i32* %1, i32 %4)
%6 = tail call i32 @gluSphere(i32* %1, double 1.300000e+00, i32 30, i32 30)
%7 = tail call i32 @glTranslated(double 0.000000e+00, double 0.000000e+00, double -3.200000e+00)
%8 = tail call i32 @gluCylinder(i32* %1, double 1.000000e+00, double 1.300000e+00, double 3.200000e+00, i32 30, i32 30)
%9 = tail call i32 @gluSphere(i32* %1, double 1.000000e+00, i32 30, i32 30)
%10 = tail call i32 @glTranslated(double 0.000000e+00, double -5.000000e-01, double -5.000000e-01)
%11 = tail call i32 @glRotated(double 9.000000e+01, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%12 = tail call i32 @glScaled(double 2.600000e+00, i32 1, double 4.500000e+00)
%13 = tail call i32 @gluSphere(i32* %1, double 4.500000e-01, i32 30, i32 30)
ret void
}