#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*/ PrecessToEOD(double, double *, double *);
int /*<<< orphan*/ PrecessToEpoch(double, double *, double *);
void Precession(double *ra, double *dec, int dirflag) {
  double tmpra, tmpdec;
  tmpra = *ra;
  tmpdec = *dec;
  if (dirflag > 0) {
    PrecessToEOD(2000.0, &tmpra, &tmpdec);
  } else if (dirflag < 0) {
    PrecessToEpoch(2000.0, &tmpra, &tmpdec);
  }
  *ra = tmpra;
  *dec = tmpdec;
}


x86 assembly (clang, -O0):
<Precession>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x28(%rbp)
cmpl   $0x0,-0x14(%rbp)
jle    1171 <Precession+0x51>
movsd  0xea1(%rip),%xmm0
lea    -0x20(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   1040 <PrecessToEOD@plt>
jmp    1195 <Precession+0x75>
cmpl   $0x0,-0x14(%rbp)
jge    1190 <Precession+0x70>
movsd  0xe7d(%rip),%xmm0
lea    -0x20(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   1030 <PrecessToEpoch@plt>
jmp    1195 <Precession+0x75>
movsd  -0x20(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x28(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Precession>:
push   %r14
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
movsd  (%rdi),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  (%rsi),%xmm0
movsd  %xmm0,0x8(%rsp)
test   %edx,%edx
jle    115e <Precession+0x3e>
movsd  0xeb3(%rip),%xmm0
lea    0x10(%rsp),%rdi
lea    0x8(%rsp),%rsi
call   1040 <PrecessToEOD@plt>
jmp    1177 <Precession+0x57>
jns    1177 <Precession+0x57>
movsd  0xe98(%rip),%xmm0
lea    0x10(%rsp),%rdi
lea    0x8(%rsp),%rsi
call   1030 <PrecessToEpoch@plt>
movsd  0x10(%rsp),%xmm0
movsd  %xmm0,(%rbx)
movsd  0x8(%rsp),%xmm0
movsd  %xmm0,(%r14)
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @Precession(double* %0, double* %1, i32 %2) {
%4 = alloca double*
%5 = alloca double*
%6 = alloca i32
%7 = alloca double
%8 = alloca double
store double* %0, double** %4
store double* %1, double** %5
store i32 %2, i32* %6
%9 = load double*, double** %4
%10 = load double, double* %9
store double %10, double* %7
%11 = load double*, double** %5
%12 = load double, double* %11
store double %12, double* %8
%13 = load i32, i32* %6
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %3
%16 = call i32 @PrecessToEOD(double 2.000000e+03, double* %7, double* %8)
br label %23
17: ; preds = %3
%18 = load i32, i32* %6
%19 = icmp slt i32 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 @PrecessToEpoch(double 2.000000e+03, double* %7, double* %8)
br label %22
22: ; preds = %20, %17
br label %23
23: ; preds = %22, %15
%24 = load double, double* %7
%25 = load double*, double** %4
store double %24, double* %25
%26 = load double, double* %8
%27 = load double*, double** %5
store double %26, double* %27
ret void
}

LLVM IR (-O2):
define void @Precession(double* nocapture %0, double* nocapture %1, i32 %2) {
%4 = alloca double
%5 = alloca double
%6 = bitcast double* %4 to i8*
%7 = bitcast double* %5 to i8*
%8 = load double, double* %0
store double %8, double* %4
%9 = load double, double* %1
store double %9, double* %5
%10 = icmp sgt i32 %2, 0
br i1 %10, label %11, label %13
11: ; preds = %3
%12 = call i32 @PrecessToEOD(double 2.000000e+03, double* %4, double* %5)
br label %17
13: ; preds = %3
%14 = icmp slt i32 %2, 0
br i1 %14, label %15, label %17
15: ; preds = %13
%16 = call i32 @PrecessToEpoch(double 2.000000e+03, double* %4, double* %5)
br label %17
17: ; preds = %13, %15, %11
%18 = load double, double* %4
store double %18, double* %0
%19 = load double, double* %5
store double %19, double* %1
ret void
}