#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*/ evaluate_wave_transmission_c(int *, double *, int *,
                                                double *, double *, int *,
                                                double *, double *, int *,
                                                double *, int *, double *,
                                                int *);
void evaluate_wave_transmission(int grav_dirn, double grav_factor, int n_time,
                                double heartrate, double a0, int no_freq,
                                double *a, double *b, int n_bcparams,
                                double *admittance_param, int n_model,
                                double *model_definition, int cap_model) {
  evaluate_wave_transmission_c(
      &grav_dirn, &grav_factor, &n_time, &heartrate, &a0, &no_freq, a, b,
      &n_bcparams, admittance_param, &n_model, model_definition, &cap_model);
}


x86 assembly (clang, -O0):
<evaluate_wave_transmission>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x80,%rsp
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %edi,-0x24(%rbp)
movsd  %xmm0,-0x30(%rbp)
mov    %esi,-0x34(%rbp)
movsd  %xmm1,-0x40(%rbp)
movsd  %xmm2,-0x48(%rbp)
mov    %edx,-0x4c(%rbp)
mov    %rcx,-0x58(%rbp)
mov    %r8,-0x60(%rbp)
mov    %r9d,-0x64(%rbp)
mov    -0x58(%rbp),%r12
mov    -0x60(%rbp),%r15
mov    0x10(%rbp),%rbx
mov    0x20(%rbp),%r10
lea    -0x24(%rbp),%rdi
lea    -0x30(%rbp),%rsi
lea    -0x34(%rbp),%rdx
lea    -0x40(%rbp),%rcx
lea    -0x48(%rbp),%r8
lea    -0x4c(%rbp),%r9
lea    -0x64(%rbp),%r14
lea    0x18(%rbp),%r11
lea    0x28(%rbp),%rax
mov    %r12,(%rsp)
mov    %r15,0x8(%rsp)
mov    %r14,0x10(%rsp)
mov    %rbx,0x18(%rsp)
mov    %r11,0x20(%rsp)
mov    %r10,0x28(%rsp)
mov    %rax,0x30(%rsp)
call   1030 <evaluate_wave_transmission_c@plt>
add    $0x80,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<evaluate_wave_transmission>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r8,%rax
mov    %rcx,%r10
mov    0x50(%rsp),%r11
mov    0x60(%rsp),%r14
mov    %edi,0xc(%rsp)
movsd  %xmm0,0x20(%rsp)
mov    %esi,0x8(%rsp)
movsd  %xmm1,0x18(%rsp)
movsd  %xmm2,0x10(%rsp)
mov    %edx,0x4(%rsp)
mov    %r9d,(%rsp)
sub    $0x8,%rsp
lea    0x70(%rsp),%rbx
lea    0x60(%rsp),%r15
lea    0x8(%rsp),%r12
lea    0x14(%rsp),%rdi
lea    0x28(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0x20(%rsp),%rcx
lea    0x18(%rsp),%r8
lea    0xc(%rsp),%r9
push   %rbx
push   %r14
push   %r15
push   %r11
push   %r12
push   %rax
push   %r10
call   1030 <evaluate_wave_transmission_c@plt>
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @evaluate_wave_transmission(i32 %0, double %1, i32 %2, double %3, double %4, i32 %5, double* %6, double* %7, i32 %8, double* %9, i32 %10, double* %11, i32 %12) {
%14 = alloca i32
%15 = alloca double
%16 = alloca i32
%17 = alloca double
%18 = alloca double
%19 = alloca i32
%20 = alloca double*
%21 = alloca double*
%22 = alloca i32
%23 = alloca double*
%24 = alloca i32
%25 = alloca double*
%26 = alloca i32
store i32 %0, i32* %14
store double %1, double* %15
store i32 %2, i32* %16
store double %3, double* %17
store double %4, double* %18
store i32 %5, i32* %19
store double* %6, double** %20
store double* %7, double** %21
store i32 %8, i32* %22
store double* %9, double** %23
store i32 %10, i32* %24
store double* %11, double** %25
store i32 %12, i32* %26
%27 = load double*, double** %20
%28 = load double*, double** %21
%29 = load double*, double** %23
%30 = load double*, double** %25
%31 = call i32 @evaluate_wave_transmission_c(i32* %14, double* %15, i32* %16, double* %17, double* %18, i32* %19, double* %27, double* %28, i32* %22, double* %29, i32* %24, double* %30, i32* %26)
ret void
}

LLVM IR (-O2):
define void @evaluate_wave_transmission(i32 %0, double %1, i32 %2, double %3, double %4, i32 %5, double* %6, double* %7, i32 %8, double* %9, i32 %10, double* %11, i32 %12) {
%14 = alloca i32
%15 = alloca double
%16 = alloca i32
%17 = alloca double
%18 = alloca double
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
store i32 %0, i32* %14
store double %1, double* %15
store i32 %2, i32* %16
store double %3, double* %17
store double %4, double* %18
store i32 %5, i32* %19
store i32 %8, i32* %20
store i32 %10, i32* %21
store i32 %12, i32* %22
%23 = call i32 @evaluate_wave_transmission_c(i32* %14, double* %15, i32* %16, double* %17, double* %18, i32* %19, double* %6, double* %7, i32* %20, double* %9, i32* %21, double* %11, i32* %22)
ret void
}