void splie2(float x1a[], float x2a[], float **ya, int m, int n, float **y2a) {
  void spline(float x[], float y[], int n, float yp1, float ypn, float y2[]);
  int j;
  for (j = 1; j <= m; j++)
    spline(x2a, ya[j], n, 1.0e30, 1.0e30, y2a[j]);
}


x86 assembly (clang, -O0):
<splie2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     117f <splie2+0x6f>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
mov    -0x20(%rbp),%edx
mov    -0x28(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rcx
movss  0xe97(%rip),%xmm1
movaps %xmm1,%xmm0
call   1030 <spline@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1136 <splie2+0x26>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<splie2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
test   %ecx,%ecx
jle    1167 <splie2+0x57>
mov    %r9,%r14
mov    %r8d,%r15d
mov    %ecx,%ebx
mov    %rdx,%r12
mov    %rsi,%r13
add    $0x1,%ebx
mov    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
mov    (%r12,%rbp,8),%rsi
mov    (%r14,%rbp,8),%rcx
mov    %r13,%rdi
mov    %r15d,%edx
movss  0xeaa(%rip),%xmm0
movaps %xmm0,%xmm1
call   1030 <spline@plt>
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1140 <splie2+0x30>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @splie2(float* %0, float* %1, float** %2, i32 %3, i32 %4, float** %5) {
%7 = alloca float*
%8 = alloca float*
%9 = alloca float**
%10 = alloca i32
%11 = alloca i32
%12 = alloca float**
%13 = alloca i32
store float* %0, float** %7
store float* %1, float** %8
store float** %2, float*** %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store float** %5, float*** %12
store i32 1, i32* %13
br label %14
14: ; preds = %31, %6
%15 = load i32, i32* %13
%16 = load i32, i32* %10
%17 = icmp sle i32 %15, %16
br i1 %17, label %18, label %34
18: ; preds = %14
%19 = load float*, float** %8
%20 = load float**, float*** %9
%21 = load i32, i32* %13
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds float*, float** %20, i64 %22
%24 = load float*, float** %23
%25 = load i32, i32* %11
%26 = load float**, float*** %12
%27 = load i32, i32* %13
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds float*, float** %26, i64 %28
%30 = load float*, float** %29
br label %31
31: ; preds = %18
%32 = load i32, i32* %13
%33 = add nsw i32 %32, 1
store i32 %33, i32* %13
br label %14
34: ; preds = %14
ret void
}

LLVM IR (-O2):
define void @splie2(float* nocapture readnone %0, float* %1, float** nocapture %2, i32 %3, i32 %4, float** nocapture %5) {
%7 = icmp slt i32 %3, 1
br i1 %7, label %19, label %8
8: ; preds = %6
%9 = add nuw i32 %3, 1
%10 = zext i32 %9 to i64
br label %11
11: ; preds = %8, %11
%12 = phi i64 [ 1, %8 ], [ %17, %11 ]
%13 = getelementptr inbounds float*, float** %2, i64 %12
%14 = load float*, float** %13
%15 = getelementptr inbounds float*, float** %5, i64 %12
%16 = load float*, float** %15
tail call void @spline(float* %1, float* %14, i32 %4, float 0x46293E5940000000, float 0x46293E5940000000, float* %16)
%17 = add nuw nsw i64 %12, 1
%18 = icmp eq i64 %17, %10
br i1 %18, label %19, label %11
19: ; preds = %11, %6
ret void
}