#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_4F(GLfloat t, GLfloat dst[4], const GLfloat out[4],
               const GLfloat in[4]) {
  dst[0] = LINTERP(t, out[0], in[0]);
  dst[1] = LINTERP(t, out[1], in[1]);
  dst[2] = LINTERP(t, out[2], in[2]);
  dst[3] = LINTERP(t, out[3], in[3]);
}


x86 assembly (clang, -O0):
<INTERP_4F>:
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)
mov    -0x4(%rbp),%edi
mov    -0x18(%rbp),%rax
mov    0xc(%rax),%esi
mov    -0x20(%rbp),%rax
mov    0xc(%rax),%edx
call   1030 <LINTERP@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,0xc(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<INTERP_4F>:
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)
mov    0xc(%rbx),%esi
mov    0xc(%r15),%edx
mov    %ebp,%edi
call   1030 <LINTERP@plt>
mov    %eax,0xc(%r14)
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @INTERP_4F(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
%39 = load i32, i32* %5
%40 = load i32*, i32** %7
%41 = getelementptr inbounds i32, i32* %40, i64 3
%42 = load i32, i32* %41
%43 = load i32*, i32** %8
%44 = getelementptr inbounds i32, i32* %43, i64 3
%45 = load i32, i32* %44
%46 = call i32 @LINTERP(i32 %39, i32 %42, i32 %45)
%47 = load i32*, i32** %6
%48 = getelementptr inbounds i32, i32* %47, i64 3
store i32 %46, i32* %48
ret void
}

LLVM IR (-O2):
define void @INTERP_4F(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
%20 = getelementptr inbounds i32, i32* %2, i64 3
%21 = load i32, i32* %20
%22 = getelementptr inbounds i32, i32* %3, i64 3
%23 = load i32, i32* %22
%24 = tail call i32 @LINTERP(i32 %0, i32 %21, i32 %23)
%25 = getelementptr inbounds i32, i32* %1, i64 3
store i32 %24, i32* %25
ret void
}