#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*/ SinCos(double, double *, double *);
double dEcLong();
double dObliq();
double obliquity();
void nutate(double *RA, double *Dec) {
  double cosRA, sinRA, cosDec, sinDec, tanDec;
  double dRA1, dDec1;
  double cosOb, sinOb;
  SinCos(*RA, &sinRA, &cosRA);
  SinCos(*Dec, &sinDec, &cosDec);
  SinCos(obliquity(), &sinOb, &cosOb);
  tanDec = sinDec / cosDec;
  dRA1 = (dEcLong() * (cosOb + sinOb * sinRA * tanDec) -
          dObliq() * cosRA * tanDec);
  dDec1 = (dEcLong() * (sinOb * cosRA) + dObliq() * sinRA);
  *RA = (*RA + dRA1);
  *Dec = (*Dec + dDec1);
}


x86 assembly (clang, -O0):
<nutate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
lea    -0x20(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1050 <SinCos@plt>
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
lea    -0x30(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   1050 <SinCos@plt>
mov    $0x0,%al
call   1040 <obliquity@plt>
lea    -0x58(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1050 <SinCos@plt>
movsd  -0x30(%rbp),%xmm0
divsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    $0x0,%al
call   1060 <dEcLong@plt>
movsd  %xmm0,-0x70(%rbp)
movsd  -0x50(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    $0x0,%al
call   1030 <dObliq@plt>
movsd  -0x78(%rbp),%xmm2
movaps %xmm0,%xmm1
movsd  -0x70(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm1
mulsd  -0x38(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    $0x0,%al
call   1060 <dEcLong@plt>
movsd  %xmm0,-0x60(%rbp)
movsd  -0x58(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    $0x0,%al
call   1030 <dObliq@plt>
movsd  -0x68(%rbp),%xmm2
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
addsd  -0x40(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
addsd  -0x48(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<nutate>:
push   %r14
push   %rbx
sub    $0x48,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
movsd  (%rdi),%xmm0
lea    0x20(%rsp),%rdi
lea    0x28(%rsp),%rsi
call   1050 <SinCos@plt>
movsd  (%r14),%xmm0
lea    0x38(%rsp),%rdi
lea    0x40(%rsp),%rsi
call   1050 <SinCos@plt>
xor    %eax,%eax
call   1040 <obliquity@plt>
lea    0x18(%rsp),%rdi
lea    0x30(%rsp),%rsi
call   1050 <SinCos@plt>
movsd  0x38(%rsp),%xmm0
divsd  0x40(%rsp),%xmm0
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1060 <dEcLong@plt>
movsd  0x18(%rsp),%xmm1
mulsd  0x20(%rsp),%xmm1
movsd  %xmm0,0x8(%rsp)
mulsd  (%rsp),%xmm1
addsd  0x30(%rsp),%xmm1
movsd  %xmm1,0x10(%rsp)
xor    %eax,%eax
call   1030 <dObliq@plt>
mulsd  0x28(%rsp),%xmm0
mulsd  (%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
mulsd  0x8(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
xor    %eax,%eax
call   1060 <dEcLong@plt>
movsd  %xmm0,(%rsp)
movsd  0x18(%rsp),%xmm0
mulsd  0x28(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1030 <dObliq@plt>
mulsd  0x20(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
mulsd  (%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  0x10(%rsp),%xmm0
addsd  (%rbx),%xmm0
movsd  %xmm0,(%rbx)
addsd  (%r14),%xmm1
movsd  %xmm1,(%r14)
add    $0x48,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @nutate(double* %0, double* %1) {
%3 = alloca double*
%4 = alloca double*
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
store double* %0, double** %3
store double* %1, double** %4
%14 = load double*, double** %3
%15 = load double, double* %14
%16 = call i32 @SinCos(double %15, double* %6, double* %5)
%17 = load double*, double** %4
%18 = load double, double* %17
%19 = call i32 @SinCos(double %18, double* %8, double* %7)
%20 = call double (...) @obliquity()
%21 = call i32 @SinCos(double %20, double* %13, double* %12)
%22 = load double, double* %8
%23 = load double, double* %7
%24 = fdiv double %22, %23
store double %24, double* %9
%25 = call double (...) @dEcLong()
%26 = load double, double* %12
%27 = load double, double* %13
%28 = load double, double* %6
%29 = fmul double %27, %28
%30 = load double, double* %9
%31 = call double @llvm.fmuladd.f64(double %29, double %30, double %26)
%32 = call double (...) @dObliq()
%33 = load double, double* %5
%34 = fmul double %32, %33
%35 = load double, double* %9
%36 = fmul double %34, %35
%37 = fneg double %36
%38 = call double @llvm.fmuladd.f64(double %25, double %31, double %37)
store double %38, double* %10
%39 = call double (...) @dEcLong()
%40 = load double, double* %13
%41 = load double, double* %5
%42 = fmul double %40, %41
%43 = call double (...) @dObliq()
%44 = load double, double* %6
%45 = fmul double %43, %44
%46 = call double @llvm.fmuladd.f64(double %39, double %42, double %45)
store double %46, double* %11
%47 = load double*, double** %3
%48 = load double, double* %47
%49 = load double, double* %10
%50 = fadd double %48, %49
%51 = load double*, double** %3
store double %50, double* %51
%52 = load double*, double** %4
%53 = load double, double* %52
%54 = load double, double* %11
%55 = fadd double %53, %54
%56 = load double*, double** %4
store double %55, double* %56
ret void
}

LLVM IR (-O2):
define void @nutate(double* nocapture %0, double* nocapture %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = bitcast double* %3 to i8*
%10 = bitcast double* %4 to i8*
%11 = bitcast double* %5 to i8*
%12 = bitcast double* %6 to i8*
%13 = bitcast double* %7 to i8*
%14 = bitcast double* %8 to i8*
%15 = load double, double* %0
%16 = call i32 @SinCos(double %15, double* %4, double* %3)
%17 = load double, double* %1
%18 = call i32 @SinCos(double %17, double* %6, double* %5)
%19 = call double (...) @obliquity()
%20 = call i32 @SinCos(double %19, double* %8, double* %7)
%21 = load double, double* %6
%22 = load double, double* %5
%23 = fdiv double %21, %22
%24 = call double (...) @dEcLong()
%25 = load double, double* %7
%26 = load double, double* %8
%27 = load double, double* %4
%28 = fmul double %26, %27
%29 = call double @llvm.fmuladd.f64(double %28, double %23, double %25)
%30 = call double (...) @dObliq()
%31 = load double, double* %3
%32 = fneg double %30
%33 = fmul double %31, %32
%34 = fmul double %23, %33
%35 = call double @llvm.fmuladd.f64(double %24, double %29, double %34)
%36 = call double (...) @dEcLong()
%37 = load double, double* %8
%38 = load double, double* %3
%39 = fmul double %37, %38
%40 = call double (...) @dObliq()
%41 = load double, double* %4
%42 = fmul double %40, %41
%43 = call double @llvm.fmuladd.f64(double %36, double %39, double %42)
%44 = load double, double* %0
%45 = fadd double %35, %44
store double %45, double* %0
%46 = load double, double* %1
%47 = fadd double %43, %46
store double %47, double* %1
ret void
}