#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 srdnoise3(float, float, float, float, float *, float *, float *);
int fD_srdnoise3(void *initdata, int argc, void **argv) {
  float *result = (float *)argv[0];
  float *P = (float *)argv[1];
  float *t = (float *)argv[2];
  float *dx = (float *)argv[3];
  float *dy = (float *)argv[4];
  float *dz = (float *)argv[5];
  *result = srdnoise3(P[0], P[1], P[2], *t, dx, dy, dz);
  return 0;
}


x86 assembly (clang, -O0):
<fD_srdnoise3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%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    -0x18(%rbp),%rax
mov    0x20(%rax),%rax
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%rax
mov    0x28(%rax),%rax
mov    %rax,-0x48(%rbp)
mov    -0x28(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x28(%rbp),%rax
movss  0x4(%rax),%xmm1
mov    -0x28(%rbp),%rax
movss  0x8(%rax),%xmm2
mov    -0x30(%rbp),%rax
movss  (%rax),%xmm3
mov    -0x38(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    -0x48(%rbp),%rdx
call   1030 <srdnoise3@plt>
mov    -0x20(%rbp),%rax
movss  %xmm0,(%rax)
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fD_srdnoise3>:
push   %rbx
mov    (%rdx),%rbx
mov    0x8(%rdx),%rax
mov    0x10(%rdx),%rcx
mov    0x18(%rdx),%rdi
mov    0x20(%rdx),%rsi
mov    0x28(%rdx),%rdx
movss  (%rax),%xmm0
movss  0x4(%rax),%xmm1
movss  0x8(%rax),%xmm2
movss  (%rcx),%xmm3
call   1030 <srdnoise3@plt>
movss  %xmm0,(%rbx)
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @fD_srdnoise3(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*
%11 = alloca float*
%12 = alloca float*
store i8* %0, i8** %4
store i32 %1, i32* %5
store i8** %2, i8*** %6
%13 = load i8**, i8*** %6
%14 = getelementptr inbounds i8*, i8** %13, i64 0
%15 = load i8*, i8** %14
%16 = bitcast i8* %15 to float*
store float* %16, float** %7
%17 = load i8**, i8*** %6
%18 = getelementptr inbounds i8*, i8** %17, i64 1
%19 = load i8*, i8** %18
%20 = bitcast i8* %19 to float*
store float* %20, float** %8
%21 = load i8**, i8*** %6
%22 = getelementptr inbounds i8*, i8** %21, i64 2
%23 = load i8*, i8** %22
%24 = bitcast i8* %23 to float*
store float* %24, float** %9
%25 = load i8**, i8*** %6
%26 = getelementptr inbounds i8*, i8** %25, i64 3
%27 = load i8*, i8** %26
%28 = bitcast i8* %27 to float*
store float* %28, float** %10
%29 = load i8**, i8*** %6
%30 = getelementptr inbounds i8*, i8** %29, i64 4
%31 = load i8*, i8** %30
%32 = bitcast i8* %31 to float*
store float* %32, float** %11
%33 = load i8**, i8*** %6
%34 = getelementptr inbounds i8*, i8** %33, i64 5
%35 = load i8*, i8** %34
%36 = bitcast i8* %35 to float*
store float* %36, float** %12
%37 = load float*, float** %8
%38 = getelementptr inbounds float, float* %37, i64 0
%39 = load float, float* %38
%40 = load float*, float** %8
%41 = getelementptr inbounds float, float* %40, i64 1
%42 = load float, float* %41
%43 = load float*, float** %8
%44 = getelementptr inbounds float, float* %43, i64 2
%45 = load float, float* %44
%46 = load float*, float** %9
%47 = load float, float* %46
%48 = load float*, float** %10
%49 = load float*, float** %11
%50 = load float*, float** %12
%51 = call float @srdnoise3(float %39, float %42, float %45, float %47, float* %48, float* %49, float* %50)
%52 = load float*, float** %7
store float %51, float* %52
ret i32 0
}

LLVM IR (-O2):
define i32 @fD_srdnoise3(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 = getelementptr inbounds i8*, i8** %2, i64 4
%16 = bitcast i8** %15 to float**
%17 = load float*, float** %16
%18 = getelementptr inbounds i8*, i8** %2, i64 5
%19 = bitcast i8** %18 to float**
%20 = load float*, float** %19
%21 = load float, float* %8
%22 = getelementptr inbounds float, float* %8, i64 1
%23 = load float, float* %22
%24 = getelementptr inbounds float, float* %8, i64 2
%25 = load float, float* %24
%26 = load float, float* %11
%27 = tail call float @srdnoise3(float %21, float %23, float %25, float %26, float* %14, float* %17, float* %20)
store float %27, float* %5
ret i32 0
}