#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*/ GetTass17OsculatingCoor(double, double, int, double *);
void GetTass17Coor(double jd, int body, double *xyz, double *xyzdot) {
  double xyz6[6];
  GetTass17OsculatingCoor(jd, jd, body, xyz6);
  xyz[0] = xyz6[0];
  xyz[1] = xyz6[1];
  xyz[2] = xyz6[2];
  xyzdot[0] = xyz6[3];
  xyzdot[1] = xyz6[4];
  xyzdot[2] = xyz6[5];
}


x86 assembly (clang, -O0):
<GetTass17Coor>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %edi,-0xc(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm1
mov    -0xc(%rbp),%edi
lea    -0x50(%rbp),%rsi
call   1030 <GetTass17OsculatingCoor@plt>
movsd  -0x50(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x48(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x40(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,0x10(%rax)
movsd  -0x38(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x30(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x28(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GetTass17Coor>:
push   %r14
push   %rbx
sub    $0x38,%rsp
mov    %rdx,%r14
mov    %rsi,%rbx
mov    %rsp,%rsi
movaps %xmm0,%xmm1
call   1030 <GetTass17OsculatingCoor@plt>
movaps (%rsp),%xmm0
movups %xmm0,(%rbx)
movsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x10(%rbx)
movups 0x18(%rsp),%xmm0
movups %xmm0,(%r14)
movsd  0x28(%rsp),%xmm0
movsd  %xmm0,0x10(%r14)
add    $0x38,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define void @GetTass17Coor(double %0, i32 %1, double* nocapture writeonly %2, double* nocapture writeonly %3) {
%5 = alloca [6 x double]
%6 = bitcast [6 x double]* %5 to i8*
%7 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 0
%8 = call i32 @GetTass17OsculatingCoor(double %0, double %0, i32 %1, double* %7)
%9 = bitcast [6 x double]* %5 to <2 x double>*
%10 = load <2 x double>, <2 x double>* %9
%11 = bitcast double* %2 to <2 x double>*
store <2 x double> %10, <2 x double>* %11
%12 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 2
%13 = load double, double* %12
%14 = getelementptr inbounds double, double* %2, i64 2
store double %13, double* %14
%15 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 3
%16 = bitcast double* %15 to <2 x double>*
%17 = load <2 x double>, <2 x double>* %16
%18 = bitcast double* %3 to <2 x double>*
store <2 x double> %17, <2 x double>* %18
%19 = getelementptr inbounds [6 x double], [6 x double]* %5, i64 0, i64 5
%20 = load double, double* %19
%21 = getelementptr inbounds double, double* %3, i64 2
store double %20, double* %21
ret void
}