#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 atan(double);
double atan2(double, double);
double cos(double);
double fabs(double);
double pow(double, double);
double sin(double);
double tan(double);
void GPS_Math_PolarSt_EN_To_LatLon(double E, double N, double *phi,
                                   double *lambda, double phi1, double lambda1,
                                   double E0, double N0, double a, double b) {
  double p2;
  double po2;
  double a2;
  double b2;
  double e2;
  double e4 = (double)0.;
  double e;
  double eo2;
  double sh;
  double mc;
  double tc = (double)0.;
  double amc = (double)0.;
  double ta;
  double phi1s;
  double phi1c;
  double es;
  double op;
  double om;
  double pe;
  double polat;
  double polon;
  double dx;
  double dy;
  double t;
  double rho;
  double PHI;
  double PHIS;
  double TPHI;
  lambda1 = GPS_Math_Deg_To_Rad(lambda1);
  phi1 = GPS_Math_Deg_To_Rad(phi1);
  p2 = (double)3.141592653589 * (double)2.0;
  po2 = (double)3.141592653589 / (double)2.0;
  ta = a * (double)2.0;
  if (lambda1 > 3.141592653589)
    lambda1 -= p2;
  if (phi1 < (double)0.0) {
    sh = (double)1.0;
    polat = -phi1;
    polon = -lambda1;
  } else {
    sh = (double)0.0;
    polat = phi1;
    polon = lambda1;
  }
  a2 = a * a;
  b2 = b * b;
  e2 = (a2 - b2) / a2;
  e = pow(e2, (double).5);
  eo2 = e / (double)2.;
  if (fabs(fabs(polat) - po2) > (double)1.0e-10) {
    phi1s = sin(polat);
    phi1c = cos(polat);
    es = e * phi1s;
    pe = pow(((double)1. - es) / ((double)1. + es), eo2);
    mc = phi1c / pow((double)1. - es * es, (double).5);
    amc = mc * a;
    tc = tan(((double)3.141592653589 / (double)4.) - polat / (double)2.) / pe;
  } else {
    op = (double)1. + e;
    om = (double)1. - e;
    e4 = pow(pow(op, op) * pow(om, om), (double).5);
  }
  dx = E - E0;
  dy = N - N0;
  if (!dx && !dy) {
    *phi = po2;
    *lambda = polon;
  } else {
    if (sh) {
      dx *= (double)-1.;
      dy *= (double)-1.;
    }
    rho = pow(dx * dx + dy * dy, (double).5);
    if (fabs(fabs(polat) - po2) > (double)1.0e-10)
      t = rho * tc / amc;
    else
      t = rho * e4 / ta;
    TPHI = (double)0.0;
    PHI = po2 - (double)2. * atan(t);
    while (fabs(PHI - TPHI) > (double)1.0e-10) {
      TPHI = PHI;
      PHIS = sin(PHI);
      es = e * PHIS;
      pe = pow(((double)1. - es) / ((double)1. + es), eo2);
      PHI = po2 - (double)2. * atan(t * pe);
    }
    *phi = PHI;
    *lambda = polon + atan2(dx, -dy);
    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;
  }
  if (sh) {
    *phi *= (double)-1.;
    *lambda *= (double)1.;
  }
  *lambda = GPS_Math_Rad_To_Deg(*lambda);
  *phi = GPS_Math_Rad_To_Deg(*phi);
  return;
}


