#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 pow(double, double);
double sin(double);
void GPS_Math_EckertVI_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 Rsq;
  double IRa;
  double po2;
  double p2;
  double Ra;
  double theta;
  double dx;
  double dy;
  double i;
  M0 = GPS_Math_Deg_To_Rad(M0);
  p2 = (double)3.141592653589 * (double)2.;
  po2 = (double)3.141592653589 / (double)2.;
  if (M0 > 3.141592653589)
    M0 -= p2;
  a2 = a * a;
  b2 = b * b;
  e2 = (a2 - b2) / a2;
  e4 = e2 * e2;
  e6 = e2 * e4;
  Ra = a * ((double)1. - e2 / (double)6. - (double)17. * e4 / (double)360. -
            (double)67. * e6 / (double)3024.);
  Rsq = Ra / pow((double)2. + 3.141592653589, (double).5);
  IRa = (double)1. / Rsq;
  dx = E - E0;
  dy = N - N0;
  theta = IRa * dy / (double)2.;
  i = (theta + sin(theta)) / ((double)1. + po2);
  if (i > (double)1.)
    *phi = po2;
  else if (i < (double)-1.)
    *phi = -po2;
  else
    *phi = asin(i);
  *lambda = M0 + IRa * dx / ((double)1. + cos(theta));
  if (*phi > po2)
    *phi = po2;
  else if (*phi < -po2)
    *phi = -po2;
  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_EckertVI_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)
