#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 log(double);
double pow(double, double);
double sin(double);
double tan(double);
void GPS_Math_Mercator_LatLon_To_EN(double phi, double lambda, double *E,
                                    double *N, double phi0, double lambda0,
                                    double E0, double N0, double a, double b) {
  double p2;
  double po2;
  double a2;
  double b2;
  double e2;
  double e4;
  double e3;
  double e;
  double es;
  double ab;
  double bb;
  double cb;
  double db;
  double ml;
  double phi0s;
  double sf;
  double dlam;
  double ct;
  double ex;
  double tt;
  double pt;
  lambda = GPS_Math_Deg_To_Rad(lambda);
  phi = GPS_Math_Deg_To_Rad(phi);
  phi0 = GPS_Math_Deg_To_Rad(phi0);
  lambda0 = GPS_Math_Deg_To_Rad(lambda0);
  ml = ((double)3.141592653589 * (double)89.5) / (double)180.;
  p2 = (double)3.141592653589 * (double)2.0;
  po2 = (double)3.141592653589 / (double)2.0;
  if (lambda0 > 3.141592653589)
    lambda0 -= p2;
  a2 = a * a;
  b2 = b * b;
  es = (a2 - b2) / a2;
  e2 = es * es;
  e3 = e2 * es;
  e4 = e3 * es;
  e = pow(es, (double).5);
  phi0s = sin(phi0);
  sf = (double)1. /
       (pow((double)1. - es * phi0s * phi0s, (double).5) / cos(phi0));
  ab = es / (double)2. + (double)5. * e2 / (double)24. + e3 / (double)12. +
       (double)13. * e4 / (double)360.;
  bb = (double)7. * e2 / (double)48. + (double)29. * e3 / (double)240. +
       (double)811. * e4 / (double)11520.;
  cb = (double)7. * e3 / (double)120. + (double)81. * e4 / (double)1120.;
  db = (double)4279. * e4 / (double)161280.;
  if (lambda > (double)3.141592653589)
    lambda -= p2;
  dlam = lambda - lambda0;
  if (dlam > 3.141592653589)
    dlam -= p2;
  if (dlam < -3.141592653589)
    dlam += p2;
  ex = e * sin(phi);
  tt = tan((double)3.141592653589 / (double)4. + phi / (double)2.);
  pt = pow((((double)1. - ex) / ((double)1. + ex)), (e / (double)2.));
  ct = tt * pt;
  *N = sf * a * log(ct) + N0;
  *E = sf * a * dlam + E0;
  return;
}


