#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 fabs(double);
double log(double);
double pow(double, double);
double sin(double);
double tan(double);
void GPS_Math_LambertCC_LatLon_To_EN(double phi, double lambda, double *E,
                                     double *N, double phi1, double phi2,
                                     double phi0, double M0, double E0,
                                     double N0, double a, double b) {
  double po2;
  double po4;
  double a2;
  double b2;
  double phi0s;
  double e;
  double esq;
  double ed2;
  double ess;
  double t0;
  double t1;
  double t2;
  double m1;
  double m2;
  double phi1s;
  double phi1c;
  double phi2s;
  double phi2c;
  double n;
  double F;
  double Fa;
  double rho;
  double rho0;
  double phis;
  double t;
  double theta;
  double dphi;
  phi = GPS_Math_Deg_To_Rad(phi);
  phi0 = GPS_Math_Deg_To_Rad(phi0);
  phi1 = GPS_Math_Deg_To_Rad(phi1);
  phi2 = GPS_Math_Deg_To_Rad(phi2);
  lambda = GPS_Math_Deg_To_Rad(lambda);
  M0 = GPS_Math_Deg_To_Rad(M0);
  po2 = (double)3.141592653589 / (double)2.0;
  po4 = (double)3.141592653589 / (double)4.0;
  a2 = a * a;
  b2 = b * b;
  esq = (a2 - b2) / a2;
  e = pow(esq, (double)0.5);
  ed2 = e / (double)2.0;
  phi0s = sin(phi0);
  ess = e * phi0s;
  t0 = tan(po4 - phi0 / (double)2.0) /
       pow(((double)1.0 - ess) / ((double)1.0 + ess), ed2);
  phi1s = sin(phi1);
  phi1c = cos(phi1);
  ess = e * phi1s;
  m1 = phi1c / pow(((double)1.0 - ess * ess), (double)0.5);
  t1 = tan(po4 - phi1 / (double)2.0) /
       pow(((double)1.0 - ess) / ((double)1.0 + ess), ed2);
  if (fabs(phi1 - phi2) > 1.0e-10) {
    phi2s = sin(phi2);
    phi2c = cos(phi2);
    ess = e * phi2s;
    m2 = phi2c / pow(((double)1.0 - ess * ess), (double)0.5);
    t2 = tan(po4 - phi2 / (double)2.0) /
         pow(((double)1.0 - ess) / ((double)1.0 + ess), ed2);
    n = log(m1 / m2) / log(t1 / t2);
  } else
    n = phi1s;
  F = m1 / (n * pow(t1, n));
  Fa = F * a;
  rho0 = pow(t0, n) * Fa;
  if (fabs(fabs(phi) - po2) > 1.0e-10) {
    phis = sin(phi);
    ess = e * phis;
    t = tan(po4 - phi / (double)2.0) /
        pow(((double)1.0 - ess) / ((double)1.0 + ess), ed2);
    rho = pow(t, n) * Fa;
  } else {
    if ((phi * n) <= (double)0.0)
      return;
    rho = (double)0.0;
  }
  dphi = lambda - M0;
  if (dphi > 3.141592653589)
    dphi -= (double)3.141592653589 * (double)2.0;
  if (dphi < -3.141592653589)
    dphi += (double)3.141592653589 * (double)2.0;
  theta = dphi * n;
  *E = rho * sin(theta) + E0;
  *N = rho0 - rho * cos(theta) + N0;
  return;
}


