#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_Polycon_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 j;
  double te4;
  double phi0s2;
  double phi0s4;
  double phi0s6;
  double phis;
  double phis2;
  double phis4;
  double phis6;
  double dlam;
  double NN;
  double NNot;
  double MM;
  double EE;
  double lat;
  lambda = GPS_Math_Deg_To_Rad(lambda);
  phi = GPS_Math_Deg_To_Rad(phi);
  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);
  dlam = lambda - M0;
  if (dlam > 3.141592653589)
    dlam -= p2;
  if (dlam < -3.141592653589)
    dlam += p2;
  phis = sin(phi);
  if (!phi) {
    *E = a * dlam + E0;
    *N = -AM0 + N0;
  } else {
    NN = a / pow((double)1. - e2 * phis * phis, (double).5);
    NNot = NN / tan(phi);
    lat = c0 * phi;
    phis2 = c1 * sin((double)2.0 * phi);
    phis4 = c2 * sin((double)4.0 * phi);
    phis6 = c3 * sin((double)6.0 * phi);
    MM = a * (lat - phis2 + phis4 - phis6);
    EE = dlam * phis;
    *E = NNot * sin(EE) + E0;
    *N = MM - AM0 + NNot * ((double)1. - cos(EE)) + N0;
  }
  return;
}


