#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 GPS_Math_Deg_To_Rad(double);
double GPS_Math_Rad_To_Deg(double);
double acos(double);
double cos(double);
double fabs(double);
double pow(double, double);
void GPS_Math_VderGrinten_EN_To_LatLon(double E, double N, double *phi,
                                       double *lambda, double M0, double E0,
                                       double N0, double a, double b) {
  double po2;
  double p2;
  double a2;
  double b2;
  double e2;
  double e4;
  double e6;
  double Ra;
  double pRa;
  double dx;
  double dy;
  double xx;
  double xx2;
  double yy;
  double yy2;
  double tyy2;
  double xpy;
  double c1;
  double c2;
  double c3;
  double c3c3;
  double co;
  double dd;
  double a1;
  double m1;
  double i;
  double theta;
  M0 = GPS_Math_Deg_To_Rad(M0);
  p2 = (double)3.141592653589 * (double)2.0;
  po2 = (double)3.141592653589 / (double)2.0;
  if (M0 > 3.141592653589)
    M0 -= p2;
  a2 = a * a;
  b2 = b * b;
  e2 = (a2 - b2) / a2;
  e4 = e2 * e2;
  e6 = e2 * e4;
  Ra = a * ((double)1. - e2 / (double)6. - (double)17. * e4 / (double)360. -
            (double)67. * e6 / (double)3024.);
  pRa = (double)3.141592653589 * Ra;
  dx = E - E0;
  dy = N - N0;
  xx = dx / pRa;
  yy = dy / pRa;
  xx2 = xx * xx;
  yy2 = yy * yy;
  xpy = xx2 + yy2;
  tyy2 = yy2 * (double)2.;
  if (!N)
    *phi = (double)0.0;
  else {
    c1 = -fabs(yy) * ((double)1. + xpy);
    c2 = c1 - tyy2 + xx2;
    c3 = (double)-2. * c1 + (double)1. + tyy2 + xpy * xpy;
    co = c2 / ((double)3. * c3);
    c3c3 = c3 * c3;
    dd = yy2 / c3 + (((double)2. * c2 * c2 * c2) / (c3c3 * c3) -
                     ((double)9. * c1 * c2) / c3c3) /
                        (double)27.;
    a1 = (c1 - c2 * co) / c3;
    m1 = (double)2. * pow(-((double)1. / (double)3.) * a1, (double).5);
    i = (double)3. * dd / (a1 * m1);
    if ((i > (double)1.) || (i < (double)-1.))
      *phi = po2;
    else {
      theta = ((double)1. / (double)3.) * acos((double)3. * dd / (a1 * m1));
      *phi = (double)3.141592653589 *
             (-m1 * cos(theta + (double)3.141592653589 / (double)3.) - co);
    }
  }
  if (N < (double)0.0)
    *phi *= (double)-1.0;
  if (!xx)
    *lambda = M0;
  else
    *lambda = (double)3.141592653589 *
                  (xpy - (double)1. +
                   pow((double)1. + ((double)2. * xx2 - tyy2) + xpy * xpy,
                       (double).5)) /
                  ((double)2. * xx) +
              M0;
  if (*phi > po2)
    *phi = po2;
  else if (*phi < -po2)
    *phi = -po2;
  if (*lambda > 3.141592653589)
    *lambda -= p2;
  if (*lambda < -3.141592653589)
    *lambda += p2;
  if (*lambda > 3.141592653589)
    *lambda = 3.141592653589;
  else if (*lambda < -3.141592653589)
    *lambda = -3.141592653589;
  *lambda = GPS_Math_Rad_To_Deg(*lambda);
  *phi = GPS_Math_Rad_To_Deg(*phi);
  return;
}


