#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 GPS_Math_Rad_To_Deg(double);
double asin(double);
double cos(double);
double fabs(double);
double pow(double, double);
double sin(double);
void GPS_Math_Mollweide_EN_To_LatLon(double E, double N, double *phi,
                                     double *lambda, 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 Ra;
  double sRa2;
  double sRa8;
  double dx;
  double dy;
  double theta = (double)0.;
  double tt;
  double i;
  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;
  Ra = a * ((double)1.0 - e2 / (double)6.0 - (double)17.0 * e4 / (double)360.0 -
            (double)67.0 * e6 / (double)3024.0);
  sRa2 = pow((double)2., (double).5) * Ra;
  sRa8 = pow((double)8., (double).5) * Ra;
  if (M0 > 3.141592653589)
    M0 -= p2;
  dx = E - E0;
  dy = N - N0;
  i = dy / sRa2;
  if (fabs(i) > (double)1.) {
    *phi = po2;
    if (N < (double)0.0)
      *phi *= (double)-1.;
  } else {
    theta = asin(i);
    tt = theta * (double)2.;
    *phi = asin((tt + sin(tt)) / (double)3.141592653589);
    if (*phi > po2)
      *phi = po2;
    else if (*phi < -po2)
      *phi = -po2;
  }
  if (fabs(fabs(*phi) - po2) < (double)1.0e-10)
    *lambda = M0;
  else
    *lambda = M0 + (double)3.141592653589 * dx / (sRa8 * cos(theta));
  if (*lambda > 3.141592653589)
    *lambda -= p2;
  if (*lambda < -3.141592653589)
    *lambda += p2;
  if (*lambda > 3.141592653589)
    *lambda = 3.141592653589;
  else if (*lambda < -3.141592653589)
    *lambda = -3.141592653589;
  *lambda = GPS_Math_Rad_To_Deg(*lambda);
  *phi = GPS_Math_Rad_To_Deg(*phi);
  return;
}


