#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*/ sla_rdplan_(double *, int *, double *, double *, double *,
                               double *, double *);
void slaRdplan(double date, int i, double elong, double phi, double *ra,
               double *dec, double *diam) {
  double DATE;
  int I;
  double ELONG;
  double PHI;
  double RA;
  double DEC;
  double DIAM;
  DATE = date;
  I = i;
  ELONG = elong;
  PHI = phi;
  sla_rdplan_(&DATE, &I, &ELONG, &PHI, &RA, &DEC, &DIAM);
  *ra = RA;
  *dec = DEC;
  *diam = DIAM;
}


x86 assembly (clang, -O0):
<slaRdplan>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %edi,-0xc(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
mov    %rdx,-0x30(%rbp)
mov    %rcx,-0x38(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x44(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
lea    -0x40(%rbp),%rdi
lea    -0x44(%rbp),%rsi
lea    -0x50(%rbp),%rdx
lea    -0x58(%rbp),%rcx
lea    -0x60(%rbp),%r8
lea    -0x68(%rbp),%r9
lea    -0x70(%rbp),%rax
mov    %rax,(%rsp)
call   1030 <sla_rdplan_@plt>
movsd  -0x60(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x68(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x70(%rbp),%xmm0
mov    -0x38(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<slaRdplan>:
push   %r15
push   %r14
push   %rbx
sub    $0x40,%rsp
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%rbx
movsd  %xmm0,0x38(%rsp)
mov    %edi,0xc(%rsp)
movsd  %xmm1,0x30(%rsp)
movsd  %xmm2,0x28(%rsp)
lea    0x10(%rsp),%rax
mov    %rax,(%rsp)
lea    0x38(%rsp),%rdi
lea    0xc(%rsp),%rsi
lea    0x30(%rsp),%rdx
lea    0x28(%rsp),%rcx
lea    0x20(%rsp),%r8
lea    0x18(%rsp),%r9
call   1030 <sla_rdplan_@plt>
movsd  0x20(%rsp),%xmm0
movsd  %xmm0,(%rbx)
movsd  0x18(%rsp),%xmm0
movsd  %xmm0,(%r15)
movsd  0x10(%rsp),%xmm0
movsd  %xmm0,(%r14)
add    $0x40,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
define void @slaRdplan(double %0, i32 %1, double %2, double %3, double* nocapture writeonly %4, double* nocapture writeonly %5, double* nocapture writeonly %6) {
%8 = alloca double
%9 = alloca i32
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = bitcast double* %8 to i8*
%16 = bitcast i32* %9 to i8*
%17 = bitcast double* %10 to i8*
%18 = bitcast double* %11 to i8*
%19 = bitcast double* %12 to i8*
%20 = bitcast double* %13 to i8*
%21 = bitcast double* %14 to i8*
store double %0, double* %8
store i32 %1, i32* %9
store double %2, double* %10
store double %3, double* %11
%22 = call i32 @sla_rdplan_(double* %8, i32* %9, double* %10, double* %11, double* %12, double* %13, double* %14)
%23 = load double, double* %12
store double %23, double* %4
%24 = load double, double* %13
store double %24, double* %5
%25 = load double, double* %14
store double %25, double* %6
ret void
}