#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 cos(double);
double pow(double, double);
double sin(double);
double tan(double);
void GPS_Math_Cassini_LatLon_To_EN(double phi, double lambda, double *E,
                                   double *N, 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 om0;
  double A0;
  double A1;
  double A2;
  double A3;
  double j;
  double te4;
  double phi0s2;
  double phi0s4;
  double phi0s6;
  double lat;
  double x;
  double E1;
  double E2;
  double E3;
  double E4;
  double phis;
  double phic;
  double phit;
  double phis2;
  double phis4;
  double phis6;
  double RD;
  double dlam;
  double NN;
  double TT;
  double WW;
  double WW2;
  double WW3;
  double WW4;
  double WW5;
  double CC;
  double MM;
  lambda = GPS_Math_Deg_To_Rad(lambda);
  phi0 = GPS_Math_Deg_To_Rad(phi0);
  phi = GPS_Math_Deg_To_Rad(phi);
  M0 = GPS_Math_Deg_To_Rad(M0);
  p2 = (double)3.141592653589 * (double)2.;
  po2 = (double)3.141592653589 / (double)2.;
  a2 = a * a;
  b2 = b * b;
  e2 = (a2 - b2) / a2;
  e4 = e2 * e2;
  e6 = e2 * e4;
  te4 = (double)3.0 * e4;
  j = (double)45. * e6 / (double)1024.;
  c0 = (double)1.0 - e2 / (double)4. - te4 / (double)64. -
       (double)5. * e6 / (double)256.;
  c1 = (double)3. * e2 / (double)8. + te4 / (double)32. + j;
  c2 = (double)15. * e4 / (double)256. + j;
  c3 = (double)35. * e6 / (double)3072.;
  lat = c0 * phi0;
  phi0s2 = c1 * sin((double)2. * phi0);
  phi0s4 = c2 * sin((double)4. * phi0);
  phi0s6 = c3 * sin((double)6. * phi0);
  AM0 = a * (lat - phi0s2 + phi0s4 - phi0s6);
  om0 = (double)1.0 - e2;
  x = pow(om0, (double)0.5);
  E1 = ((double)1.0 - x) / ((double)1.0 + x);
  E2 = E1 * E1;
  E3 = E1 * E2;
  E4 = E1 * E3;
  A0 = (double)3. * E1 / (double)2. - (double)27. * E3 / (double)32.;
  A1 = (double)21. * E2 / (double)16. - (double)55. * E4 / (double)32.;
  A2 = (double)151. * E3 / (double)96.;
  A3 = (double)1097. * E4 / (double)512.;
  dlam = lambda - M0;
  if (dlam > 3.141592653589)
    dlam -= p2;
  if (dlam < -3.141592653589)
    dlam += p2;
  phis = sin(phi);
  phic = cos(phi);
  phit = tan(phi);
  RD = pow((double)1. - e2 * phis * phis, (double).5);
  NN = a / RD;
  TT = phit * phit;
  WW = dlam * phic;
  WW2 = WW * WW;
  WW3 = WW * WW2;
  WW4 = WW * WW3;
  WW5 = WW * WW4;
  CC = e2 * phic * phic / om0;
  lat = c0 * phi;
  phis2 = c1 * sin((double)2. * phi);
  phis4 = c2 * sin((double)4. * phi);
  phis6 = c3 * sin((double)6. * phi);
  MM = a * (lat - phis2 + phis4 - phis6);
  *E = NN * (WW - (TT * WW3 / (double)6.) -
             ((double)8. - TT + (double)8. * CC) * (TT * WW5 / (double)120.)) +
       E0;
  *N = MM - AM0 +
       NN * phit *
           ((WW2 / (double)2.) +
            ((double)5. - TT + (double)6. * CC) * WW4 / (double)24.) +
       N0;
  return;
}