movsd  -0x28(%rbp),%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  0xe63(%rip),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  0xe4b(%rip),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
movsd  0xe2e(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    11f2 <GPS_Math_EckertVI_EN_To_LatLon+0x92>
movsd  -0x90(%rbp),%xmm1
ff
movsd  -0x28(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%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  -0x60(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  0xe04(%rip),%xmm1
divsd  %xmm1,%xmm2
movsd  0xdb8(%rip),%xmm1
subsd  %xmm2,%xmm1
movsd  0xde4(%rip),%xmm2
mulsd  -0x68(%rbp),%xmm2
movsd  0xdcf(%rip),%xmm3
divsd  %xmm3,%xmm2
subsd  %xmm2,%xmm1
movsd  0xdb7(%rip),%xmm2
mulsd  -0x70(%rbp),%xmm2
movsd  0xda2(%rip),%xmm3
divsd  %xmm3,%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  0xd66(%rip),%xmm0
movsd  0xd66(%rip),%xmm1
call   1080 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0xc8(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  0xd2d(%rip),%xmm0
divsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x8(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
mulsd  -0xb0(%rbp),%xmm0
ff
movsd  0xcf2(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0xc0(%rbp),%xmm0
ff
addsd  %xmm1,%xmm0
movsd  0xcaa(%rip),%xmm1
addsd  -0x88(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0xb8(%rbp),%xmm0
ff
movsd  0xc86(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    13b1 <GPS_Math_EckertVI_EN_To_LatLon+0x251>
movsd  -0x88(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    140d <GPS_Math_EckertVI_EN_To_LatLon+0x2ad>
movsd  0xca7(%rip),%xmm0
ucomisd -0xb8(%rbp),%xmm0
ff
jbe    13f3 <GPS_Math_EckertVI_EN_To_LatLon+0x293>
movsd  -0x88(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1408 <GPS_Math_EckertVI_EN_To_LatLon+0x2a8>
movsd  -0xb8(%rbp),%xmm0
ff
call   1050 <asin@plt>
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    140d <GPS_Math_EckertVI_EN_To_LatLon+0x2ad>
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
mulsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
call   1070 <cos@plt>
movsd  -0xd8(%rbp),%xmm1
ff
movaps %xmm0,%xmm3
movsd  -0xd0(%rbp),%xmm0
ff
movsd  0xbc1(%rip),%xmm2
addsd  %xmm3,%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
ucomisd -0x88(%rbp),%xmm0
ff
jbe    1496 <GPS_Math_EckertVI_EN_To_LatLon+0x336>
movsd  -0x88(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    14f3 <GPS_Math_EckertVI_EN_To_LatLon+0x393>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm1
movsd  -0x88(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
ucomisd %xmm1,%xmm0
jbe    14ee <GPS_Math_EckertVI_EN_To_LatLon+0x38e>
movsd  -0x88(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    14f3 <GPS_Math_EckertVI_EN_To_LatLon+0x393>
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0xafd(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1525 <GPS_Math_EckertVI_EN_To_LatLon+0x3c5>
movsd  -0x90(%rbp),%xmm1
ff
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movsd  0xb37(%rip),%xmm0
ucomisd (%rax),%xmm0
jbe    154f <GPS_Math_EckertVI_EN_To_LatLon+0x3ef>
movsd  -0x90(%rbp),%xmm0
ff
mov    -0x20(%rbp),%rax
addsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0xaa1(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    157e <GPS_Math_EckertVI_EN_To_LatLon+0x41e>
mov    -0x20(%rbp),%rax
movsd  0xa8b(%rip),%xmm0
movsd  %xmm0,(%rax)
jmp    15a9 <GPS_Math_EckertVI_EN_To_LatLon+0x449>
mov    -0x20(%rbp),%rax
movsd  0xade(%rip),%xmm0
ucomisd (%rax),%xmm0
jbe    15a4 <GPS_Math_EckertVI_EN_To_LatLon+0x444>
mov    -0x20(%rbp),%rax
movsd  0xac8(%rip),%xmm0
movsd  %xmm0,(%rax)
jmp    15a9 <GPS_Math_EckertVI_EN_To_LatLon+0x449>
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_EckertVI_EN_To_LatLon>:
push   %r14
push   %rbx
sub    $0x48,%rsp
movsd  %xmm6,0x20(%rsp)
movsd  %xmm5,0x18(%rsp)
movsd  %xmm4,0x10(%rsp)
movsd  %xmm3,0x28(%rsp)
mov    %rsi,%r14
mov    %rdi,%rbx
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,(%rsp)
movapd %xmm2,%xmm0
call   1030 <GPS_Math_Deg_To_Rad@plt>
movsd  0xe6f(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0xe6b(%rip),%xmm2
cmpltsd %xmm0,%xmm2
andpd  %xmm2,%xmm1
andnpd %xmm0,%xmm2
orpd   %xmm1,%xmm2
movapd %xmm2,0x30(%rsp)
movsd  0x18(%rsp),%xmm3
movapd %xmm3,%xmm0
mulsd  %xmm3,%xmm0
movsd  0x20(%rsp),%xmm2
mulsd  %xmm2,%xmm2
movapd %xmm0,%xmm1
subsd  %xmm2,%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
mulsd  %xmm1,%xmm0
movapd %xmm1,%xmm2
divsd  0xe24(%rip),%xmm1
mulsd  %xmm0,%xmm2
movsd  0xe20(%rip),%xmm4
addsd  %xmm4,%xmm1
unpcklpd %xmm2,%xmm0
mulpd  0xe58(%rip),%xmm0
divpd  0xe60(%rip),%xmm0
subsd  %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
subsd  %xmm0,%xmm1
mulsd  %xmm3,%xmm1
divsd  0xdf8(%rip),%xmm1
movapd %xmm4,%xmm2
divsd  %xmm1,%xmm2
movsd  (%rsp),%xmm0
subsd  0x28(%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
subsd  0x10(%rsp),%xmm0
movsd  %xmm2,0x10(%rsp)
mulsd  %xmm2,%xmm0
mulsd  0xdca(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
call   1040 <sin@plt>
movsd  0x8(%rsp),%xmm2
addsd  %xmm2,%xmm0
divsd  0xdb5(%rip),%xmm0
movsd  0xdb5(%rip),%xmm1
ucomisd 0xd8d(%rip),%xmm0
ja     12b4 <GPS_Math_EckertVI_EN_To_LatLon+0x164>
movsd  0xdb3(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    12a5 <GPS_Math_EckertVI_EN_To_LatLon+0x155>
movsd  0xd9d(%rip),%xmm1
jmp    12b4 <GPS_Math_EckertVI_EN_To_LatLon+0x164>
call   1050 <asin@plt>
movsd  0x8(%rsp),%xmm2
movapd %xmm0,%xmm1
movsd  %xmm1,(%rbx)
movsd  (%rsp),%xmm0
mulsd  0x10(%rsp),%xmm0
movsd  %xmm0,(%rsp)
movapd %xmm2,%xmm0
call   1070 <cos@plt>
addsd  0xd3f(%rip),%xmm0
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd 0x30(%rsp),%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%r14)
movsd  (%rbx),%xmm0
movsd  0xd3b(%rip),%xmm1
ucomisd %xmm1,%xmm0
ja     1311 <GPS_Math_EckertVI_EN_To_LatLon+0x1c1>
movsd  0xd35(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    131a <GPS_Math_EckertVI_EN_To_LatLon+0x1ca>
movsd  %xmm1,(%rbx)
movsd  (%r14),%xmm2
movsd  0xce6(%rip),%xmm3
ucomisd %xmm3,%xmm2
movsd  0xcd2(%rip),%xmm0
addsd  %xmm2,%xmm0
movapd %xmm3,%xmm1
cmpltsd %xmm2,%xmm1
andpd  %xmm1,%xmm0
andnpd %xmm2,%xmm1
orpd   %xmm0,%xmm1
movsd  0xd01(%rip),%xmm2
movapd %xmm1,%xmm0
cmpltsd 0xcfc(%rip),%xmm0
addsd  %xmm1,%xmm2
andpd  %xmm0,%xmm2
andnpd %xmm1,%xmm0
orpd   %xmm2,%xmm0
ja     1384 <GPS_Math_EckertVI_EN_To_LatLon+0x234>
movsd  0xce2(%rip),%xmm2
ucomisd %xmm1,%xmm2
ja     1384 <GPS_Math_EckertVI_EN_To_LatLon+0x234>
ucomisd %xmm3,%xmm0
jbe    138f <GPS_Math_EckertVI_EN_To_LatLon+0x23f>
jmp    139d <GPS_Math_EckertVI_EN_To_LatLon+0x24d>
movsd  %xmm0,(%r14)
ucomisd %xmm3,%xmm0
ja     139d <GPS_Math_EckertVI_EN_To_LatLon+0x24d>
movsd  0xcc1(%rip),%xmm3
ucomisd %xmm0,%xmm3
jbe    13a6 <GPS_Math_EckertVI_EN_To_LatLon+0x256>
movsd  %xmm3,(%r14)
movapd %xmm3,%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    $0x48,%rsp
pop    %rbx
pop    %r14
ret

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

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