x86 assembly (clang, -O0):
<GPS_Math_Mercator_LatLon_To_EN>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%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  0xe39(%rip),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  0xe21(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xe0c(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  0xdf2(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    122b <GPS_Math_Mercator_LatLon_To_EN+0xcb>
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,-0x98(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
mulsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x78(%rbp)
movsd  -0x78(%rbp),%xmm0
mulsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
mulsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x80(%rbp)
movsd  -0x98(%rbp),%xmm0
ff
movsd  0xe01(%rip),%xmm1
call   1080 <pow@plt>
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
call   1040 <sin@plt>
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
mulsd  -0xc8(%rbp),%xmm0
ff
movsd  -0xc8(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xd9f(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xd9b(%rip),%xmm1
call   1080 <pow@plt>
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
call   1060 <cos@plt>
movsd  -0x100(%rbp),%xmm1
ff
divsd  %xmm0,%xmm1
movsd  0xd68(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
movsd  0xd44(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xd30(%rip),%xmm1
mulsd  -0x78(%rbp),%xmm1
movsd  0xd1b(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  -0x88(%rbp),%xmm1
ff
movsd  0xcfb(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  0xce3(%rip),%xmm1
mulsd  -0x80(%rbp),%xmm1
movsd  0xcce(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  0xc86(%rip),%xmm0
mulsd  -0x78(%rbp),%xmm0
movsd  0xca1(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xc8d(%rip),%xmm1
mulsd  -0x88(%rbp),%xmm1
ff
movsd  0xc75(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  0xc5d(%rip),%xmm1
mulsd  -0x80(%rbp),%xmm1
movsd  0xc48(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  0xc28(%rip),%xmm0
mulsd  -0x88(%rbp),%xmm0
ff
movsd  0xc10(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xbfc(%rip),%xmm1
mulsd  -0x80(%rbp),%xmm1
movsd  0xbe7(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  0xbc7(%rip),%xmm0
mulsd  -0x80(%rbp),%xmm0
movsd  0xbb2(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
movsd  0xb79(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    14a4 <GPS_Math_Mercator_LatLon_To_EN+0x344>
movsd  -0x58(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0xd8(%rbp),%xmm0
ff
movsd  0xb3a(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    14e9 <GPS_Math_Mercator_LatLon_To_EN+0x389>
movsd  -0x58(%rbp),%xmm1
movsd  -0xd8(%rbp),%xmm0
ff
subsd  %xmm1,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  0xbc7(%rip),%xmm0
ucomisd -0xd8(%rbp),%xmm0
ff
jbe    1514 <GPS_Math_Mercator_LatLon_To_EN+0x3b4>
movsd  -0x58(%rbp),%xmm0
addsd  -0xd8(%rbp),%xmm0
ff
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x110(%rbp)
ff
movsd  -0x8(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x110(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0x8(%rbp),%xmm1
movsd  0xb4e(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xb62(%rip),%xmm0
addsd  %xmm1,%xmm0
call   1050 <tan@plt>
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  0xb31(%rip),%xmm0
subsd  -0xe8(%rbp),%xmm0
ff
movsd  0xb21(%rip),%xmm1
addsd  -0xe8(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  -0x90(%rbp),%xmm1
ff
movsd  0xafd(%rip),%xmm2
divsd  %xmm2,%xmm1
call   1080 <pow@plt>
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0xf0(%rbp),%xmm0
ff
mulsd  -0xf8(%rbp),%xmm0
ff
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0xd0(%rbp),%xmm0
ff
mulsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0xe0(%rbp),%xmm0
ff
call   1070 <log@plt>
movaps %xmm0,%xmm2
movsd  -0x108(%rbp),%xmm0
ff
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0xd0(%rbp),%xmm0
ff
mulsd  -0x48(%rbp),%xmm0
movsd  -0xd8(%rbp),%xmm2
ff
movsd  -0x38(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GPS_Math_Mercator_LatLon_To_EN>:
push   %r14
push   %rbx
sub    $0x68,%rsp
movsd  %xmm7,0x10(%rsp)
movsd  %xmm6,0x38(%rsp)
movsd  %xmm5,0x58(%rsp)
movsd  %xmm4,0x60(%rsp)
movsd  %xmm3,0x20(%rsp)
movsd  %xmm2,(%rsp)
mov    %rsi,%rbx
mov    %rdi,%r14
movsd  %xmm0,0x8(%rsp)
movaps %xmm1,%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movaps %xmm0,0x40(%rsp)
movsd  0x8(%rsp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,0x8(%rsp)
movsd  (%rsp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,(%rsp)
movsd  0x20(%rsp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  0xe2a(%rip),%xmm2
movapd %xmm0,%xmm1
addsd  %xmm2,%xmm1
movsd  0xe22(%rip),%xmm3
cmpltsd %xmm0,%xmm3
andpd  %xmm3,%xmm1
andnpd %xmm0,%xmm3
orpd   %xmm1,%xmm3
movapd %xmm3,0x20(%rsp)
movsd  0x38(%rsp),%xmm2
mulsd  %xmm2,%xmm2
movsd  0x10(%rsp),%xmm1
mulsd  %xmm1,%xmm1
movapd %xmm2,%xmm0
subsd  %xmm1,%xmm0
divsd  %xmm2,%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0xde5(%rip),%xmm1
call   1080 <pow@plt>
movsd  %xmm0,0x10(%rsp)
movsd  (%rsp),%xmm0
call   1040 <sin@plt>
movsd  0x18(%rsp),%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
movsd  0xdc2(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  0xdae(%rip),%xmm1
call   1080 <pow@plt>
movsd  %xmm0,0x18(%rsp)
movsd  (%rsp),%xmm0
call   1060 <cos@plt>
movapd 0x40(%rsp),%xmm3
movapd %xmm3,%xmm1
movsd  0xd77(%rip),%xmm4
addsd  %xmm4,%xmm1
movsd  0xd73(%rip),%xmm5
movapd %xmm5,%xmm2
cmpltsd %xmm3,%xmm2
andpd  %xmm2,%xmm1
andnpd %xmm3,%xmm2
orpd   %xmm1,%xmm2
subsd  0x20(%rsp),%xmm2
movapd %xmm4,%xmm3
addsd  %xmm2,%xmm3
movapd %xmm5,%xmm1
cmpltsd %xmm2,%xmm1
andpd  %xmm1,%xmm3
andnpd %xmm2,%xmm1
orpd   %xmm3,%xmm1
movapd %xmm1,%xmm2
movsd  0xd47(%rip),%xmm1
addsd  %xmm2,%xmm1
movapd %xmm2,%xmm3
cmpltsd 0xd3e(%rip),%xmm3
andpd  %xmm3,%xmm1
andnpd %xmm2,%xmm3
orpd   %xmm1,%xmm3
movapd %xmm3,0x40(%rsp)
movsd  0x18(%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  0xd0a(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
call   1040 <sin@plt>
mulsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0x8(%rsp),%xmm0
mulsd  0xcd4(%rip),%xmm0
addsd  0xcec(%rip),%xmm0
call   1050 <tan@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0xcc1(%rip),%xmm1
movapd %xmm1,%xmm0
movsd  0x20(%rsp),%xmm2
subsd  %xmm2,%xmm0
addsd  %xmm1,%xmm2
divsd  %xmm2,%xmm0
movsd  0x10(%rsp),%xmm1
mulsd  0xc95(%rip),%xmm1
call   1080 <pow@plt>
mulsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
mulsd  0x38(%rsp),%xmm1
movsd  %xmm1,(%rsp)
call   1070 <log@plt>
movsd  (%rsp),%xmm1
mulsd  %xmm1,%xmm0
addsd  0x58(%rsp),%xmm0
movsd  %xmm0,(%rbx)
mulsd  0x40(%rsp),%xmm1
addsd  0x60(%rsp),%xmm1
movsd  %xmm1,(%r14)
add    $0x68,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @GPS_Math_Mercator_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
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
%42 = load double, double* %12
%43 = call double @GPS_Math_Deg_To_Rad(double %42)
store double %43, double* %12
%44 = load double, double* %11
%45 = call double @GPS_Math_Deg_To_Rad(double %44)
store double %45, double* %11
%46 = load double, double* %15
%47 = call double @GPS_Math_Deg_To_Rad(double %46)
store double %47, double* %15
%48 = load double, double* %16
%49 = call double @GPS_Math_Deg_To_Rad(double %48)
store double %49, double* %16
store double 0x3FF8FE3CC6FF80EE, double* %34
store double 0x401921FB5444261E, double* %21
store double 0x3FF921FB5444261E, double* %22
%50 = load double, double* %16
%51 = fcmp ogt double %50, 0x400921FB5444261E
br i1 %51, label %52, label %56
52: ; preds = %10
%53 = load double, double* %21
%54 = load double, double* %16
%55 = fsub double %54, %53
store double %55, double* %16
br label %56
56: ; preds = %52, %10
%57 = load double, double* %19
%58 = load double, double* %19
%59 = fmul double %57, %58
store double %59, double* %23
%60 = load double, double* %20
%61 = load double, double* %20
%62 = fmul double %60, %61
store double %62, double* %24
%63 = load double, double* %23
%64 = load double, double* %24
%65 = fsub double %63, %64
%66 = load double, double* %23
%67 = fdiv double %65, %66
store double %67, double* %29
%68 = load double, double* %29
%69 = load double, double* %29
%70 = fmul double %68, %69
store double %70, double* %25
%71 = load double, double* %25
%72 = load double, double* %29
%73 = fmul double %71, %72
store double %73, double* %27
%74 = load double, double* %27
%75 = load double, double* %29
%76 = fmul double %74, %75
store double %76, double* %26
%77 = load double, double* %29
%78 = call double @pow(double %77, double 5.000000e-01)
store double %78, double* %28
%79 = load double, double* %15
%80 = call double @sin(double %79)
store double %80, double* %35
%81 = load double, double* %29
%82 = load double, double* %35
%83 = fmul double %81, %82
%84 = load double, double* %35
%85 = fneg double %83
%86 = call double @llvm.fmuladd.f64(double %85, double %84, double 1.000000e+00)
%87 = call double @pow(double %86, double 5.000000e-01)
%88 = load double, double* %15
%89 = call double @cos(double %88)
%90 = fdiv double %87, %89
%91 = fdiv double 1.000000e+00, %90
store double %91, double* %36
%92 = load double, double* %29
%93 = fdiv double %92, 2.000000e+00
%94 = load double, double* %25
%95 = fmul double 5.000000e+00, %94
%96 = fdiv double %95, 2.400000e+01
%97 = fadd double %93, %96
%98 = load double, double* %27
%99 = fdiv double %98, 1.200000e+01
%100 = fadd double %97, %99
%101 = load double, double* %26
%102 = fmul double 1.300000e+01, %101
%103 = fdiv double %102, 3.600000e+02
%104 = fadd double %100, %103
store double %104, double* %30
%105 = load double, double* %25
%106 = fmul double 7.000000e+00, %105
%107 = fdiv double %106, 4.800000e+01
%108 = load double, double* %27
%109 = fmul double 2.900000e+01, %108
%110 = fdiv double %109, 2.400000e+02
%111 = fadd double %107, %110
%112 = load double, double* %26
%113 = fmul double 8.110000e+02, %112
%114 = fdiv double %113, 1.152000e+04
%115 = fadd double %111, %114
store double %115, double* %31
%116 = load double, double* %27
%117 = fmul double 7.000000e+00, %116
%118 = fdiv double %117, 1.200000e+02
%119 = load double, double* %26
%120 = fmul double 8.100000e+01, %119
%121 = fdiv double %120, 1.120000e+03
%122 = fadd double %118, %121
store double %122, double* %32
%123 = load double, double* %26
%124 = fmul double 4.279000e+03, %123
%125 = fdiv double %124, 1.612800e+05
store double %125, double* %33
%126 = load double, double* %12
%127 = fcmp ogt double %126, 0x400921FB5444261E
br i1 %127, label %128, label %132
128: ; preds = %56
%129 = load double, double* %21
%130 = load double, double* %12
%131 = fsub double %130, %129
store double %131, double* %12
br label %132
132: ; preds = %128, %56
%133 = load double, double* %12
%134 = load double, double* %16
%135 = fsub double %133, %134
store double %135, double* %37
%136 = load double, double* %37
%137 = fcmp ogt double %136, 0x400921FB5444261E
br i1 %137, label %138, label %142
138: ; preds = %132
%139 = load double, double* %21
%140 = load double, double* %37
%141 = fsub double %140, %139
store double %141, double* %37
br label %142
142: ; preds = %138, %132
%143 = load double, double* %37
%144 = fcmp olt double %143, 0xC00921FB5444261E
br i1 %144, label %145, label %149
145: ; preds = %142
%146 = load double, double* %21
%147 = load double, double* %37
%148 = fadd double %147, %146
store double %148, double* %37
br label %149
149: ; preds = %145, %142
%150 = load double, double* %28
%151 = load double, double* %11
%152 = call double @sin(double %151)
%153 = fmul double %150, %152
store double %153, double* %39
%154 = load double, double* %11
%155 = fdiv double %154, 2.000000e+00
%156 = fadd double 0x3FE921FB5444261E, %155
%157 = call double @tan(double %156)
store double %157, double* %40
%158 = load double, double* %39
%159 = fsub double 1.000000e+00, %158
%160 = load double, double* %39
%161 = fadd double 1.000000e+00, %160
%162 = fdiv double %159, %161
%163 = load double, double* %28
%164 = fdiv double %163, 2.000000e+00
%165 = call double @pow(double %162, double %164)
store double %165, double* %41
%166 = load double, double* %40
%167 = load double, double* %41
%168 = fmul double %166, %167
store double %168, double* %38
%169 = load double, double* %36
%170 = load double, double* %19
%171 = fmul double %169, %170
%172 = load double, double* %38
%173 = call double @log(double %172)
%174 = load double, double* %18
%175 = call double @llvm.fmuladd.f64(double %171, double %173, double %174)
%176 = load double*, double** %14
store double %175, double* %176
%177 = load double, double* %36
%178 = load double, double* %19
%179 = fmul double %177, %178
%180 = load double, double* %37
%181 = load double, double* %17
%182 = call double @llvm.fmuladd.f64(double %179, double %180, double %181)
%183 = load double*, double** %13
store double %182, double* %183
ret void
}

LLVM IR (-O2):
define void @GPS_Math_Mercator_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 = tail call double @pow(double %21, double 5.000000e-01)
%23 = tail call double @sin(double %13)
%24 = fneg double %21
%25 = fmul double %23, %24
%26 = tail call double @llvm.fmuladd.f64(double %25, double %23, double 1.000000e+00)
%27 = tail call double @pow(double %26, double 5.000000e-01)
%28 = tail call double @cos(double %13)
%29 = fcmp ogt double %11, 0x400921FB5444261E
%30 = fadd double %11, 0xC01921FB5444261E
%31 = select i1 %29, double %30, double %11
%32 = fsub double %31, %17
%33 = fcmp ogt double %32, 0x400921FB5444261E
%34 = fadd double %32, 0xC01921FB5444261E
%35 = select i1 %33, double %34, double %32
%36 = fcmp olt double %35, 0xC00921FB5444261E
%37 = fadd double %35, 0x401921FB5444261E
%38 = select i1 %36, double %37, double %35
%39 = fdiv double %27, %28
%40 = fdiv double 1.000000e+00, %39
%41 = tail call double @sin(double %12)
%42 = fmul double %22, %41
%43 = fmul double %12, 5.000000e-01
%44 = fadd double %43, 0x3FE921FB5444261E
%45 = tail call double @tan(double %44)
%46 = fsub double 1.000000e+00, %42
%47 = fadd double %42, 1.000000e+00
%48 = fdiv double %46, %47
%49 = fmul double %22, 5.000000e-01
%50 = tail call double @pow(double %48, double %49)
%51 = fmul double %45, %50
%52 = fmul double %40, %8
%53 = tail call double @log(double %51)
%54 = tail call double @llvm.fmuladd.f64(double %52, double %53, double %7)
store double %54, double* %3
%55 = tail call double @llvm.fmuladd.f64(double %52, double %38, double %6)
store double %55, double* %2
ret void
}