#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);
void GPS_Math_Sinusoid_LatLon_To_EN(double phi, double lambda, double *E,
                                    double *N, double M0, double E0, double N0,
                                    double a, double b) {
  double a2;
  double b2;
  double e2;
  double e4;
  double e6;
  double p2;
  double po2;
  double c0;
  double c1;
  double c2;
  double c3;
  double A1;
  double A0;
  double A2;
  double A3;
  double E1;
  double E2;
  double E3;
  double E4;
  double j;
  double om0;
  double som0;
  double phis;
  double phis2;
  double phis4;
  double phis6;
  double mm;
  double MM;
  double dlam;
  phi = GPS_Math_Deg_To_Rad(phi);
  lambda = GPS_Math_Deg_To_Rad(lambda);
  M0 = GPS_Math_Deg_To_Rad(M0);
  po2 = (double)3.141592653589 / (double)2.0;
  p2 = (double)3.141592653589 * (double)2.0;
  a2 = a * a;
  b2 = b * b;
  e2 = (a2 - b2) / a2;
  e4 = e2 * e2;
  e6 = e4 * e2;
  j = (double)45. * e6 / (double)1024.;
  c0 = (double)1. - e2 / (double)4. - (double)3. * e4 / (double)64. -
       (double)5. * e6 / (double)256.;
  c1 = (double)3. * e2 / (double)8. + (double)3. * e4 / (double)32. + j;
  c2 = (double)15. * e4 / (double)256. + j;
  c3 = (double)35. * e6 / (double)3072.;
  om0 = (double)1. - e2;
  som0 = pow(om0, (double).5);
  E1 = ((double)1. - som0) / ((double)1. + som0);
  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.;
  if (M0 > 3.141592653589)
    M0 -= p2;
  phis = sin(phi);
  dlam = lambda - M0;
  if (dlam > 3.141592653589)
    dlam -= p2;
  if (dlam < -3.141592653589)
    dlam += p2;
  mm = pow((double)1. - e2 * phis * phis, (double).5);
  phis2 = c1 * sin((double)2. * phi);
  phis4 = c2 * sin((double)4. * phi);
  phis6 = c3 * sin((double)6. * phi);
  MM = a * (c0 * phi - phis2 + phis4 - phis6);
  *E = a * dlam * cos(phi) / mm + E0;
  *N = MM + N0;
  return;
}


