#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*/ palMappa(double, double, double *);
int /*<<< orphan*/ palMapqk(double, double, double, double, double, double,
                            double *, double *, double *);
void palMap(double rm, double dm, double pr, double pd, double px, double rv,
            double eq, double date, double *ra, double *da) {
  double amprms[21];
  palMappa(eq, date, amprms);
  palMapqk(rm, dm, pr, pd, px, rv, amprms, ra, da);
}


x86 assembly (clang, -O0):
<palMap>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
movsd  %xmm6,-0x38(%rbp)
movsd  %xmm7,-0x40(%rbp)
mov    %rdi,-0x48(%rbp)
mov    %rsi,-0x50(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
lea    -0x100(%rbp),%rdi
call   1040 <palMappa@plt>
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
movsd  -0x28(%rbp),%xmm4
movsd  -0x30(%rbp),%xmm5
lea    -0x100(%rbp),%rdi
mov    -0x48(%rbp),%rsi
mov    -0x50(%rbp),%rdx
call   1030 <palMapqk@plt>
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<palMap>:
push   %r15
push   %r14
push   %rbx
sub    $0xe0,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
movsd  %xmm5,0x28(%rsp)
movsd  %xmm4,0x20(%rsp)
movsd  %xmm3,0x18(%rsp)
movsd  %xmm2,0x10(%rsp)
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,(%rsp)
lea    0x30(%rsp),%r15
movaps %xmm6,%xmm0
movaps %xmm7,%xmm1
mov    %r15,%rdi
call   1040 <palMappa@plt>
movsd  (%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
movsd  0x18(%rsp),%xmm3
movsd  0x20(%rsp),%xmm4
movsd  0x28(%rsp),%xmm5
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1030 <palMapqk@plt>
add    $0xe0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @palMap(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double* %8, double* %9) {
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double*
%20 = alloca double*
%21 = alloca [21 x double]
store double %0, double* %11
store double %1, double* %12
store double %2, double* %13
store double %3, double* %14
store double %4, double* %15
store double %5, double* %16
store double %6, double* %17
store double %7, double* %18
store double* %8, double** %19
store double* %9, double** %20
%22 = load double, double* %17
%23 = load double, double* %18
%24 = getelementptr inbounds [21 x double], [21 x double]* %21, i64 0, i64 0
%25 = call i32 @palMappa(double %22, double %23, double* %24)
%26 = load double, double* %11
%27 = load double, double* %12
%28 = load double, double* %13
%29 = load double, double* %14
%30 = load double, double* %15
%31 = load double, double* %16
%32 = getelementptr inbounds [21 x double], [21 x double]* %21, i64 0, i64 0
%33 = load double*, double** %19
%34 = load double*, double** %20
%35 = call i32 @palMapqk(double %26, double %27, double %28, double %29, double %30, double %31, double* %32, double* %33, double* %34)
ret void
}

LLVM IR (-O2):
define void @palMap(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double* %8, double* %9) {
%11 = alloca [21 x double]
%12 = bitcast [21 x double]* %11 to i8*
%13 = getelementptr inbounds [21 x double], [21 x double]* %11, i64 0, i64 0
%14 = call i32 @palMappa(double %6, double %7, double* %13)
%15 = call i32 @palMapqk(double %0, double %1, double %2, double %3, double %4, double %5, double* %13, double* %8, double* %9)
ret void
}