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

/* Variables and functions */
int /*<<< orphan*/ LINTERP(int /*<<< orphan*/, int /*<<< orphan*/ const,
                           int /*<<< orphan*/ const);
void INTERP_3F(GLfloat t, GLfloat dst[3], const GLfloat out[3],
               const GLfloat in[3]) {
  dst[0] = LINTERP(t, out[0], in[0]);
  dst[1] = LINTERP(t, out[1], in[1]);
  dst[2] = LINTERP(t, out[2], in[2]);
}


x86 assembly (clang, -O0):
<INTERP_3F>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
mov    -0x20(%rbp),%rax
mov    (%rax),%edx
call   1030 <LINTERP@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x4(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    0x4(%rax),%esi
mov    -0x20(%rbp),%rax
mov    0x4(%rax),%edx
call   1030 <LINTERP@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x4(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%esi
mov    -0x20(%rbp),%rax
mov    0x8(%rax),%edx
call   1030 <LINTERP@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,0x8(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<INTERP_3F>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rcx,%r15
mov    %rdx,%rbx
mov    %rsi,%r14
mov    %edi,%ebp
mov    (%rdx),%esi
mov    (%rcx),%edx
call   1030 <LINTERP@plt>
mov    %eax,(%r14)
mov    0x4(%rbx),%esi
mov    0x4(%r15),%edx
mov    %ebp,%edi
call   1030 <LINTERP@plt>
mov    %eax,0x4(%r14)
mov    0x8(%rbx),%esi
mov    0x8(%r15),%edx
mov    %ebp,%edi
call   1030 <LINTERP@plt>
mov    %eax,0x8(%r14)
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @INTERP_3F(i32 %0, i32* %1, i32* %2, i32* %3) {
%5 = alloca i32
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i32*
store i32 %0, i32* %5
store i32* %1, i32** %6
store i32* %2, i32** %7
store i32* %3, i32** %8
%9 = load i32, i32* %5
%10 = load i32*, i32** %7
%11 = getelementptr inbounds i32, i32* %10, i64 0
%12 = load i32, i32* %11
%13 = load i32*, i32** %8
%14 = getelementptr inbounds i32, i32* %13, i64 0
%15 = load i32, i32* %14
%16 = call i32 @LINTERP(i32 %9, i32 %12, i32 %15)
%17 = load i32*, i32** %6
%18 = getelementptr inbounds i32, i32* %17, i64 0
store i32 %16, i32* %18
%19 = load i32, i32* %5
%20 = load i32*, i32** %7
%21 = getelementptr inbounds i32, i32* %20, i64 1
%22 = load i32, i32* %21
%23 = load i32*, i32** %8
%24 = getelementptr inbounds i32, i32* %23, i64 1
%25 = load i32, i32* %24
%26 = call i32 @LINTERP(i32 %19, i32 %22, i32 %25)
%27 = load i32*, i32** %6
%28 = getelementptr inbounds i32, i32* %27, i64 1
store i32 %26, i32* %28
%29 = load i32, i32* %5
%30 = load i32*, i32** %7
%31 = getelementptr inbounds i32, i32* %30, i64 2
%32 = load i32, i32* %31
%33 = load i32*, i32** %8
%34 = getelementptr inbounds i32, i32* %33, i64 2
%35 = load i32, i32* %34
%36 = call i32 @LINTERP(i32 %29, i32 %32, i32 %35)
%37 = load i32*, i32** %6
%38 = getelementptr inbounds i32, i32* %37, i64 2
store i32 %36, i32* %38
ret void
}

LLVM IR (-O2):
define void @INTERP_3F(i32 %0, i32* nocapture writeonly %1, i32* nocapture %2, i32* nocapture %3) {
%5 = load i32, i32* %2
%6 = load i32, i32* %3
%7 = tail call i32 @LINTERP(i32 %0, i32 %5, i32 %6)
store i32 %7, i32* %1
%8 = getelementptr inbounds i32, i32* %2, i64 1
%9 = load i32, i32* %8
%10 = getelementptr inbounds i32, i32* %3, i64 1
%11 = load i32, i32* %10
%12 = tail call i32 @LINTERP(i32 %0, i32 %9, i32 %11)
%13 = getelementptr inbounds i32, i32* %1, i64 1
store i32 %12, i32* %13
%14 = getelementptr inbounds i32, i32* %2, i64 2
%15 = load i32, i32* %14
%16 = getelementptr inbounds i32, i32* %3, i64 2
%17 = load i32, i32* %16
%18 = tail call i32 @LINTERP(i32 %0, i32 %15, i32 %17)
%19 = getelementptr inbounds i32, i32* %1, i64 2
store i32 %18, i32* %19
ret void
}