#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*/ spline_intd3(double const, double const *, double const *,
                                double const *, int, double *, double *,
                                double *, double *);
void spline_intd3_vec(const double xp[], int nxp, const double xs[],
                      const double ys[], const double zs[], int n, double q[],
                      double dq1[], double dq2[], double dq3[]) {
  int i;
  for (i = 0; i < n; i++)
    spline_intd3(xp[i], xs, ys, zs, n, q + i, dq1 + i, dq2 + i, dq3 + i);
}


x86 assembly (clang, -O0):
<spline_intd3_vec>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    11c6 <spline_intd3_vec+0xb6>
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x2c(%rbp),%ecx
mov    0x10(%rbp),%r8
movslq -0x30(%rbp),%rax
shl    $0x3,%rax
add    %rax,%r8
mov    0x18(%rbp),%r9
movslq -0x30(%rbp),%rax
shl    $0x3,%rax
add    %rax,%r9
mov    0x20(%rbp),%r10
movslq -0x30(%rbp),%rax
shl    $0x3,%rax
add    %rax,%r10
mov    0x28(%rbp),%rax
movslq -0x30(%rbp),%r11
shl    $0x3,%r11
add    %r11,%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <spline_intd3@plt>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1146 <spline_intd3_vec+0x36>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<spline_intd3_vec>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r9d,0xc(%rsp)
test   %r9d,%r9d
jle    119c <spline_intd3_vec+0x8c>
mov    %r8,%rbp
mov    %rcx,%r13
mov    %rdx,%r15
mov    %rdi,%r12
mov    0xc(%rsp),%eax
shl    $0x3,%rax
mov    %rax,0x10(%rsp)
xor    %r14d,%r14d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  (%r12,%r14,1),%xmm0
mov    0x50(%rsp),%rax
lea    (%rax,%r14,1),%r8
mov    0x58(%rsp),%rax
lea    (%rax,%r14,1),%r9
mov    0x60(%rsp),%rax
add    %r14,%rax
mov    0x68(%rsp),%rsi
lea    (%rsi,%r14,1),%rbx
mov    %r15,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
mov    0xc(%rsp),%ecx
push   %rbx
push   %rax
call   1030 <spline_intd3@plt>
add    $0x10,%rsp
add    $0x8,%r14
cmp    %r14,0x10(%rsp)
jne    1150 <spline_intd3_vec+0x40>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @spline_intd3_vec(double* %0, i32 %1, double* %2, double* %3, double* %4, i32 %5, double* %6, double* %7, double* %8, double* %9) {
%11 = alloca double*
%12 = alloca i32
%13 = alloca double*
%14 = alloca double*
%15 = alloca double*
%16 = alloca i32
%17 = alloca double*
%18 = alloca double*
%19 = alloca double*
%20 = alloca double*
%21 = alloca i32
store double* %0, double** %11
store i32 %1, i32* %12
store double* %2, double** %13
store double* %3, double** %14
store double* %4, double** %15
store i32 %5, i32* %16
store double* %6, double** %17
store double* %7, double** %18
store double* %8, double** %19
store double* %9, double** %20
store i32 0, i32* %21
br label %22
22: ; preds = %53, %10
%23 = load i32, i32* %21
%24 = load i32, i32* %16
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %56
26: ; preds = %22
%27 = load double*, double** %11
%28 = load i32, i32* %21
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds double, double* %27, i64 %29
%31 = load double, double* %30
%32 = load double*, double** %13
%33 = load double*, double** %14
%34 = load double*, double** %15
%35 = load i32, i32* %16
%36 = load double*, double** %17
%37 = load i32, i32* %21
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, double* %36, i64 %38
%40 = load double*, double** %18
%41 = load i32, i32* %21
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds double, double* %40, i64 %42
%44 = load double*, double** %19
%45 = load i32, i32* %21
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds double, double* %44, i64 %46
%48 = load double*, double** %20
%49 = load i32, i32* %21
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds double, double* %48, i64 %50
%52 = call i32 @spline_intd3(double %31, double* %32, double* %33, double* %34, i32 %35, double* %39, double* %43, double* %47, double* %51)
br label %53
53: ; preds = %26
%54 = load i32, i32* %21
%55 = add nsw i32 %54, 1
store i32 %55, i32* %21
br label %22
56: ; preds = %22
ret void
}

LLVM IR (-O2):
define void @spline_intd3_vec(double* nocapture %0, i32 %1, double* %2, double* %3, double* %4, i32 %5, double* %6, double* %7, double* %8, double* %9) {
%11 = icmp sgt i32 %5, 0
br i1 %11, label %12, label %25
12: ; preds = %10
%13 = zext i32 %5 to i64
br label %14
14: ; preds = %12, %14
%15 = phi i64 [ 0, %12 ], [ %23, %14 ]
%16 = getelementptr inbounds double, double* %0, i64 %15
%17 = load double, double* %16
%18 = getelementptr inbounds double, double* %6, i64 %15
%19 = getelementptr inbounds double, double* %7, i64 %15
%20 = getelementptr inbounds double, double* %8, i64 %15
%21 = getelementptr inbounds double, double* %9, i64 %15
%22 = tail call i32 @spline_intd3(double %17, double* %2, double* %3, double* %4, i32 %5, double* %18, double* %19, double* %20, double* %21)
%23 = add nuw nsw i64 %15, 1
%24 = icmp eq i64 %23, %13
br i1 %24, label %25, label %14
25: ; preds = %14, %10
ret void
}