#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 */
double atan(double);
double atan2(double, double);
double cos(double);
int fabs(double);
int /*<<< orphan*/ isfinite(double);
scalar_t__ isnan(double);
double reduce_angle(double, double);
double sin(double);
int /*<<< orphan*/ sincos(double, double *, double *);
double sqrt(double);
double tan(double);
double earth_gcdist(double lon1, double lat1, double lon2, double lat2,
                    double *inb, double *fib) {
  short iter;
  double a, b, f, u1, u2, L, lam0, lam1, cu1, su1, cu2, su2, cl, sl, x, y, sig;
  a = 6378136.6;
  b = (6378136.6 * (1.0 - (1.0 / 298.25642)));
  f = (1.0 / 298.25642);
  u1 = atan2((1.0 - f) * sin(lat1), cos(lat1));
  u2 = atan2((1.0 - f) * sin(lat2), cos(lat2));
  sincos(u1, &su1, &cu1);
  L = lon2 - lon1;
  lam0 = L;
  for (iter = 0; iter < 20; iter++) {
    sincos(u2, &su2, &cu2);
    sincos(lam0, &sl, &cl);
    x = cu1 * su2 - su1 * cu2 * cl;
    y = cu2 * sl;
    y = sqrt(x * x + y * y);
    x = su1 * su2 + cu1 * cu2 * cl;
    sig = atan2(y, x);
    sl = cu1 * cu2 * sl / y;
    cl = 1.0 - sl * sl;
    if (cl)
      cu2 = x - 2.0 * su1 * su2 / cl;
    else
      cu2 = 0;
    if (isnan(cu2) || !isfinite(cu2))
      cu2 = 0;
    lam1 = f * cl * (4.0 + f * (4.0 - 3.0 * cl)) / 16.0;
    lam1 =
        L + (1.0 - lam1) * f * sl *
                (sig + lam1 * y * (cu2 + lam1 * x * (2.0 * cu2 * cu2 - 1.0)));
    if (fabs(lam1 - lam0) <= 1E-12) {
      u2 = cl * ((a * a) / (b * b) - 1.0);
      cl = 1.0 +
           u2 * (u2 * (u2 * (320.0 - 175.0 * u2) - 768.0) + 4096.0) / 16384.0;
      sl = u2 * (256.0 + u2 * (u2 * (74.0 - 47.0 * u2) - 128.0)) / 1024.0;
      u1 = sl * y *
           (cu2 + 0.25 * sl *
                      (x * (2.0 * cu2 * cu2 - 1.0) -
                       sl * cu2 * (4.0 * y * y - 3.0) *
                           (4.0 * cu2 * cu2 - 3.0) / 6.0));
      sincos(atan((1.0 - f) * tan(lat1)), &su1, &cu1);
      sincos(atan((1.0 - f) * tan(lat2)), &su2, &cu2);
      sincos(lam1, &y, &x);
      *inb = reduce_angle(atan2(cu2 * y, cu1 * su2 - su1 * cu2 * x),
                          (2.0 * 3.141592653589793238462643));
      *fib = reduce_angle(atan2(cu1 * y, cu1 * su2 * x - su1 * cu2),
                          (2.0 * 3.141592653589793238462643));
      return (b * cl * (sig - u1));
    }
    lam0 = lam1;
  }
  *inb = *fib = -1;
  return (-1);
}


