#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 */
float srdnoise2(float, float, float, float *, float *);
int f_srdnoise2(void *initdata, int argc, void **argv) {
  float *result = (float *)argv[0];
  float *x = (float *)argv[1];
  float *y = (float *)argv[2];
  float *t = (float *)argv[3];
  *result = srdnoise2(*x, *y, *t, (float *)0, (float *)0);
  return 0;
}


x86 assembly (clang, -O0):
<f_srdnoise2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x30(%rbp)
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x30(%rbp),%rax
movss  (%rax),%xmm1
mov    -0x38(%rbp),%rax
movss  (%rax),%xmm2
xor    %eax,%eax
mov    %eax,%esi
mov    %rsi,%rdi
call   1030 <srdnoise2@plt>
mov    -0x20(%rbp),%rax
movss  %xmm0,(%rax)
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f_srdnoise2>:
push   %rbx
mov    (%rdx),%rbx
mov    0x8(%rdx),%rax
mov    0x10(%rdx),%rcx
mov    0x18(%rdx),%rdx
movss  (%rax),%xmm0
movss  (%rcx),%xmm1
movss  (%rdx),%xmm2
xor    %edi,%edi
xor    %esi,%esi
call   1030 <srdnoise2@plt>
movss  %xmm0,(%rbx)
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @f_srdnoise2(i8* %0, i32 %1, i8** %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8**
%7 = alloca float*
%8 = alloca float*
%9 = alloca float*
%10 = alloca float*
store i8* %0, i8** %4
store i32 %1, i32* %5
store i8** %2, i8*** %6
%11 = load i8**, i8*** %6
%12 = getelementptr inbounds i8*, i8** %11, i64 0
%13 = load i8*, i8** %12
%14 = bitcast i8* %13 to float*
store float* %14, float** %7
%15 = load i8**, i8*** %6
%16 = getelementptr inbounds i8*, i8** %15, i64 1
%17 = load i8*, i8** %16
%18 = bitcast i8* %17 to float*
store float* %18, float** %8
%19 = load i8**, i8*** %6
%20 = getelementptr inbounds i8*, i8** %19, i64 2
%21 = load i8*, i8** %20
%22 = bitcast i8* %21 to float*
store float* %22, float** %9
%23 = load i8**, i8*** %6
%24 = getelementptr inbounds i8*, i8** %23, i64 3
%25 = load i8*, i8** %24
%26 = bitcast i8* %25 to float*
store float* %26, float** %10
%27 = load float*, float** %8
%28 = load float, float* %27
%29 = load float*, float** %9
%30 = load float, float* %29
%31 = load float*, float** %10
%32 = load float, float* %31
%33 = call float @srdnoise2(float %28, float %30, float %32, float* null, float* null)
%34 = load float*, float** %7
store float %33, float* %34
ret i32 0
}

LLVM IR (-O2):
define i32 @f_srdnoise2(i8* nocapture readnone %0, i32 %1, i8** nocapture %2) {
%4 = bitcast i8** %2 to float**
%5 = load float*, float** %4
%6 = getelementptr inbounds i8*, i8** %2, i64 1
%7 = bitcast i8** %6 to float**
%8 = load float*, float** %7
%9 = getelementptr inbounds i8*, i8** %2, i64 2
%10 = bitcast i8** %9 to float**
%11 = load float*, float** %10
%12 = getelementptr inbounds i8*, i8** %2, i64 3
%13 = bitcast i8** %12 to float**
%14 = load float*, float** %13
%15 = load float, float* %8
%16 = load float, float* %11
%17 = load float, float* %14
%18 = tail call float @srdnoise2(float %15, float %16, float %17, float* null, float* null)
store float %18, float* %5
ret i32 0
}