x86 assembly (clang, -O0):
<GPS_Math_Polycon_LatLon_To_EN>:
push   %rbp
mov    %rsp,%rbp
sub    $0x180,%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  -0x8(%rbp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,-0x8(%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  0xe41(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xe2c(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  0xe12(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    120b <GPS_Math_Polycon_LatLon_To_EN+0xbb>
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  0xe22(%rip),%xmm0
mulsd  -0x88(%rbp),%xmm0
ff
movsd  0xe0a(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  0xdd6(%rip),%xmm0
mulsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x78(%rbp),%xmm1
movsd  0xd7c(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xdc8(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  -0xc0(%rbp),%xmm1
ff
movsd  0xdac(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  0xd94(%rip),%xmm1
mulsd  -0x88(%rbp),%xmm1
ff
movsd  0xd5c(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  0xd64(%rip),%xmm0
mulsd  -0x78(%rbp),%xmm0
movsd  0xd4f(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0xc0(%rbp),%xmm1
ff
movsd  0xd33(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
addsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  0xd0b(%rip),%xmm0
mulsd  -0x80(%rbp),%xmm0
movsd  0xcf6(%rip),%xmm1
divsd  %xmm1,%xmm0
addsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  0xcd2(%rip),%xmm0
mulsd  -0x88(%rbp),%xmm0
ff
movsd  0xcba(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
mulsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x128(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0x140(%rbp)
ff
movsd  0xc79(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x140(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0x138(%rbp)
ff
movsd  0xc38(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x138(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0x130(%rbp)
ff
movsd  0xbf7(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x130(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x128(%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  -0x10(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0x100(%rbp),%xmm0
ff
movsd  0xb6b(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    14b8 <GPS_Math_Polycon_LatLon_To_EN+0x368>
movsd  -0x58(%rbp),%xmm1
movsd  -0x100(%rbp),%xmm0
ff
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movsd  0xbd0(%rip),%xmm0
ucomisd -0x100(%rbp),%xmm0
ff
jbe    14e3 <GPS_Math_Polycon_LatLon_To_EN+0x393>
movsd  -0x58(%rbp),%xmm0
addsd  -0x100(%rbp),%xmm0
ff
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0x8(%rbp),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1560 <GPS_Math_Polycon_LatLon_To_EN+0x410>
jp     1560 <GPS_Math_Polycon_LatLon_To_EN+0x410>
movsd  -0x48(%rbp),%xmm0
movsd  -0x100(%rbp),%xmm2
ff
movsd  -0x38(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x90(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
addsd  -0x40(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    17ad <GPS_Math_Polycon_LatLon_To_EN+0x65d>
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x180(%rbp)
ff
movsd  -0x78(%rbp),%xmm0
mulsd  -0xe0(%rbp),%xmm0
ff
movsd  -0xe0(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xad3(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xae7(%rip),%xmm1
call   1070 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x180(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0x108(%rbp),%xmm0
ff
movsd  %xmm0,-0x178(%rbp)
ff
movsd  -0x8(%rbp),%xmm0
call   1050 <tan@plt>
movaps %xmm0,%xmm1
movsd  -0x178(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x110(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x128(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0x170(%rbp)
ff
movsd  0x9fd(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x170(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0x168(%rbp)
ff
movsd  0x9bc(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x168(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0x160(%rbp)
ff
movsd  0x97b(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x160(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x128(%rbp),%xmm1
ff
subsd  -0xe8(%rbp),%xmm1
ff
addsd  -0xf0(%rbp),%xmm1
ff
subsd  -0xf8(%rbp),%xmm1
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x118(%rbp)
ff
movsd  -0x100(%rbp),%xmm0
ff
mulsd  -0xe0(%rbp),%xmm0
ff
movsd  %xmm0,-0x120(%rbp)
ff
movsd  -0x110(%rbp),%xmm0
ff
movsd  %xmm0,-0x158(%rbp)
ff
movsd  -0x120(%rbp),%xmm0
ff
call   1040 <sin@plt>
movaps %xmm0,%xmm2
movsd  -0x158(%rbp),%xmm0
ff
movsd  -0x38(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x118(%rbp),%xmm0
ff
subsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x150(%rbp)
ff
movsd  -0x110(%rbp),%xmm0
ff
movsd  %xmm0,-0x148(%rbp)
ff
movsd  -0x120(%rbp),%xmm0
ff
call   1060 <cos@plt>
movsd  -0x150(%rbp),%xmm1
ff
movaps %xmm0,%xmm3
movsd  -0x148(%rbp),%xmm0
ff
movsd  0x8e4(%rip),%xmm2
subsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0x40(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0x180,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GPS_Math_Polycon_LatLon_To_EN>:
push   %r14
push   %rbx
sub    $0x88,%rsp
movsd  %xmm7,0x10(%rsp)
movsd  %xmm6,0x28(%rsp)
movsd  %xmm5,0x58(%rsp)
movsd  %xmm4,0x50(%rsp)
movsd  %xmm3,0x20(%rsp)
movsd  %xmm2,0x8(%rsp)
mov    %rsi,%r14
mov    %rdi,%rbx
movsd  %xmm0,0x18(%rsp)
movaps %xmm1,%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movaps %xmm0,0x40(%rsp)
movsd  0x18(%rsp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,0x18(%rsp)
movsd  0x8(%rsp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,0x30(%rsp)
movsd  0x20(%rsp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  0xe34(%rip),%xmm2
movapd %xmm0,%xmm1
addsd  %xmm2,%xmm1
movsd  0xe2c(%rip),%xmm2
cmpltsd %xmm0,%xmm2
andpd  %xmm2,%xmm1
andnpd %xmm0,%xmm2
movsd  0x28(%rsp),%xmm0
mulsd  %xmm0,%xmm0
movsd  0x10(%rsp),%xmm3
mulsd  %xmm3,%xmm3
movapd %xmm0,%xmm5
subsd  %xmm3,%xmm5
divsd  %xmm0,%xmm5
movapd %xmm5,%xmm6
mulsd  %xmm5,%xmm6
movapd %xmm5,%xmm8
mulsd  %xmm6,%xmm8
movsd  0xded(%rip),%xmm0
mulsd  %xmm8,%xmm0
mulsd  0xde8(%rip),%xmm0
orpd   %xmm1,%xmm2
movapd %xmm2,0x70(%rsp)
movsd  0xdde(%rip),%xmm1
movapd %xmm6,%xmm7
mulsd  %xmm1,%xmm7
movsd  0xdd6(%rip),%xmm2
mulsd  %xmm5,%xmm2
addsd  0xdd2(%rip),%xmm2
movsd  0xdd2(%rip),%xmm3
mulsd  %xmm7,%xmm3
addsd  %xmm2,%xmm3
movsd  0xdca(%rip),%xmm4
mulsd  %xmm8,%xmm4
movsd  0xdc5(%rip),%xmm2
mulsd  %xmm2,%xmm4
addsd  %xmm3,%xmm4
movsd  %xmm5,0x80(%rsp)
mulsd  %xmm5,%xmm1
mulsd  0xdb0(%rip),%xmm1
mulsd  0xdb0(%rip),%xmm7
addsd  %xmm1,%xmm7
addsd  %xmm0,%xmm7
movsd  %xmm7,0x60(%rsp)
mulsd  0xda2(%rip),%xmm6
mulsd  %xmm2,%xmm6
addsd  %xmm0,%xmm6
movsd  %xmm6,0x10(%rsp)
mulsd  0xd93(%rip),%xmm8
divsd  0xd92(%rip),%xmm8
movsd  %xmm8,0x68(%rsp)
movsd  %xmm4,0x20(%rsp)
movsd  0x30(%rsp),%xmm0
mulsd  %xmm0,%xmm4
movsd  %xmm4,0x8(%rsp)
addsd  %xmm0,%xmm0
call   1040 <sin@plt>
mulsd  0x60(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  0xd56(%rip),%xmm0
mulsd  0x30(%rsp),%xmm0
call   1040 <sin@plt>
mulsd  0x10(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x30(%rsp),%xmm0
mulsd  0xd33(%rip),%xmm0
call   1040 <sin@plt>
mulsd  0x68(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
subsd  %xmm0,%xmm1
mulsd  0x28(%rsp),%xmm1
movsd  %xmm1,0x8(%rsp)
movapd 0x40(%rsp),%xmm0
subsd  0x70(%rsp),%xmm0
movsd  0xc7e(%rip),%xmm2
addsd  %xmm0,%xmm2
movsd  0xc7a(%rip),%xmm1
cmpltsd %xmm0,%xmm1
andpd  %xmm1,%xmm2
andnpd %xmm0,%xmm1
orpd   %xmm2,%xmm1
movsd  0xce1(%rip),%xmm0
movapd %xmm1,%xmm2
cmpltsd 0xcdc(%rip),%xmm2
addsd  %xmm1,%xmm0
andpd  %xmm2,%xmm0
andnpd %xmm1,%xmm2
orpd   %xmm0,%xmm2
movapd %xmm2,0x30(%rsp)
movsd  0x18(%rsp),%xmm0
call   1040 <sin@plt>
movapd %xmm0,%xmm2
xorpd  %xmm0,%xmm0
movsd  0x18(%rsp),%xmm1
ucomisd %xmm0,%xmm1
jne    13ef <GPS_Math_Polycon_LatLon_To_EN+0x29f>
jnp    154b <GPS_Math_Polycon_LatLon_To_EN+0x3fb>
movsd  0x80(%rsp),%xmm1
mulsd  %xmm2,%xmm1
mulsd  %xmm2,%xmm1
movsd  0xc28(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  0xc84(%rip),%xmm1
movsd  %xmm2,0x70(%rsp)
call   1070 <pow@plt>
movsd  0x28(%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x40(%rsp)
movsd  0x18(%rsp),%xmm0
call   1050 <tan@plt>
movsd  0x40(%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x40(%rsp)
movsd  0x18(%rsp),%xmm1
movsd  0x20(%rsp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,0x20(%rsp)
movapd %xmm1,%xmm0
addsd  %xmm1,%xmm0
call   1040 <sin@plt>
movsd  0x60(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  0x20(%rsp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0xbe9(%rip),%xmm0
mulsd  0x18(%rsp),%xmm0
call   1040 <sin@plt>
movsd  0x10(%rsp),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x20(%rsp),%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0x18(%rsp),%xmm0
mulsd  0xbc2(%rip),%xmm0
call   1040 <sin@plt>
movsd  0x68(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  0x10(%rsp),%xmm0
subsd  %xmm1,%xmm0
mulsd  0x28(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movapd 0x30(%rsp),%xmm0
mulsd  0x70(%rsp),%xmm0
movapd %xmm0,0x30(%rsp)
call   1040 <sin@plt>
mulsd  0x40(%rsp),%xmm0
addsd  0x50(%rsp),%xmm0
movsd  %xmm0,(%rbx)
movsd  0x10(%rsp),%xmm0
subsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movapd 0x30(%rsp),%xmm0
call   1060 <cos@plt>
movsd  0xb01(%rip),%xmm1
subsd  %xmm0,%xmm1
mulsd  0x40(%rsp),%xmm1
addsd  0x10(%rsp),%xmm1
movsd  0x58(%rsp),%xmm0
addsd  %xmm1,%xmm0
jmp    156d <GPS_Math_Polycon_LatLon_To_EN+0x41d>
movsd  0x28(%rsp),%xmm0
mulsd  0x30(%rsp),%xmm0
addsd  0x50(%rsp),%xmm0
movsd  %xmm0,(%rbx)
movsd  0x58(%rsp),%xmm0
subsd  0x8(%rsp),%xmm0
movsd  %xmm0,(%r14)
add    $0x88,%rsp
pop    %rbx
pop    %r14
ret

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

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