#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*/ Frustum16fv(float *, float, float, float, float, float,
                               float);
int /*<<< orphan*/ Mult16fv(float *, float *, float *);
int /*<<< orphan*/ Viewing16fv(float *, float const *, float const *,
                               float const *, float const *);
int /*<<< orphan*/ Viewport16fv(float *, int, int);
float *World2ScreenXform16fv(float *M, const float X[3], const float Y[3],
                             const float Z[3], const float O[3], float l,
                             float r, float b, float t, float n, float f,
                             int WW, int WH) {
  float N[16];
  Viewport16fv(M, WW, WH);
  Frustum16fv(N, l, r, b, t, n, f);
  Mult16fv(M, M, N);
  Viewing16fv(N, X, Y, Z, O);
  Mult16fv(M, M, N);
  return (M);
}


x86 assembly (clang, -O0):
<World2ScreenXform16fv>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
movss  %xmm0,-0x2c(%rbp)
movss  %xmm1,-0x30(%rbp)
movss  %xmm2,-0x34(%rbp)
movss  %xmm3,-0x38(%rbp)
movss  %xmm4,-0x3c(%rbp)
movss  %xmm5,-0x40(%rbp)
mov    %r9d,-0x44(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x44(%rbp),%esi
mov    0x10(%rbp),%edx
call   1060 <Viewport16fv@plt>
lea    -0x90(%rbp),%rdi
movss  -0x2c(%rbp),%xmm0
movss  -0x30(%rbp),%xmm1
movss  -0x34(%rbp),%xmm2
movss  -0x38(%rbp),%xmm3
movss  -0x3c(%rbp),%xmm4
movss  -0x40(%rbp),%xmm5
call   1030 <Frustum16fv@plt>
mov    -0x8(%rbp),%rdi
mov    -0x8(%rbp),%rsi
lea    -0x90(%rbp),%rdx
call   1040 <Mult16fv@plt>
lea    -0x90(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
call   1050 <Viewing16fv@plt>
mov    -0x8(%rbp),%rdi
mov    -0x8(%rbp),%rsi
lea    -0x90(%rbp),%rdx
call   1040 <Mult16fv@plt>
mov    -0x8(%rbp),%rax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<World2ScreenXform16fv>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
movss  %xmm5,0x1c(%rsp)
movss  %xmm4,0x18(%rsp)
movss  %xmm3,0x14(%rsp)
movss  %xmm2,0x10(%rsp)
movss  %xmm1,0xc(%rsp)
movss  %xmm0,0x8(%rsp)
mov    %r8,%r14
mov    %rcx,%r15
mov    %rdx,%r12
mov    %rsi,%r13
mov    %rdi,%rbx
mov    0xa0(%rsp),%edx
mov    %r9d,%esi
call   1060 <Viewport16fv@plt>
lea    0x20(%rsp),%rbp
mov    %rbp,%rdi
movss  0x8(%rsp),%xmm0
movss  0xc(%rsp),%xmm1
movss  0x10(%rsp),%xmm2
movss  0x14(%rsp),%xmm3
movss  0x18(%rsp),%xmm4
movss  0x1c(%rsp),%xmm5
call   1030 <Frustum16fv@plt>
mov    %rbx,%rdi
mov    %rbx,%rsi
mov    %rbp,%rdx
call   1040 <Mult16fv@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r8
call   1050 <Viewing16fv@plt>
mov    %rbx,%rdi
mov    %rbx,%rsi
mov    %rbp,%rdx
call   1040 <Mult16fv@plt>
mov    %rbx,%rax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define float* @World2ScreenXform16fv(float* %0, float* %1, float* %2, float* %3, float* %4, float %5, float %6, float %7, float %8, float %9, float %10, i32 %11, i32 %12) {
%14 = alloca float*
%15 = alloca float*
%16 = alloca float*
%17 = alloca float*
%18 = alloca float*
%19 = alloca float
%20 = alloca float
%21 = alloca float
%22 = alloca float
%23 = alloca float
%24 = alloca float
%25 = alloca i32
%26 = alloca i32
%27 = alloca [16 x float]
store float* %0, float** %14
store float* %1, float** %15
store float* %2, float** %16
store float* %3, float** %17
store float* %4, float** %18
store float %5, float* %19
store float %6, float* %20
store float %7, float* %21
store float %8, float* %22
store float %9, float* %23
store float %10, float* %24
store i32 %11, i32* %25
store i32 %12, i32* %26
%28 = load float*, float** %14
%29 = load i32, i32* %25
%30 = load i32, i32* %26
%31 = call i32 @Viewport16fv(float* %28, i32 %29, i32 %30)
%32 = getelementptr inbounds [16 x float], [16 x float]* %27, i64 0, i64 0
%33 = load float, float* %19
%34 = load float, float* %20
%35 = load float, float* %21
%36 = load float, float* %22
%37 = load float, float* %23
%38 = load float, float* %24
%39 = call i32 @Frustum16fv(float* %32, float %33, float %34, float %35, float %36, float %37, float %38)
%40 = load float*, float** %14
%41 = load float*, float** %14
%42 = getelementptr inbounds [16 x float], [16 x float]* %27, i64 0, i64 0
%43 = call i32 @Mult16fv(float* %40, float* %41, float* %42)
%44 = getelementptr inbounds [16 x float], [16 x float]* %27, i64 0, i64 0
%45 = load float*, float** %15
%46 = load float*, float** %16
%47 = load float*, float** %17
%48 = load float*, float** %18
%49 = call i32 @Viewing16fv(float* %44, float* %45, float* %46, float* %47, float* %48)
%50 = load float*, float** %14
%51 = load float*, float** %14
%52 = getelementptr inbounds [16 x float], [16 x float]* %27, i64 0, i64 0
%53 = call i32 @Mult16fv(float* %50, float* %51, float* %52)
%54 = load float*, float** %14
ret float* %54
}

LLVM IR (-O2):
define float* @World2ScreenXform16fv(float* returned %0, float* %1, float* %2, float* %3, float* %4, float %5, float %6, float %7, float %8, float %9, float %10, i32 %11, i32 %12) {
%14 = alloca [16 x float]
%15 = bitcast [16 x float]* %14 to i8*
%16 = tail call i32 @Viewport16fv(float* %0, i32 %11, i32 %12)
%17 = getelementptr inbounds [16 x float], [16 x float]* %14, i64 0, i64 0
%18 = call i32 @Frustum16fv(float* %17, float %5, float %6, float %7, float %8, float %9, float %10)
%19 = call i32 @Mult16fv(float* %0, float* %0, float* %17)
%20 = call i32 @Viewing16fv(float* %17, float* %1, float* %2, float* %3, float* %4)
%21 = call i32 @Mult16fv(float* %0, float* %0, float* %17)
ret float* %0
}