x86 assembly (clang, -O0):
<earth_gcdist>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  %xmm3,-0x28(%rbp)
mov    %rdi,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
movsd  0xe39(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xe24(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xe0f(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xdfa(%rip),%xmm0
subsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
call   1060 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0xe8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
call   10c0 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0xe0(%rbp),%xmm0
ff
call   1040 <atan2@plt>
movsd  %xmm0,-0x60(%rbp)
movsd  0xda5(%rip),%xmm0
subsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
call   1060 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0xd8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
call   10c0 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0xd0(%rbp),%xmm0
ff
call   1040 <atan2@plt>
movsd  %xmm0,-0x68(%rbp)
movsd  -0x60(%rbp),%xmm0
lea    -0x90(%rbp),%rdi
lea    -0x88(%rbp),%rsi
call   1030 <sincos@plt>
movsd  -0x20(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movw   $0x0,-0x3a(%rbp)
movswl -0x3a(%rbp),%eax
cmp    $0x14,%eax
jge    19e8 <earth_gcdist+0x838>
movsd  -0x68(%rbp),%xmm0
lea    -0xa0(%rbp),%rdi
lea    -0x98(%rbp),%rsi
call   1030 <sincos@plt>
movsd  -0x78(%rbp),%xmm0
lea    -0xb0(%rbp),%rdi
lea    -0xa8(%rbp),%rsi
call   1030 <sincos@plt>
movsd  -0x88(%rbp),%xmm0
ff
movsd  -0xa0(%rbp),%xmm2
ff
movsd  -0x90(%rbp),%xmm1
ff
mulsd  -0x98(%rbp),%xmm1
ff
mulsd  -0xa8(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
mulsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0xb8(%rbp),%xmm0
ff
movsd  -0xb8(%rbp),%xmm2
ff
movsd  -0xc0(%rbp),%xmm1
ff
mulsd  -0xc0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   10d0 <sqrt@plt>
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0xa0(%rbp),%xmm2
ff
movsd  -0x88(%rbp),%xmm1
ff
mulsd  -0x98(%rbp),%xmm1
ff
mulsd  -0xa8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0xc0(%rbp),%xmm0
ff
movsd  -0xb8(%rbp),%xmm1
ff
call   1040 <atan2@plt>
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
mulsd  -0x98(%rbp),%xmm0
ff
mulsd  -0xb0(%rbp),%xmm0
ff
divsd  -0xc0(%rbp),%xmm0
ff
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
movsd  -0xb0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xb98(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1494 <earth_gcdist+0x2e4>
jp     1494 <earth_gcdist+0x2e4>
jmp    14cd <earth_gcdist+0x31d>
movsd  -0xb8(%rbp),%xmm0
ff
movsd  0xb84(%rip),%xmm1
mulsd  -0x90(%rbp),%xmm1
ff
mulsd  -0xa0(%rbp),%xmm1
ff
divsd  -0xa8(%rbp),%xmm1
ff
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
jmp    14d8 <earth_gcdist+0x328>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
call   10b0 <isnan@plt>
cmp    $0x0,%rax
jne    1505 <earth_gcdist+0x355>
movsd  -0x98(%rbp),%xmm0
ff
call   1090 <isfinite@plt>
cmp    $0x0,%eax
jne    1510 <earth_gcdist+0x360>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
mulsd  -0xa8(%rbp),%xmm0
ff
movsd  -0x58(%rbp),%xmm1
movsd  -0xa8(%rbp),%xmm2
ff
movsd  0xb16(%rip),%xmm3
mulsd  %xmm3,%xmm2
movsd  0xb02(%rip),%xmm3
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm1
movsd  0xaf2(%rip),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xada(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x70(%rbp),%xmm1
movsd  0xa8c(%rip),%xmm0
subsd  -0x80(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
mulsd  -0xb0(%rbp),%xmm0
ff
movsd  -0xc8(%rbp),%xmm3
ff
movsd  -0x80(%rbp),%xmm2
mulsd  -0xc0(%rbp),%xmm2
ff
movsd  -0x98(%rbp),%xmm5
ff
movsd  -0x80(%rbp),%xmm4
mulsd  -0xb8(%rbp),%xmm4
ff
movsd  0xa70(%rip),%xmm6
mulsd  -0x98(%rbp),%xmm6
ff
movsd  -0x98(%rbp),%xmm7
ff
mulsd  %xmm7,%xmm6
movsd  0xa4c(%rip),%xmm7
addsd  %xmm7,%xmm6
mulsd  %xmm6,%xmm4
addsd  %xmm5,%xmm4
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x80(%rbp),%xmm0
subsd  -0x78(%rbp),%xmm0
call   1050 <fabs@plt>
cvtsi2sd %eax,%xmm1
movsd  0xa20(%rip),%xmm0
ucomisd %xmm1,%xmm0
jb     19cd <earth_gcdist+0x81d>
movsd  -0xa8(%rbp),%xmm0
ff
movsd  -0x48(%rbp),%xmm1
mulsd  -0x48(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
mulsd  -0x50(%rbp),%xmm2
divsd  %xmm2,%xmm1
movsd  0x9be(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm1
movsd  -0x68(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm3
movsd  0xa3d(%rip),%xmm4
mulsd  %xmm4,%xmm3
movsd  0xa39(%rip),%xmm4
addsd  %xmm4,%xmm3
mulsd  %xmm3,%xmm2
movsd  0xa19(%rip),%xmm3
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
movsd  0xa01(%rip),%xmm2
addsd  %xmm2,%xmm0
mulsd  %xmm0,%xmm1
movsd  0x9e9(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0x94d(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm1
movsd  -0x68(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm3
movsd  0x9a5(%rip),%xmm4
mulsd  %xmm4,%xmm3
movsd  0x9a1(%rip),%xmm4
addsd  %xmm4,%xmm3
mulsd  %xmm3,%xmm2
movsd  0x981(%rip),%xmm3
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm1
movsd  0x969(%rip),%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0x951(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
mulsd  -0xc0(%rbp),%xmm0
ff
movsd  -0x98(%rbp),%xmm2
ff
movsd  0x91d(%rip),%xmm1
mulsd  -0xb0(%rbp),%xmm1
ff
movsd  -0xb8(%rbp),%xmm3
ff
movsd  0x8cd(%rip),%xmm5
mulsd  -0x98(%rbp),%xmm5
ff
movsd  -0x98(%rbp),%xmm4
ff
mulsd  %xmm4,%xmm5
movsd  0x8a9(%rip),%xmm4
addsd  %xmm4,%xmm5
movsd  -0xb0(%rbp),%xmm4
ff
mulsd  -0x98(%rbp),%xmm4
ff
movsd  0x8ad(%rip),%xmm6
mulsd  -0xc0(%rbp),%xmm6
ff
movsd  -0xc0(%rbp),%xmm7
ff
mulsd  %xmm7,%xmm6
movsd  0x899(%rip),%xmm7
addsd  %xmm7,%xmm6
mulsd  %xmm6,%xmm4
movsd  0x881(%rip),%xmm6
mulsd  -0x98(%rbp),%xmm6
ff
movsd  -0x98(%rbp),%xmm7
ff
mulsd  %xmm7,%xmm6
movsd  0x86d(%rip),%xmm7
addsd  %xmm7,%xmm6
mulsd  %xmm6,%xmm4
movsd  0x86d(%rip),%xmm6
divsd  %xmm6,%xmm4
movq   %xmm4,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm4
mulsd  %xmm5,%xmm3
addsd  %xmm4,%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0x7d9(%rip),%xmm0
subsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
call   10a0 <tan@plt>
movaps %xmm0,%xmm1
movsd  -0xf8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
call   1080 <atan@plt>
lea    -0x90(%rbp),%rdi
lea    -0x88(%rbp),%rsi
call   1030 <sincos@plt>
movsd  0x793(%rip),%xmm0
subsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
call   10a0 <tan@plt>
movaps %xmm0,%xmm1
movsd  -0xf0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
call   1080 <atan@plt>
lea    -0xa0(%rbp),%rdi
lea    -0x98(%rbp),%rsi
call   1030 <sincos@plt>
movsd  -0x80(%rbp),%xmm0
lea    -0xc0(%rbp),%rdi
lea    -0xb8(%rbp),%rsi
call   1030 <sincos@plt>
movsd  -0x98(%rbp),%xmm0
ff
mulsd  -0xc0(%rbp),%xmm0
ff
movsd  -0x88(%rbp),%xmm1
ff
movsd  -0xa0(%rbp),%xmm3
ff
movsd  -0x90(%rbp),%xmm2
ff
mulsd  -0x98(%rbp),%xmm2
ff
mulsd  -0xb8(%rbp),%xmm2
ff
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
call   1040 <atan2@plt>
movsd  0x729(%rip),%xmm1
call   1070 <reduce_angle@plt>
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x88(%rbp),%xmm0
ff
mulsd  -0xc0(%rbp),%xmm0
ff
movsd  -0x88(%rbp),%xmm1
ff
mulsd  -0xa0(%rbp),%xmm1
ff
movsd  -0xb8(%rbp),%xmm3
ff
movsd  -0x90(%rbp),%xmm2
ff
mulsd  -0x98(%rbp),%xmm2
ff
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
call   1040 <atan2@plt>
movsd  0x6b8(%rip),%xmm1
call   1070 <reduce_angle@plt>
mov    -0x38(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x50(%rbp),%xmm0
mulsd  -0xa8(%rbp),%xmm0
ff
movsd  -0xc8(%rbp),%xmm1
ff
subsd  -0x60(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1a15 <earth_gcdist+0x865>
movsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x3a(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x3a(%rbp)
jmp    12df <earth_gcdist+0x12f>
mov    -0x38(%rbp),%rax
movsd  0x62c(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x30(%rbp),%rax
movsd  0x61c(%rip),%xmm0
movsd  %xmm0,(%rax)
movsd  0x610(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<earth_gcdist>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    %rsi,0x78(%rsp)
mov    %rdi,%r15
movsd  %xmm3,0x60(%rsp)
movsd  %xmm2,0x70(%rsp)
movsd  %xmm1,0x80(%rsp)
movsd  %xmm0,0x40(%rsp)
movapd %xmm1,%xmm0
call   1060 <sin@plt>
mulsd  0xe0b(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x80(%rsp),%xmm0
call   10c0 <cos@plt>
movaps %xmm0,%xmm1
movsd  0x10(%rsp),%xmm0
call   1040 <atan2@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x60(%rsp),%xmm0
call   1060 <sin@plt>
mulsd  0xdd0(%rip),%xmm0
movsd  %xmm0,0x38(%rsp)
movsd  0x60(%rsp),%xmm0
call   10c0 <cos@plt>
movaps %xmm0,%xmm1
movsd  0x38(%rsp),%xmm0
call   1040 <atan2@plt>
movsd  %xmm0,0x90(%rsp)
lea    0x28(%rsp),%rdi
lea    0x30(%rsp),%rsi
movsd  0x10(%rsp),%xmm0
call   1030 <sincos@plt>
movsd  0x70(%rsp),%xmm1
subsd  0x40(%rsp),%xmm1
mov    $0x14,%r14w
lea    0x20(%rsp),%r12
lea    0x8(%rsp),%r13
lea    0x50(%rsp),%rbx
lea    0x18(%rsp),%rbp
movsd  %xmm1,0x70(%rsp)
movapd %xmm1,%xmm0
nopl   0x0(%rax)
movsd  %xmm0,0x40(%rsp)
movsd  0x90(%rsp),%xmm0
mov    %r12,%rdi
mov    %r13,%rsi
call   1030 <sincos@plt>
movsd  0x40(%rsp),%xmm0
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1030 <sincos@plt>
movsd  0x30(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x28(%rsp),%xmm2
mulsd  %xmm1,%xmm2
mulsd  0x18(%rsp),%xmm2
mulsd  0x20(%rsp),%xmm0
subsd  %xmm2,%xmm0
mulsd  0x50(%rsp),%xmm1
mulsd  %xmm1,%xmm1
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
ucomisd 0xda5(%rip),%xmm0
jb     1320 <earth_gcdist+0x170>
sqrtsd %xmm0,%xmm0
jmp    1325 <earth_gcdist+0x175>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
call   10d0 <sqrt@plt>
movsd  %xmm0,0x58(%rsp)
movsd  0x28(%rsp),%xmm1
movsd  0x30(%rsp),%xmm2
mulsd  0x8(%rsp),%xmm2
mulsd  0x18(%rsp),%xmm2
mulsd  0x20(%rsp),%xmm1
addsd  %xmm2,%xmm1
movsd  %xmm1,0x48(%rsp)
call   1040 <atan2@plt>
movsd  0x30(%rsp),%xmm2
mulsd  0x8(%rsp),%xmm2
movsd  %xmm0,0x10(%rsp)
mulsd  0x50(%rsp),%xmm2
movsd  0x58(%rsp),%xmm0
movsd  %xmm0,0x38(%rsp)
divsd  %xmm0,%xmm2
movsd  %xmm2,0x50(%rsp)
mulsd  %xmm2,%xmm2
movsd  0xc76(%rip),%xmm1
subsd  %xmm2,%xmm1
movsd  %xmm1,0x18(%rsp)
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
jne    13a8 <earth_gcdist+0x1f8>
jnp    13c6 <earth_gcdist+0x216>
movsd  0x48(%rsp),%xmm0
movsd  0x28(%rsp),%xmm2
addsd  %xmm2,%xmm2
mulsd  0x20(%rsp),%xmm2
divsd  %xmm1,%xmm2
subsd  %xmm2,%xmm0
movsd  %xmm0,0x8(%rsp)
call   10b0 <isnan@plt>
test   %rax,%rax
je     13f0 <earth_gcdist+0x240>
movq   $0x0,0x8(%rsp)
xorpd  %xmm0,%xmm0
jmp    1405 <earth_gcdist+0x255>
cs nopw 0x0(%rax,%rax,1)
nop
movsd  0x8(%rsp),%xmm0
call   1090 <isfinite@plt>
test   %eax,%eax
je     13d6 <earth_gcdist+0x226>
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm4
movsd  0xc1d(%rip),%xmm6
movsd  0x40(%rsp),%xmm8
movsd  0x38(%rsp),%xmm7
movsd  0x18(%rsp),%xmm1
movapd %xmm1,%xmm2
movsd  0xbde(%rip),%xmm5
mulsd  %xmm5,%xmm2
mulsd  0xbda(%rip),%xmm1
movsd  0xbda(%rip),%xmm3
addsd  %xmm3,%xmm1
mulsd  %xmm5,%xmm1
addsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm1
mulsd  0xbca(%rip),%xmm1
movsd  0xba2(%rip),%xmm2
subsd  %xmm1,%xmm2
mulsd  %xmm5,%xmm2
mulsd  0x50(%rsp),%xmm2
movapd %xmm7,%xmm3
mulsd  %xmm1,%xmm3
movsd  0x48(%rsp),%xmm5
movsd  %xmm5,0x68(%rsp)
mulsd  %xmm5,%xmm1
movapd %xmm0,%xmm5
addsd  %xmm0,%xmm5
mulsd  %xmm0,%xmm5
addsd  %xmm6,%xmm5
mulsd  %xmm1,%xmm5
addsd  %xmm0,%xmm5
mulsd  %xmm3,%xmm5
addsd  %xmm4,%xmm5
mulsd  %xmm2,%xmm5
addsd  0x70(%rsp),%xmm5
movsd  %xmm5,0x88(%rsp)
movapd %xmm5,%xmm0
subsd  %xmm8,%xmm0
call   1050 <fabs@plt>
test   %eax,%eax
jle    1507 <earth_gcdist+0x357>
movsd  0x88(%rsp),%xmm0
add    $0xffff,%r14w
jne    12a0 <earth_gcdist+0xf0>
movabs $0xbff0000000000000,%rax
mov    0x78(%rsp),%rcx
mov    %rax,(%rcx)
mov    %rax,(%r15)
movsd  0xb2e(%rip),%xmm0
jmp    1746 <earth_gcdist+0x596>
movsd  0x18(%rsp),%xmm0
mulsd  0xb23(%rip),%xmm0
movsd  0xb23(%rip),%xmm2
mulsd  %xmm0,%xmm2
addsd  0xb1f(%rip),%xmm2
mulsd  %xmm0,%xmm2
addsd  0xb1b(%rip),%xmm2
mulsd  %xmm0,%xmm2
addsd  0xb17(%rip),%xmm2
mulsd  %xmm0,%xmm2
mulsd  0xb13(%rip),%xmm2
addsd  0xab3(%rip),%xmm2
movsd  0xb0b(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  0xb07(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  0xb03(%rip),%xmm1
movsd  %xmm2,0x18(%rsp)
mulsd  %xmm0,%xmm1
addsd  0xaf9(%rip),%xmm1
mulsd  %xmm0,%xmm1
mulsd  0xaf5(%rip),%xmm1
movsd  %xmm1,0x50(%rsp)
movsd  0x38(%rsp),%xmm7
movapd %xmm7,%xmm0
mulsd  %xmm1,%xmm0
movsd  0x8(%rsp),%xmm2
movsd  0xadb(%rip),%xmm3
mulsd  %xmm1,%xmm3
movapd %xmm2,%xmm4
addsd  %xmm2,%xmm4
mulsd  %xmm2,%xmm4
addsd  0xa63(%rip),%xmm4
mulsd  %xmm2,%xmm1
movapd %xmm7,%xmm5
movsd  0xa43(%rip),%xmm6
mulsd  %xmm6,%xmm5
mulsd  %xmm7,%xmm5
movsd  0xa2b(%rip),%xmm7
addsd  %xmm7,%xmm5
mulsd  %xmm1,%xmm5
mulsd  %xmm2,%xmm6
mulsd  %xmm2,%xmm6
addsd  %xmm7,%xmm6
mulsd  %xmm5,%xmm6
divsd  0xa8b(%rip),%xmm6
movsd  0x68(%rsp),%xmm1
mulsd  %xmm4,%xmm1
addsd  %xmm6,%xmm1
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x68(%rsp)
movsd  0x80(%rsp),%xmm0
call   10a0 <tan@plt>
movsd  0x9bd(%rip),%xmm1
mulsd  %xmm1,%xmm0
call   1080 <atan@plt>
lea    0x28(%rsp),%rdi
lea    0x30(%rsp),%rsi
call   1030 <sincos@plt>
movsd  0x60(%rsp),%xmm0
call   10a0 <tan@plt>
mulsd  0x992(%rip),%xmm0
call   1080 <atan@plt>
lea    0x20(%rsp),%rdi
lea    0x8(%rsp),%rsi
call   1030 <sincos@plt>
lea    0x58(%rsp),%rdi
lea    0x48(%rsp),%rsi
movsd  0x88(%rsp),%xmm0
call   1030 <sincos@plt>
movsd  0x8(%rsp),%xmm2
movsd  0x58(%rsp),%xmm0
mulsd  %xmm2,%xmm0
mulsd  0x28(%rsp),%xmm2
mulsd  0x48(%rsp),%xmm2
movsd  0x30(%rsp),%xmm1
mulsd  0x20(%rsp),%xmm1
subsd  %xmm2,%xmm1
call   1040 <atan2@plt>
movsd  0x9cd(%rip),%xmm1
call   1070 <reduce_angle@plt>
movsd  %xmm0,(%r15)
movsd  0x30(%rsp),%xmm1
movsd  0x58(%rsp),%xmm0
mulsd  %xmm1,%xmm0
mulsd  0x20(%rsp),%xmm1
movsd  0x8(%rsp),%xmm2
mulsd  0x28(%rsp),%xmm2
mulsd  0x48(%rsp),%xmm1
subsd  %xmm2,%xmm1
call   1040 <atan2@plt>
movsd  0x98a(%rip),%xmm1
call   1070 <reduce_angle@plt>
mov    0x78(%rsp),%rax
movsd  %xmm0,(%rax)
movsd  0x18(%rsp),%xmm0
mulsd  0x976(%rip),%xmm0
movsd  0x10(%rsp),%xmm1
subsd  0x68(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define double @earth_gcdist(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*
%14 = alloca i16
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca double
%30 = alloca double
%31 = alloca double
store double %0, double* %8
store double %1, double* %9
store double %2, double* %10
store double %3, double* %11
store double* %4, double** %12
store double* %5, double** %13
store double 0x415854A626666666, double* %15
store double 0x41583FC3F6E901E9, double* %16
store double 0x3F6B775F5E758B82, double* %17
%32 = load double, double* %17
%33 = fsub double 1.000000e+00, %32
%34 = load double, double* %9
%35 = call double @sin(double %34)
%36 = fmul double %33, %35
%37 = load double, double* %9
%38 = call double @cos(double %37)
%39 = call double @atan2(double %36, double %38)
store double %39, double* %18
%40 = load double, double* %17
%41 = fsub double 1.000000e+00, %40
%42 = load double, double* %11
%43 = call double @sin(double %42)
%44 = fmul double %41, %43
%45 = load double, double* %11
%46 = call double @cos(double %45)
%47 = call double @atan2(double %44, double %46)
store double %47, double* %19
%48 = load double, double* %18
%49 = call i32 @sincos(double %48, double* %24, double* %23)
%50 = load double, double* %10
%51 = load double, double* %8
%52 = fsub double %50, %51
store double %52, double* %20
%53 = load double, double* %20
store double %53, double* %21
store i16 0, i16* %14
br label %54
54: ; preds = %277, %6
%55 = load i16, i16* %14
%56 = sext i16 %55 to i32
%57 = icmp slt i32 %56, 20
br i1 %57, label %58, label %280
58: ; preds = %54
%59 = load double, double* %19
%60 = call i32 @sincos(double %59, double* %26, double* %25)
%61 = load double, double* %21
%62 = call i32 @sincos(double %61, double* %28, double* %27)
%63 = load double, double* %23
%64 = load double, double* %26
%65 = load double, double* %24
%66 = load double, double* %25
%67 = fmul double %65, %66
%68 = load double, double* %27
%69 = fmul double %67, %68
%70 = fneg double %69
%71 = call double @llvm.fmuladd.f64(double %63, double %64, double %70)
store double %71, double* %29
%72 = load double, double* %25
%73 = load double, double* %28
%74 = fmul double %72, %73
store double %74, double* %30
%75 = load double, double* %29
%76 = load double, double* %29
%77 = load double, double* %30
%78 = load double, double* %30
%79 = fmul double %77, %78
%80 = call double @llvm.fmuladd.f64(double %75, double %76, double %79)
%81 = call double @sqrt(double %80)
store double %81, double* %30
%82 = load double, double* %24
%83 = load double, double* %26
%84 = load double, double* %23
%85 = load double, double* %25
%86 = fmul double %84, %85
%87 = load double, double* %27
%88 = fmul double %86, %87
%89 = call double @llvm.fmuladd.f64(double %82, double %83, double %88)
store double %89, double* %29
%90 = load double, double* %30
%91 = load double, double* %29
%92 = call double @atan2(double %90, double %91)
store double %92, double* %31
%93 = load double, double* %23
%94 = load double, double* %25
%95 = fmul double %93, %94
%96 = load double, double* %28
%97 = fmul double %95, %96
%98 = load double, double* %30
%99 = fdiv double %97, %98
store double %99, double* %28
%100 = load double, double* %28
%101 = load double, double* %28
%102 = fneg double %100
%103 = call double @llvm.fmuladd.f64(double %102, double %101, double 1.000000e+00)
store double %103, double* %27
%104 = load double, double* %27
%105 = fcmp une double %104, 0.000000e+00
br i1 %105, label %106, label %115
106: ; preds = %58
%107 = load double, double* %29
%108 = load double, double* %24
%109 = fmul double 2.000000e+00, %108
%110 = load double, double* %26
%111 = fmul double %109, %110
%112 = load double, double* %27
%113 = fdiv double %111, %112
%114 = fsub double %107, %113
store double %114, double* %25
br label %116
115: ; preds = %58
store double 0.000000e+00, double* %25
br label %116
116: ; preds = %115, %106
%117 = load double, double* %25
%118 = call i64 @isnan(double %117)
%119 = icmp ne i64 %118, 0
br i1 %119, label %124, label %120
120: ; preds = %116
%121 = load double, double* %25
%122 = call i32 @isfinite(double %121)
%123 = icmp ne i32 %122, 0
br i1 %123, label %125, label %124
124: ; preds = %120, %116
store double 0.000000e+00, double* %25
br label %125
125: ; preds = %124, %120
%126 = load double, double* %17
%127 = load double, double* %27
%128 = fmul double %126, %127
%129 = load double, double* %17
%130 = load double, double* %27
%131 = call double @llvm.fmuladd.f64(double -3.000000e+00, double %130, double 4.000000e+00)
%132 = call double @llvm.fmuladd.f64(double %129, double %131, double 4.000000e+00)
%133 = fmul double %128, %132
%134 = fdiv double %133, 1.600000e+01
store double %134, double* %22
%135 = load double, double* %20
%136 = load double, double* %22
%137 = fsub double 1.000000e+00, %136
%138 = load double, double* %17
%139 = fmul double %137, %138
%140 = load double, double* %28
%141 = fmul double %139, %140
%142 = load double, double* %31
%143 = load double, double* %22
%144 = load double, double* %30
%145 = fmul double %143, %144
%146 = load double, double* %25
%147 = load double, double* %22
%148 = load double, double* %29
%149 = fmul double %147, %148
%150 = load double, double* %25
%151 = fmul double 2.000000e+00, %150
%152 = load double, double* %25
%153 = call double @llvm.fmuladd.f64(double %151, double %152, double -1.000000e+00)
%154 = call double @llvm.fmuladd.f64(double %149, double %153, double %146)
%155 = call double @llvm.fmuladd.f64(double %145, double %154, double %142)
%156 = call double @llvm.fmuladd.f64(double %141, double %155, double %135)
store double %156, double* %22
%157 = load double, double* %22
%158 = load double, double* %21
%159 = fsub double %157, %158
%160 = call i32 @fabs(double %159)
%161 = sitofp i32 %160 to double
%162 = fcmp ole double %161, 0x3D719799812DEA11
br i1 %162, label %163, label %275
163: ; preds = %125
%164 = load double, double* %27
%165 = load double, double* %15
%166 = load double, double* %15
%167 = fmul double %165, %166
%168 = load double, double* %16
%169 = load double, double* %16
%170 = fmul double %168, %169
%171 = fdiv double %167, %170
%172 = fsub double %171, 1.000000e+00
%173 = fmul double %164, %172
store double %173, double* %19
%174 = load double, double* %19
%175 = load double, double* %19
%176 = load double, double* %19
%177 = load double, double* %19
%178 = call double @llvm.fmuladd.f64(double -1.750000e+02, double %177, double 3.200000e+02)
%179 = call double @llvm.fmuladd.f64(double %176, double %178, double -7.680000e+02)
%180 = call double @llvm.fmuladd.f64(double %175, double %179, double 4.096000e+03)
%181 = fmul double %174, %180
%182 = fdiv double %181, 1.638400e+04
%183 = fadd double 1.000000e+00, %182
store double %183, double* %27
%184 = load double, double* %19
%185 = load double, double* %19
%186 = load double, double* %19
%187 = load double, double* %19
%188 = call double @llvm.fmuladd.f64(double -4.700000e+01, double %187, double 7.400000e+01)
%189 = call double @llvm.fmuladd.f64(double %186, double %188, double -1.280000e+02)
%190 = call double @llvm.fmuladd.f64(double %185, double %189, double 2.560000e+02)
%191 = fmul double %184, %190
%192 = fdiv double %191, 1.024000e+03
store double %192, double* %28
%193 = load double, double* %28
%194 = load double, double* %30
%195 = fmul double %193, %194
%196 = load double, double* %25
%197 = load double, double* %28
%198 = fmul double 2.500000e-01, %197
%199 = load double, double* %29
%200 = load double, double* %25
%201 = fmul double 2.000000e+00, %200
%202 = load double, double* %25
%203 = call double @llvm.fmuladd.f64(double %201, double %202, double -1.000000e+00)
%204 = load double, double* %28
%205 = load double, double* %25
%206 = fmul double %204, %205
%207 = load double, double* %30
%208 = fmul double 4.000000e+00, %207
%209 = load double, double* %30
%210 = call double @llvm.fmuladd.f64(double %208, double %209, double -3.000000e+00)
%211 = fmul double %206, %210
%212 = load double, double* %25
%213 = fmul double 4.000000e+00, %212
%214 = load double, double* %25
%215 = call double @llvm.fmuladd.f64(double %213, double %214, double -3.000000e+00)
%216 = fmul double %211, %215
%217 = fdiv double %216, 6.000000e+00
%218 = fneg double %217
%219 = call double @llvm.fmuladd.f64(double %199, double %203, double %218)
%220 = call double @llvm.fmuladd.f64(double %198, double %219, double %196)
%221 = fmul double %195, %220
store double %221, double* %18
%222 = load double, double* %17
%223 = fsub double 1.000000e+00, %222
%224 = load double, double* %9
%225 = call double @tan(double %224)
%226 = fmul double %223, %225
%227 = call double @atan(double %226)
%228 = call i32 @sincos(double %227, double* %24, double* %23)
%229 = load double, double* %17
%230 = fsub double 1.000000e+00, %229
%231 = load double, double* %11
%232 = call double @tan(double %231)
%233 = fmul double %230, %232
%234 = call double @atan(double %233)
%235 = call i32 @sincos(double %234, double* %26, double* %25)
%236 = load double, double* %22
%237 = call i32 @sincos(double %236, double* %30, double* %29)
%238 = load double, double* %25
%239 = load double, double* %30
%240 = fmul double %238, %239
%241 = load double, double* %23
%242 = load double, double* %26
%243 = load double, double* %24
%244 = load double, double* %25
%245 = fmul double %243, %244
%246 = load double, double* %29
%247 = fmul double %245, %246
%248 = fneg double %247
%249 = call double @llvm.fmuladd.f64(double %241, double %242, double %248)
%250 = call double @atan2(double %240, double %249)
%251 = call double @reduce_angle(double %250, double 0x401921FB54442D18)
%252 = load double*, double** %12
store double %251, double* %252
%253 = load double, double* %23
%254 = load double, double* %30
%255 = fmul double %253, %254
%256 = load double, double* %23
%257 = load double, double* %26
%258 = fmul double %256, %257
%259 = load double, double* %29
%260 = load double, double* %24
%261 = load double, double* %25
%262 = fmul double %260, %261
%263 = fneg double %262
%264 = call double @llvm.fmuladd.f64(double %258, double %259, double %263)
%265 = call double @atan2(double %255, double %264)
%266 = call double @reduce_angle(double %265, double 0x401921FB54442D18)
%267 = load double*, double** %13
store double %266, double* %267
%268 = load double, double* %16
%269 = load double, double* %27
%270 = fmul double %268, %269
%271 = load double, double* %31
%272 = load double, double* %18
%273 = fsub double %271, %272
%274 = fmul double %270, %273
store double %274, double* %7
br label %283
275: ; preds = %125
%276 = load double, double* %22
store double %276, double* %21
br label %277
277: ; preds = %275
%278 = load i16, i16* %14
%279 = add i16 %278, 1
store i16 %279, i16* %14
br label %54
280: ; preds = %54
%281 = load double*, double** %13
store double -1.000000e+00, double* %281
%282 = load double*, double** %12
store double -1.000000e+00, double* %282
store double -1.000000e+00, double* %7
br label %283
283: ; preds = %280, %163
%284 = load double, double* %7
ret double %284
}

LLVM IR (-O2):
define double @earth_gcdist(double %0, double %1, double %2, double %3, double* nocapture writeonly %4, double* nocapture writeonly %5) {
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = bitcast double* %7 to i8*
%16 = bitcast double* %8 to i8*
%17 = bitcast double* %9 to i8*
%18 = bitcast double* %10 to i8*
%19 = bitcast double* %11 to i8*
%20 = bitcast double* %12 to i8*
%21 = bitcast double* %13 to i8*
%22 = bitcast double* %14 to i8*
%23 = tail call double @sin(double %1)
%24 = fmul double %23, 0x3FEFE488A0A18A74
%25 = tail call double @cos(double %1)
%26 = tail call double @atan2(double %24, double %25)
%27 = tail call double @sin(double %3)
%28 = fmul double %27, 0x3FEFE488A0A18A74
%29 = tail call double @cos(double %3)
%30 = tail call double @atan2(double %28, double %29)
%31 = call i32 @sincos(double %26, double* %8, double* %7)
%32 = fsub double %2, %0
br label %36
33: ; preds = %93
%34 = add nuw nsw i16 %38, 1
%35 = icmp eq i16 %34, 20
br i1 %35, label %185, label %36
36: ; preds = %6, %33
%37 = phi double [ %32, %6 ], [ %112, %33 ]
%38 = phi i16 [ 0, %6 ], [ %34, %33 ]
%39 = call i32 @sincos(double %30, double* %10, double* %9)
%40 = call i32 @sincos(double %37, double* %12, double* %11)
%41 = load double, double* %7
%42 = load double, double* %10
%43 = load double, double* %8
%44 = load double, double* %9
%45 = load double, double* %11
%46 = fneg double %43
%47 = fmul double %44, %46
%48 = fmul double %47, %45
%49 = call double @llvm.fmuladd.f64(double %41, double %42, double %48)
%50 = load double, double* %12
%51 = fmul double %44, %50
%52 = fmul double %51, %51
%53 = call double @llvm.fmuladd.f64(double %49, double %49, double %52)
%54 = call double @sqrt(double %53)
store double %54, double* %14
%55 = load double, double* %8
%56 = load double, double* %10
%57 = load double, double* %7
%58 = load double, double* %9
%59 = fmul double %57, %58
%60 = load double, double* %11
%61 = fmul double %59, %60
%62 = call double @llvm.fmuladd.f64(double %55, double %56, double %61)
store double %62, double* %13
%63 = call double @atan2(double %54, double %62)
%64 = load double, double* %7
%65 = load double, double* %9
%66 = fmul double %64, %65
%67 = load double, double* %12
%68 = fmul double %66, %67
%69 = load double, double* %14
%70 = fdiv double %68, %69
store double %70, double* %12
%71 = fneg double %70
%72 = call double @llvm.fmuladd.f64(double %71, double %70, double 1.000000e+00)
store double %72, double* %11
%73 = fcmp une double %72, 0.000000e+00
br i1 %73, label %74, label %82
74: ; preds = %36
%75 = load double, double* %13
%76 = load double, double* %8
%77 = fmul double %76, 2.000000e+00
%78 = load double, double* %10
%79 = fmul double %77, %78
%80 = fdiv double %79, %72
%81 = fsub double %75, %80
br label %82
82: ; preds = %36, %74
%83 = phi double [ %81, %74 ], [ 0.000000e+00, %36 ]
store double %83, double* %9
%84 = call i64 @isnan(double %83)
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %92
86: ; preds = %82
%87 = load double, double* %9
%88 = call i32 @isfinite(double %87)
%89 = icmp eq i32 %88, 0
br i1 %89, label %92, label %90
90: ; preds = %86
%91 = load double, double* %9
br label %93
92: ; preds = %86, %82
store double 0.000000e+00, double* %9
br label %93
93: ; preds = %90, %92
%94 = phi double [ %91, %90 ], [ 0.000000e+00, %92 ]
%95 = load double, double* %11
%96 = fmul double %95, 0x3F6B775F5E758B82
%97 = call double @llvm.fmuladd.f64(double %95, double -3.000000e+00, double 4.000000e+00)
%98 = call double @llvm.fmuladd.f64(double %97, double 0x3F6B775F5E758B82, double 4.000000e+00)
%99 = fmul double %96, %98
%100 = fmul double %99, 6.250000e-02
%101 = fsub double 1.000000e+00, %100
%102 = fmul double %101, 0x3F6B775F5E758B82
%103 = load double, double* %12
%104 = fmul double %103, %102
%105 = fmul double %69, %100
%106 = load double, double* %13
%107 = fmul double %100, %106
%108 = fmul double %94, 2.000000e+00
%109 = call double @llvm.fmuladd.f64(double %108, double %94, double -1.000000e+00)
%110 = call double @llvm.fmuladd.f64(double %107, double %109, double %94)
%111 = call double @llvm.fmuladd.f64(double %105, double %110, double %63)
%112 = call double @llvm.fmuladd.f64(double %104, double %111, double %32)
%113 = fsub double %112, %37
%114 = call i32 @fabs(double %113)
%115 = icmp slt i32 %114, 1
br i1 %115, label %116, label %33
116: ; preds = %93
%117 = load double, double* %11
%118 = fmul double %117, 0x3F7B9AE4C7ABEB00
%119 = call double @llvm.fmuladd.f64(double %118, double -1.750000e+02, double 3.200000e+02)
%120 = call double @llvm.fmuladd.f64(double %118, double %119, double -7.680000e+02)
%121 = call double @llvm.fmuladd.f64(double %118, double %120, double 4.096000e+03)
%122 = fmul double %118, %121
%123 = fmul double %122, 0x3F10000000000000
%124 = fadd double %123, 1.000000e+00
store double %124, double* %11
%125 = call double @llvm.fmuladd.f64(double %118, double -4.700000e+01, double 7.400000e+01)
%126 = call double @llvm.fmuladd.f64(double %118, double %125, double -1.280000e+02)
%127 = call double @llvm.fmuladd.f64(double %118, double %126, double 2.560000e+02)
%128 = fmul double %118, %127
%129 = fmul double %128, 0x3F50000000000000
store double %129, double* %12
%130 = fmul double %69, %129
%131 = load double, double* %9
%132 = fmul double %129, 2.500000e-01
%133 = fmul double %131, 2.000000e+00
%134 = call double @llvm.fmuladd.f64(double %133, double %131, double -1.000000e+00)
%135 = fmul double %131, %129
%136 = fmul double %69, 4.000000e+00
%137 = call double @llvm.fmuladd.f64(double %136, double %69, double -3.000000e+00)
%138 = fmul double %137, %135
%139 = fmul double %131, 4.000000e+00
%140 = call double @llvm.fmuladd.f64(double %139, double %131, double -3.000000e+00)
%141 = fmul double %140, %138
%142 = fdiv double %141, -6.000000e+00
%143 = call double @llvm.fmuladd.f64(double %106, double %134, double %142)
%144 = call double @llvm.fmuladd.f64(double %132, double %143, double %131)
%145 = fmul double %130, %144
%146 = call double @tan(double %1)
%147 = fmul double %146, 0x3FEFE488A0A18A74
%148 = call double @atan(double %147)
%149 = call i32 @sincos(double %148, double* %8, double* %7)
%150 = call double @tan(double %3)
%151 = fmul double %150, 0x3FEFE488A0A18A74
%152 = call double @atan(double %151)
%153 = call i32 @sincos(double %152, double* %10, double* %9)
%154 = call i32 @sincos(double %112, double* %14, double* %13)
%155 = load double, double* %9
%156 = load double, double* %14
%157 = fmul double %155, %156
%158 = load double, double* %7
%159 = load double, double* %10
%160 = load double, double* %8
%161 = load double, double* %13
%162 = fneg double %160
%163 = fmul double %155, %162
%164 = fmul double %163, %161
%165 = call double @llvm.fmuladd.f64(double %158, double %159, double %164)
%166 = call double @atan2(double %157, double %165)
%167 = call double @reduce_angle(double %166, double 0x401921FB54442D18)
store double %167, double* %4
%168 = load double, double* %7
%169 = load double, double* %14
%170 = fmul double %168, %169
%171 = load double, double* %10
%172 = fmul double %168, %171
%173 = load double, double* %13
%174 = load double, double* %8
%175 = load double, double* %9
%176 = fneg double %174
%177 = fmul double %175, %176
%178 = call double @llvm.fmuladd.f64(double %172, double %173, double %177)
%179 = call double @atan2(double %170, double %178)
%180 = call double @reduce_angle(double %179, double 0x401921FB54442D18)
store double %180, double* %5
%181 = load double, double* %11
%182 = fmul double %181, 0x41583FC3F6E901E9
%183 = fsub double %63, %145
%184 = fmul double %183, %182
br label %186
185: ; preds = %33
store double -1.000000e+00, double* %5
store double -1.000000e+00, double* %4
br label %186
186: ; preds = %185, %116
%187 = phi double [ %184, %116 ], [ -1.000000e+00, %185 ]
ret double %187
}