#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 asin(double);
double cos(double);
double fabs(double);
double pow(double, double);
double sin(double);
double tan(double);
void GPS_Math_Polycon_EN_To_LatLon(double E, double N, double *phi,
                                   double *lambda, double phi0, double M0,
                                   double E0, double N0, double a, double b) {
  double p2;
  double po2;
  double a2;
  double b2;
  double e2;
  double e4;
  double e6;
  double AM0;
  double c0;
  double c1;
  double c2;
  double c3;
  double j;
  double te4;
  double phi0s2;
  double phi0s4;
  double phi0s6;
  double dx;
  double dy;
  double dxoa;
  double AA;
  double BB;
  double CC = (double)0.;
  double PHIn;
  double PHId;
  double PHIs;
  double PHI;
  double PHIs2;
  double PHIs4;
  double PHIs6;
  double Mn;
  double Mnp;
  double Ma;
  double AAMa;
  double mpb;
  double AAmin;
  double tol;
  double lat;
  phi0 = GPS_Math_Deg_To_Rad(phi0);
  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;
  j = (double)45.0 * e6 / (double)1024.0;
  te4 = (double)3.0 * e4;
  c0 = (double)1.0 - e2 / (double)4.0 - te4 / (double)64.0 -
       (double)5.0 * e6 / (double)256.0;
  c1 = (double)3.0 * e2 / (double)8.0 + te4 / (double)32.0 + j;
  c2 = (double)15.0 * e4 / (double)256.0 + j;
  c3 = (double)35.0 * e6 / (double)3072.0;
  lat = c0 * phi0;
  phi0s2 = c1 * sin((double)2.0 * phi0);
  phi0s4 = c2 * sin((double)4.0 * phi0);
  phi0s6 = c3 * sin((double)6.0 * phi0);
  AM0 = a * (lat - phi0s2 + phi0s4 - phi0s6);
  tol = (double)1.0e-12;
  dx = E - E0;
  dy = N - N0;
  dxoa = dx / a;
  if ((((-AM0 - (double)1.) < dy) && (dy < (-AM0 + (double)1.)))) {
    *phi = (double)0.;
    *lambda = dxoa + M0;
  } else {
    AA = (AM0 + dy) / a;
    BB = dxoa * dxoa + (AA * AA);
    PHIn = AA;
    PHId = (double)1.;
    while (fabs(PHId) > tol) {
      PHIs = sin(PHIn);
      CC = pow((double)1. - e2 * PHIs * PHIs, (double).5) * tan(PHIn);
      PHI = PHIn * c0;
      PHIs2 = c1 * sin((double)2.0 * PHIn);
      PHIs4 = c2 * sin((double)4.0 * PHIn);
      PHIs6 = c3 * sin((double)6.0 * PHIn);
      Mn = a * (PHI - PHIs2 + PHIs4 - PHIs6);
      Mnp = c0 - (double)2. * c1 * cos((double)2. * PHIn) +
            (double)4. * c2 * cos((double)4. * PHIn) -
            (double)6. * c3 * cos((double)6. * PHIn);
      Ma = Mn / a;
      AAMa = AA * Ma;
      mpb = Ma * Ma + BB;
      AAmin = AA - Ma;
      PHId = (AAMa * CC + AAmin - (double).5 * mpb * CC) /
             (e2 * PHIs2 * (mpb - (double)2. * AAMa) / (double)4. * CC +
              AAmin * (CC * Mnp - (double)2. / PHIs2) - Mnp);
      PHIn -= PHId;
    }
    *phi = PHIn;
    if (*phi > po2)
      *phi = po2;
    else if (*phi < -po2)
      *phi = -po2;
    if ((((po2 - (double).00001) < fabs(*phi)) &&
         (fabs(*phi) < (po2 + (double).00001))))
      *lambda = M0;
    else
      *lambda = (asin(dxoa * CC)) / sin(*phi) + M0;
  }
  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_Polycon_EN_To_LatLon>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1f0,%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,-0x108(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  0xe34(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xe1f(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  0xe05(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1218 <GPS_Math_Polycon_EN_To_LatLon+0xa8>
movsd  -0x58(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
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
mulsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x78(%rbp),%xmm0
mulsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0xe1d(%rip),%xmm0
mulsd  -0x88(%rbp),%xmm0
ff
movsd  0xe05(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  0xdd9(%rip),%xmm0
mulsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x78(%rbp),%xmm1
movsd  0xd7f(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xd5b(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  -0xc0(%rbp),%xmm1
ff
movsd  0xdaf(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  0xd97(%rip),%xmm1
mulsd  -0x88(%rbp),%xmm1
ff
movsd  0xd5f(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
movsd  0xd67(%rip),%xmm0
mulsd  -0x78(%rbp),%xmm0
movsd  0xd52(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0xc0(%rbp),%xmm1
ff
movsd  0xd36(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
addsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  0xd0e(%rip),%xmm0
mulsd  -0x80(%rbp),%xmm0
movsd  0xcf9(%rip),%xmm1
divsd  %xmm1,%xmm0
addsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  0xcd5(%rip),%xmm0
mulsd  -0x88(%rbp),%xmm0
ff
movsd  0xcbd(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
mulsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x180(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0x198(%rbp)
ff
movsd  0xc7c(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x198(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0x190(%rbp)
ff
movsd  0xc3b(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x190(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0x188(%rbp)
ff
movsd  0xbfa(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x188(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x180(%rbp),%xmm1
ff
subsd  -0xc8(%rbp),%xmm1
ff
addsd  -0xd0(%rbp),%xmm1
ff
subsd  -0xd8(%rbp),%xmm1
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  0xb98(%rip),%xmm0
movsd  %xmm0,-0x178(%rbp)
ff
movsd  -0x8(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0xe0(%rbp),%xmm0
ff
divsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xb28(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  -0xe8(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    1568 <GPS_Math_Polycon_EN_To_LatLon+0x3f8>
movsd  -0xe8(%rbp),%xmm1
ff
movsd  -0x90(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xae3(%rip),%xmm2
addsd  %xmm2,%xmm0
ucomisd %xmm1,%xmm0
jbe    1568 <GPS_Math_Polycon_EN_To_LatLon+0x3f8>
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
movsd  -0xf0(%rbp),%xmm0
ff
addsd  -0x30(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1b75 <GPS_Math_Polycon_EN_To_LatLon+0xa05>
movsd  -0x90(%rbp),%xmm0
ff
addsd  -0xe8(%rbp),%xmm0
ff
divsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0xf0(%rbp),%xmm0
ff
movsd  -0xf0(%rbp),%xmm2
ff
movsd  -0xf8(%rbp),%xmm1
ff
mulsd  -0xf8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0xf8(%rbp),%xmm0
ff
movsd  %xmm0,-0x110(%rbp)
ff
movsd  0xa4b(%rip),%xmm0
movsd  %xmm0,-0x118(%rbp)
ff
movsd  -0x118(%rbp),%xmm0
ff
movaps 0xacc(%rip),%xmm1
pand   %xmm1,%xmm0
ucomisd -0x178(%rbp),%xmm0
ff
jbe    1a34 <GPS_Math_Polycon_EN_To_LatLon+0x8c4>
movsd  -0x110(%rbp),%xmm0
ff
call   1040 <sin@plt>
movsd  %xmm0,-0x120(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
mulsd  -0x120(%rbp),%xmm0
ff
movsd  -0x120(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0x9d5(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xa51(%rip),%xmm1
call   1090 <pow@plt>
movsd  %xmm0,-0x1e8(%rbp)
ff
movsd  -0x110(%rbp),%xmm0
ff
call   1060 <tan@plt>
movaps %xmm0,%xmm1
movsd  -0x1e8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0x110(%rbp),%xmm0
ff
mulsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x128(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0x1e0(%rbp)
ff
movsd  0x988(%rip),%xmm0
mulsd  -0x110(%rbp),%xmm0
ff
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x1e0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x130(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0x1d8(%rbp)
ff
movsd  0x944(%rip),%xmm0
mulsd  -0x110(%rbp),%xmm0
ff
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x1d8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x138(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0x1d0(%rbp)
ff
movsd  0x900(%rip),%xmm0
mulsd  -0x110(%rbp),%xmm0
ff
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x1d0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x140(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x128(%rbp),%xmm1
ff
subsd  -0x130(%rbp),%xmm1
ff
addsd  -0x138(%rbp),%xmm1
ff
subsd  -0x140(%rbp),%xmm1
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x148(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x1c8(%rbp)
ff
movsd  0x8a3(%rip),%xmm0
mulsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0x1c0(%rbp)
ff
movsd  0x88b(%rip),%xmm0
mulsd  -0x110(%rbp),%xmm0
ff
call   1080 <cos@plt>
movsd  -0x1c8(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x1c0(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x1b8(%rbp)
ff
movsd  0x834(%rip),%xmm0
mulsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0x1b0(%rbp)
ff
movsd  0x81c(%rip),%xmm0
mulsd  -0x110(%rbp),%xmm0
ff
call   1080 <cos@plt>
movsd  -0x1b8(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x1b0(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x1a8(%rbp)
ff
movsd  0x7dc(%rip),%xmm0
mulsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0x1a0(%rbp)
ff
movsd  0x7c4(%rip),%xmm0
mulsd  -0x110(%rbp),%xmm0
ff
call   1080 <cos@plt>
movsd  -0x1a8(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x1a0(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x150(%rbp)
ff
movsd  -0x148(%rbp),%xmm0
ff
divsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x158(%rbp)
ff
movsd  -0xf8(%rbp),%xmm0
ff
mulsd  -0x158(%rbp),%xmm0
ff
movsd  %xmm0,-0x160(%rbp)
ff
movsd  -0x158(%rbp),%xmm0
ff
movsd  -0x158(%rbp),%xmm2
ff
movsd  -0x100(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x168(%rbp)
ff
movsd  -0xf8(%rbp),%xmm0
ff
subsd  -0x158(%rbp),%xmm0
ff
movsd  %xmm0,-0x170(%rbp)
ff
movsd  -0x160(%rbp),%xmm1
ff
movsd  -0x108(%rbp),%xmm2
ff
movsd  -0x170(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0x760(%rip),%xmm0
mulsd  -0x168(%rbp),%xmm0
ff
movsd  -0x108(%rbp),%xmm2
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x78(%rbp),%xmm1
mulsd  -0x130(%rbp),%xmm1
ff
movsd  -0x168(%rbp),%xmm2
ff
movsd  -0x160(%rbp),%xmm3
ff
addsd  %xmm3,%xmm3
subsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm1
movsd  0x690(%rip),%xmm2
divsd  %xmm2,%xmm1
movsd  -0x108(%rbp),%xmm3
ff
movsd  -0x170(%rbp),%xmm2
ff
movsd  -0x108(%rbp),%xmm4
ff
movsd  -0x150(%rbp),%xmm6
ff
movsd  0x66c(%rip),%xmm5
divsd  -0x130(%rbp),%xmm5
ff
movq   %xmm5,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm5
mulsd  %xmm6,%xmm4
addsd  %xmm5,%xmm4
mulsd  %xmm4,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
subsd  -0x150(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x118(%rbp)
ff
movsd  -0x118(%rbp),%xmm1
ff
movsd  -0x110(%rbp),%xmm0
ff
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x110(%rbp)
ff
jmp    15d5 <GPS_Math_Polycon_EN_To_LatLon+0x465>
movsd  -0x110(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
ucomisd -0x60(%rbp),%xmm0
jbe    1a69 <GPS_Math_Polycon_EN_To_LatLon+0x8f9>
movsd  -0x60(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1ac0 <GPS_Math_Polycon_EN_To_LatLon+0x950>
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    1abb <GPS_Math_Polycon_EN_To_LatLon+0x94b>
movsd  -0x60(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1ac0 <GPS_Math_Polycon_EN_To_LatLon+0x950>
movsd  -0x60(%rbp),%xmm1
movsd  0x5cb(%rip),%xmm0
subsd  %xmm0,%xmm1
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
movaps 0x5d0(%rip),%xmm2
pand   %xmm2,%xmm0
ucomisd %xmm1,%xmm0
jbe    1b2a <GPS_Math_Polycon_EN_To_LatLon+0x9ba>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm1
movaps 0x5b3(%rip),%xmm0
pand   %xmm0,%xmm1
movsd  0x58f(%rip),%xmm0
addsd  -0x60(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1b2a <GPS_Math_Polycon_EN_To_LatLon+0x9ba>
movsd  -0x30(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1b70 <GPS_Math_Polycon_EN_To_LatLon+0xa00>
movsd  -0xf0(%rbp),%xmm0
ff
mulsd  -0x108(%rbp),%xmm0
ff
call   1050 <asin@plt>
movsd  %xmm0,-0x1f0(%rbp)
ff
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x1f0(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
addsd  -0x30(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1b75 <GPS_Math_Polycon_EN_To_LatLon+0xa05>
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0x47b(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1ba4 <GPS_Math_Polycon_EN_To_LatLon+0xa34>
movsd  -0x58(%rbp),%xmm1
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movsd  0x4f8(%rip),%xmm0
ucomisd (%rax),%xmm0
jbe    1bcb <GPS_Math_Polycon_EN_To_LatLon+0xa5b>
movsd  -0x58(%rbp),%xmm0
mov    -0x20(%rbp),%rax
addsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0x425(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1bfa <GPS_Math_Polycon_EN_To_LatLon+0xa8a>
mov    -0x20(%rbp),%rax
movsd  0x40f(%rip),%xmm0
movsd  %xmm0,(%rax)
jmp    1c25 <GPS_Math_Polycon_EN_To_LatLon+0xab5>
mov    -0x20(%rbp),%rax
movsd  0x4a2(%rip),%xmm0
ucomisd (%rax),%xmm0
jbe    1c20 <GPS_Math_Polycon_EN_To_LatLon+0xab0>
mov    -0x20(%rbp),%rax
movsd  0x48c(%rip),%xmm0
movsd  %xmm0,(%rax)
jmp    1c25 <GPS_Math_Polycon_EN_To_LatLon+0xab5>
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
call   1070 <GPS_Math_Rad_To_Deg@plt>
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
call   1070 <GPS_Math_Rad_To_Deg@plt>
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0x1f0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GPS_Math_Polycon_EN_To_LatLon>:
push   %r14
push   %rbx
sub    $0x108,%rsp
movsd  %xmm7,0x20(%rsp)
movsd  %xmm6,0x38(%rsp)
movsd  %xmm5,0x40(%rsp)
movsd  %xmm4,0x58(%rsp)
movsd  %xmm3,0x30(%rsp)
mov    %rsi,%r14
mov    %rdi,%rbx
movsd  %xmm1,0x50(%rsp)
movsd  %xmm0,0x48(%rsp)
movaps %xmm2,%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x30(%rsp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  0xe35(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0xe31(%rip),%xmm2
cmpltsd %xmm0,%xmm2
andpd  %xmm2,%xmm1
andnpd %xmm0,%xmm2
orpd   %xmm1,%xmm2
movapd %xmm2,0x60(%rsp)
movsd  0x38(%rsp),%xmm0
mulsd  %xmm0,%xmm0
movsd  0x20(%rsp),%xmm1
mulsd  %xmm1,%xmm1
movapd %xmm0,%xmm2
subsd  %xmm1,%xmm2
divsd  %xmm0,%xmm2
movapd %xmm2,%xmm5
mulsd  %xmm2,%xmm5
movapd %xmm2,%xmm4
mulsd  %xmm5,%xmm4
movsd  0xdea(%rip),%xmm3
mulsd  %xmm2,%xmm3
addsd  0xde6(%rip),%xmm3
unpcklpd %xmm4,%xmm5
movapd 0xe82(%rip),%xmm0
mulpd  %xmm5,%xmm0
movapd 0xe86(%rip),%xmm1
mulpd  %xmm0,%xmm1
subsd  %xmm1,%xmm3
unpckhpd %xmm1,%xmm1
subsd  %xmm1,%xmm3
movsd  0xdbe(%rip),%xmm1
movapd %xmm2,0xb0(%rsp)
mulsd  %xmm2,%xmm1
mulsd  0xdb1(%rip),%xmm1
mulsd  0xdb1(%rip),%xmm0
mulpd  0xe59(%rip),%xmm5
addsd  %xmm1,%xmm0
mulpd  0xe5d(%rip),%xmm5
unpcklpd %xmm5,%xmm0
unpckhpd %xmm5,%xmm5
addpd  %xmm0,%xmm5
movapd %xmm5,0x70(%rsp)
mulsd  0xd8b(%rip),%xmm4
divsd  0xd8b(%rip),%xmm4
movapd %xmm4,0xc0(%rsp)
movsd  %xmm3,0x30(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  %xmm0,%xmm3
movsd  %xmm3,0x8(%rsp)
addsd  %xmm0,%xmm0
call   1040 <sin@plt>
movapd %xmm0,0x20(%rsp)
movsd  0xd5d(%rip),%xmm0
mulsd  0x10(%rsp),%xmm0
call   1040 <sin@plt>
movapd 0x20(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
mulpd  0x70(%rsp),%xmm1
movapd %xmm1,0x20(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  0xd36(%rip),%xmm0
call   1040 <sin@plt>
movapd 0x20(%rsp),%xmm6
movapd 0xc0(%rsp),%xmm4
movsd  0x38(%rsp),%xmm2
movsd  0x48(%rsp),%xmm1
mulsd  %xmm4,%xmm0
movsd  0x8(%rsp),%xmm3
subsd  %xmm6,%xmm3
unpckhpd %xmm6,%xmm6
addsd  %xmm3,%xmm6
subsd  %xmm0,%xmm6
mulsd  %xmm2,%xmm6
subsd  0x58(%rsp),%xmm1
movsd  0x50(%rsp),%xmm5
subsd  0x40(%rsp),%xmm5
divsd  %xmm2,%xmm1
movsd  0xce2(%rip),%xmm0
subsd  %xmm6,%xmm0
movapd %xmm5,%xmm3
ucomisd %xmm0,%xmm5
jbe    13a8 <GPS_Math_Polycon_EN_To_LatLon+0x238>
movsd  0xc8c(%rip),%xmm0
subsd  %xmm6,%xmm0
ucomisd %xmm3,%xmm0
jbe    13a8 <GPS_Math_Polycon_EN_To_LatLon+0x238>
movq   $0x0,(%rbx)
movapd 0x60(%rsp),%xmm5
jmp    16e1 <GPS_Math_Polycon_EN_To_LatLon+0x571>
addsd  %xmm6,%xmm3
divsd  %xmm2,%xmm3
movapd %xmm3,%xmm0
mulsd  %xmm3,%xmm0
movsd  %xmm1,0x48(%rsp)
mulsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x90(%rsp)
movaps 0xd2a(%rip),%xmm0
xorps  0xb0(%rsp),%xmm0
movaps %xmm0,0xf0(%rsp)
movsd  0xc72(%rip),%xmm0
movapd 0x70(%rsp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,0x88(%rsp)
unpckhpd %xmm1,%xmm1
movapd %xmm1,0xe0(%rsp)
mulsd  0xc32(%rip),%xmm1
movapd %xmm1,0xd0(%rsp)
movsd  0xc41(%rip),%xmm0
mulsd  %xmm4,%xmm0
movsd  %xmm0,0x80(%rsp)
movsd  %xmm3,0x50(%rsp)
nopw   0x0(%rax,%rax,1)
movapd %xmm3,0x10(%rsp)
movapd %xmm3,%xmm0
call   1040 <sin@plt>
movapd %xmm0,%xmm1
mulsd  0xf0(%rsp),%xmm1
mulsd  %xmm1,%xmm0
addsd  0xbb0(%rip),%xmm0
movsd  0xc00(%rip),%xmm1
call   1090 <pow@plt>
movsd  %xmm0,0x20(%rsp)
movapd 0x10(%rsp),%xmm0
call   1060 <tan@plt>
mulsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x58(%rsp)
movsd  0x30(%rsp),%xmm0
mulsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
movapd 0x10(%rsp),%xmm0
addsd  %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
call   1040 <sin@plt>
mulsd  0x70(%rsp),%xmm0
movsd  %xmm0,0x40(%rsp)
movapd 0x10(%rsp),%xmm0
mulsd  0xb75(%rip),%xmm0
movsd  %xmm0,0xa8(%rsp)
call   1040 <sin@plt>
mulsd  0xe0(%rsp),%xmm0
movsd  %xmm0,0x98(%rsp)
movapd 0x10(%rsp),%xmm0
mulsd  0xb4f(%rip),%xmm0
movsd  %xmm0,0xa0(%rsp)
call   1040 <sin@plt>
mulsd  0xc0(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
subsd  0x40(%rsp),%xmm1
addsd  0x98(%rsp),%xmm1
subsd  %xmm0,%xmm1
mulsd  0x38(%rsp),%xmm1
movsd  %xmm1,0x20(%rsp)
movsd  0x8(%rsp),%xmm0
call   1080 <cos@plt>
mulsd  0x88(%rsp),%xmm0
addsd  0x30(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xa8(%rsp),%xmm0
call   1080 <cos@plt>
mulsd  0xd0(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xa0(%rsp),%xmm0
call   1080 <cos@plt>
mulsd  0x80(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
movsd  0x20(%rsp),%xmm5
divsd  0x38(%rsp),%xmm5
movsd  0x50(%rsp),%xmm2
movapd %xmm2,%xmm3
mulsd  %xmm5,%xmm3
subsd  %xmm5,%xmm2
mulsd  %xmm5,%xmm5
addsd  0x90(%rsp),%xmm5
movapd %xmm3,%xmm4
movapd %xmm5,%xmm1
addsd  %xmm3,%xmm3
subsd  %xmm3,%xmm5
movapd 0xb0(%rsp),%xmm3
movsd  0x40(%rsp),%xmm6
mulsd  %xmm6,%xmm3
mulsd  %xmm3,%xmm5
movsd  0xa69(%rip),%xmm3
divsd  %xmm6,%xmm3
movsd  0x58(%rsp),%xmm6
mulsd  %xmm6,%xmm4
addsd  %xmm2,%xmm4
mulsd  0xa67(%rip),%xmm1
mulsd  %xmm6,%xmm1
addsd  %xmm4,%xmm1
movapd %xmm6,%xmm4
mulsd  %xmm0,%xmm4
addsd  %xmm3,%xmm4
movapd 0x10(%rsp),%xmm3
mulsd  %xmm2,%xmm4
mulsd  0xa49(%rip),%xmm5
mulsd  %xmm6,%xmm5
addsd  %xmm4,%xmm5
subsd  %xmm0,%xmm5
divsd  %xmm5,%xmm1
subsd  %xmm1,%xmm3
andpd  0xabd(%rip),%xmm1
ucomisd 0xa2d(%rip),%xmm1
ja     1440 <GPS_Math_Polycon_EN_To_LatLon+0x2d0>
movapd %xmm6,%xmm2
movsd  %xmm3,(%rbx)
movsd  0xa1f(%rip),%xmm0
ucomisd %xmm0,%xmm3
ja     1685 <GPS_Math_Polycon_EN_To_LatLon+0x515>
movsd  0xa19(%rip),%xmm0
ucomisd %xmm3,%xmm0
jbe    168d <GPS_Math_Polycon_EN_To_LatLon+0x51d>
movsd  %xmm0,(%rbx)
movapd %xmm0,%xmm3
andpd  0xa7b(%rip),%xmm3
ucomisd 0xa03(%rip),%xmm3
movapd 0x60(%rsp),%xmm5
movsd  0x48(%rsp),%xmm0
jbe    16b9 <GPS_Math_Polycon_EN_To_LatLon+0x549>
movsd  0x9f5(%rip),%xmm1
ucomisd %xmm3,%xmm1
ja     16e5 <GPS_Math_Polycon_EN_To_LatLon+0x575>
mulsd  %xmm2,%xmm0
call   1050 <asin@plt>
movsd  %xmm0,0x10(%rsp)
movsd  (%rbx),%xmm0
call   1040 <sin@plt>
movapd 0x60(%rsp),%xmm5
movsd  0x10(%rsp),%xmm1
divsd  %xmm0,%xmm1
addsd  %xmm1,%xmm5
movsd  0x913(%rip),%xmm0
addsd  %xmm5,%xmm0
movsd  0x90f(%rip),%xmm4
movapd %xmm4,%xmm2
cmpltsd %xmm5,%xmm2
andpd  %xmm2,%xmm0
andnpd %xmm5,%xmm2
orpd   %xmm0,%xmm2
movsd  0x99a(%rip),%xmm1
ucomisd %xmm2,%xmm1
movsd  0x996(%rip),%xmm3
addsd  %xmm2,%xmm3
movapd %xmm2,%xmm0
cmpltsd %xmm1,%xmm0
andpd  %xmm0,%xmm3
andnpd %xmm2,%xmm0
orpd   %xmm3,%xmm0
movapd %xmm0,%xmm2
ja     1745 <GPS_Math_Polycon_EN_To_LatLon+0x5d5>
movapd %xmm5,%xmm2
ucomisd %xmm4,%xmm5
movapd %xmm0,%xmm3
ja     1753 <GPS_Math_Polycon_EN_To_LatLon+0x5e3>
movapd %xmm2,%xmm3
movsd  %xmm3,(%r14)
ucomisd %xmm4,%xmm0
ja     1768 <GPS_Math_Polycon_EN_To_LatLon+0x5f8>
ucomisd %xmm0,%xmm1
movapd %xmm1,%xmm4
jbe    1771 <GPS_Math_Polycon_EN_To_LatLon+0x601>
movsd  %xmm4,(%r14)
movapd %xmm4,%xmm0
call   1070 <GPS_Math_Rad_To_Deg@plt>
movsd  %xmm0,(%r14)
movsd  (%rbx),%xmm0
call   1070 <GPS_Math_Rad_To_Deg@plt>
movsd  %xmm0,(%rbx)
add    $0x108,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @GPS_Math_Polycon_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
%49 = alloca double
%50 = alloca double
%51 = alloca double
%52 = alloca double
%53 = alloca double
%54 = alloca double
%55 = alloca double
%56 = alloca double
%57 = alloca double
%58 = 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* %43
%59 = load double, double* %15
%60 = call double @GPS_Math_Deg_To_Rad(double %59)
store double %60, double* %15
%61 = load double, double* %16
%62 = call double @GPS_Math_Deg_To_Rad(double %61)
store double %62, double* %16
store double 0x401921FB5444261E, double* %21
store double 0x3FF921FB5444261E, double* %22
%63 = load double, double* %16
%64 = fcmp ogt double %63, 0x400921FB5444261E
br i1 %64, label %65, label %69
65: ; preds = %10
%66 = load double, double* %21
%67 = load double, double* %16
%68 = fsub double %67, %66
store double %68, double* %16
br label %69
69: ; preds = %65, %10
%70 = load double, double* %19
%71 = load double, double* %19
%72 = fmul double %70, %71
store double %72, double* %23
%73 = load double, double* %20
%74 = load double, double* %20
%75 = fmul double %73, %74
store double %75, double* %24
%76 = load double, double* %23
%77 = load double, double* %24
%78 = fsub double %76, %77
%79 = load double, double* %23
%80 = fdiv double %78, %79
store double %80, double* %25
%81 = load double, double* %25
%82 = load double, double* %25
%83 = fmul double %81, %82
store double %83, double* %26
%84 = load double, double* %25
%85 = load double, double* %26
%86 = fmul double %84, %85
store double %86, double* %27
%87 = load double, double* %27
%88 = fmul double 4.500000e+01, %87
%89 = fdiv double %88, 1.024000e+03
store double %89, double* %33
%90 = load double, double* %26
%91 = fmul double 3.000000e+00, %90
store double %91, double* %34
%92 = load double, double* %25
%93 = fdiv double %92, 4.000000e+00
%94 = fsub double 1.000000e+00, %93
%95 = load double, double* %34
%96 = fdiv double %95, 6.400000e+01
%97 = fsub double %94, %96
%98 = load double, double* %27
%99 = fmul double 5.000000e+00, %98
%100 = fdiv double %99, 2.560000e+02
%101 = fsub double %97, %100
store double %101, double* %29
%102 = load double, double* %25
%103 = fmul double 3.000000e+00, %102
%104 = fdiv double %103, 8.000000e+00
%105 = load double, double* %34
%106 = fdiv double %105, 3.200000e+01
%107 = fadd double %104, %106
%108 = load double, double* %33
%109 = fadd double %107, %108
store double %109, double* %30
%110 = load double, double* %26
%111 = fmul double 1.500000e+01, %110
%112 = fdiv double %111, 2.560000e+02
%113 = load double, double* %33
%114 = fadd double %112, %113
store double %114, double* %31
%115 = load double, double* %27
%116 = fmul double 3.500000e+01, %115
%117 = fdiv double %116, 3.072000e+03
store double %117, double* %32
%118 = load double, double* %29
%119 = load double, double* %15
%120 = fmul double %118, %119
store double %120, double* %58
%121 = load double, double* %30
%122 = load double, double* %15
%123 = fmul double 2.000000e+00, %122
%124 = call double @sin(double %123)
%125 = fmul double %121, %124
store double %125, double* %35
%126 = load double, double* %31
%127 = load double, double* %15
%128 = fmul double 4.000000e+00, %127
%129 = call double @sin(double %128)
%130 = fmul double %126, %129
store double %130, double* %36
%131 = load double, double* %32
%132 = load double, double* %15
%133 = fmul double 6.000000e+00, %132
%134 = call double @sin(double %133)
%135 = fmul double %131, %134
store double %135, double* %37
%136 = load double, double* %19
%137 = load double, double* %58
%138 = load double, double* %35
%139 = fsub double %137, %138
%140 = load double, double* %36
%141 = fadd double %139, %140
%142 = load double, double* %37
%143 = fsub double %141, %142
%144 = fmul double %136, %143
store double %144, double* %28
store double 0x3D719799812DEA11, double* %57
%145 = load double, double* %11
%146 = load double, double* %17
%147 = fsub double %145, %146
store double %147, double* %38
%148 = load double, double* %12
%149 = load double, double* %18
%150 = fsub double %148, %149
store double %150, double* %39
%151 = load double, double* %38
%152 = load double, double* %19
%153 = fdiv double %151, %152
store double %153, double* %40
%154 = load double, double* %28
%155 = fneg double %154
%156 = fsub double %155, 1.000000e+00
%157 = load double, double* %39
%158 = fcmp olt double %156, %157
br i1 %158, label %159, label %171
159: ; preds = %69
%160 = load double, double* %39
%161 = load double, double* %28
%162 = fneg double %161
%163 = fadd double %162, 1.000000e+00
%164 = fcmp olt double %160, %163
br i1 %164, label %165, label %171
165: ; preds = %159
%166 = load double*, double** %13
store double 0.000000e+00, double* %166
%167 = load double, double* %40
%168 = load double, double* %16
%169 = fadd double %167, %168
%170 = load double*, double** %14
store double %169, double* %170
br label %347
171: ; preds = %159, %69
%172 = load double, double* %28
%173 = load double, double* %39
%174 = fadd double %172, %173
%175 = load double, double* %19
%176 = fdiv double %174, %175
store double %176, double* %41
%177 = load double, double* %40
%178 = load double, double* %40
%179 = load double, double* %41
%180 = load double, double* %41
%181 = fmul double %179, %180
%182 = call double @llvm.fmuladd.f64(double %177, double %178, double %181)
store double %182, double* %42
%183 = load double, double* %41
store double %183, double* %44
store double 1.000000e+00, double* %45
br label %184
184: ; preds = %189, %171
%185 = load double, double* %45
%186 = call double @llvm.fabs.f64(double %185)
%187 = load double, double* %57
%188 = fcmp ogt double %186, %187
br i1 %188, label %189, label %296
189: ; preds = %184
%190 = load double, double* %44
%191 = call double @sin(double %190)
store double %191, double* %46
%192 = load double, double* %25
%193 = load double, double* %46
%194 = fmul double %192, %193
%195 = load double, double* %46
%196 = fneg double %194
%197 = call double @llvm.fmuladd.f64(double %196, double %195, double 1.000000e+00)
%198 = call double @pow(double %197, double 5.000000e-01)
%199 = load double, double* %44
%200 = call double @tan(double %199)
%201 = fmul double %198, %200
store double %201, double* %43
%202 = load double, double* %44
%203 = load double, double* %29
%204 = fmul double %202, %203
store double %204, double* %47
%205 = load double, double* %30
%206 = load double, double* %44
%207 = fmul double 2.000000e+00, %206
%208 = call double @sin(double %207)
%209 = fmul double %205, %208
store double %209, double* %48
%210 = load double, double* %31
%211 = load double, double* %44
%212 = fmul double 4.000000e+00, %211
%213 = call double @sin(double %212)
%214 = fmul double %210, %213
store double %214, double* %49
%215 = load double, double* %32
%216 = load double, double* %44
%217 = fmul double 6.000000e+00, %216
%218 = call double @sin(double %217)
%219 = fmul double %215, %218
store double %219, double* %50
%220 = load double, double* %19
%221 = load double, double* %47
%222 = load double, double* %48
%223 = fsub double %221, %222
%224 = load double, double* %49
%225 = fadd double %223, %224
%226 = load double, double* %50
%227 = fsub double %225, %226
%228 = fmul double %220, %227
store double %228, double* %51
%229 = load double, double* %29
%230 = load double, double* %30
%231 = fmul double 2.000000e+00, %230
%232 = load double, double* %44
%233 = fmul double 2.000000e+00, %232
%234 = call double @cos(double %233)
%235 = fneg double %231
%236 = call double @llvm.fmuladd.f64(double %235, double %234, double %229)
%237 = load double, double* %31
%238 = fmul double 4.000000e+00, %237
%239 = load double, double* %44
%240 = fmul double 4.000000e+00, %239
%241 = call double @cos(double %240)
%242 = call double @llvm.fmuladd.f64(double %238, double %241, double %236)
%243 = load double, double* %32
%244 = fmul double 6.000000e+00, %243
%245 = load double, double* %44
%246 = fmul double 6.000000e+00, %245
%247 = call double @cos(double %246)
%248 = fneg double %244
%249 = call double @llvm.fmuladd.f64(double %248, double %247, double %242)
store double %249, double* %52
%250 = load double, double* %51
%251 = load double, double* %19
%252 = fdiv double %250, %251
store double %252, double* %53
%253 = load double, double* %41
%254 = load double, double* %53
%255 = fmul double %253, %254
store double %255, double* %54
%256 = load double, double* %53
%257 = load double, double* %53
%258 = load double, double* %42
%259 = call double @llvm.fmuladd.f64(double %256, double %257, double %258)
store double %259, double* %55
%260 = load double, double* %41
%261 = load double, double* %53
%262 = fsub double %260, %261
store double %262, double* %56
%263 = load double, double* %54
%264 = load double, double* %43
%265 = load double, double* %56
%266 = call double @llvm.fmuladd.f64(double %263, double %264, double %265)
%267 = load double, double* %55
%268 = fmul double 5.000000e-01, %267
%269 = load double, double* %43
%270 = fneg double %268
%271 = call double @llvm.fmuladd.f64(double %270, double %269, double %266)
%272 = load double, double* %25
%273 = load double, double* %48
%274 = fmul double %272, %273
%275 = load double, double* %55
%276 = load double, double* %54
%277 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %276, double %275)
%278 = fmul double %274, %277
%279 = fdiv double %278, 4.000000e+00
%280 = load double, double* %43
%281 = load double, double* %56
%282 = load double, double* %43
%283 = load double, double* %52
%284 = load double, double* %48
%285 = fdiv double 2.000000e+00, %284
%286 = fneg double %285
%287 = call double @llvm.fmuladd.f64(double %282, double %283, double %286)
%288 = fmul double %281, %287
%289 = call double @llvm.fmuladd.f64(double %279, double %280, double %288)
%290 = load double, double* %52
%291 = fsub double %289, %290
%292 = fdiv double %271, %291
store double %292, double* %45
%293 = load double, double* %45
%294 = load double, double* %44
%295 = fsub double %294, %293
store double %295, double* %44
br label %184
296: ; preds = %184
%297 = load double, double* %44
%298 = load double*, double** %13
store double %297, double* %298
%299 = load double*, double** %13
%300 = load double, double* %299
%301 = load double, double* %22
%302 = fcmp ogt double %300, %301
br i1 %302, label %303, label %306
303: ; preds = %296
%304 = load double, double* %22
%305 = load double*, double** %13
store double %304, double* %305
br label %317
306: ; preds = %296
%307 = load double*, double** %13
%308 = load double, double* %307
%309 = load double, double* %22
%310 = fneg double %309
%311 = fcmp olt double %308, %310
br i1 %311, label %312, label %316
312: ; preds = %306
%313 = load double, double* %22
%314 = fneg double %313
%315 = load double*, double** %13
store double %314, double* %315
br label %316
316: ; preds = %312, %306
br label %317
317: ; preds = %316, %303
%318 = load double, double* %22
%319 = fsub double %318, 1.000000e-05
%320 = load double*, double** %13
%321 = load double, double* %320
%322 = call double @llvm.fabs.f64(double %321)
%323 = fcmp olt double %319, %322
br i1 %323, label %324, label %334
324: ; preds = %317
%325 = load double*, double** %13
%326 = load double, double* %325
%327 = call double @llvm.fabs.f64(double %326)
%328 = load double, double* %22
%329 = fadd double %328, 1.000000e-05
%330 = fcmp olt double %327, %329
br i1 %330, label %331, label %334
331: ; preds = %324
%332 = load double, double* %16
%333 = load double*, double** %14
store double %332, double* %333
br label %346
334: ; preds = %324, %317
%335 = load double, double* %40
%336 = load double, double* %43
%337 = fmul double %335, %336
%338 = call double @asin(double %337)
%339 = load double*, double** %13
%340 = load double, double* %339
%341 = call double @sin(double %340)
%342 = fdiv double %338, %341
%343 = load double, double* %16
%344 = fadd double %342, %343
%345 = load double*, double** %14
store double %344, double* %345
br label %346
346: ; preds = %334, %331
br label %347
347: ; preds = %346, %165
%348 = load double*, double** %14
%349 = load double, double* %348
%350 = fcmp ogt double %349, 0x400921FB5444261E
br i1 %350, label %351, label %356
351: ; preds = %347
%352 = load double, double* %21
%353 = load double*, double** %14
%354 = load double, double* %353
%355 = fsub double %354, %352
store double %355, double* %353
br label %356
356: ; preds = %351, %347
%357 = load double*, double** %14
%358 = load double, double* %357
%359 = fcmp olt double %358, 0xC00921FB5444261E
br i1 %359, label %360, label %365
360: ; preds = %356
%361 = load double, double* %21
%362 = load double*, double** %14
%363 = load double, double* %362
%364 = fadd double %363, %361
store double %364, double* %362
br label %365
365: ; preds = %360, %356
%366 = load double*, double** %14
%367 = load double, double* %366
%368 = fcmp ogt double %367, 0x400921FB5444261E
br i1 %368, label %369, label %371
369: ; preds = %365
%370 = load double*, double** %14
store double 0x400921FB5444261E, double* %370
br label %378
371: ; preds = %365
%372 = load double*, double** %14
%373 = load double, double* %372
%374 = fcmp olt double %373, 0xC00921FB5444261E
br i1 %374, label %375, label %377
375: ; preds = %371
%376 = load double*, double** %14
store double 0xC00921FB5444261E, double* %376
br label %377
377: ; preds = %375, %371
br label %378
378: ; preds = %377, %369
%379 = load double*, double** %14
%380 = load double, double* %379
%381 = call double @GPS_Math_Rad_To_Deg(double %380)
%382 = load double*, double** %14
store double %381, double* %382
%383 = load double*, double** %13
%384 = load double, double* %383
%385 = call double @GPS_Math_Rad_To_Deg(double %384)
%386 = load double*, double** %13
store double %385, double* %386
ret void
}

LLVM IR (-O2):
define void @GPS_Math_Polycon_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 %4)
%12 = tail call double @GPS_Math_Deg_To_Rad(double %5)
%13 = fcmp ogt double %12, 0x400921FB5444261E
%14 = fadd double %12, 0xC01921FB5444261E
%15 = select i1 %13, double %14, double %12
%16 = fmul double %8, %8
%17 = fmul double %9, %9
%18 = fsub double %16, %17
%19 = fdiv double %18, %16
%20 = fmul double %19, %19
%21 = fmul double %19, %20
%22 = fmul double %19, 2.500000e-01
%23 = fsub double 1.000000e+00, %22
%24 = insertelement <2 x double> poison, double %20, i64 0
%25 = insertelement <2 x double> %24, double %21, i64 1
%26 = fmul <2 x double> %25, <double 3.000000e+00, double 5.000000e+00>
%27 = fmul <2 x double> %26, <double 1.562500e-02, double 3.906250e-03>
%28 = extractelement <2 x double> %27, i64 0
%29 = fsub double %23, %28
%30 = extractelement <2 x double> %27, i64 1
%31 = fsub double %29, %30
%32 = fmul double %19, 3.000000e+00
%33 = fmul double %32, 1.250000e-01
%34 = extractelement <2 x double> %26, i64 0
%35 = fmul double %34, 3.125000e-02
%36 = fadd double %33, %35
%37 = fmul <2 x double> %25, <double 1.500000e+01, double 4.500000e+01>
%38 = fmul <2 x double> %37, <double 3.906250e-03, double 0x3F50000000000000>
%39 = insertelement <2 x double> poison, double %36, i64 0
%40 = shufflevector <2 x double> %39, <2 x double> %38, <2 x i32> <i32 0, i32 2>
%41 = shufflevector <2 x double> %38, <2 x double> undef, <2 x i32> <i32 1, i32 1>
%42 = fadd <2 x double> %40, %41
%43 = fmul double %21, 3.500000e+01
%44 = fdiv double %43, 3.072000e+03
%45 = fmul double %31, %11
%46 = fmul double %11, 2.000000e+00
%47 = tail call double @sin(double %46)
%48 = fmul double %11, 4.000000e+00
%49 = tail call double @sin(double %48)
%50 = insertelement <2 x double> poison, double %47, i64 0
%51 = insertelement <2 x double> %50, double %49, i64 1
%52 = fmul <2 x double> %42, %51
%53 = fmul double %11, 6.000000e+00
%54 = tail call double @sin(double %53)
%55 = fmul double %44, %54
%56 = extractelement <2 x double> %52, i64 0
%57 = fsub double %45, %56
%58 = extractelement <2 x double> %52, i64 1
%59 = fadd double %57, %58
%60 = fsub double %59, %55
%61 = fmul double %60, %8
%62 = fsub double %0, %6
%63 = fsub double %1, %7
%64 = fdiv double %62, %8
%65 = fsub double -1.000000e+00, %61
%66 = fcmp olt double %65, %63
%67 = fsub double 1.000000e+00, %61
%68 = fcmp olt double %63, %67
%69 = and i1 %66, %68
br i1 %69, label %70, label %72
70: ; preds = %10
store double 0.000000e+00, double* %2
%71 = fadd double %64, %15
br label %150
72: ; preds = %10
%73 = fadd double %63, %61
%74 = fdiv double %73, %8
%75 = fmul double %74, %74
%76 = tail call double @llvm.fmuladd.f64(double %64, double %64, double %75)
%77 = fneg double %19
%78 = extractelement <2 x double> %42, i64 0
%79 = fmul double %78, -2.000000e+00
%80 = extractelement <2 x double> %42, i64 1
%81 = fmul double %80, 4.000000e+00
%82 = fmul double %44, -6.000000e+00
br label %83
83: ; preds = %72, %83
%84 = phi double [ %74, %72 ], [ %128, %83 ]
%85 = tail call double @sin(double %84)
%86 = fmul double %85, %77
%87 = tail call double @llvm.fmuladd.f64(double %86, double %85, double 1.000000e+00)
%88 = tail call double @pow(double %87, double 5.000000e-01)
%89 = tail call double @tan(double %84)
%90 = fmul double %88, %89
%91 = fmul double %31, %84
%92 = fmul double %84, 2.000000e+00
%93 = tail call double @sin(double %92)
%94 = fmul double %78, %93
%95 = fmul double %84, 4.000000e+00
%96 = tail call double @sin(double %95)
%97 = fmul double %80, %96
%98 = fmul double %84, 6.000000e+00
%99 = tail call double @sin(double %98)
%100 = fmul double %44, %99
%101 = fsub double %91, %94
%102 = fadd double %101, %97
%103 = fsub double %102, %100
%104 = fmul double %103, %8
%105 = tail call double @cos(double %92)
%106 = tail call double @llvm.fmuladd.f64(double %79, double %105, double %31)
%107 = tail call double @cos(double %95)
%108 = tail call double @llvm.fmuladd.f64(double %81, double %107, double %106)
%109 = tail call double @cos(double %98)
%110 = tail call double @llvm.fmuladd.f64(double %82, double %109, double %108)
%111 = fdiv double %104, %8
%112 = fmul double %74, %111
%113 = tail call double @llvm.fmuladd.f64(double %111, double %111, double %76)
%114 = fsub double %74, %111
%115 = tail call double @llvm.fmuladd.f64(double %112, double %90, double %114)
%116 = fmul double %113, -5.000000e-01
%117 = tail call double @llvm.fmuladd.f64(double %116, double %90, double %115)
%118 = fmul double %19, %94
%119 = tail call double @llvm.fmuladd.f64(double %112, double -2.000000e+00, double %113)
%120 = fmul double %118, %119
%121 = fmul double %120, 2.500000e-01
%122 = fdiv double -2.000000e+00, %94
%123 = tail call double @llvm.fmuladd.f64(double %90, double %110, double %122)
%124 = fmul double %114, %123
%125 = tail call double @llvm.fmuladd.f64(double %121, double %90, double %124)
%126 = fsub double %125, %110
%127 = fdiv double %117, %126
%128 = fsub double %84, %127
%129 = tail call double @llvm.fabs.f64(double %127)
%130 = fcmp ogt double %129, 0x3D719799812DEA11
br i1 %130, label %83, label %131
131: ; preds = %83
store double %128, double* %2
%132 = fcmp ogt double %128, 0x3FF921FB5444261E
br i1 %132, label %135, label %133
133: ; preds = %131
%134 = fcmp olt double %128, 0xBFF921FB5444261E
br i1 %134, label %135, label %137
135: ; preds = %133, %131
%136 = phi double [ 0x3FF921FB5444261E, %131 ], [ 0xBFF921FB5444261E, %133 ]
store double %136, double* %2
br label %137
137: ; preds = %135, %133
%138 = phi double [ %128, %133 ], [ %136, %135 ]
%139 = tail call double @llvm.fabs.f64(double %138)
%140 = fcmp ogt double %139, 0x3FF921F0D7E961AC
%141 = fcmp olt double %139, 0x3FF92205D09EEA90
%142 = and i1 %140, %141
br i1 %142, label %150, label %143
143: ; preds = %137
%144 = fmul double %64, %90
%145 = tail call double @asin(double %144)
%146 = load double, double* %2
%147 = tail call double @sin(double %146)
%148 = fdiv double %145, %147
%149 = fadd double %15, %148
br label %150
150: ; preds = %137, %143, %70
%151 = phi double [ %149, %143 ], [ %71, %70 ], [ %15, %137 ]
%152 = fcmp ogt double %151, 0x400921FB5444261E
%153 = fadd double %151, 0xC01921FB5444261E
%154 = select i1 %152, double %153, double %151
%155 = fcmp olt double %154, 0xC00921FB5444261E
%156 = fadd double %154, 0x401921FB5444261E
%157 = select i1 %155, double %156, double %154
%158 = or i1 %152, %155
%159 = select i1 %158, double %157, double %151
store double %159, double* %3
%160 = fcmp ogt double %157, 0x400921FB5444261E
br i1 %160, label %163, label %161
161: ; preds = %150
%162 = fcmp olt double %157, 0xC00921FB5444261E
br i1 %162, label %163, label %165
163: ; preds = %161, %150
%164 = phi double [ 0x400921FB5444261E, %150 ], [ 0xC00921FB5444261E, %161 ]
store double %164, double* %3
br label %165
165: ; preds = %163, %161
%166 = phi double [ %157, %161 ], [ %164, %163 ]
%167 = tail call double @GPS_Math_Rad_To_Deg(double %166)
store double %167, double* %3
%168 = load double, double* %2
%169 = tail call double @GPS_Math_Rad_To_Deg(double %168)
store double %169, double* %2
ret void
}