x86 assembly (clang, -O0):
<GPS_Math_Sinusoid_LatLon_To_EN>:
push   %rbp
mov    %rsp,%rbp
sub    $0x150,%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  -0x8(%rbp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,-0x8(%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  0xf1d(%rip),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  0xf08(%rip),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x40(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x48(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x50(%rbp),%xmm0
subsd  -0x58(%rbp),%xmm0
divsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0xea3(%rip),%xmm0
mulsd  -0x70(%rbp),%xmm0
movsd  0xe8e(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0x60(%rbp),%xmm1
movsd  0xe6d(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xe19(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  0xe05(%rip),%xmm1
mulsd  -0x68(%rbp),%xmm1
movsd  0xe40(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  0xe28(%rip),%xmm1
mulsd  -0x70(%rbp),%xmm1
movsd  0xe03(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0xdc3(%rip),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  0xdee(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xdaa(%rip),%xmm1
mulsd  -0x68(%rbp),%xmm1
movsd  0xd6d(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
addsd  -0xe8(%rbp),%xmm0
ff
movsd  %xmm0,-0x90(%rbp)
ff
movsd  0xdad(%rip),%xmm0
mulsd  -0x68(%rbp),%xmm0
movsd  0xd98(%rip),%xmm1
divsd  %xmm1,%xmm0
addsd  -0xe8(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
movsd  0xd74(%rip),%xmm0
mulsd  -0x70(%rbp),%xmm0
movsd  0xd5f(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  0xd3b(%rip),%xmm0
subsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0xf0(%rbp),%xmm0
ff
movsd  0xd26(%rip),%xmm1
call   1060 <pow@plt>
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  0xd09(%rip),%xmm0
subsd  -0xf8(%rbp),%xmm0
ff
movsd  0xcf9(%rip),%xmm1
addsd  -0xf8(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0xc8(%rbp),%xmm0
ff
mulsd  -0xc8(%rbp),%xmm0
ff
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0xc8(%rbp),%xmm0
ff
mulsd  -0xd0(%rbp),%xmm0
ff
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0xc8(%rbp),%xmm0
ff
mulsd  -0xd8(%rbp),%xmm0
ff
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  0xc8d(%rip),%xmm0
mulsd  -0xc8(%rbp),%xmm0
ff
movsd  0xc75(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xc61(%rip),%xmm1
mulsd  -0xd8(%rbp),%xmm1
ff
movsd  0xc31(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  0xc31(%rip),%xmm0
mulsd  -0xd0(%rbp),%xmm0
ff
movsd  0xc19(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xc05(%rip),%xmm1
mulsd  -0xe0(%rbp),%xmm1
ff
movsd  0xbed(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  0xbcd(%rip),%xmm0
mulsd  -0xd8(%rbp),%xmm0
ff
movsd  0xbb5(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  0xb99(%rip),%xmm0
mulsd  -0xe0(%rbp),%xmm0
ff
movsd  0xb81(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
movsd  0xb60(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    14bd <GPS_Math_Sinusoid_LatLon_To_EN+0x37d>
movsd  -0x78(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
subsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x130(%rbp)
ff
movsd  -0x130(%rbp),%xmm0
ff
movsd  0xb0f(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1514 <GPS_Math_Sinusoid_LatLon_To_EN+0x3d4>
movsd  -0x78(%rbp),%xmm1
movsd  -0x130(%rbp),%xmm0
ff
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x130(%rbp)
ff
movsd  0xbb4(%rip),%xmm0
ucomisd -0x130(%rbp),%xmm0
ff
jbe    153f <GPS_Math_Sinusoid_LatLon_To_EN+0x3ff>
movsd  -0x78(%rbp),%xmm0
addsd  -0x130(%rbp),%xmm0
ff
movsd  %xmm0,-0x130(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
mulsd  -0x100(%rbp),%xmm0
ff
movsd  -0x100(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xae9(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xae5(%rip),%xmm1
call   1060 <pow@plt>
movsd  %xmm0,-0x120(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x150(%rbp)
ff
movsd  0xaa8(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x150(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x148(%rbp)
ff
movsd  0xac7(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x148(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x110(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0x140(%rbp)
ff
movsd  0xabe(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x140(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x118(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  -0x88(%rbp),%xmm1
ff
movsd  -0x8(%rbp),%xmm3
movsd  -0x108(%rbp),%xmm2
ff
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
addsd  -0x110(%rbp),%xmm1
ff
subsd  -0x118(%rbp),%xmm1
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x128(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
mulsd  -0x130(%rbp),%xmm0
ff
movsd  %xmm0,-0x138(%rbp)
ff
movsd  -0x8(%rbp),%xmm0
call   1050 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x138(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
divsd  -0x120(%rbp),%xmm0
ff
addsd  -0x30(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x128(%rbp),%xmm0
ff
addsd  -0x38(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0x150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GPS_Math_Sinusoid_LatLon_To_EN>:
push   %r14
push   %rbx
sub    $0x78,%rsp
movsd  %xmm6,0x10(%rsp)
movsd  %xmm5,0x60(%rsp)
movsd  %xmm4,0x70(%rsp)
movsd  %xmm3,0x68(%rsp)
movsd  %xmm2,0x8(%rsp)
mov    %rsi,%r14
mov    %rdi,%rbx
movsd  %xmm1,0x20(%rsp)
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,0x18(%rsp)
movsd  0x20(%rsp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movaps %xmm0,0x20(%rsp)
movsd  0x8(%rsp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movaps %xmm0,0x50(%rsp)
movsd  0x60(%rsp),%xmm0
mulsd  %xmm0,%xmm0
movsd  0x10(%rsp),%xmm2
mulsd  %xmm2,%xmm2
movapd %xmm0,%xmm1
subsd  %xmm2,%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm3
mulsd  %xmm1,%xmm3
movsd  %xmm3,0x8(%rsp)
movapd %xmm1,%xmm0
movapd %xmm1,%xmm2
movsd  %xmm1,0x38(%rsp)
mulsd  %xmm3,%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0xe16(%rip),%xmm1
mulsd  %xmm0,%xmm1
mulsd  0xe12(%rip),%xmm1
movsd  %xmm1,0x40(%rsp)
movapd %xmm3,%xmm0
mulsd  0xe08(%rip),%xmm0
movsd  %xmm0,0x48(%rsp)
movsd  0xe02(%rip),%xmm0
subsd  %xmm2,%xmm0
movsd  0xdfe(%rip),%xmm1
call   1060 <pow@plt>
movsd  0xdf9(%rip),%xmm2
movapd 0x50(%rsp),%xmm1
movapd %xmm1,%xmm0
addsd  %xmm2,%xmm0
movsd  0xdeb(%rip),%xmm2
cmpltsd %xmm1,%xmm2
andpd  %xmm2,%xmm0
andnpd %xmm1,%xmm2
orpd   %xmm0,%xmm2
movapd %xmm2,0x50(%rsp)
movsd  0x18(%rsp),%xmm0
call   1040 <sin@plt>
movapd 0x20(%rsp),%xmm1
subsd  0x50(%rsp),%xmm1
movsd  0xdad(%rip),%xmm2
addsd  %xmm1,%xmm2
movsd  0xda9(%rip),%xmm3
cmpltsd %xmm1,%xmm3
andpd  %xmm3,%xmm2
andnpd %xmm1,%xmm3
orpd   %xmm2,%xmm3
movsd  0xd98(%rip),%xmm1
addsd  %xmm3,%xmm1
movapd %xmm3,%xmm2
cmpltsd 0xd8f(%rip),%xmm2
andpd  %xmm2,%xmm1
andnpd %xmm3,%xmm2
movapd %xmm2,%xmm3
movsd  0xd83(%rip),%xmm2
movsd  0x10(%rsp),%xmm6
mulsd  %xmm6,%xmm2
divsd  0xd79(%rip),%xmm2
movsd  %xmm2,0x50(%rsp)
movsd  0x8(%rsp),%xmm2
mulsd  0xd6d(%rip),%xmm2
orpd   %xmm1,%xmm3
movapd %xmm3,0x20(%rsp)
movsd  0xd63(%rip),%xmm1
mulsd  %xmm1,%xmm2
movsd  0x40(%rsp),%xmm5
addsd  %xmm5,%xmm2
movsd  %xmm2,0x8(%rsp)
movsd  0x38(%rsp),%xmm3
movsd  0xcf1(%rip),%xmm2
mulsd  %xmm3,%xmm2
mulsd  0xd3d(%rip),%xmm2
movsd  0xd3d(%rip),%xmm7
movsd  0x48(%rsp),%xmm4
mulsd  %xmm4,%xmm7
addsd  %xmm2,%xmm7
addsd  %xmm5,%xmm7
movsd  %xmm7,0x40(%rsp)
movapd %xmm0,%xmm2
mulsd  %xmm3,%xmm2
mulsd  0xd1d(%rip),%xmm3
mulsd  0xd1d(%rip),%xmm4
movsd  0xcad(%rip),%xmm5
addsd  %xmm5,%xmm3
addsd  %xmm3,%xmm4
movapd %xmm6,%xmm3
mulsd  0xd09(%rip),%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm4,%xmm3
movsd  %xmm3,0x10(%rsp)
mulsd  %xmm0,%xmm2
movapd %xmm5,%xmm0
subsd  %xmm2,%xmm0
movsd  0xc7f(%rip),%xmm1
call   1060 <pow@plt>
movsd  %xmm0,0x48(%rsp)
movsd  0x18(%rsp),%xmm0
addsd  %xmm0,%xmm0
call   1040 <sin@plt>
movsd  %xmm0,0x38(%rsp)
movsd  0xcc7(%rip),%xmm0
mulsd  0x18(%rsp),%xmm0
call   1040 <sin@plt>
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xcb0(%rip),%xmm0
mulsd  0x18(%rsp),%xmm0
call   1040 <sin@plt>
mulsd  0x50(%rsp),%xmm0
movsd  0x38(%rsp),%xmm3
mulsd  0x40(%rsp),%xmm3
movsd  0x18(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
mulsd  %xmm1,%xmm2
subsd  %xmm3,%xmm2
addsd  0x8(%rsp),%xmm2
addsd  %xmm0,%xmm2
movsd  0x60(%rsp),%xmm0
mulsd  %xmm0,%xmm2
movsd  %xmm2,0x10(%rsp)
movapd 0x20(%rsp),%xmm2
mulsd  %xmm0,%xmm2
movapd %xmm2,0x20(%rsp)
movapd %xmm1,%xmm0
call   1050 <cos@plt>
mulsd  0x20(%rsp),%xmm0
divsd  0x48(%rsp),%xmm0
addsd  0x68(%rsp),%xmm0
movsd  %xmm0,(%rbx)
movsd  0x10(%rsp),%xmm0
addsd  0x70(%rsp),%xmm0
movsd  %xmm0,(%r14)
add    $0x78,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define void @GPS_Math_Sinusoid_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) {
%10 = tail call double @GPS_Math_Deg_To_Rad(double %0)
%11 = tail call double @GPS_Math_Deg_To_Rad(double %1)
%12 = tail call double @GPS_Math_Deg_To_Rad(double %4)
%13 = fmul double %7, %7
%14 = fmul double %8, %8
%15 = fsub double %13, %14
%16 = fdiv double %15, %13
%17 = fmul double %16, %16
%18 = fmul double %16, %17
%19 = fmul double %18, 4.500000e+01
%20 = fmul double %19, 0x3F50000000000000
%21 = fmul double %17, 3.000000e+00
%22 = fsub double 1.000000e+00, %16
%23 = tail call double @pow(double %22, double 5.000000e-01)
%24 = fcmp ogt double %12, 0x400921FB5444261E
%25 = fadd double %12, 0xC01921FB5444261E
%26 = select i1 %24, double %25, double %12
%27 = tail call double @sin(double %10)
%28 = fsub double %11, %26
%29 = fcmp ogt double %28, 0x400921FB5444261E
%30 = fadd double %28, 0xC01921FB5444261E
%31 = select i1 %29, double %30, double %28
%32 = fcmp olt double %31, 0xC00921FB5444261E
%33 = fadd double %31, 0x401921FB5444261E
%34 = select i1 %32, double %33, double %31
%35 = fmul double %18, 3.500000e+01
%36 = fdiv double %35, 3.072000e+03
%37 = fmul double %17, 1.500000e+01
%38 = fmul double %37, 3.906250e-03
%39 = fadd double %38, %20
%40 = fmul double %16, 3.000000e+00
%41 = fmul double %40, 1.250000e-01
%42 = fmul double %21, 3.125000e-02
%43 = fadd double %41, %42
%44 = fadd double %43, %20
%45 = fmul double %16, 2.500000e-01
%46 = fsub double 1.000000e+00, %45
%47 = fmul double %21, 1.562500e-02
%48 = fsub double %46, %47
%49 = fmul double %18, 5.000000e+00
%50 = fmul double %49, 3.906250e-03
%51 = fsub double %48, %50
%52 = fneg double %16
%53 = fmul double %27, %52
%54 = tail call double @llvm.fmuladd.f64(double %53, double %27, double 1.000000e+00)
%55 = tail call double @pow(double %54, double 5.000000e-01)
%56 = fmul double %10, 2.000000e+00
%57 = tail call double @sin(double %56)
%58 = fmul double %10, 4.000000e+00
%59 = tail call double @sin(double %58)
%60 = fmul double %39, %59
%61 = fmul double %10, 6.000000e+00
%62 = tail call double @sin(double %61)
%63 = fmul double %36, %62
%64 = fneg double %44
%65 = fmul double %57, %64
%66 = tail call double @llvm.fmuladd.f64(double %51, double %10, double %65)
%67 = fadd double %66, %60
%68 = fsub double %67, %63
%69 = fmul double %68, %7
%70 = fmul double %34, %7
%71 = tail call double @cos(double %10)
%72 = fmul double %71, %70
%73 = fdiv double %72, %55
%74 = fadd double %73, %5
store double %74, double* %2
%75 = fadd double %69, %6
store double %75, double* %3
ret void
}