x86 assembly (clang, -O0):
<GPS_Math_Mollweide_EN_To_LatLon>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%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)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  0xea0(%rip),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  0xe8b(%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  -0x40(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  0xe1c(%rip),%xmm1
divsd  %xmm1,%xmm2
movsd  0xe08(%rip),%xmm1
subsd  %xmm2,%xmm1
movsd  0xdf4(%rip),%xmm2
mulsd  -0x68(%rbp),%xmm2
movsd  0xddf(%rip),%xmm3
divsd  %xmm3,%xmm2
subsd  %xmm2,%xmm1
movsd  0xdc7(%rip),%xmm2
mulsd  -0x70(%rbp),%xmm2
movsd  0xdb2(%rip),%xmm3
divsd  %xmm3,%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0xd8e(%rip),%xmm0
movsd  0xd7e(%rip),%xmm1
call   1080 <pow@plt>
mulsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x90(%rbp)
ff
movsd  0xd59(%rip),%xmm0
movsd  0xd59(%rip),%xmm1
call   1080 <pow@plt>
mulsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
movsd  0xd27(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    12f6 <GPS_Math_Mollweide_EN_To_LatLon+0x196>
movsd  -0x78(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x8(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
divsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0xc0(%rbp),%xmm0
ff
movaps 0xd3f(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0xcf3(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    138b <GPS_Math_Mollweide_EN_To_LatLon+0x22b>
movsd  -0x80(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
xorps  %xmm0,%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    1386 <GPS_Math_Mollweide_EN_To_LatLon+0x226>
mov    -0x18(%rbp),%rax
movsd  0xce2(%rip),%xmm0
mulsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
jmp    147e <GPS_Math_Mollweide_EN_To_LatLon+0x31e>
movsd  -0xc0(%rbp),%xmm0
ff
call   1050 <asin@plt>
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  0xc70(%rip),%xmm0
mulsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0xb8(%rbp),%xmm0
ff
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0xc8(%rbp),%xmm0
ff
addsd  %xmm1,%xmm0
movsd  0xc14(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1050 <asin@plt>
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
ucomisd -0x80(%rbp),%xmm0
jbe    1422 <GPS_Math_Mollweide_EN_To_LatLon+0x2c2>
movsd  -0x80(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1479 <GPS_Math_Mollweide_EN_To_LatLon+0x319>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm1
movsd  -0x80(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
ucomisd %xmm1,%xmm0
jbe    1474 <GPS_Math_Mollweide_EN_To_LatLon+0x314>
movsd  -0x80(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1479 <GPS_Math_Mollweide_EN_To_LatLon+0x319>
jmp    147e <GPS_Math_Mollweide_EN_To_LatLon+0x31e>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm1
movaps 0xbf3(%rip),%xmm0
pand   %xmm0,%xmm1
subsd  -0x80(%rbp),%xmm1
movaps 0xbe3(%rip),%xmm0
pand   %xmm0,%xmm1
movsd  0xbbf(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    14c5 <GPS_Math_Mollweide_EN_To_LatLon+0x365>
movsd  -0x28(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1536 <GPS_Math_Mollweide_EN_To_LatLon+0x3d6>
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  0xb26(%rip),%xmm0
mulsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
call   1070 <cos@plt>
movsd  -0xe0(%rbp),%xmm2
ff
movsd  -0xd8(%rbp),%xmm1
ff
movaps %xmm0,%xmm3
movsd  -0xd0(%rbp),%xmm0
ff
mulsd  %xmm3,%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0xaba(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1565 <GPS_Math_Mollweide_EN_To_LatLon+0x405>
movsd  -0x78(%rbp),%xmm1
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movsd  0xaff(%rip),%xmm0
ucomisd (%rax),%xmm0
jbe    158c <GPS_Math_Mollweide_EN_To_LatLon+0x42c>
movsd  -0x78(%rbp),%xmm0
mov    -0x20(%rbp),%rax
addsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0xa64(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    15bb <GPS_Math_Mollweide_EN_To_LatLon+0x45b>
mov    -0x20(%rbp),%rax
movsd  0xa4e(%rip),%xmm0
movsd  %xmm0,(%rax)
jmp    15e6 <GPS_Math_Mollweide_EN_To_LatLon+0x486>
mov    -0x20(%rbp),%rax
movsd  0xaa9(%rip),%xmm0
ucomisd (%rax),%xmm0
jbe    15e1 <GPS_Math_Mollweide_EN_To_LatLon+0x481>
mov    -0x20(%rbp),%rax
movsd  0xa93(%rip),%xmm0
movsd  %xmm0,(%rax)
jmp    15e6 <GPS_Math_Mollweide_EN_To_LatLon+0x486>
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
call   1060 <GPS_Math_Rad_To_Deg@plt>
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
call   1060 <GPS_Math_Rad_To_Deg@plt>
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GPS_Math_Mollweide_EN_To_LatLon>:
push   %r14
push   %rbx
sub    $0x38,%rsp
movsd  %xmm6,(%rsp)
movsd  %xmm5,0x20(%rsp)
movsd  %xmm4,0x8(%rsp)
movsd  %xmm3,0x30(%rsp)
mov    %rsi,%r14
mov    %rdi,%rbx
movsd  %xmm1,0x10(%rsp)
movsd  %xmm0,0x18(%rsp)
movapd %xmm2,%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  0x20(%rsp),%xmm5
movapd %xmm5,%xmm1
mulsd  %xmm5,%xmm1
movsd  (%rsp),%xmm2
mulsd  %xmm2,%xmm2
movapd %xmm1,%xmm4
subsd  %xmm2,%xmm4
divsd  %xmm1,%xmm4
movapd %xmm4,%xmm2
mulsd  %xmm4,%xmm2
movapd %xmm4,%xmm3
mulsd  %xmm2,%xmm3
divsd  0xe3c(%rip),%xmm4
movsd  0xe3c(%rip),%xmm1
unpcklpd %xmm3,%xmm2
mulpd  0xe88(%rip),%xmm2
divpd  0xe90(%rip),%xmm2
addsd  %xmm1,%xmm4
subsd  %xmm2,%xmm4
unpckhpd %xmm2,%xmm2
subsd  %xmm2,%xmm4
mulsd  %xmm5,%xmm4
movsd  0xe14(%rip),%xmm2
movsd  %xmm4,(%rsp)
mulsd  %xmm4,%xmm2
movsd  0xe13(%rip),%xmm3
addsd  %xmm0,%xmm3
movsd  0xe0f(%rip),%xmm4
movapd %xmm4,%xmm5
cmpltsd %xmm0,%xmm5
andpd  %xmm5,%xmm3
andnpd %xmm0,%xmm5
orpd   %xmm3,%xmm5
movsd  0x10(%rsp),%xmm3
movapd %xmm3,%xmm0
subsd  0x8(%rsp),%xmm0
divsd  %xmm2,%xmm0
movapd 0xe36(%rip),%xmm2
andpd  %xmm0,%xmm2
ucomisd %xmm1,%xmm2
movapd %xmm5,0x20(%rsp)
jbe    127e <GPS_Math_Mollweide_EN_To_LatLon+0x12e>
movabs $0x3ff921fb5444261e,%rax
21 f9 3f
mov    %rax,(%rbx)
xorpd  %xmm2,%xmm2
ucomisd %xmm3,%xmm2
jbe    12d3 <GPS_Math_Mollweide_EN_To_LatLon+0x183>
movsd  0xdbf(%rip),%xmm1
jmp    12ff <GPS_Math_Mollweide_EN_To_LatLon+0x1af>
call   1050 <asin@plt>
movsd  %xmm0,0x8(%rsp)
addsd  %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
call   1040 <sin@plt>
addsd  0x10(%rsp),%xmm0
divsd  0xd82(%rip),%xmm0
call   1050 <asin@plt>
movsd  %xmm0,(%rbx)
movsd  0xd79(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    12dd <GPS_Math_Mollweide_EN_To_LatLon+0x18d>
movsd  0xd63(%rip),%xmm4
movapd 0x20(%rsp),%xmm5
movsd  0x8(%rsp),%xmm2
jmp    12ff <GPS_Math_Mollweide_EN_To_LatLon+0x1af>
movsd  0xd55(%rip),%xmm0
jmp    1307 <GPS_Math_Mollweide_EN_To_LatLon+0x1b7>
movsd  0xd53(%rip),%xmm1
ucomisd %xmm0,%xmm1
movsd  0xd37(%rip),%xmm4
movapd 0x20(%rsp),%xmm5
movsd  0x8(%rsp),%xmm2
jbe    1307 <GPS_Math_Mollweide_EN_To_LatLon+0x1b7>
movsd  %xmm1,(%rbx)
movapd %xmm1,%xmm0
movapd 0xd71(%rip),%xmm1
andpd  %xmm1,%xmm0
addsd  0xd1d(%rip),%xmm0
andpd  %xmm1,%xmm0
movsd  0xd19(%rip),%xmm1
ucomisd %xmm0,%xmm1
ja     1383 <GPS_Math_Mollweide_EN_To_LatLon+0x233>
movsd  (%rsp),%xmm0
mulsd  0xcde(%rip),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x18(%rsp),%xmm0
subsd  0x30(%rsp),%xmm0
mulsd  0xcd5(%rip),%xmm0
movsd  %xmm0,0x18(%rsp)
movapd %xmm2,%xmm0
call   1070 <cos@plt>
movapd 0x20(%rsp),%xmm5
movsd  0xcb8(%rip),%xmm4
mulsd  (%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
divsd  %xmm0,%xmm1
addsd  %xmm1,%xmm5
movsd  0xc95(%rip),%xmm0
addsd  %xmm5,%xmm0
movapd %xmm4,%xmm1
cmpltsd %xmm5,%xmm1
andpd  %xmm1,%xmm0
andnpd %xmm5,%xmm1
orpd   %xmm0,%xmm1
movsd  0xc9c(%rip),%xmm2
addsd  %xmm1,%xmm2
movapd %xmm1,%xmm0
cmpltsd 0xc93(%rip),%xmm0
andpd  %xmm0,%xmm2
andnpd %xmm1,%xmm0
orpd   %xmm2,%xmm0
movlpd %xmm0,(%r14)
ucomisd %xmm4,%xmm0
ja     13e2 <GPS_Math_Mollweide_EN_To_LatLon+0x292>
movsd  0xc74(%rip),%xmm4
ucomisd %xmm0,%xmm4
jbe    13eb <GPS_Math_Mollweide_EN_To_LatLon+0x29b>
movsd  %xmm4,(%r14)
movapd %xmm4,%xmm0
call   1060 <GPS_Math_Rad_To_Deg@plt>
movsd  %xmm0,(%r14)
movsd  (%rbx),%xmm0
call   1060 <GPS_Math_Rad_To_Deg@plt>
movsd  %xmm0,(%rbx)
add    $0x38,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define void @GPS_Math_Mollweide_EN_To_LatLon(double %0, double %1, double* nocapture %2, double* nocapture %3, double %4, double %5, double %6, double %7, double %8) {
%10 = tail call double @GPS_Math_Deg_To_Rad(double %4)
%11 = fmul double %7, %7
%12 = fmul double %8, %8
%13 = fsub double %11, %12
%14 = fdiv double %13, %11
%15 = fmul double %14, %14
%16 = fmul double %14, %15
%17 = fdiv double %14, 6.000000e+00
%18 = fsub double 1.000000e+00, %17
%19 = insertelement <2 x double> poison, double %15, i64 0
%20 = insertelement <2 x double> %19, double %16, i64 1
%21 = fmul <2 x double> %20, <double 1.700000e+01, double 6.700000e+01>
%22 = fdiv <2 x double> %21, <double 3.600000e+02, double 3.024000e+03>
%23 = extractelement <2 x double> %22, i64 0
%24 = fsub double %18, %23
%25 = extractelement <2 x double> %22, i64 1
%26 = fsub double %24, %25
%27 = fmul double %26, %7
%28 = fmul double %27, 0x3FF6A09E667F3BCD
%29 = fmul double %27, 0x4006A09E667F3BCD
%30 = fcmp ogt double %10, 0x400921FB5444261E
%31 = fadd double %10, 0xC01921FB5444261E
%32 = select i1 %30, double %31, double %10
%33 = fsub double %0, %5
%34 = fsub double %1, %6
%35 = fdiv double %34, %28
%36 = tail call double @llvm.fabs.f64(double %35)
%37 = fcmp ogt double %36, 1.000000e+00
br i1 %37, label %38, label %40
38: ; preds = %9
store double 0x3FF921FB5444261E, double* %2
%39 = fcmp olt double %1, 0.000000e+00
br i1 %39, label %50, label %53
40: ; preds = %9
%41 = tail call double @asin(double %35)
%42 = fmul double %41, 2.000000e+00
%43 = tail call double @sin(double %42)
%44 = fadd double %42, %43
%45 = fdiv double %44, 0x400921FB5444261E
%46 = tail call double @asin(double %45)
store double %46, double* %2
%47 = fcmp ogt double %46, 0x3FF921FB5444261E
br i1 %47, label %50, label %48
48: ; preds = %40
%49 = fcmp olt double %46, 0xBFF921FB5444261E
br i1 %49, label %50, label %53
50: ; preds = %48, %40, %38
%51 = phi double [ 0xBFF921FB5444261E, %38 ], [ 0x3FF921FB5444261E, %40 ], [ 0xBFF921FB5444261E, %48 ]
%52 = phi double [ 0.000000e+00, %38 ], [ %41, %40 ], [ %41, %48 ]
store double %51, double* %2
br label %53
53: ; preds = %50, %48, %38
%54 = phi double [ 0x3FF921FB5444261E, %38 ], [ %46, %48 ], [ %51, %50 ]
%55 = phi double [ 0.000000e+00, %38 ], [ %41, %48 ], [ %52, %50 ]
%56 = tail call double @llvm.fabs.f64(double %54)
%57 = fadd double %56, 0xBFF921FB5444261E
%58 = tail call double @llvm.fabs.f64(double %57)
%59 = fcmp olt double %58, 1.000000e-10
br i1 %59, label %66, label %60
60: ; preds = %53
%61 = fmul double %33, 0x400921FB5444261E
%62 = tail call double @cos(double %55)
%63 = fmul double %29, %62
%64 = fdiv double %61, %63
%65 = fadd double %32, %64
br label %66
66: ; preds = %53, %60
%67 = phi double [ %65, %60 ], [ %32, %53 ]
%68 = fcmp ogt double %67, 0x400921FB5444261E
%69 = fadd double %67, 0xC01921FB5444261E
%70 = select i1 %68, double %69, double %67
%71 = fcmp olt double %70, 0xC00921FB5444261E
%72 = fadd double %70, 0x401921FB5444261E
%73 = select i1 %71, double %72, double %70
store double %73, double* %3
%74 = fcmp ogt double %73, 0x400921FB5444261E
br i1 %74, label %77, label %75
75: ; preds = %66
%76 = fcmp olt double %73, 0xC00921FB5444261E
br i1 %76, label %77, label %79
77: ; preds = %75, %66
%78 = phi double [ 0x400921FB5444261E, %66 ], [ 0xC00921FB5444261E, %75 ]
store double %78, double* %3
br label %79
79: ; preds = %77, %75
%80 = phi double [ %73, %75 ], [ %78, %77 ]
%81 = tail call double @GPS_Math_Rad_To_Deg(double %80)
store double %81, double* %3
%82 = load double, double* %2
%83 = tail call double @GPS_Math_Rad_To_Deg(double %82)
store double %83, double* %2
ret void
}