#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*/ traverseKspaceFromWaveform(float *, float *, float *, int,
                                              float *, float, float, float,
                                              float **, float **, float **,
                                              int *);
void traverseKspaceToZero(float *gradientOriginalX, float *gradientOriginalY,
                          float *gradientOriginalZ, int pointsOriginal,
                          float samplingInterval, float maxGradientAmplitude,
                          float maxSlewRate, float **gradientRewoundX,
                          float **gradientRewoundY, float **gradientRewoundZ,
                          int *pointsRewound) {
  float kSpaceCoordinatesFinal[3] = {0, 0, 0};
  traverseKspaceFromWaveform(
      gradientOriginalX, gradientOriginalY, gradientOriginalZ, pointsOriginal,
      kSpaceCoordinatesFinal, samplingInterval, maxGradientAmplitude,
      maxSlewRate, gradientRewoundX, gradientRewoundY, gradientRewoundZ,
      pointsRewound);
}


x86 assembly (clang, -O0):
<traverseKspaceToZero>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
movss  %xmm0,-0x20(%rbp)
movss  %xmm1,-0x24(%rbp)
movss  %xmm2,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
lea    -0x44(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1030 <memset@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
lea    -0x44(%rbp),%r8
movss  -0x20(%rbp),%xmm0
movss  -0x24(%rbp),%xmm1
movss  -0x28(%rbp),%xmm2
mov    -0x30(%rbp),%r9
mov    -0x38(%rbp),%r11
mov    0x10(%rbp),%r10
mov    0x18(%rbp),%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1040 <traverseKspaceFromWaveform@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<traverseKspaceToZero>:
sub    $0x28,%rsp
mov    %r8,%rax
movaps 0x30(%rsp),%xmm3
movl   $0x0,0x20(%rsp)
movq   $0x0,0x18(%rsp)
movups %xmm3,0x8(%rsp)
mov    %r9,(%rsp)
lea    0x18(%rsp),%r8
mov    %rax,%r9
call   1030 <traverseKspaceFromWaveform@plt>
add    $0x28,%rsp
ret

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

LLVM IR (-O2):
define void @traverseKspaceToZero(float* %0, float* %1, float* %2, i32 %3, float %4, float %5, float %6, float** %7, float** %8, float** %9, i32* %10) {
%12 = alloca [3 x float]
%13 = bitcast [3 x float]* %12 to i8*
%14 = getelementptr inbounds [3 x float], [3 x float]* %12, i64 0, i64 0
%15 = call i32 @traverseKspaceFromWaveform(float* %0, float* %1, float* %2, i32 %3, float* %14, float %4, float %5, float %6, float** %7, float** %8, float** %9, i32* %10)
ret void
}