x86 assembly (clang, -O0):
<GPS_Math_LambertCC_LatLon_To_EN>:
push   %rbp
mov    %rsp,%rbp
sub    $0x190,%rsp
movsd  0x18(%rbp),%xmm8
movsd  0x10(%rbp),%xmm8
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  -0x8(%rbp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,-0x8(%rbp)
movsd  -0x38(%rbp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,-0x38(%rbp)
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  -0x10(%rbp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,-0x10(%rbp)
movsd  -0x40(%rbp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  0xe1f(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xe0a(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0x10(%rbp),%xmm0
mulsd  0x10(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  0x18(%rbp),%xmm0
mulsd  0x18(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x68(%rbp),%xmm0
subsd  -0x70(%rbp),%xmm0
divsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
movsd  0xdb8(%rip),%xmm1
call   1080 <pow@plt>
movsd  %xmm0,-0x80(%rbp)
movsd  -0x80(%rbp),%xmm0
movsd  0xd99(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,-0x78(%rbp)
movsd  -0x80(%rbp),%xmm0
mulsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  0xd5a(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
call   1050 <tan@plt>
movsd  %xmm0,-0x140(%rbp)
ff
movsd  0xd35(%rip),%xmm0
subsd  -0x98(%rbp),%xmm0
ff
movsd  0xd25(%rip),%xmm1
addsd  -0x98(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  -0x90(%rbp),%xmm1
ff
call   1080 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x140(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
call   1060 <cos@plt>
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
mulsd  -0xc8(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0xd0(%rbp),%xmm0
ff
movsd  %xmm0,-0x138(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
movsd  -0x98(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xc79(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xc7d(%rip),%xmm1
call   1080 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x138(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  0xc47(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
call   1050 <tan@plt>
movsd  %xmm0,-0x130(%rbp)
ff
movsd  0xc22(%rip),%xmm0
subsd  -0x98(%rbp),%xmm0
ff
movsd  0xc12(%rip),%xmm1
addsd  -0x98(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  -0x90(%rbp),%xmm1
ff
call   1080 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x130(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movaps 0xc19(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0xbbd(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    15ae <GPS_Math_LambertCC_LatLon_To_EN+0x44e>
movsd  -0x30(%rbp),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
call   1060 <cos@plt>
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
mulsd  -0xd8(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0xe0(%rbp),%xmm0
ff
movsd  %xmm0,-0x158(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
movsd  -0x98(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xb3f(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xb43(%rip),%xmm1
call   1080 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x158(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
movsd  0xb0d(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
call   1050 <tan@plt>
movsd  %xmm0,-0x150(%rbp)
ff
movsd  0xae8(%rip),%xmm0
subsd  -0x98(%rbp),%xmm0
ff
movsd  0xad8(%rip),%xmm1
addsd  -0x98(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  -0x90(%rbp),%xmm1
ff
call   1080 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x150(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0xb8(%rbp),%xmm0
ff
divsd  -0xc0(%rbp),%xmm0
ff
call   1070 <log@plt>
movsd  %xmm0,-0x148(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
divsd  -0xb0(%rbp),%xmm0
ff
call   1070 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x148(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
jmp    15be <GPS_Math_LambertCC_LatLon_To_EN+0x45e>
movsd  -0xc8(%rbp),%xmm0
ff
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0x160(%rbp)
ff
movsd  -0xe8(%rbp),%xmm0
ff
movsd  %xmm0,-0x168(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
movsd  -0xe8(%rbp),%xmm1
ff
call   1080 <pow@plt>
movsd  -0x168(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x160(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0xf0(%rbp),%xmm0
ff
mulsd  0x10(%rbp),%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
movsd  -0xe8(%rbp),%xmm1
ff
call   1080 <pow@plt>
mulsd  -0xf8(%rbp),%xmm0
ff
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0x8(%rbp),%xmm0
movaps 0x9f4(%rip),%xmm1
pand   %xmm1,%xmm0
subsd  -0x58(%rbp),%xmm0
movaps 0x9e4(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0x988(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1742 <GPS_Math_LambertCC_LatLon_To_EN+0x5e2>
movsd  -0x8(%rbp),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,-0x110(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
mulsd  -0x110(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm1
movsd  0x955(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
call   1050 <tan@plt>
movsd  %xmm0,-0x170(%rbp)
ff
movsd  0x930(%rip),%xmm0
subsd  -0x98(%rbp),%xmm0
ff
movsd  0x920(%rip),%xmm1
addsd  -0x98(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  -0x90(%rbp),%xmm1
ff
call   1080 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x170(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x118(%rbp)
ff
movsd  -0x118(%rbp),%xmm0
ff
movsd  -0xe8(%rbp),%xmm1
ff
call   1080 <pow@plt>
mulsd  -0xf8(%rbp),%xmm0
ff
movsd  %xmm0,-0x100(%rbp)
ff
jmp    176c <GPS_Math_LambertCC_LatLon_To_EN+0x60c>
movsd  -0x8(%rbp),%xmm1
mulsd  -0xe8(%rbp),%xmm1
ff
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
jb     1761 <GPS_Math_LambertCC_LatLon_To_EN+0x601>
jmp    18a3 <GPS_Math_LambertCC_LatLon_To_EN+0x743>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x128(%rbp)
ff
movsd  -0x128(%rbp),%xmm0
ff
movsd  0x8a2(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    17b4 <GPS_Math_LambertCC_LatLon_To_EN+0x654>
movsd  -0x128(%rbp),%xmm0
ff
movsd  0x890(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x128(%rbp)
ff
movsd  0x884(%rip),%xmm0
ucomisd -0x128(%rbp),%xmm0
ff
jbe    17e2 <GPS_Math_LambertCC_LatLon_To_EN+0x682>
movsd  0x866(%rip),%xmm0
addsd  -0x128(%rbp),%xmm0
ff
movsd  %xmm0,-0x128(%rbp)
ff
movsd  -0x128(%rbp),%xmm0
ff
mulsd  -0xe8(%rbp),%xmm0
ff
movsd  %xmm0,-0x120(%rbp)
ff
movsd  -0x100(%rbp),%xmm0
ff
movsd  %xmm0,-0x188(%rbp)
ff
movsd  -0x120(%rbp),%xmm0
ff
call   1040 <sin@plt>
movaps %xmm0,%xmm2
movsd  -0x188(%rbp),%xmm0
ff
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x108(%rbp),%xmm0
ff
movsd  %xmm0,-0x180(%rbp)
ff
movsd  -0x100(%rbp),%xmm0
ff
movsd  %xmm0,-0x178(%rbp)
ff
movsd  -0x120(%rbp),%xmm0
ff
call   1060 <cos@plt>
movsd  -0x180(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x178(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0x50(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0x190,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GPS_Math_LambertCC_LatLon_To_EN>:
push   %r14
push   %rbx
sub    $0xa8,%rsp
movsd  %xmm7,0x78(%rsp)
movsd  %xmm6,0x70(%rsp)
movsd  %xmm5,0x8(%rsp)
movsd  %xmm4,0x10(%rsp)
movsd  %xmm3,0x28(%rsp)
movsd  %xmm2,0x30(%rsp)
mov    %rsi,%r14
mov    %rdi,%rbx
movsd  %xmm1,(%rsp)
call   1030 <GPS_Math_Deg_To_Rad@plt>
movaps %xmm0,0x80(%rsp)
movsd  0x10(%rsp),%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>
movaps %xmm0,0x30(%rsp)
movsd  0x28(%rsp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,0x58(%rsp)
movsd  (%rsp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movaps %xmm0,0x90(%rsp)
movsd  0x8(%rsp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,0x68(%rsp)
movsd  0xc0(%rsp),%xmm1
mulsd  %xmm1,%xmm1
movsd  0xc8(%rsp),%xmm2
mulsd  %xmm2,%xmm2
movapd %xmm1,%xmm0
subsd  %xmm2,%xmm0
divsd  %xmm1,%xmm0
movsd  0xdd7(%rip),%xmm1
call   1080 <pow@plt>
movsd  %xmm0,(%rsp)
movapd %xmm0,%xmm1
mulsd  0xdc1(%rip),%xmm1
movsd  %xmm1,0x50(%rsp)
movsd  0x10(%rsp),%xmm0
call   1040 <sin@plt>
mulsd  (%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm1
mulsd  0xd97(%rip),%xmm1
movsd  0xd97(%rip),%xmm0
subsd  %xmm1,%xmm0
call   1050 <tan@plt>
movsd  %xmm0,0x60(%rsp)
movsd  0xd88(%rip),%xmm1
movapd %xmm1,%xmm0
movsd  0x8(%rsp),%xmm2
subsd  %xmm2,%xmm0
addsd  %xmm1,%xmm2
divsd  %xmm2,%xmm0
movsd  0x50(%rsp),%xmm1
call   1080 <pow@plt>
movsd  0x60(%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x60(%rsp)
movaps 0x30(%rsp),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,0x10(%rsp)
movaps 0x30(%rsp),%xmm0
call   1060 <cos@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm1
mulsd  (%rsp),%xmm1
movsd  %xmm1,0x48(%rsp)
mulsd  %xmm1,%xmm1
movsd  0xd1a(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  0xcfe(%rip),%xmm1
call   1080 <pow@plt>
movsd  0x8(%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movapd 0x30(%rsp),%xmm1
mulsd  0xcdb(%rip),%xmm1
movsd  0xcdb(%rip),%xmm0
subsd  %xmm1,%xmm0
call   1050 <tan@plt>
movsd  %xmm0,0x28(%rsp)
movsd  0xccc(%rip),%xmm1
movapd %xmm1,%xmm0
movsd  0x48(%rsp),%xmm2
subsd  %xmm2,%xmm0
addsd  %xmm1,%xmm2
divsd  %xmm2,%xmm0
movsd  0x50(%rsp),%xmm1
call   1080 <pow@plt>
movsd  0x58(%rsp),%xmm3
movapd %xmm3,%xmm1
movapd 0x30(%rsp),%xmm2
subsd  %xmm3,%xmm2
andpd  0xccf(%rip),%xmm2
movsd  0x28(%rsp),%xmm3
divsd  %xmm0,%xmm3
movsd  %xmm3,0x28(%rsp)
ucomisd 0xc7f(%rip),%xmm2
jbe    1493 <GPS_Math_LambertCC_LatLon_To_EN+0x333>
movapd %xmm1,%xmm0
call   1040 <sin@plt>
movsd  %xmm0,0x48(%rsp)
movsd  0x58(%rsp),%xmm0
call   1060 <cos@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x48(%rsp),%xmm1
mulsd  (%rsp),%xmm1
movsd  %xmm1,0x48(%rsp)
mulsd  %xmm1,%xmm1
movsd  0xc34(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  0xc18(%rip),%xmm1
call   1080 <pow@plt>
movsd  0x10(%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0x58(%rsp),%xmm1
mulsd  0xbf5(%rip),%xmm1
movsd  0xbf5(%rip),%xmm0
subsd  %xmm1,%xmm0
call   1050 <tan@plt>
movsd  %xmm0,0x30(%rsp)
movsd  0xbe6(%rip),%xmm2
movapd %xmm2,%xmm0
movsd  0x48(%rsp),%xmm1
subsd  %xmm1,%xmm0
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  0x50(%rsp),%xmm1
call   1080 <pow@plt>
movsd  0x30(%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x30(%rsp)
movsd  0x8(%rsp),%xmm0
divsd  0x10(%rsp),%xmm0
call   1070 <log@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x28(%rsp),%xmm0
divsd  0x30(%rsp),%xmm0
call   1070 <log@plt>
movsd  0x10(%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0x28(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
call   1080 <pow@plt>
movsd  0x10(%rsp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0x8(%rsp),%xmm2
divsd  %xmm0,%xmm2
mulsd  0xc0(%rsp),%xmm2
movsd  %xmm2,0x8(%rsp)
movsd  0x60(%rsp),%xmm0
call   1080 <pow@plt>
movsd  %xmm0,0x30(%rsp)
movapd 0xb70(%rip),%xmm2
movapd 0x80(%rsp),%xmm0
movapd %xmm0,%xmm1
andpd  %xmm2,%xmm1
addsd  0xb27(%rip),%xmm1
andpd  %xmm2,%xmm1
ucomisd 0xb13(%rip),%xmm1
jbe    1593 <GPS_Math_LambertCC_LatLon_To_EN+0x433>
call   1040 <sin@plt>
movsd  (%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,(%rsp)
movapd 0x80(%rsp),%xmm0
mulsd  0xaf9(%rip),%xmm0
addsd  0xad1(%rip),%xmm0
call   1050 <tan@plt>
movsd  %xmm0,0x28(%rsp)
movsd  0xac6(%rip),%xmm1
movapd %xmm1,%xmm0
movsd  (%rsp),%xmm2
subsd  %xmm2,%xmm0
addsd  %xmm1,%xmm2
divsd  %xmm2,%xmm0
movsd  0x50(%rsp),%xmm1
call   1080 <pow@plt>
movsd  0x28(%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
movsd  0x10(%rsp),%xmm1
call   1080 <pow@plt>
movapd %xmm0,%xmm1
movsd  0x8(%rsp),%xmm0
mulsd  %xmm0,%xmm1
jmp    15ad <GPS_Math_LambertCC_LatLon_To_EN+0x44d>
mulsd  0x10(%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm0,%xmm1
movsd  0x8(%rsp),%xmm0
jae    1660 <GPS_Math_LambertCC_LatLon_To_EN+0x500>
movsd  %xmm1,(%rsp)
movsd  0x30(%rsp),%xmm2
mulsd  %xmm0,%xmm2
movsd  %xmm2,0x30(%rsp)
movapd 0x90(%rsp),%xmm2
subsd  0x68(%rsp),%xmm2
movsd  0xa57(%rip),%xmm0
addsd  %xmm2,%xmm0
movsd  0xa53(%rip),%xmm1
cmpltsd %xmm2,%xmm1
andpd  %xmm1,%xmm0
andnpd %xmm2,%xmm1
orpd   %xmm0,%xmm1
movsd  0xa42(%rip),%xmm2
addsd  %xmm1,%xmm2
movapd %xmm1,%xmm0
cmpltsd 0xa39(%rip),%xmm0
andpd  %xmm0,%xmm2
andnpd %xmm1,%xmm0
orpd   %xmm2,%xmm0
mulsd  0x10(%rsp),%xmm0
movapd %xmm0,0x10(%rsp)
call   1040 <sin@plt>
mulsd  (%rsp),%xmm0
addsd  0x70(%rsp),%xmm0
movsd  %xmm0,(%rbx)
movapd 0x10(%rsp),%xmm0
call   1060 <cos@plt>
mulsd  (%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
subsd  %xmm0,%xmm1
addsd  0x78(%rsp),%xmm1
movsd  %xmm1,(%r14)
add    $0xa8,%rsp
pop    %rbx
pop    %r14
ret

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

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