x86 assembly (clang, -O0):
<GPS_Math_Cassini_LatLon_To_EN>:
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)
movsd  -0x10(%rbp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,-0x10(%rbp)
movsd  -0x28(%rbp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,-0x8(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  0xf01(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xeec(%rip),%xmm0
movsd  %xmm0,-0x60(%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  0xe1c(%rip),%xmm0
mulsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  0xe6f(%rip),%xmm0
mulsd  -0x88(%rbp),%xmm0
ff
movsd  0xe57(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0x78(%rbp),%xmm1
movsd  0xdfe(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xdda(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  -0xe8(%rbp),%xmm1
ff
movsd  0xe16(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  0xdfe(%rip),%xmm1
mulsd  -0x88(%rbp),%xmm1
ff
movsd  0xdd6(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  0xd86(%rip),%xmm0
mulsd  -0x78(%rbp),%xmm0
movsd  0xdc1(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0xe8(%rbp),%xmm1
ff
movsd  0xd35(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
addsd  -0xe0(%rbp),%xmm0
ff
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  0xd85(%rip),%xmm0
mulsd  -0x80(%rbp),%xmm0
movsd  0xd70(%rip),%xmm1
divsd  %xmm1,%xmm0
addsd  -0xe0(%rbp),%xmm0
ff
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  0xd4c(%rip),%xmm0
mulsd  -0x88(%rbp),%xmm0
ff
movsd  0xd34(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
mulsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0x1d0(%rbp)
ff
movsd  0xccb(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x1d0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0x1c8(%rbp)
ff
movsd  0xcba(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x1c8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0x1c0(%rbp)
ff
movsd  0xc79(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x1c0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x108(%rbp),%xmm1
ff
subsd  -0xf0(%rbp),%xmm1
ff
addsd  -0xf8(%rbp),%xmm1
ff
subsd  -0x100(%rbp),%xmm1
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  0xc0f(%rip),%xmm0
subsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0xb8(%rbp),%xmm0
ff
movsd  0xbfa(%rip),%xmm1
call   1070 <pow@plt>
movsd  %xmm0,-0x110(%rbp)
ff
movsd  0xbdd(%rip),%xmm0
subsd  -0x110(%rbp),%xmm0
ff
movsd  0xbcd(%rip),%xmm1
addsd  -0x110(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x118(%rbp)
ff
movsd  -0x118(%rbp),%xmm0
ff
mulsd  -0x118(%rbp),%xmm0
ff
movsd  %xmm0,-0x120(%rbp)
ff
movsd  -0x118(%rbp),%xmm0
ff
mulsd  -0x120(%rbp),%xmm0
ff
movsd  %xmm0,-0x128(%rbp)
ff
movsd  -0x118(%rbp),%xmm0
ff
mulsd  -0x128(%rbp),%xmm0
ff
movsd  %xmm0,-0x130(%rbp)
ff
movsd  0xb61(%rip),%xmm0
mulsd  -0x118(%rbp),%xmm0
ff
movsd  0xb49(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xb35(%rip),%xmm1
mulsd  -0x128(%rbp),%xmm1
ff
movsd  0xb05(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  0xb05(%rip),%xmm0
mulsd  -0x120(%rbp),%xmm0
ff
movsd  0xaed(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xad9(%rip),%xmm1
mulsd  -0x130(%rbp),%xmm1
ff
movsd  0xac1(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  0xaa1(%rip),%xmm0
mulsd  -0x128(%rbp),%xmm0
ff
movsd  0xa89(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  0xa6d(%rip),%xmm0
mulsd  -0x130(%rbp),%xmm0
ff
movsd  0xa55(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x170(%rbp)
ff
movsd  -0x170(%rbp),%xmm0
ff
movsd  0xa1f(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1604 <GPS_Math_Cassini_LatLon_To_EN+0x4b4>
movsd  -0x58(%rbp),%xmm1
movsd  -0x170(%rbp),%xmm0
ff
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x170(%rbp)
ff
movsd  0xacc(%rip),%xmm0
ucomisd -0x170(%rbp),%xmm0
ff
jbe    162f <GPS_Math_Cassini_LatLon_To_EN+0x4df>
movsd  -0x58(%rbp),%xmm0
addsd  -0x170(%rbp),%xmm0
ff
movsd  %xmm0,-0x170(%rbp)
ff
movsd  -0x8(%rbp),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,-0x138(%rbp)
ff
movsd  -0x8(%rbp),%xmm0
call   1060 <cos@plt>
movsd  %xmm0,-0x140(%rbp)
ff
movsd  -0x8(%rbp),%xmm0
call   1050 <tan@plt>
movsd  %xmm0,-0x148(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
mulsd  -0x138(%rbp),%xmm0
ff
movsd  -0x138(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0x9c3(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0x9bf(%rip),%xmm1
call   1070 <pow@plt>
movsd  %xmm0,-0x168(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
divsd  -0x168(%rbp),%xmm0
ff
movsd  %xmm0,-0x178(%rbp)
ff
movsd  -0x148(%rbp),%xmm0
ff
mulsd  -0x148(%rbp),%xmm0
ff
movsd  %xmm0,-0x180(%rbp)
ff
movsd  -0x170(%rbp),%xmm0
ff
mulsd  -0x140(%rbp),%xmm0
ff
movsd  %xmm0,-0x188(%rbp)
ff
movsd  -0x188(%rbp),%xmm0
ff
mulsd  -0x188(%rbp),%xmm0
ff
movsd  %xmm0,-0x190(%rbp)
ff
movsd  -0x188(%rbp),%xmm0
ff
mulsd  -0x190(%rbp),%xmm0
ff
movsd  %xmm0,-0x198(%rbp)
ff
movsd  -0x188(%rbp),%xmm0
ff
mulsd  -0x198(%rbp),%xmm0
ff
movsd  %xmm0,-0x1a0(%rbp)
ff
movsd  -0x188(%rbp),%xmm0
ff
mulsd  -0x1a0(%rbp),%xmm0
ff
movsd  %xmm0,-0x1a8(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
mulsd  -0x140(%rbp),%xmm0
ff
mulsd  -0x140(%rbp),%xmm0
ff
divsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0x1b0(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0x1e8(%rbp)
ff
movsd  0x8a3(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x1e8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x150(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0x1e0(%rbp)
ff
movsd  0x892(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x1e0(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x158(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0x1d8(%rbp)
ff
movsd  0x851(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x1d8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x160(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x108(%rbp),%xmm1
ff
subsd  -0x150(%rbp),%xmm1
ff
addsd  -0x158(%rbp),%xmm1
ff
subsd  -0x160(%rbp),%xmm1
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x1b8(%rbp)
ff
movsd  -0x178(%rbp),%xmm0
ff
movsd  -0x188(%rbp),%xmm1
ff
movsd  -0x180(%rbp),%xmm2
ff
mulsd  -0x198(%rbp),%xmm2
ff
movsd  0x7d7(%rip),%xmm3
divsd  %xmm3,%xmm2
subsd  %xmm2,%xmm1
movsd  0x7f7(%rip),%xmm3
subsd  -0x180(%rbp),%xmm3
ff
movsd  -0x1b0(%rbp),%xmm2
ff
movsd  0x7df(%rip),%xmm4
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
movsd  -0x180(%rbp),%xmm3
ff
mulsd  -0x1a8(%rbp),%xmm3
ff
movsd  0x807(%rip),%xmm4
divsd  %xmm4,%xmm3
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  -0x38(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x1b8(%rbp),%xmm1
ff
subsd  -0x90(%rbp),%xmm1
ff
movsd  -0x178(%rbp),%xmm0
ff
mulsd  -0x148(%rbp),%xmm0
ff
movsd  -0x190(%rbp),%xmm2
ff
movsd  0x707(%rip),%xmm3
divsd  %xmm3,%xmm2
movsd  0x753(%rip),%xmm4
subsd  -0x180(%rbp),%xmm4
ff
movsd  -0x1b0(%rbp),%xmm3
ff
movsd  0x703(%rip),%xmm5
mulsd  %xmm5,%xmm3
addsd  %xmm4,%xmm3
mulsd  -0x1a0(%rbp),%xmm3
ff
movsd  0x75b(%rip),%xmm4
divsd  %xmm4,%xmm3
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0x40(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0x1f0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GPS_Math_Cassini_LatLon_To_EN>:
push   %r14
push   %rbx
sub    $0xe8,%rsp
movsd  %xmm7,0x8(%rsp)
movsd  %xmm6,0x28(%rsp)
movsd  %xmm5,0xb8(%rsp)
movsd  %xmm4,0xb0(%rsp)
movsd  %xmm3,0x20(%rsp)
movsd  %xmm2,0x10(%rsp)
mov    %rsi,%r14
mov    %rdi,%rbx
movsd  %xmm0,0x18(%rsp)
movaps %xmm1,%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movaps %xmm0,0x50(%rsp)
movsd  0x10(%rsp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x18(%rsp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,0x18(%rsp)
movsd  0x20(%rsp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,0x40(%rsp)
movsd  0x28(%rsp),%xmm0
mulsd  %xmm0,%xmm0
movsd  0x8(%rsp),%xmm2
mulsd  %xmm2,%xmm2
movapd %xmm0,%xmm1
subsd  %xmm2,%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
mulsd  %xmm1,%xmm0
movapd %xmm1,%xmm4
movapd %xmm1,%xmm3
mulsd  %xmm0,%xmm4
movsd  0xdf4(%rip),%xmm1
movapd %xmm0,%xmm6
movapd %xmm0,%xmm8
mulsd  %xmm1,%xmm6
movsd  0xde7(%rip),%xmm0
mulsd  %xmm4,%xmm0
mulsd  0xde3(%rip),%xmm0
movsd  0xde3(%rip),%xmm2
mulsd  %xmm3,%xmm2
movapd %xmm3,%xmm5
movsd  %xmm3,0x20(%rsp)
addsd  0xdd5(%rip),%xmm2
movsd  0xdd5(%rip),%xmm3
mulsd  %xmm6,%xmm3
addsd  %xmm2,%xmm3
movapd %xmm3,%xmm7
movapd %xmm4,%xmm2
mulsd  0xdc5(%rip),%xmm2
movsd  0xdc5(%rip),%xmm3
mulsd  %xmm3,%xmm2
mulsd  %xmm5,%xmm1
mulsd  0xdbd(%rip),%xmm1
mulsd  0xdbd(%rip),%xmm6
subsd  %xmm2,%xmm7
movsd  %xmm7,0x8(%rsp)
addsd  %xmm1,%xmm6
mulsd  0xdae(%rip),%xmm8
addsd  %xmm0,%xmm6
movsd  %xmm6,0x68(%rsp)
mulsd  %xmm3,%xmm8
mulsd  0xd9f(%rip),%xmm4
addsd  %xmm0,%xmm8
movsd  %xmm8,0x70(%rsp)
divsd  0xd93(%rip),%xmm4
movsd  %xmm4,0x78(%rsp)
movsd  0x10(%rsp),%xmm0
addsd  %xmm0,%xmm0
call   1040 <sin@plt>
movsd  %xmm0,0x30(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  0xd72(%rip),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,0x38(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  0xd61(%rip),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,0x80(%rsp)
movsd  0xcfb(%rip),%xmm0
subsd  0x20(%rsp),%xmm0
movsd  %xmm0,0xa8(%rsp)
movsd  0xd3c(%rip),%xmm1
call   1070 <pow@plt>
movapd 0x50(%rsp),%xmm2
subsd  0x40(%rsp),%xmm2
movsd  0xd2b(%rip),%xmm0
addsd  %xmm2,%xmm0
movsd  0xd27(%rip),%xmm1
cmpltsd %xmm2,%xmm1
andpd  %xmm1,%xmm0
andnpd %xmm2,%xmm1
orpd   %xmm0,%xmm1
movsd  0xd16(%rip),%xmm0
movapd %xmm1,%xmm2
cmpltsd 0xd11(%rip),%xmm2
addsd  %xmm1,%xmm0
andpd  %xmm2,%xmm0
andnpd %xmm1,%xmm2
orpd   %xmm0,%xmm2
movapd %xmm2,0x50(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  0x8(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
mulsd  0x68(%rsp),%xmm1
subsd  %xmm1,%xmm0
movapd %xmm0,%xmm1
movsd  0x38(%rsp),%xmm0
mulsd  0x70(%rsp),%xmm0
addsd  %xmm1,%xmm0
movsd  0x80(%rsp),%xmm1
mulsd  0x78(%rsp),%xmm1
subsd  %xmm1,%xmm0
mulsd  0x28(%rsp),%xmm0
movsd  %xmm0,0x38(%rsp)
movsd  0x18(%rsp),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,0x40(%rsp)
movsd  0x18(%rsp),%xmm0
call   1060 <cos@plt>
movsd  %xmm0,0x98(%rsp)
movsd  0x18(%rsp),%xmm0
call   1050 <tan@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x40(%rsp),%xmm0
movapd %xmm0,%xmm1
mulsd  0x20(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  0xbe2(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  0xc2e(%rip),%xmm1
call   1070 <pow@plt>
movsd  0x28(%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x30(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  %xmm0,%xmm0
movsd  %xmm0,0xa0(%rsp)
movapd 0x50(%rsp),%xmm0
movsd  0x98(%rsp),%xmm3
mulsd  %xmm3,%xmm0
movapd %xmm0,0x50(%rsp)
movapd %xmm0,%xmm1
mulsd  %xmm0,%xmm1
movapd %xmm1,0x80(%rsp)
movapd %xmm0,%xmm2
mulsd  %xmm1,%xmm2
movapd %xmm2,0xc0(%rsp)
movapd %xmm0,%xmm1
mulsd  %xmm2,%xmm1
movapd %xmm1,0x40(%rsp)
movapd %xmm0,%xmm2
mulsd  %xmm1,%xmm2
movapd %xmm2,0xd0(%rsp)
movsd  0x20(%rsp),%xmm0
mulsd  %xmm3,%xmm0
mulsd  %xmm3,%xmm0
divsd  0xa8(%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0x18(%rsp),%xmm1
movsd  0x8(%rsp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsp)
movapd %xmm1,%xmm0
addsd  %xmm1,%xmm0
call   1040 <sin@plt>
mulsd  0x68(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  0xb3e(%rip),%xmm0
mulsd  0x18(%rsp),%xmm0
call   1040 <sin@plt>
mulsd  0x70(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x18(%rsp),%xmm0
mulsd  0xb1b(%rip),%xmm0
call   1040 <sin@plt>
mulsd  0x78(%rsp),%xmm0
movsd  0x8(%rsp),%xmm7
subsd  %xmm0,%xmm7
mulsd  0x28(%rsp),%xmm7
subsd  0x38(%rsp),%xmm7
movsd  0xa0(%rsp),%xmm3
movapd 0xc0(%rsp),%xmm0
mulsd  %xmm3,%xmm0
movsd  0xadc(%rip),%xmm2
divsd  %xmm2,%xmm0
movapd 0x50(%rsp),%xmm4
subsd  %xmm0,%xmm4
movsd  0xaf6(%rip),%xmm0
movsd  0x20(%rsp),%xmm6
movapd %xmm6,%xmm1
mulsd  %xmm0,%xmm1
subsd  %xmm3,%xmm0
addsd  %xmm1,%xmm0
movapd 0xd0(%rsp),%xmm1
mulsd  %xmm3,%xmm1
movapd %xmm3,%xmm5
divsd  0xacf(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  %xmm4,%xmm1
movsd  0x30(%rsp),%xmm0
mulsd  %xmm0,%xmm1
addsd  0xb0(%rsp),%xmm1
movsd  %xmm1,(%rbx)
mulsd  0x10(%rsp),%xmm0
movapd %xmm0,%xmm3
movapd 0x80(%rsp),%xmm4
mulsd  0xa65(%rip),%xmm4
movsd  0xa15(%rip),%xmm1
subsd  %xmm5,%xmm1
movapd %xmm6,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mulsd  0x40(%rsp),%xmm0
divsd  0xa77(%rip),%xmm0
addsd  %xmm4,%xmm0
mulsd  %xmm3,%xmm0
addsd  %xmm7,%xmm0
addsd  0xb8(%rsp),%xmm0
movsd  %xmm0,(%r14)
add    $0xe8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define void @GPS_Math_Cassini_LatLon_To_EN(double %0, double %1, double* nocapture writeonly %2, double* nocapture writeonly %3, double %4, double %5, double %6, double %7, double %8, double %9) {
%11 = tail call double @GPS_Math_Deg_To_Rad(double %1)
%12 = tail call double @GPS_Math_Deg_To_Rad(double %4)
%13 = tail call double @GPS_Math_Deg_To_Rad(double %0)
%14 = tail call double @GPS_Math_Deg_To_Rad(double %5)
%15 = fmul double %8, %8
%16 = fmul double %9, %9
%17 = fsub double %15, %16
%18 = fdiv double %17, %15
%19 = fmul double %18, %18
%20 = fmul double %18, %19
%21 = fmul double %19, 3.000000e+00
%22 = fmul double %20, 4.500000e+01
%23 = fmul double %22, 0x3F50000000000000
%24 = fmul double %18, 2.500000e-01
%25 = fsub double 1.000000e+00, %24
%26 = fmul double %21, 1.562500e-02
%27 = fsub double %25, %26
%28 = fmul double %20, 5.000000e+00
%29 = fmul double %28, 3.906250e-03
%30 = fsub double %27, %29
%31 = fmul double %18, 3.000000e+00
%32 = fmul double %31, 1.250000e-01
%33 = fmul double %21, 3.125000e-02
%34 = fadd double %32, %33
%35 = fadd double %34, %23
%36 = fmul double %19, 1.500000e+01
%37 = fmul double %36, 3.906250e-03
%38 = fadd double %37, %23
%39 = fmul double %20, 3.500000e+01
%40 = fdiv double %39, 3.072000e+03
%41 = fmul double %12, 2.000000e+00
%42 = tail call double @sin(double %41)
%43 = fmul double %12, 4.000000e+00
%44 = tail call double @sin(double %43)
%45 = fmul double %12, 6.000000e+00
%46 = tail call double @sin(double %45)
%47 = fsub double 1.000000e+00, %18
%48 = tail call double @pow(double %47, double 5.000000e-01)
%49 = fsub double %11, %14
%50 = fcmp ogt double %49, 0x400921FB5444261E
%51 = fadd double %49, 0xC01921FB5444261E
%52 = select i1 %50, double %51, double %49
%53 = fcmp olt double %52, 0xC00921FB5444261E
%54 = fadd double %52, 0x401921FB5444261E
%55 = select i1 %53, double %54, double %52
%56 = fmul double %30, %12
%57 = fmul double %35, %42
%58 = fsub double %56, %57
%59 = fmul double %38, %44
%60 = fadd double %58, %59
%61 = fmul double %40, %46
%62 = fsub double %60, %61
%63 = fmul double %62, %8
%64 = tail call double @sin(double %13)
%65 = tail call double @cos(double %13)
%66 = tail call double @tan(double %13)
%67 = fneg double %18
%68 = fmul double %64, %67
%69 = tail call double @llvm.fmuladd.f64(double %68, double %64, double 1.000000e+00)
%70 = tail call double @pow(double %69, double 5.000000e-01)
%71 = fdiv double %8, %70
%72 = fmul double %66, %66
%73 = fmul double %55, %65
%74 = fmul double %73, %73
%75 = fmul double %73, %74
%76 = fmul double %73, %75
%77 = fmul double %73, %76
%78 = fmul double %18, %65
%79 = fmul double %65, %78
%80 = fdiv double %79, %47
%81 = fmul double %30, %13
%82 = fmul double %13, 2.000000e+00
%83 = tail call double @sin(double %82)
%84 = fmul double %35, %83
%85 = fmul double %13, 4.000000e+00
%86 = tail call double @sin(double %85)
%87 = fmul double %38, %86
%88 = fmul double %13, 6.000000e+00
%89 = tail call double @sin(double %88)
%90 = fmul double %40, %89
%91 = fsub double %81, %84
%92 = fadd double %91, %87
%93 = fsub double %92, %90
%94 = fmul double %93, %8
%95 = fmul double %72, %75
%96 = fdiv double %95, 6.000000e+00
%97 = fsub double %73, %96
%98 = fsub double 8.000000e+00, %72
%99 = tail call double @llvm.fmuladd.f64(double %80, double 8.000000e+00, double %98)
%100 = fmul double %72, %77
%101 = fdiv double %100, 1.200000e+02
%102 = fneg double %99
%103 = tail call double @llvm.fmuladd.f64(double %102, double %101, double %97)
%104 = tail call double @llvm.fmuladd.f64(double %71, double %103, double %6)
store double %104, double* %2
%105 = fsub double %94, %63
%106 = fmul double %66, %71
%107 = fmul double %74, 5.000000e-01
%108 = fsub double 5.000000e+00, %72
%109 = tail call double @llvm.fmuladd.f64(double %80, double 6.000000e+00, double %108)
%110 = fmul double %109, %76
%111 = fdiv double %110, 2.400000e+01
%112 = fadd double %107, %111
%113 = tail call double @llvm.fmuladd.f64(double %106, double %112, double %105)
%114 = fadd double %113, %7
store double %114, double* %3
ret void
}