double eqeqnx(dj)
double dj;
{
  double dt, edj, dpsi, deps, obl, eqnx;
  double rad2tsec = 13750.98708;
  dt = utdt(dj);
  edj = dj + dt / 86400.0;
  compnut(edj, &dpsi, &deps, &obl);
  obl = obl + deps;
  eqnx = (dpsi * cos(obl)) * rad2tsec;
  return (eqnx);
}


x86 assembly (clang, -O0):
<eqeqnx>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  0xec3(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x1,%al
call   1050 <utdt@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  0xe8f(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
lea    -0x20(%rbp),%rdi
lea    -0x28(%rbp),%rsi
lea    -0x30(%rbp),%rdx
mov    $0x1,%al
call   1030 <compnut@plt>
movsd  -0x30(%rbp),%xmm0
addsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1040 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
mulsd  %xmm1,%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eqeqnx>:
sub    $0x28,%rsp
movsd  %xmm0,0x8(%rsp)
mov    $0x1,%al
call   1050 <utdt@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0xeb0(%rip),%xmm0
addsd  0x8(%rsp),%xmm0
lea    0x20(%rsp),%rdi
lea    0x18(%rsp),%rsi
lea    0x10(%rsp),%rdx
mov    $0x1,%al
call   1030 <compnut@plt>
movsd  0x10(%rsp),%xmm0
addsd  0x18(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
movsd  %xmm1,0x8(%rsp)
call   1040 <cos@plt>
mulsd  0x8(%rsp),%xmm0
mulsd  0xe71(%rip),%xmm0
add    $0x28,%rsp
ret

LLVM IR (-O0):
define double @eqeqnx(double %0) {
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
store double %0, double* %2
store double 0x40CADB7E58A32F45, double* %9
%10 = load double, double* %2
%11 = call i32 (double, ...) bitcast (i32 (...)* @utdt to i32 (double, ...)*)(double %10)
%12 = sitofp i32 %11 to double
store double %12, double* %3
%13 = load double, double* %2
%14 = load double, double* %3
%15 = fdiv double %14, 8.640000e+04
%16 = fadd double %13, %15
store double %16, double* %4
%17 = load double, double* %4
%18 = call i32 (double, double*, double*, double*, ...) bitcast (i32 (...)* @compnut to i32 (double, double*, double*, double*, ...)*)(double %17, double* %5, double* %6, double* %7)
%19 = load double, double* %7
%20 = load double, double* %6
%21 = fadd double %19, %20
store double %21, double* %7
%22 = load double, double* %5
%23 = load double, double* %7
%24 = call double @cos(double %23)
%25 = fmul double %22, %24
%26 = load double, double* %9
%27 = fmul double %25, %26
store double %27, double* %8
%28 = load double, double* %8
ret double %28
}

LLVM IR (-O2):
define double @eqeqnx(double %0) {
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = bitcast double* %2 to i8*
%6 = bitcast double* %3 to i8*
%7 = bitcast double* %4 to i8*
%8 = tail call i32 (double, ...) bitcast (i32 (...)* @utdt to i32 (double, ...)*)(double %0)
%9 = sitofp i32 %8 to double
%10 = fdiv double %9, 8.640000e+04
%11 = fadd double %10, %0
%12 = call i32 (double, double*, double*, double*, ...) bitcast (i32 (...)* @compnut to i32 (double, double*, double*, double*, ...)*)(double %11, double* %2, double* %3, double* %4)
%13 = load double, double* %4
%14 = load double, double* %3
%15 = fadd double %13, %14
%16 = load double, double* %2
%17 = call double @cos(double %15)
%18 = fmul double %16, %17
%19 = fmul double %18, 0x40CADB7E58A32F45
ret double %19
}