#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*/ disloc3d(double *, int, double *, int, double, double,
                            double *, double *, double *, double *, double *);
int /*<<< orphan*/ getM(double *, int, double, double *);
void calc_disp_cervelli(double mu, double nu, double *models,
                        double *fault_info, int nfaults, double *stations,
                        int nstations, double *disp, double *deriv,
                        double *stress, double *flag, double *flag2) {
  getM(fault_info, nfaults, mu, models);
  disloc3d(models, nfaults, stations, nstations, mu, nu, disp, deriv, stress,
           flag, flag2);
}


x86 assembly (clang, -O0):
<calc_disp_cervelli>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
mov    %rdi,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    %edx,-0x24(%rbp)
mov    %rcx,-0x30(%rbp)
mov    %r8d,-0x34(%rbp)
mov    %r9,-0x40(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x24(%rbp),%esi
movsd  -0x8(%rbp),%xmm0
mov    -0x18(%rbp),%rdx
call   1040 <getM@plt>
mov    -0x18(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    -0x30(%rbp),%rdx
mov    -0x34(%rbp),%ecx
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
mov    -0x40(%rbp),%r8
mov    0x10(%rbp),%r9
mov    0x18(%rbp),%r11
mov    0x20(%rbp),%r10
mov    0x28(%rbp),%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <disloc3d@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calc_disp_cervelli>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r9,%r14
mov    %r8d,%r15d
mov    %rcx,%r12
mov    %edx,%ebp
mov    %rdi,%rbx
movsd  %xmm1,0x20(%rsp)
movsd  %xmm0,0x18(%rsp)
mov    0x78(%rsp),%r13
mov    %rsi,%rdi
mov    %edx,%esi
mov    %rbx,%rdx
call   1040 <getM@plt>
mov    %r13,0x10(%rsp)
movups 0x68(%rsp),%xmm0
movups %xmm0,(%rsp)
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r12,%rdx
mov    %r15d,%ecx
movsd  0x18(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
mov    %r14,%r8
mov    0x60(%rsp),%r9
call   1030 <disloc3d@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @calc_disp_cervelli(double %0, double %1, double* %2, double* %3, i32 %4, double* %5, i32 %6, double* %7, double* %8, double* %9, double* %10, double* %11) {
%13 = tail call i32 @getM(double* %3, i32 %4, double %0, double* %2)
%14 = tail call i32 @disloc3d(double* %2, i32 %4, double* %5, i32 %6, double %0, double %1, double* %7, double* %8, double* %9, double* %10, double* %11)
ret void
}