#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 double GLfloat;

/* Variables and functions */
int /*<<< orphan*/ glMultMatrixf(double *);
void myScalef(GLfloat x, GLfloat y, GLfloat z) {
  GLfloat M[16] = {x,   0.0, 0.0, 0.0, 0.0, y,   0.0, 0.0,
                   0.0, 0.0, z,   0.0, 0.0, 0.0, 0.0, 1.0};
  glMultMatrixf(M);
}


x86 assembly (clang, -O0):
<myScalef>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
lea    -0xa0(%rbp),%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1030 <memset@plt>
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xe8a(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
lea    -0xa0(%rbp),%rdi
call   1040 <glMultMatrixf@plt>
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<myScalef>:
sub    $0x88,%rsp
xorps  %xmm3,%xmm3
movaps %xmm3,(%rsp)
movaps %xmm3,0x20(%rsp)
movaps %xmm3,0x50(%rsp)
movaps %xmm3,0x70(%rsp)
movaps %xmm3,0x60(%rsp)
movaps %xmm3,0x40(%rsp)
movaps %xmm3,0x30(%rsp)
movaps %xmm3,0x10(%rsp)
movsd  %xmm0,(%rsp)
movsd  %xmm1,0x28(%rsp)
movsd  %xmm2,0x50(%rsp)
movabs $0x3ff0000000000000,%rax
mov    %rax,0x78(%rsp)
mov    %rsp,%rdi
call   1030 <glMultMatrixf@plt>
add    $0x88,%rsp
ret

LLVM IR (-O0):
define void @myScalef(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca [16 x double]
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%8 = bitcast [16 x double]* %7 to i8*
%9 = getelementptr inbounds [16 x double], [16 x double]* %7, i64 0, i64 0
%10 = load double, double* %4
store double %10, double* %9
%11 = getelementptr inbounds double, double* %9, i64 1
%12 = getelementptr inbounds double, double* %11, i64 1
%13 = getelementptr inbounds double, double* %12, i64 1
%14 = getelementptr inbounds double, double* %13, i64 1
%15 = getelementptr inbounds double, double* %14, i64 1
%16 = load double, double* %5
store double %16, double* %15
%17 = getelementptr inbounds double, double* %15, i64 1
%18 = getelementptr inbounds double, double* %17, i64 1
%19 = getelementptr inbounds double, double* %18, i64 1
%20 = getelementptr inbounds double, double* %19, i64 1
%21 = getelementptr inbounds double, double* %20, i64 1
%22 = load double, double* %6
store double %22, double* %21
%23 = getelementptr inbounds double, double* %21, i64 1
%24 = getelementptr inbounds double, double* %23, i64 1
%25 = getelementptr inbounds double, double* %24, i64 1
%26 = getelementptr inbounds double, double* %25, i64 1
%27 = getelementptr inbounds double, double* %26, i64 1
store double 1.000000e+00, double* %27
%28 = getelementptr inbounds [16 x double], [16 x double]* %7, i64 0, i64 0
%29 = call i32 @glMultMatrixf(double* %28)
ret void
}

LLVM IR (-O2):
define void @myScalef(double %0, double %1, double %2) {
%4 = alloca [16 x double]
%5 = bitcast [16 x double]* %4 to i8*
%6 = getelementptr inbounds [16 x double], [16 x double]* %4, i64 0, i64 0
store double %0, double* %6
%7 = getelementptr inbounds [16 x double], [16 x double]* %4, i64 0, i64 5
store double %1, double* %7
%8 = getelementptr inbounds [16 x double], [16 x double]* %4, i64 0, i64 10
store double %2, double* %8
%9 = getelementptr inbounds [16 x double], [16 x double]* %4, i64 0, i64 15
store double 1.000000e+00, double* %9
%10 = call i32 @glMultMatrixf(double* %6)
ret void
}