#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*/ orbitParams(double, double, double, double, double, double *,
                               double *, double *);
void updateOrbit(double dtime, double *nu, double *dec, double *r, double rau,
                 double obliq) {
  double nudot;
  orbitParams(rau, 0.0000, obliq, 0.0000, *nu, dec, r, &nudot);
  *nu += nudot * dtime;
}


x86 assembly (clang, -O0):
<updateOrbit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
movsd  %xmm1,-0x28(%rbp)
movsd  %xmm2,-0x30(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm2
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm4
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
xorps  %xmm3,%xmm3
lea    -0x38(%rbp),%rdx
movaps %xmm3,%xmm1
call   1030 <orbitParams@plt>
movsd  -0x38(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm2
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<updateOrbit>:
push   %rbx
sub    $0x10,%rsp
movaps %xmm1,%xmm5
mov    %rdi,%rbx
movsd  %xmm0,(%rsp)
movsd  (%rdi),%xmm4
lea    0x8(%rsp),%rax
xorps  %xmm1,%xmm1
xorps  %xmm3,%xmm3
movaps %xmm5,%xmm0
mov    %rsi,%rdi
mov    %rdx,%rsi
mov    %rax,%rdx
call   1030 <orbitParams@plt>
movsd  (%rsp),%xmm0
mulsd  0x8(%rsp),%xmm0
addsd  (%rbx),%xmm0
movsd  %xmm0,(%rbx)
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @updateOrbit(double %0, double* %1, double* %2, double* %3, double %4, double %5) {
%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* %7
store double* %1, double** %8
store double* %2, double** %9
store double* %3, double** %10
store double %4, double* %11
store double %5, double* %12
%14 = load double, double* %11
%15 = load double, double* %12
%16 = load double*, double** %8
%17 = load double, double* %16
%18 = load double*, double** %9
%19 = load double*, double** %10
%20 = call i32 @orbitParams(double %14, double 0.000000e+00, double %15, double 0.000000e+00, double %17, double* %18, double* %19, double* %13)
%21 = load double, double* %13
%22 = load double, double* %7
%23 = load double*, double** %8
%24 = load double, double* %23
%25 = call double @llvm.fmuladd.f64(double %21, double %22, double %24)
store double %25, double* %23
ret void
}

LLVM IR (-O2):
define void @updateOrbit(double %0, double* nocapture %1, double* %2, double* %3, double %4, double %5) {
%7 = alloca double
%8 = bitcast double* %7 to i8*
%9 = load double, double* %1
%10 = call i32 @orbitParams(double %4, double 0.000000e+00, double %5, double 0.000000e+00, double %9, double* %2, double* %3, double* %7)
%11 = load double, double* %7
%12 = load double, double* %1
%13 = call double @llvm.fmuladd.f64(double %11, double %0, double %12)
store double %13, double* %1
ret void
}