#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*/ InterpolateDerS(double *, double *, double const *, int, int,
                                   double const *, int, int, double const *,
                                   int, int, double const *, int, int,
                                   double const *);
double InterpolateDer(const double dim[], int Mdim, int Ndim,
                      const double xval[], int Mxval, int Nxval,
                      const double yval[], int Myval, int Nyval,
                      const double x[], int Mx, int Nx, const double dx[]) {
  double res, d_res;
  InterpolateDerS(&res, &d_res, dim, Mdim, Ndim, xval, Mxval, Nxval, yval,
                  Myval, Nyval, x, Mx, Nx, dx);
  return d_res;
}


x86 assembly (clang, -O0):
<InterpolateDer>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%eax
mov    0x30(%rbp),%eax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %rdi,-0x30(%rbp)
mov    %esi,-0x34(%rbp)
mov    %edx,-0x38(%rbp)
mov    %rcx,-0x40(%rbp)
mov    %r8d,-0x44(%rbp)
mov    %r9d,-0x48(%rbp)
mov    -0x30(%rbp),%rdx
mov    -0x34(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x40(%rbp),%r9
mov    -0x44(%rbp),%eax
mov    -0x48(%rbp),%r13d
mov    0x10(%rbp),%r12
mov    0x18(%rbp),%r15d
mov    0x20(%rbp),%r14d
mov    0x28(%rbp),%rbx
mov    0x30(%rbp),%r11d
mov    0x38(%rbp),%r10d
mov    0x40(%rbp),%rsi
mov    %rsi,-0x60(%rbp)
lea    -0x50(%rbp),%rdi
lea    -0x58(%rbp),%rsi
mov    %eax,(%rsp)
mov    -0x60(%rbp),%rax
mov    %r13d,0x8(%rsp)
mov    %r12,0x10(%rsp)
mov    %r15d,0x18(%rsp)
mov    %r14d,0x20(%rsp)
mov    %rbx,0x28(%rsp)
mov    %r11d,0x30(%rsp)
mov    %r10d,0x38(%rsp)
mov    %rax,0x40(%rsp)
call   1030 <InterpolateDerS@plt>
movsd  -0x58(%rbp),%xmm0
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<InterpolateDer>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %r9d,%eax
mov    %r8d,%r10d
mov    %rcx,%r9
mov    %edx,%r8d
mov    %esi,%ecx
mov    %rdi,%rdx
mov    0x38(%rsp),%r11d
mov    0x40(%rsp),%r14d
mov    0x50(%rsp),%r15d
mov    0x58(%rsp),%ebx
sub    $0x8,%rsp
lea    0x10(%rsp),%rdi
lea    0x8(%rsp),%rsi
push   0x68(%rsp)
push   %rbx
push   %r15
push   0x68(%rsp)
push   %r14
push   %r11
push   0x68(%rsp)
push   %rax
push   %r10
call   1030 <InterpolateDerS@plt>
add    $0x50,%rsp
movsd  (%rsp),%xmm0
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define double @InterpolateDer(double* %0, i32 %1, i32 %2, double* %3, i32 %4, i32 %5, double* %6, i32 %7, i32 %8, double* %9, i32 %10, i32 %11, double* %12) {
%14 = alloca double*
%15 = alloca i32
%16 = alloca i32
%17 = alloca double*
%18 = alloca i32
%19 = alloca i32
%20 = alloca double*
%21 = alloca i32
%22 = alloca i32
%23 = alloca double*
%24 = alloca i32
%25 = alloca i32
%26 = alloca double*
%27 = alloca double
%28 = alloca double
store double* %0, double** %14
store i32 %1, i32* %15
store i32 %2, i32* %16
store double* %3, double** %17
store i32 %4, i32* %18
store i32 %5, i32* %19
store double* %6, double** %20
store i32 %7, i32* %21
store i32 %8, i32* %22
store double* %9, double** %23
store i32 %10, i32* %24
store i32 %11, i32* %25
store double* %12, double** %26
%29 = load double*, double** %14
%30 = load i32, i32* %15
%31 = load i32, i32* %16
%32 = load double*, double** %17
%33 = load i32, i32* %18
%34 = load i32, i32* %19
%35 = load double*, double** %20
%36 = load i32, i32* %21
%37 = load i32, i32* %22
%38 = load double*, double** %23
%39 = load i32, i32* %24
%40 = load i32, i32* %25
%41 = load double*, double** %26
%42 = call i32 @InterpolateDerS(double* %27, double* %28, double* %29, i32 %30, i32 %31, double* %32, i32 %33, i32 %34, double* %35, i32 %36, i32 %37, double* %38, i32 %39, i32 %40, double* %41)
%43 = load double, double* %28
ret double %43
}

LLVM IR (-O2):
define double @InterpolateDer(double* %0, i32 %1, i32 %2, double* %3, i32 %4, i32 %5, double* %6, i32 %7, i32 %8, double* %9, i32 %10, i32 %11, double* %12) {
%14 = alloca double
%15 = alloca double
%16 = bitcast double* %14 to i8*
%17 = bitcast double* %15 to i8*
%18 = call i32 @InterpolateDerS(double* %14, double* %15, double* %0, i32 %1, i32 %2, double* %3, i32 %4, i32 %5, double* %6, i32 %7, i32 %8, double* %9, i32 %10, i32 %11, double* %12)
%19 = load double, double* %15
ret double %19
}