x86 assembly (clang, -O0):
<GPS_Math_VderGrinten_EN_To_LatLon>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
mov    %rdi,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
movsd  %xmm2,-0x28(%rbp)
movsd  %xmm3,-0x30(%rbp)
movsd  %xmm4,-0x38(%rbp)
movsd  %xmm5,-0x40(%rbp)
movsd  %xmm6,-0x48(%rbp)
movsd  -0x28(%rbp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  0xe73(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xe5e(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  0xe44(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    11d9 <GPS_Math_VderGrinten_EN_To_LatLon+0x89>
movsd  -0x58(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x40(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x48(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x60(%rbp),%xmm0
subsd  -0x68(%rbp),%xmm0
divsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm0
mulsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x70(%rbp),%xmm0
mulsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm2
movsd  0xe0d(%rip),%xmm1
divsd  %xmm1,%xmm2
movsd  0xdf9(%rip),%xmm1
subsd  %xmm2,%xmm1
movsd  0xde5(%rip),%xmm2
mulsd  -0x78(%rbp),%xmm2
movsd  0xdd0(%rip),%xmm3
divsd  %xmm3,%xmm2
subsd  %xmm2,%xmm1
movsd  0xdb8(%rip),%xmm2
mulsd  -0x80(%rbp),%xmm2
movsd  0xda3(%rip),%xmm3
divsd  %xmm3,%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0xd67(%rip),%xmm0
mulsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x8(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
divsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
divsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
mulsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0xb8(%rbp),%xmm0
ff
mulsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
addsd  -0xc0(%rbp),%xmm0
ff
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  0xccb(%rip),%xmm0
mulsd  -0xc0(%rbp),%xmm0
ff
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1385 <GPS_Math_VderGrinten_EN_To_LatLon+0x235>
jp     1385 <GPS_Math_VderGrinten_EN_To_LatLon+0x235>
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
jmp    1697 <GPS_Math_VderGrinten_EN_To_LatLon+0x547>
movsd  -0xb8(%rbp),%xmm0
ff
movaps 0xd0c(%rip),%xmm1
pand   %xmm1,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xc89(%rip),%xmm1
addsd  -0xd0(%rbp),%xmm1
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0xd8(%rbp),%xmm0
ff
subsd  -0xc8(%rbp),%xmm0
ff
addsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0xd8(%rbp),%xmm0
ff
addsd  %xmm0,%xmm0
movsd  0xc41(%rip),%xmm1
subsd  %xmm0,%xmm1
addsd  -0xc8(%rbp),%xmm1
ff
movsd  -0xd0(%rbp),%xmm0
ff
movsd  -0xd0(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0xe0(%rbp),%xmm0
ff
movsd  0xc15(%rip),%xmm1
mulsd  -0xe8(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0xe8(%rbp),%xmm0
ff
mulsd  -0xe8(%rbp),%xmm0
ff
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0xc0(%rbp),%xmm0
ff
divsd  -0xe8(%rbp),%xmm0
ff
movsd  0xb99(%rip),%xmm1
mulsd  -0xe0(%rbp),%xmm1
ff
mulsd  -0xe0(%rbp),%xmm1
ff
mulsd  -0xe0(%rbp),%xmm1
ff
movsd  -0xf0(%rbp),%xmm2
ff
mulsd  -0xe8(%rbp),%xmm2
ff
divsd  %xmm2,%xmm1
movsd  0xbbd(%rip),%xmm2
mulsd  -0xd8(%rbp),%xmm2
ff
mulsd  -0xe0(%rbp),%xmm2
ff
divsd  -0xf0(%rbp),%xmm2
ff
subsd  %xmm2,%xmm1
movsd  0xb91(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0xd8(%rbp),%xmm1
ff
movsd  -0xe0(%rbp),%xmm0
ff
movsd  -0xf8(%rbp),%xmm2
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
divsd  -0xe8(%rbp),%xmm0
ff
movsd  %xmm0,-0x108(%rbp)
ff
movsd  0xb2a(%rip),%xmm0
mulsd  -0x108(%rbp),%xmm0
ff
movsd  0xb12(%rip),%xmm1
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xac2(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x110(%rbp)
ff
movsd  0xae6(%rip),%xmm0
mulsd  -0x100(%rbp),%xmm0
ff
movsd  -0x108(%rbp),%xmm1
ff
mulsd  -0x110(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x118(%rbp)
ff
movsd  -0x118(%rbp),%xmm0
ff
movsd  0xaa2(%rip),%xmm1
ucomisd %xmm1,%xmm0
ja     15be <GPS_Math_VderGrinten_EN_To_LatLon+0x46e>
movsd  0xac8(%rip),%xmm0
ucomisd -0x118(%rbp),%xmm0
ff
jbe    15d0 <GPS_Math_VderGrinten_EN_To_LatLon+0x480>
movsd  -0x50(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1692 <GPS_Math_VderGrinten_EN_To_LatLon+0x542>
movsd  0xa78(%rip),%xmm0
mulsd  -0x100(%rbp),%xmm0
ff
movsd  -0x108(%rbp),%xmm1
ff
mulsd  -0x110(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
call   1040 <acos@plt>
movaps %xmm0,%xmm1
movsd  0xa84(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
movsd  -0x110(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x128(%rbp)
ff
movsd  0xa41(%rip),%xmm0
addsd  -0x120(%rbp),%xmm0
ff
call   1060 <cos@plt>
movsd  -0x128(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0xf8(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0x97a(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1697 <GPS_Math_VderGrinten_EN_To_LatLon+0x547>
xorps  %xmm0,%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    16b9 <GPS_Math_VderGrinten_EN_To_LatLon+0x569>
mov    -0x18(%rbp),%rax
movsd  0x9c7(%rip),%xmm0
mulsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
movsd  -0xa8(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    16e6 <GPS_Math_VderGrinten_EN_To_LatLon+0x596>
jp     16e6 <GPS_Math_VderGrinten_EN_To_LatLon+0x596>
movsd  -0x28(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    179b <GPS_Math_VderGrinten_EN_To_LatLon+0x64b>
movsd  -0xd0(%rbp),%xmm0
ff
movsd  0x94a(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x130(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
movsd  -0xc8(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  0x907(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  -0xd0(%rbp),%xmm0
ff
movsd  -0xd0(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0x8fb(%rip),%xmm1
call   1070 <pow@plt>
movsd  -0x130(%rbp),%xmm1
ff
addsd  %xmm0,%xmm1
movsd  0x88a(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0x896(%rip),%xmm1
mulsd  -0xa8(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
addsd  -0x28(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
ucomisd -0x50(%rbp),%xmm0
jbe    17c0 <GPS_Math_VderGrinten_EN_To_LatLon+0x670>
movsd  -0x50(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1817 <GPS_Math_VderGrinten_EN_To_LatLon+0x6c7>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm1
movsd  -0x50(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
ucomisd %xmm1,%xmm0
jbe    1812 <GPS_Math_VderGrinten_EN_To_LatLon+0x6c2>
movsd  -0x50(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1817 <GPS_Math_VderGrinten_EN_To_LatLon+0x6c7>
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0x7d9(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1846 <GPS_Math_VderGrinten_EN_To_LatLon+0x6f6>
movsd  -0x58(%rbp),%xmm1
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movsd  0x83e(%rip),%xmm0
ucomisd (%rax),%xmm0
jbe    186d <GPS_Math_VderGrinten_EN_To_LatLon+0x71d>
movsd  -0x58(%rbp),%xmm0
mov    -0x20(%rbp),%rax
addsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0x783(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    189c <GPS_Math_VderGrinten_EN_To_LatLon+0x74c>
mov    -0x20(%rbp),%rax
movsd  0x76d(%rip),%xmm0
movsd  %xmm0,(%rax)
jmp    18c7 <GPS_Math_VderGrinten_EN_To_LatLon+0x777>
mov    -0x20(%rbp),%rax
movsd  0x7e8(%rip),%xmm0
ucomisd (%rax),%xmm0
jbe    18c2 <GPS_Math_VderGrinten_EN_To_LatLon+0x772>
mov    -0x20(%rbp),%rax
movsd  0x7d2(%rip),%xmm0
movsd  %xmm0,(%rax)
jmp    18c7 <GPS_Math_VderGrinten_EN_To_LatLon+0x777>
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
call   1050 <GPS_Math_Rad_To_Deg@plt>
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
call   1050 <GPS_Math_Rad_To_Deg@plt>
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GPS_Math_VderGrinten_EN_To_LatLon>:
push   %r14
push   %rbx
sub    $0x88,%rsp
movsd  %xmm6,0x30(%rsp)
movsd  %xmm5,0x20(%rsp)
movsd  %xmm4,0x10(%rsp)
movsd  %xmm3,0x8(%rsp)
mov    %rsi,%r14
mov    %rdi,%rbx
movaps %xmm1,0x40(%rsp)
movsd  %xmm0,0x18(%rsp)
movapd %xmm2,%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  0xe6c(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0xe68(%rip),%xmm2
movapd %xmm2,%xmm3
cmpltsd %xmm0,%xmm3
andpd  %xmm3,%xmm1
andnpd %xmm0,%xmm3
orpd   %xmm1,%xmm3
movapd %xmm3,0x50(%rsp)
movsd  0x20(%rsp),%xmm4
movapd %xmm4,%xmm0
mulsd  %xmm4,%xmm0
movsd  0x30(%rsp),%xmm3
mulsd  %xmm3,%xmm3
movapd %xmm0,%xmm1
subsd  %xmm3,%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
mulsd  %xmm1,%xmm0
movapd %xmm1,%xmm3
mulsd  %xmm0,%xmm3
divsd  0xe19(%rip),%xmm1
addsd  0xe19(%rip),%xmm1
mulsd  0xe19(%rip),%xmm0
divsd  0xe19(%rip),%xmm0
mulsd  0xe19(%rip),%xmm3
divsd  0xe19(%rip),%xmm3
addsd  %xmm1,%xmm0
addsd  %xmm0,%xmm3
mulsd  %xmm4,%xmm3
mulsd  %xmm2,%xmm3
movsd  0x18(%rsp),%xmm1
subsd  0x8(%rsp),%xmm1
movapd 0x40(%rsp),%xmm0
movapd %xmm0,%xmm2
subsd  0x10(%rsp),%xmm2
divsd  %xmm3,%xmm1
divsd  %xmm3,%xmm2
movsd  %xmm1,0x18(%rsp)
movapd %xmm1,%xmm3
mulsd  %xmm1,%xmm3
movapd %xmm2,%xmm1
mulsd  %xmm2,%xmm1
movapd %xmm3,%xmm4
addsd  %xmm1,%xmm4
movapd %xmm1,%xmm5
addsd  %xmm1,%xmm5
xorpd  %xmm6,%xmm6
ucomisd %xmm6,%xmm0
xorpd  %xmm0,%xmm0
jne    128d <GPS_Math_VderGrinten_EN_To_LatLon+0x13d>
jnp    147c <GPS_Math_VderGrinten_EN_To_LatLon+0x32c>
orpd   0xdfb(%rip),%xmm2
movsd  0xd7b(%rip),%xmm6
movapd %xmm4,%xmm7
addsd  %xmm6,%xmm7
mulsd  %xmm2,%xmm7
movapd %xmm7,%xmm0
subsd  %xmm5,%xmm0
movsd  %xmm3,0x10(%rsp)
addsd  %xmm3,%xmm0
movapd %xmm7,%xmm2
movapd %xmm7,%xmm8
addsd  %xmm7,%xmm2
movapd %xmm6,%xmm3
subsd  %xmm2,%xmm3
movapd %xmm5,0x30(%rsp)
addsd  %xmm5,%xmm3
movsd  %xmm4,0x8(%rsp)
movapd %xmm4,%xmm2
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
movapd %xmm2,%xmm3
mulsd  0xd48(%rip),%xmm3
movapd %xmm0,%xmm7
divsd  %xmm3,%xmm7
movapd %xmm0,%xmm3
addsd  %xmm0,%xmm3
movapd %xmm2,%xmm4
unpcklpd %xmm8,%xmm3
movapd 0xd87(%rip),%xmm5
movsd  %xmm0,%xmm5
movapd %xmm0,%xmm6
movapd %xmm7,0x60(%rsp)
mulsd  %xmm7,%xmm0
subsd  %xmm0,%xmm8
movapd 0xd78(%rip),%xmm0
movsd  %xmm2,%xmm0
divsd  %xmm2,%xmm8
movapd %xmm8,0x20(%rsp)
mulsd  %xmm2,%xmm2
mulsd  %xmm2,%xmm4
mulpd  %xmm3,%xmm5
unpcklpd %xmm6,%xmm6
mulpd  %xmm5,%xmm6
unpcklpd %xmm2,%xmm4
divpd  %xmm4,%xmm6
movapd %xmm6,%xmm2
unpckhpd %xmm6,%xmm2
subpd  %xmm2,%xmm6
unpcklpd %xmm6,%xmm1
divpd  %xmm0,%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
addsd  %xmm1,%xmm0
movapd %xmm0,0x70(%rsp)
movsd  0xcb6(%rip),%xmm0
mulsd  %xmm8,%xmm0
movsd  0xcb1(%rip),%xmm1
call   1070 <pow@plt>
movapd 0x70(%rsp),%xmm7
movapd %xmm0,%xmm2
addsd  %xmm0,%xmm2
mulsd  0xc86(%rip),%xmm7
movapd 0x20(%rsp),%xmm0
mulsd  %xmm2,%xmm0
divsd  %xmm0,%xmm7
ucomisd 0xc48(%rip),%xmm7
movsd  0xc80(%rip),%xmm0
ja     1466 <GPS_Math_VderGrinten_EN_To_LatLon+0x316>
movsd  0xc7a(%rip),%xmm1
ucomisd %xmm7,%xmm1
movsd  0x10(%rsp),%xmm3
movsd  0x8(%rsp),%xmm4
movapd 0x30(%rsp),%xmm5
xorpd  %xmm6,%xmm6
ja     147c <GPS_Math_VderGrinten_EN_To_LatLon+0x32c>
movapd %xmm7,%xmm0
movapd %xmm2,0x20(%rsp)
call   1040 <acos@plt>
mulsd  0xc4f(%rip),%xmm0
movapd 0x20(%rsp),%xmm1
xorpd  0xc69(%rip),%xmm1
movapd %xmm1,0x20(%rsp)
addsd  0xc3b(%rip),%xmm0
call   1060 <cos@plt>
xorpd  %xmm6,%xmm6
movapd 0x30(%rsp),%xmm5
movsd  0x8(%rsp),%xmm4
movsd  0x10(%rsp),%xmm3
mulsd  0x20(%rsp),%xmm0
subsd  0x60(%rsp),%xmm0
mulsd  0xba4(%rip),%xmm0
jmp    147c <GPS_Math_VderGrinten_EN_To_LatLon+0x32c>
movsd  0x10(%rsp),%xmm3
movsd  0x8(%rsp),%xmm4
movapd 0x30(%rsp),%xmm5
xorpd  %xmm6,%xmm6
movapd 0xc0c(%rip),%xmm1
xorpd  %xmm0,%xmm1
movapd 0x40(%rsp),%xmm2
cmpltsd %xmm6,%xmm2
andpd  %xmm2,%xmm1
andnpd %xmm0,%xmm2
orpd   %xmm1,%xmm2
movlpd %xmm2,(%rbx)
movsd  0x18(%rsp),%xmm0
ucomisd %xmm6,%xmm0
jne    14b1 <GPS_Math_VderGrinten_EN_To_LatLon+0x361>
jnp    151c <GPS_Math_VderGrinten_EN_To_LatLon+0x3cc>
movsd  0xba7(%rip),%xmm1
addsd  %xmm4,%xmm1
movsd  %xmm1,0x40(%rsp)
addsd  %xmm3,%xmm3
subsd  %xmm5,%xmm3
addsd  0xb45(%rip),%xmm3
mulsd  %xmm4,%xmm4
addsd  %xmm3,%xmm4
movsd  0xb6d(%rip),%xmm1
movapd %xmm4,%xmm0
call   1070 <pow@plt>
addsd  0x40(%rsp),%xmm0
mulsd  0xb0e(%rip),%xmm0
movsd  0x18(%rsp),%xmm1
addsd  %xmm1,%xmm1
divsd  %xmm1,%xmm0
movapd 0x50(%rsp),%xmm2
addsd  %xmm0,%xmm2
movsd  0xaee(%rip),%xmm3
jmp    152a <GPS_Math_VderGrinten_EN_To_LatLon+0x3da>
movsd  0xae4(%rip),%xmm3
movapd 0x50(%rsp),%xmm2
movsd  %xmm2,(%r14)
movsd  (%rbx),%xmm1
movsd  0xb1d(%rip),%xmm0
ucomisd %xmm0,%xmm1
ja     154f <GPS_Math_VderGrinten_EN_To_LatLon+0x3ff>
movsd  0xb2f(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    1558 <GPS_Math_VderGrinten_EN_To_LatLon+0x408>
movsd  %xmm0,(%rbx)
movsd  (%r14),%xmm2
ucomisd %xmm3,%xmm2
movsd  0xa9c(%rip),%xmm0
addsd  %xmm2,%xmm0
movapd %xmm3,%xmm1
cmpltsd %xmm2,%xmm1
andpd  %xmm1,%xmm0
andnpd %xmm2,%xmm1
orpd   %xmm0,%xmm1
movsd  0xafb(%rip),%xmm2
movapd %xmm1,%xmm0
cmpltsd 0xaf6(%rip),%xmm0
addsd  %xmm1,%xmm2
andpd  %xmm0,%xmm2
andnpd %xmm1,%xmm0
orpd   %xmm2,%xmm0
ja     15ba <GPS_Math_VderGrinten_EN_To_LatLon+0x46a>
movsd  0xadc(%rip),%xmm2
ucomisd %xmm1,%xmm2
ja     15ba <GPS_Math_VderGrinten_EN_To_LatLon+0x46a>
ucomisd %xmm3,%xmm0
jbe    15c5 <GPS_Math_VderGrinten_EN_To_LatLon+0x475>
jmp    15d3 <GPS_Math_VderGrinten_EN_To_LatLon+0x483>
movsd  %xmm0,(%r14)
ucomisd %xmm3,%xmm0
ja     15d3 <GPS_Math_VderGrinten_EN_To_LatLon+0x483>
movsd  0xabb(%rip),%xmm3
ucomisd %xmm0,%xmm3
jbe    15dc <GPS_Math_VderGrinten_EN_To_LatLon+0x48c>
movsd  %xmm3,(%r14)
movapd %xmm3,%xmm0
call   1050 <GPS_Math_Rad_To_Deg@plt>
movsd  %xmm0,(%r14)
movsd  (%rbx),%xmm0
call   1050 <GPS_Math_Rad_To_Deg@plt>
movsd  %xmm0,(%rbx)
add    $0x88,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define void @GPS_Math_VderGrinten_EN_To_LatLon(double %0, double %1, double* nocapture %2, double* nocapture %3, double %4, double %5, double %6, double %7, double %8) {
%10 = tail call double @GPS_Math_Deg_To_Rad(double %4)
%11 = fcmp ogt double %10, 0x400921FB5444261E
%12 = fadd double %10, 0xC01921FB5444261E
%13 = select i1 %11, double %12, double %10
%14 = fmul double %7, %7
%15 = fmul double %8, %8
%16 = fsub double %14, %15
%17 = fdiv double %16, %14
%18 = fmul double %17, %17
%19 = fmul double %17, %18
%20 = fdiv double %17, 6.000000e+00
%21 = fsub double 1.000000e+00, %20
%22 = fmul double %18, 1.700000e+01
%23 = fdiv double %22, 3.600000e+02
%24 = fsub double %21, %23
%25 = fmul double %19, 6.700000e+01
%26 = fdiv double %25, 3.024000e+03
%27 = fsub double %24, %26
%28 = fmul double %27, %7
%29 = fmul double %28, 0x400921FB5444261E
%30 = fsub double %0, %5
%31 = fsub double %1, %6
%32 = fdiv double %30, %29
%33 = fdiv double %31, %29
%34 = fmul double %32, %32
%35 = fmul double %33, %33
%36 = fadd double %34, %35
%37 = fmul double %35, 2.000000e+00
%38 = fcmp une double %1, 0.000000e+00
br i1 %38, label %39, label %94
39: ; preds = %9
%40 = tail call double @llvm.fabs.f64(double %33)
%41 = fneg double %40
%42 = fadd double %36, 1.000000e+00
%43 = fmul double %42, %41
%44 = fsub double %43, %37
%45 = fadd double %34, %44
%46 = tail call double @llvm.fmuladd.f64(double %43, double -2.000000e+00, double 1.000000e+00)
%47 = fadd double %37, %46
%48 = tail call double @llvm.fmuladd.f64(double %36, double %36, double %47)
%49 = fmul double %48, 3.000000e+00
%50 = fdiv double %45, %49
%51 = fmul double %48, %48
%52 = fmul double %45, 2.000000e+00
%53 = fmul double %48, %51
%54 = insertelement <2 x double> poison, double %52, i64 0
%55 = insertelement <2 x double> %54, double %43, i64 1
%56 = insertelement <2 x double> <double poison, double 9.000000e+00>, double %45, i64 0
%57 = fmul <2 x double> %55, %56
%58 = insertelement <2 x double> poison, double %45, i64 0
%59 = shufflevector <2 x double> %58, <2 x double> poison, <2 x i32> zeroinitializer
%60 = fmul <2 x double> %59, %57
%61 = insertelement <2 x double> poison, double %53, i64 0
%62 = insertelement <2 x double> %61, double %51, i64 1
%63 = fdiv <2 x double> %60, %62
%64 = shufflevector <2 x double> %63, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%65 = fsub <2 x double> %63, %64
%66 = insertelement <2 x double> poison, double %35, i64 0
%67 = shufflevector <2 x double> %66, <2 x double> %65, <2 x i32> <i32 0, i32 2>
%68 = insertelement <2 x double> <double poison, double 2.700000e+01>, double %48, i64 0
%69 = fdiv <2 x double> %67, %68
%70 = shufflevector <2 x double> %69, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%71 = fadd <2 x double> %69, %70
%72 = extractelement <2 x double> %71, i64 0
%73 = fneg double %45
%74 = tail call double @llvm.fmuladd.f64(double %73, double %50, double %43)
%75 = fdiv double %74, %48
%76 = fmul double %75, 0xBFD5555555555555
%77 = tail call double @pow(double %76, double 5.000000e-01)
%78 = fmul double %77, 2.000000e+00
%79 = fmul double %72, 3.000000e+00
%80 = fmul double %75, %78
%81 = fdiv double %79, %80
%82 = fcmp ogt double %81, 1.000000e+00
%83 = fcmp olt double %81, -1.000000e+00
%84 = or i1 %82, %83
br i1 %84, label %94, label %85
85: ; preds = %39
%86 = tail call double @acos(double %81)
%87 = fmul double %86, 0x3FD5555555555555
%88 = fneg double %78
%89 = fadd double %87, 0x3FF0C152382D6EBF
%90 = tail call double @cos(double %89)
%91 = fneg double %50
%92 = tail call double @llvm.fmuladd.f64(double %88, double %90, double %91)
%93 = fmul double %92, 0x400921FB5444261E
br label %94
94: ; preds = %39, %9, %85
%95 = phi double [ %93, %85 ], [ 0.000000e+00, %9 ], [ 0x3FF921FB5444261E, %39 ]
%96 = fcmp olt double %1, 0.000000e+00
%97 = fneg double %95
%98 = select i1 %96, double %97, double %95
store double %98, double* %2
%99 = fcmp une double %32, 0.000000e+00
br i1 %99, label %100, label %112
100: ; preds = %94
%101 = fadd double %36, -1.000000e+00
%102 = fneg double %37
%103 = tail call double @llvm.fmuladd.f64(double %34, double 2.000000e+00, double %102)
%104 = fadd double %103, 1.000000e+00
%105 = tail call double @llvm.fmuladd.f64(double %36, double %36, double %104)
%106 = tail call double @pow(double %105, double 5.000000e-01)
%107 = fadd double %101, %106
%108 = fmul double %107, 0x400921FB5444261E
%109 = fmul double %32, 2.000000e+00
%110 = fdiv double %108, %109
%111 = fadd double %13, %110
br label %112
112: ; preds = %94, %100
%113 = phi double [ %111, %100 ], [ %13, %94 ]
store double %113, double* %3
%114 = load double, double* %2
%115 = fcmp ogt double %114, 0x3FF921FB5444261E
br i1 %115, label %118, label %116
116: ; preds = %112
%117 = fcmp olt double %114, 0xBFF921FB5444261E
br i1 %117, label %118, label %121
118: ; preds = %116, %112
%119 = phi double [ 0x3FF921FB5444261E, %112 ], [ 0xBFF921FB5444261E, %116 ]
store double %119, double* %2
%120 = load double, double* %3
br label %121
121: ; preds = %118, %116
%122 = phi double [ %120, %118 ], [ %113, %116 ]
%123 = fcmp ogt double %122, 0x400921FB5444261E
%124 = fadd double %122, 0xC01921FB5444261E
%125 = select i1 %123, double %124, double %122
%126 = fcmp olt double %125, 0xC00921FB5444261E
%127 = fadd double %125, 0x401921FB5444261E
%128 = select i1 %126, double %127, double %125
%129 = or i1 %123, %126
br i1 %129, label %130, label %131
130: ; preds = %121
store double %128, double* %3
br label %131
131: ; preds = %121, %130
%132 = fcmp ogt double %128, 0x400921FB5444261E
br i1 %132, label %135, label %133
133: ; preds = %131
%134 = fcmp olt double %128, 0xC00921FB5444261E
br i1 %134, label %135, label %137
135: ; preds = %133, %131
%136 = phi double [ 0x400921FB5444261E, %131 ], [ 0xC00921FB5444261E, %133 ]
store double %136, double* %3
br label %137
137: ; preds = %135, %133
%138 = phi double [ %128, %133 ], [ %136, %135 ]
%139 = tail call double @GPS_Math_Rad_To_Deg(double %138)
store double %139, double* %3
%140 = load double, double* %2
%141 = tail call double @GPS_Math_Rad_To_Deg(double %140)
store double %141, double* %2
ret void
}