x86 assembly (clang, -O0):
<GPS_Math_PolarSt_EN_To_LatLon>:
push   %rbp
mov    %rsp,%rbp
sub    $0x160,%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  %xmm7,-0x50(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x80(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
call   1040 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x28(%rbp),%xmm0
call   1040 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  0xe19(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xe04(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xdef(%rip),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
movsd  0xdcd(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1250 <GPS_Math_PolarSt_EN_To_LatLon+0xd0>
movsd  -0x58(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    12bb <GPS_Math_PolarSt_EN_To_LatLon+0x13b>
movsd  0xdba(%rip),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
jmp    12e0 <GPS_Math_PolarSt_EN_To_LatLon+0x160>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x50(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x68(%rbp),%xmm0
subsd  -0x70(%rbp),%xmm0
divsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x78(%rbp),%xmm0
movsd  0xd11(%rip),%xmm1
call   10a0 <pow@plt>
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
movsd  0xccc(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0xf0(%rbp),%xmm0
ff
movaps 0xcf9(%rip),%xmm1
pand   %xmm1,%xmm0
subsd  -0x60(%rbp),%xmm0
movaps 0xce9(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0xcb5(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    14b2 <GPS_Math_PolarSt_EN_To_LatLon+0x332>
movsd  -0xf0(%rbp),%xmm0
ff
call   1050 <sin@plt>
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0xf0(%rbp),%xmm0
ff
call   1090 <cos@plt>
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
mulsd  -0xc0(%rbp),%xmm0
ff
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  0xc59(%rip),%xmm0
subsd  -0xd0(%rbp),%xmm0
ff
movsd  0xc49(%rip),%xmm1
addsd  -0xd0(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  -0x90(%rbp),%xmm1
ff
call   10a0 <pow@plt>
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0xc8(%rbp),%xmm0
ff
movsd  %xmm0,-0x138(%rbp)
ff
movsd  -0xd0(%rbp),%xmm0
ff
movsd  -0xd0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xbe5(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xbe9(%rip),%xmm1
call   10a0 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x138(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
mulsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0xf0(%rbp),%xmm1
ff
movsd  0xb80(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xba4(%rip),%xmm0
subsd  %xmm1,%xmm0
call   1070 <tan@plt>
divsd  -0xe8(%rbp),%xmm0
ff
movsd  %xmm0,-0xa8(%rbp)
ff
jmp    1535 <GPS_Math_PolarSt_EN_To_LatLon+0x3b5>
movsd  0xb66(%rip),%xmm0
addsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  0xb4e(%rip),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0xd8(%rbp),%xmm0
ff
movsd  -0xd8(%rbp),%xmm1
ff
call   10a0 <pow@plt>
movsd  %xmm0,-0x140(%rbp)
ff
movsd  -0xe0(%rbp),%xmm0
ff
movsd  -0xe0(%rbp),%xmm1
ff
call   10a0 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x140(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  0xb05(%rip),%xmm1
call   10a0 <pow@plt>
movsd  %xmm0,-0x80(%rbp)
movsd  -0x8(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0x100(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    15b1 <GPS_Math_PolarSt_EN_To_LatLon+0x431>
jp     15b1 <GPS_Math_PolarSt_EN_To_LatLon+0x431>
movsd  -0x108(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    15b1 <GPS_Math_PolarSt_EN_To_LatLon+0x431>
jp     15b1 <GPS_Math_PolarSt_EN_To_LatLon+0x431>
movsd  -0x60(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0xf8(%rbp),%xmm0
ff
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    196e <GPS_Math_PolarSt_EN_To_LatLon+0x7ee>
movsd  -0x98(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    15d1 <GPS_Math_PolarSt_EN_To_LatLon+0x451>
jp     15d1 <GPS_Math_PolarSt_EN_To_LatLon+0x451>
jmp    1601 <GPS_Math_PolarSt_EN_To_LatLon+0x481>
movsd  0xa67(%rip),%xmm0
mulsd  -0x100(%rbp),%xmm0
ff
movsd  %xmm0,-0x100(%rbp)
ff
movsd  0xa4f(%rip),%xmm0
mulsd  -0x108(%rbp),%xmm0
ff
movsd  %xmm0,-0x108(%rbp)
movsd  -0x100(%rbp),%xmm0
ff
movsd  -0x100(%rbp),%xmm2
ff
movsd  -0x108(%rbp),%xmm1
ff
mulsd  -0x108(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0x9ff(%rip),%xmm1
call   10a0 <pow@plt>
movsd  %xmm0,-0x118(%rbp)
ff
movsd  -0xf0(%rbp),%xmm0
ff
movaps 0xa03(%rip),%xmm1
pand   %xmm1,%xmm0
subsd  -0x60(%rbp),%xmm0
movaps 0x9f3(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0x9bf(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1698 <GPS_Math_PolarSt_EN_To_LatLon+0x518>
movsd  -0x118(%rbp),%xmm0
ff
mulsd  -0xa8(%rbp),%xmm0
ff
divsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0x110(%rbp)
ff
jmp    16b5 <GPS_Math_PolarSt_EN_To_LatLon+0x535>
movsd  -0x118(%rbp),%xmm0
ff
mulsd  -0x80(%rbp),%xmm0
divsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0x110(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x130(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x148(%rbp)
ff
movsd  -0x110(%rbp),%xmm0
ff
call   1060 <atan@plt>
movaps %xmm0,%xmm1
movsd  -0x148(%rbp),%xmm0
ff
addsd  %xmm1,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
movsd  -0x120(%rbp),%xmm0
ff
subsd  -0x130(%rbp),%xmm0
ff
movaps 0x944(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0x910(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    17da <GPS_Math_PolarSt_EN_To_LatLon+0x65a>
movsd  -0x120(%rbp),%xmm0
ff
movsd  %xmm0,-0x130(%rbp)
ff
movsd  -0x120(%rbp),%xmm0
ff
call   1050 <sin@plt>
movsd  %xmm0,-0x128(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
mulsd  -0x128(%rbp),%xmm0
ff
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  0x8b9(%rip),%xmm0
subsd  -0xd0(%rbp),%xmm0
ff
movsd  0x8a9(%rip),%xmm1
addsd  -0xd0(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  -0x90(%rbp),%xmm1
ff
call   10a0 <pow@plt>
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x150(%rbp)
ff
movsd  -0x110(%rbp),%xmm0
ff
mulsd  -0xe8(%rbp),%xmm0
ff
call   1060 <atan@plt>
movaps %xmm0,%xmm1
movsd  -0x150(%rbp),%xmm0
ff
addsd  %xmm1,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
jmp    16f5 <GPS_Math_PolarSt_EN_To_LatLon+0x575>
movsd  -0x120(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0xf8(%rbp),%xmm0
ff
movsd  %xmm0,-0x158(%rbp)
ff
movsd  -0x100(%rbp),%xmm0
ff
movsd  -0x108(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
call   1030 <atan2@plt>
movaps %xmm0,%xmm1
movsd  -0x158(%rbp),%xmm0
ff
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
ucomisd -0x60(%rbp),%xmm0
jbe    1862 <GPS_Math_PolarSt_EN_To_LatLon+0x6e2>
movsd  -0x60(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    18b9 <GPS_Math_PolarSt_EN_To_LatLon+0x739>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm1
movsd  -0x60(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
ucomisd %xmm1,%xmm0
jbe    18b4 <GPS_Math_PolarSt_EN_To_LatLon+0x734>
movsd  -0x60(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    18b9 <GPS_Math_PolarSt_EN_To_LatLon+0x739>
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0x737(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    18e8 <GPS_Math_PolarSt_EN_To_LatLon+0x768>
movsd  -0x58(%rbp),%xmm1
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movsd  0x754(%rip),%xmm0
ucomisd (%rax),%xmm0
jbe    190f <GPS_Math_PolarSt_EN_To_LatLon+0x78f>
movsd  -0x58(%rbp),%xmm0
mov    -0x20(%rbp),%rax
addsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0x6e1(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    193e <GPS_Math_PolarSt_EN_To_LatLon+0x7be>
mov    -0x20(%rbp),%rax
movsd  0x6cb(%rip),%xmm0
movsd  %xmm0,(%rax)
jmp    1969 <GPS_Math_PolarSt_EN_To_LatLon+0x7e9>
mov    -0x20(%rbp),%rax
movsd  0x6fe(%rip),%xmm0
ucomisd (%rax),%xmm0
jbe    1964 <GPS_Math_PolarSt_EN_To_LatLon+0x7e4>
mov    -0x20(%rbp),%rax
movsd  0x6e8(%rip),%xmm0
movsd  %xmm0,(%rax)
jmp    1969 <GPS_Math_PolarSt_EN_To_LatLon+0x7e9>
jmp    196e <GPS_Math_PolarSt_EN_To_LatLon+0x7ee>
movsd  -0x98(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    198e <GPS_Math_PolarSt_EN_To_LatLon+0x80e>
jp     198e <GPS_Math_PolarSt_EN_To_LatLon+0x80e>
jmp    19b6 <GPS_Math_PolarSt_EN_To_LatLon+0x836>
mov    -0x18(%rbp),%rax
movsd  0x6a6(%rip),%xmm0
mulsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movsd  0x672(%rip),%xmm0
mulsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
call   1080 <GPS_Math_Rad_To_Deg@plt>
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
call   1080 <GPS_Math_Rad_To_Deg@plt>
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0x160,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GPS_Math_PolarSt_EN_To_LatLon>:
push   %r14
push   %rbx
sub    $0xc8,%rsp
movsd  %xmm7,0x40(%rsp)
movsd  %xmm6,0x30(%rsp)
movsd  %xmm5,0x68(%rsp)
movsd  %xmm4,0x60(%rsp)
movsd  %xmm2,0x28(%rsp)
mov    %rsi,%r14
mov    %rdi,%rbx
movaps %xmm1,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm3,%xmm0
call   1040 <GPS_Math_Deg_To_Rad@plt>
movaps %xmm0,0x90(%rsp)
movsd  0x28(%rsp),%xmm0
call   1040 <GPS_Math_Deg_To_Rad@plt>
movapd %xmm0,%xmm3
movsd  0xe1e(%rip),%xmm1
movapd 0x90(%rsp),%xmm2
addsd  %xmm2,%xmm1
movsd  0xe11(%rip),%xmm0
cmpltsd %xmm2,%xmm0
andpd  %xmm0,%xmm1
andnpd %xmm2,%xmm0
orpd   %xmm1,%xmm0
xorpd  %xmm2,%xmm2
ucomisd %xmm3,%xmm2
movapd 0xe38(%rip),%xmm4
movapd %xmm0,%xmm1
xorpd  %xmm4,%xmm1
ja     122a <GPS_Math_PolarSt_EN_To_LatLon+0xaa>
movapd %xmm3,0x10(%rsp)
jmp    1238 <GPS_Math_PolarSt_EN_To_LatLon+0xb8>
movapd %xmm3,%xmm5
xorpd  %xmm4,%xmm5
movapd %xmm5,0x10(%rsp)
movsd  0x30(%rsp),%xmm5
movsd  0x40(%rsp),%xmm6
movapd %xmm3,%xmm4
cmpltsd %xmm2,%xmm4
movapd %xmm4,%xmm2
andnpd %xmm0,%xmm2
andpd  %xmm1,%xmm4
orpd   %xmm2,%xmm4
movapd %xmm4,0xb0(%rsp)
movapd %xmm5,%xmm1
mulsd  %xmm5,%xmm1
mulsd  %xmm6,%xmm6
movapd %xmm1,%xmm0
subsd  %xmm6,%xmm0
divsd  %xmm1,%xmm0
movsd  0xd8a(%rip),%xmm1
movapd %xmm3,0x40(%rsp)
call   10a0 <pow@plt>
movapd %xmm0,%xmm2
movapd %xmm0,%xmm3
mulsd  0xd6f(%rip),%xmm3
movapd 0xdb7(%rip),%xmm0
movapd 0x40(%rsp),%xmm1
andpd  %xmm0,%xmm1
addsd  0xd5d(%rip),%xmm1
andpd  %xmm0,%xmm1
ucomisd 0xd59(%rip),%xmm1
movsd  %xmm2,0x28(%rsp)
movsd  %xmm3,0x90(%rsp)
jbe    13aa <GPS_Math_PolarSt_EN_To_LatLon+0x22a>
movaps 0x10(%rsp),%xmm0
call   1050 <sin@plt>
movsd  %xmm0,0x58(%rsp)
movaps 0x10(%rsp),%xmm0
call   1090 <cos@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x58(%rsp),%xmm1
mulsd  0x28(%rsp),%xmm1
movsd  %xmm1,0x58(%rsp)
movsd  0xd12(%rip),%xmm3
movapd %xmm3,%xmm0
subsd  %xmm1,%xmm0
addsd  %xmm3,%xmm1
divsd  %xmm1,%xmm0
movsd  0x90(%rsp),%xmm1
call   10a0 <pow@plt>
movsd  %xmm0,0xa8(%rsp)
movsd  0x58(%rsp),%xmm1
mulsd  %xmm1,%xmm1
movsd  0xcd9(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  0xcb5(%rip),%xmm1
call   10a0 <pow@plt>
movsd  0x8(%rsp),%xmm1
divsd  %xmm0,%xmm1
mulsd  0x30(%rsp),%xmm1
movsd  %xmm1,0x8(%rsp)
movapd 0x10(%rsp),%xmm1
mulsd  0xc8c(%rip),%xmm1
movsd  0xca4(%rip),%xmm0
subsd  %xmm1,%xmm0
call   1070 <tan@plt>
movapd 0x40(%rsp),%xmm3
movapd %xmm0,%xmm6
divsd  0xa8(%rsp),%xmm6
jmp    141b <GPS_Math_PolarSt_EN_To_LatLon+0x29b>
movsd  0x30(%rsp),%xmm0
addsd  %xmm0,%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  0xc66(%rip),%xmm1
movapd %xmm2,%xmm0
addsd  %xmm1,%xmm0
subsd  %xmm2,%xmm1
movsd  %xmm1,0x8(%rsp)
movapd %xmm0,%xmm1
call   10a0 <pow@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
movapd %xmm0,%xmm1
call   10a0 <pow@plt>
mulsd  0x10(%rsp),%xmm0
movsd  0xc10(%rip),%xmm1
call   10a0 <pow@plt>
movapd 0x40(%rsp),%xmm3
movapd %xmm0,%xmm6
movsd  0x30(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movapd 0x80(%rsp),%xmm2
movapd 0x70(%rsp),%xmm4
movsd  0x68(%rsp),%xmm0
movsd  0x60(%rsp),%xmm1
movapd 0xc12(%rip),%xmm5
subsd  %xmm1,%xmm4
subsd  %xmm0,%xmm2
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm4
jne    1475 <GPS_Math_PolarSt_EN_To_LatLon+0x2f5>
jp     1475 <GPS_Math_PolarSt_EN_To_LatLon+0x2f5>
ucomisd %xmm0,%xmm2
jne    1475 <GPS_Math_PolarSt_EN_To_LatLon+0x2f5>
jp     1475 <GPS_Math_PolarSt_EN_To_LatLon+0x2f5>
movabs $0x3ff921fb5444261e,%rax
21 f9 3f
mov    %rax,(%rbx)
movapd 0xb0(%rsp),%xmm4
jmp    1682 <GPS_Math_PolarSt_EN_To_LatLon+0x502>
ucomisd %xmm3,%xmm0
movapd %xmm4,%xmm1
xorpd  %xmm5,%xmm1
cmpltsd %xmm0,%xmm3
andpd  %xmm3,%xmm1
andnpd %xmm4,%xmm3
orpd   %xmm1,%xmm3
jbe    1498 <GPS_Math_PolarSt_EN_To_LatLon+0x318>
xorpd  %xmm5,%xmm2
movapd %xmm2,0x80(%rsp)
movapd %xmm2,%xmm1
mulsd  %xmm2,%xmm1
movapd %xmm3,0x70(%rsp)
movapd %xmm3,%xmm0
mulsd  %xmm3,%xmm0
addsd  %xmm1,%xmm0
movsd  0xb4d(%rip),%xmm1
movsd  %xmm6,0x10(%rsp)
call   10a0 <pow@plt>
movsd  0x10(%rsp),%xmm1
mulsd  %xmm0,%xmm1
divsd  0x8(%rsp),%xmm1
movsd  %xmm1,0x10(%rsp)
movapd %xmm1,%xmm0
call   1060 <atan@plt>
addsd  %xmm0,%xmm0
movsd  0xb3f(%rip),%xmm2
subsd  %xmm0,%xmm2
movapd 0xb5b(%rip),%xmm0
andpd  %xmm2,%xmm0
ucomisd 0xb0f(%rip),%xmm0
jbe    159c <GPS_Math_PolarSt_EN_To_LatLon+0x41c>
nopw   0x0(%rax,%rax,1)
movapd %xmm2,0x30(%rsp)
movapd %xmm2,%xmm0
call   1050 <sin@plt>
mulsd  0x28(%rsp),%xmm0
movsd  0xaeb(%rip),%xmm2
movapd %xmm2,%xmm1
subsd  %xmm0,%xmm1
addsd  %xmm2,%xmm0
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
movsd  0x90(%rsp),%xmm1
call   10a0 <pow@plt>
mulsd  0x10(%rsp),%xmm0
call   1060 <atan@plt>
addsd  %xmm0,%xmm0
movsd  0xac2(%rip),%xmm1
subsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
subsd  0x30(%rsp),%xmm0
andpd  0xad4(%rip),%xmm0
ucomisd 0xa8c(%rip),%xmm0
movapd %xmm1,%xmm2
ja     1520 <GPS_Math_PolarSt_EN_To_LatLon+0x3a0>
jmp    15a0 <GPS_Math_PolarSt_EN_To_LatLon+0x420>
movapd %xmm2,%xmm1
movsd  %xmm1,(%rbx)
movaps 0x80(%rsp),%xmm1
xorps  0xa9d(%rip),%xmm1
movapd 0x70(%rsp),%xmm0
call   1030 <atan2@plt>
movapd 0xb0(%rsp),%xmm2
addsd  %xmm0,%xmm2
movsd  %xmm2,(%r14)
movsd  (%rbx),%xmm0
movsd  0xa5c(%rip),%xmm1
ucomisd %xmm1,%xmm0
ja     15f0 <GPS_Math_PolarSt_EN_To_LatLon+0x470>
movsd  0xa2e(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    15f9 <GPS_Math_PolarSt_EN_To_LatLon+0x479>
movsd  %xmm1,(%rbx)
movsd  (%r14),%xmm2
movsd  0xa07(%rip),%xmm4
ucomisd %xmm4,%xmm2
movsd  0x9f3(%rip),%xmm0
addsd  %xmm2,%xmm0
movapd %xmm4,%xmm1
cmpltsd %xmm2,%xmm1
andpd  %xmm1,%xmm0
andnpd %xmm2,%xmm1
orpd   %xmm0,%xmm1
movsd  0xa12(%rip),%xmm2
movapd %xmm1,%xmm0
cmpltsd 0xa0d(%rip),%xmm0
addsd  %xmm1,%xmm2
andpd  %xmm0,%xmm2
andnpd %xmm1,%xmm0
orpd   %xmm2,%xmm0
movapd 0x40(%rsp),%xmm3
ja     1669 <GPS_Math_PolarSt_EN_To_LatLon+0x4e9>
movsd  0x9ed(%rip),%xmm2
ucomisd %xmm1,%xmm2
ja     1669 <GPS_Math_PolarSt_EN_To_LatLon+0x4e9>
ucomisd %xmm4,%xmm0
jbe    1674 <GPS_Math_PolarSt_EN_To_LatLon+0x4f4>
jmp    1682 <GPS_Math_PolarSt_EN_To_LatLon+0x502>
movsd  %xmm0,(%r14)
ucomisd %xmm4,%xmm0
ja     1682 <GPS_Math_PolarSt_EN_To_LatLon+0x502>
movsd  0x9cc(%rip),%xmm4
ucomisd %xmm0,%xmm4
jbe    168b <GPS_Math_PolarSt_EN_To_LatLon+0x50b>
movsd  %xmm4,(%r14)
movapd %xmm4,%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm3,%xmm1
jbe    16a8 <GPS_Math_PolarSt_EN_To_LatLon+0x528>
movsd  (%rbx),%xmm0
xorps  0x9b0(%rip),%xmm0
movlps %xmm0,(%rbx)
movsd  (%r14),%xmm0
call   1080 <GPS_Math_Rad_To_Deg@plt>
movsd  %xmm0,(%r14)
movsd  (%rbx),%xmm0
call   1080 <GPS_Math_Rad_To_Deg@plt>
movsd  %xmm0,(%rbx)
add    $0xc8,%rsp
pop    %rbx
pop    %r14
ret

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

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