#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 */
int M_PI;
int cos(double);
double pow(int, double);
int sin(double);
double sqrt(int);
double tan(double);
void osGridToLatLong(double *x, double *y) {
  double E = *x;
  double N = *y;
  double a = 6377563.396, b = 6356256.909;
  double F0 = 0.9996012717;
  double lat0 = 49 * M_PI / 180, lon0 = -2 * M_PI / 180;
  double N0 = -100000, E0 = 400000;
  double e2 = 1 - (b * b) / (a * a);
  double n = (a - b) / (a + b), n2 = n * n, n3 = n * n * n;
  double lat = lat0, M = 0;
  do {
    lat = (N - N0 - M) / (a * F0) + lat;
    double Ma = (1 + n + (5 / 4) * n2 + (5 / 4) * n3) * (lat - lat0);
    double Mb =
        (3 * n + 3 * n * n + (21 / 8) * n3) * sin(lat - lat0) * cos(lat + lat0);
    double Mc = ((15 / 8) * n2 + (15 / 8) * n3) * sin(2 * (lat - lat0)) *
                cos(2 * (lat + lat0));
    double Md = (35 / 24) * n3 * sin(3 * (lat - lat0)) * cos(3 * (lat + lat0));
    M = b * F0 * (Ma - Mb + Mc - Md);
  } while (N - N0 - M >= 0.00001);
  double cosLat = cos(lat), sinLat = sin(lat);
  double nu = a * F0 / sqrt(1 - e2 * sinLat * sinLat);
  double rho = a * F0 * (1 - e2) / pow(1 - e2 * sinLat * sinLat, 1.5);
  double eta2 = nu / rho - 1;
  double tanLat = tan(lat);
  double tan2lat = tanLat * tanLat, tan4lat = tan2lat * tan2lat,
         tan6lat = tan4lat * tan2lat;
  double secLat = 1 / cosLat;
  double nu3 = nu * nu * nu, nu5 = nu3 * nu * nu, nu7 = nu5 * nu * nu;
  double VII = tanLat / (2 * rho * nu);
  double VIII =
      tanLat / (24 * rho * nu3) * (5 + 3 * tan2lat + eta2 - 9 * tan2lat * eta2);
  double IX = tanLat / (720 * rho * nu5) * (61 + 90 * tan2lat + 45 * tan4lat);
  double X = secLat / nu;
  double XI = secLat / (6 * nu3) * (nu / rho + 2 * tan2lat);
  double XII = secLat / (120 * nu5) * (5 + 28 * tan2lat + 24 * tan4lat);
  double XIIA = secLat / (5040 * nu7) *
                (61 + 662 * tan2lat + 1320 * tan4lat + 720 * tan6lat);
  double dE = (E - E0), dE2 = dE * dE, dE3 = dE2 * dE, dE4 = dE2 * dE2,
         dE5 = dE3 * dE2, dE6 = dE4 * dE2, dE7 = dE5 * dE2;
  lat = lat - VII * dE2 + VIII * dE4 - IX * dE6;
  double lon = lon0 + X * dE - XI * dE3 + XII * dE5 - XIIA * dE7;
  *x = lat * 57.29577951308232;
  *y = lon * 57.29577951308232;
}


x86 assembly (clang, -O0):
<osGridToLatLong>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1d0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xea3(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe8e(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe79(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    0x2e3d(%rip),%rax
imul   $0x31,(%rax),%eax
mov    $0xb4,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    0x2e22(%rip),%rax
imul   $0xfffffffe,(%rax),%eax
mov    $0xb4,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xe2b(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xe16(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x30(%rbp),%xmm1
mulsd  -0x30(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
divsd  %xmm0,%xmm1
movsd  0xde9(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x28(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
addsd  -0x30(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x68(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
subsd  -0x50(%rbp),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
movsd  -0x28(%rbp),%xmm1
mulsd  -0x38(%rbp),%xmm1
divsd  %xmm1,%xmm0
addsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  0xd59(%rip),%xmm0
addsd  -0x68(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm1
addsd  %xmm0,%xmm1
movsd  -0x78(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  -0x80(%rbp),%xmm1
subsd  -0x40(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x68(%rbp),%xmm1
movsd  0xd4f(%rip),%xmm0
mulsd  -0x68(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
movsd  0xd3d(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x78(%rbp),%xmm0
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x1b8(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
call   1030 <sin@plt>
movsd  -0x1b8(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x1b0(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
addsd  -0x40(%rbp),%xmm0
call   1050 <cos@plt>
movsd  -0x1b0(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
movsd  0xc95(%rip),%xmm1
mulsd  -0x78(%rbp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x1a8(%rbp)
ff
movsd  -0x80(%rbp),%xmm1
subsd  -0x40(%rbp),%xmm1
movsd  0xcaa(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1030 <sin@plt>
movsd  -0x1a8(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x1a0(%rbp)
ff
movsd  -0x80(%rbp),%xmm1
addsd  -0x40(%rbp),%xmm1
movsd  0xc77(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1050 <cos@plt>
movsd  -0x1a0(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  0xc16(%rip),%xmm0
mulsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x198(%rbp)
ff
movsd  -0x80(%rbp),%xmm1
subsd  -0x40(%rbp),%xmm1
movsd  0xc27(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1030 <sin@plt>
movsd  -0x198(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x190(%rbp)
ff
movsd  -0x80(%rbp),%xmm1
addsd  -0x40(%rbp),%xmm1
movsd  0xbf4(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1050 <cos@plt>
movsd  -0x190(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  -0x90(%rbp),%xmm1
ff
subsd  -0x98(%rbp),%xmm1
ff
addsd  -0xa0(%rbp),%xmm1
ff
subsd  -0xa8(%rbp),%xmm1
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
subsd  -0x50(%rbp),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
movsd  0xb93(%rip),%xmm1
ucomisd %xmm1,%xmm0
jae    1275 <osGridToLatLong+0x125>
movsd  -0x80(%rbp),%xmm0
call   1050 <cos@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
call   1030 <sin@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x1c8(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
mulsd  -0xb8(%rbp),%xmm0
ff
movsd  -0xb8(%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
cvttsd2si %xmm0,%edi
call   1070 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x1c8(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  0xa9d(%rip),%xmm1
subsd  -0x60(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x1c0(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
mulsd  -0xb8(%rbp),%xmm0
ff
movsd  -0xb8(%rbp),%xmm1
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xa54(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
movsd  0xafc(%rip),%xmm0
call   1060 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x1c0(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0xc0(%rbp),%xmm0
ff
divsd  -0xc8(%rbp),%xmm0
ff
movsd  0xa10(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
call   1040 <tan@plt>
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0xd8(%rbp),%xmm0
ff
mulsd  -0xd8(%rbp),%xmm0
ff
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0xe0(%rbp),%xmm0
ff
mulsd  -0xe0(%rbp),%xmm0
ff
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0xe8(%rbp),%xmm0
ff
mulsd  -0xe0(%rbp),%xmm0
ff
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  0x9a2(%rip),%xmm0
divsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0xc0(%rbp),%xmm0
ff
mulsd  -0xc0(%rbp),%xmm0
ff
mulsd  -0xc0(%rbp),%xmm0
ff
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0x100(%rbp),%xmm0
ff
mulsd  -0xc0(%rbp),%xmm0
ff
mulsd  -0xc0(%rbp),%xmm0
ff
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0x108(%rbp),%xmm0
ff
mulsd  -0xc0(%rbp),%xmm0
ff
mulsd  -0xc0(%rbp),%xmm0
ff
movsd  %xmm0,-0x110(%rbp)
ff
movsd  -0xd8(%rbp),%xmm0
ff
movsd  0x95a(%rip),%xmm1
mulsd  -0xc8(%rbp),%xmm1
ff
mulsd  -0xc0(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x118(%rbp)
ff
movsd  -0xd8(%rbp),%xmm0
ff
movsd  0x96e(%rip),%xmm1
mulsd  -0xc8(%rbp),%xmm1
ff
mulsd  -0x100(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  -0xe0(%rbp),%xmm2
ff
movsd  0x902(%rip),%xmm1
mulsd  %xmm1,%xmm2
movsd  0x94e(%rip),%xmm1
addsd  %xmm1,%xmm2
addsd  -0xd0(%rbp),%xmm2
ff
movsd  0x962(%rip),%xmm1
mulsd  -0xe0(%rbp),%xmm1
ff
movsd  -0xd0(%rbp),%xmm3
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
movsd  -0xd8(%rbp),%xmm0
ff
movsd  0x8b7(%rip),%xmm1
mulsd  -0xc8(%rbp),%xmm1
ff
mulsd  -0x108(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  -0xe0(%rbp),%xmm2
ff
movsd  0x8eb(%rip),%xmm1
mulsd  %xmm1,%xmm2
movsd  0x89f(%rip),%xmm1
addsd  %xmm1,%xmm2
movsd  -0xe8(%rbp),%xmm1
ff
movsd  0x8c3(%rip),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x128(%rbp)
ff
movsd  -0xf8(%rbp),%xmm0
ff
divsd  -0xc0(%rbp),%xmm0
movsd  %xmm0,-0x130(%rbp)
ff
movsd  -0xf8(%rbp),%xmm0
ff
movsd  0x87f(%rip),%xmm1
mulsd  -0x100(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  -0xc0(%rbp),%xmm2
ff
divsd  -0xc8(%rbp),%xmm2
ff
movsd  -0xe0(%rbp),%xmm1
ff
addsd  %xmm1,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x138(%rbp)
ff
movsd  -0xf8(%rbp),%xmm0
ff
movsd  0x82f(%rip),%xmm1
mulsd  -0x108(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  -0xe0(%rbp),%xmm2
ff
movsd  0x803(%rip),%xmm1
mulsd  %xmm1,%xmm2
movsd  0x7ff(%rip),%xmm1
addsd  %xmm1,%xmm2
movsd  -0xe8(%rbp),%xmm1
ff
movsd  0x7db(%rip),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x140(%rbp)
ff
movsd  -0xf8(%rbp),%xmm0
ff
movsd  0x7af(%rip),%xmm1
mulsd  -0x110(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  -0xe0(%rbp),%xmm1
ff
movsd  0x783(%rip),%xmm2
mulsd  %xmm2,%xmm1
movsd  0x77f(%rip),%xmm2
addsd  %xmm2,%xmm1
movsd  -0xe8(%rbp),%xmm2
ff
movsd  0x75b(%rip),%xmm3
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  -0xf0(%rbp),%xmm1
ff
movsd  0x73b(%rip),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x148(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
subsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x150(%rbp)
ff
movsd  -0x150(%rbp),%xmm0
ff
mulsd  -0x150(%rbp),%xmm0
ff
movsd  %xmm0,-0x158(%rbp)
ff
movsd  -0x158(%rbp),%xmm0
ff
mulsd  -0x150(%rbp),%xmm0
ff
movsd  %xmm0,-0x160(%rbp)
ff
movsd  -0x158(%rbp),%xmm0
ff
mulsd  -0x158(%rbp),%xmm0
ff
movsd  %xmm0,-0x168(%rbp)
ff
movsd  -0x160(%rbp),%xmm0
ff
mulsd  -0x158(%rbp),%xmm0
ff
movsd  %xmm0,-0x170(%rbp)
ff
movsd  -0x168(%rbp),%xmm0
ff
mulsd  -0x158(%rbp),%xmm0
ff
movsd  %xmm0,-0x178(%rbp)
ff
movsd  -0x170(%rbp),%xmm0
ff
mulsd  -0x158(%rbp),%xmm0
ff
movsd  %xmm0,-0x180(%rbp)
ff
movsd  -0x80(%rbp),%xmm1
movsd  -0x118(%rbp),%xmm0
ff
movsd  -0x158(%rbp),%xmm2
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x120(%rbp),%xmm1
ff
movsd  -0x168(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x128(%rbp),%xmm0
ff
movsd  -0x178(%rbp),%xmm2
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x130(%rbp),%xmm1
ff
movsd  -0x150(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x138(%rbp),%xmm0
ff
movsd  -0x160(%rbp),%xmm2
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x140(%rbp),%xmm1
ff
movsd  -0x170(%rbp),%xmm2
ff
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x148(%rbp),%xmm0
ff
movsd  -0x180(%rbp),%xmm2
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x188(%rbp)
ff
movsd  0x55a(%rip),%xmm0
mulsd  -0x80(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  0x545(%rip),%xmm0
mulsd  -0x188(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0x1d0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<osGridToLatLong>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x50,%rsp
mov    %rsi,%r14
mov    %rdi,%r15
movsd  (%rdi),%xmm0
movsd  %xmm0,0x48(%rsp)
movsd  (%rsi),%xmm0
mov    0x2e71(%rip),%rax
mov    (%rax),%r12d
imul   $0x31,%r12d,%eax
cltq
imul   $0xffffffffb60b60b7,%rax,%rcx
shr    $0x20,%rcx
add    %ecx,%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
sar    $0x7,%eax
add    %ecx,%eax
cvtsi2sd %eax,%xmm1
addsd  0xe5d(%rip),%xmm0
movsd  %xmm0,0x28(%rsp)
xorpd  %xmm2,%xmm2
movsd  %xmm1,0x20(%rsp)
movsd  %xmm1,0x8(%rsp)
nopl   0x0(%rax)
movsd  0x28(%rsp),%xmm0
subsd  %xmm2,%xmm0
divsd  0xe36(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movapd %xmm1,%xmm0
subsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
movapd %xmm0,%xmm1
mulsd  0xe12(%rip),%xmm1
movsd  %xmm1,0x18(%rsp)
call   1030 <sin@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xe00(%rip),%xmm0
movsd  %xmm0,0x40(%rsp)
movsd  0x8(%rsp),%xmm0
addsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
call   1050 <cos@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x40(%rsp),%xmm0
addsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0x30(%rsp),%xmm0
addsd  %xmm0,%xmm0
call   1030 <sin@plt>
mov    %eax,%ebp
movsd  0x10(%rsp),%xmm0
addsd  %xmm0,%xmm0
call   1050 <cos@plt>
mov    %eax,%ebx
movsd  0xda8(%rip),%xmm1
movsd  0x30(%rsp),%xmm0
mulsd  %xmm1,%xmm0
call   1030 <sin@plt>
movd   %ebp,%xmm0
movd   %eax,%xmm1
punpckldq %xmm1,%xmm0
cvtdq2pd %xmm0,%xmm0
mulpd  0xe41(%rip),%xmm0
movapd %xmm0,0x30(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  0xd6d(%rip),%xmm0
call   1050 <cos@plt>
movsd  0x18(%rsp),%xmm2
movd   %ebx,%xmm0
movd   %eax,%xmm1
punpckldq %xmm1,%xmm0
cvtdq2pd %xmm0,%xmm0
mulpd  0x30(%rsp),%xmm0
addsd  %xmm0,%xmm2
unpckhpd %xmm0,%xmm0
subsd  %xmm0,%xmm2
mulsd  0xd40(%rip),%xmm2
movsd  0x28(%rsp),%xmm0
subsd  %xmm2,%xmm0
ucomisd 0xd36(%rip),%xmm0
jae    11c0 <osGridToLatLong+0x70>
movslq %r12d,%rax
imul   $0x49f49f49,%rax,%rax
shr    $0x20,%rax
sub    %r12d,%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
sar    $0x6,%eax
add    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x28(%rsp)
movsd  0x8(%rsp),%xmm0
call   1050 <cos@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0x8(%rsp),%xmm0
call   1030 <sin@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0xcde(%rip),%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
addsd  0xcd6(%rip),%xmm1
cvttsd2si %xmm1,%ebx
mov    %ebx,%edi
call   1070 <sqrt@plt>
movsd  0xc8b(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x30(%rsp)
movsd  0xcb9(%rip),%xmm0
mov    %ebx,%edi
call   1060 <pow@plt>
movsd  0xcb2(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0x30(%rsp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0xc98(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x40(%rsp)
movsd  0x8(%rsp),%xmm0
call   1040 <tan@plt>
movapd %xmm0,%xmm6
mulsd  %xmm0,%xmm6
movsd  0xc5a(%rip),%xmm8
divsd  0x18(%rsp),%xmm8
movsd  0x30(%rsp),%xmm1
movapd %xmm1,%xmm15
mulsd  %xmm1,%xmm15
mulsd  %xmm1,%xmm15
movsd  0xc55(%rip),%xmm9
movsd  0x10(%rsp),%xmm12
movapd %xmm12,%xmm2
mulsd  %xmm9,%xmm2
mulsd  %xmm15,%xmm2
movapd %xmm0,%xmm4
divsd  %xmm2,%xmm4
movsd  0xbef(%rip),%xmm7
mulsd  %xmm6,%xmm7
movsd  0xc2a(%rip),%xmm13
addsd  %xmm13,%xmm7
movsd  0x40(%rsp),%xmm2
addsd  %xmm2,%xmm7
movsd  0xc1b(%rip),%xmm5
mulsd  %xmm6,%xmm5
mulsd  %xmm2,%xmm5
movapd %xmm6,%xmm3
mulsd  %xmm6,%xmm3
addsd  %xmm7,%xmm5
mulsd  %xmm4,%xmm5
movsd  0xc0b(%rip),%xmm4
mulsd  %xmm6,%xmm4
addsd  0xc07(%rip),%xmm4
movsd  0xc06(%rip),%xmm11
mulsd  %xmm3,%xmm11
addsd  %xmm4,%xmm11
movapd %xmm1,%xmm2
mulsd  %xmm15,%xmm2
mulsd  %xmm1,%xmm2
movapd %xmm1,%xmm4
mulsd  %xmm2,%xmm4
mulsd  %xmm1,%xmm4
movapd %xmm1,%xmm10
movapd %xmm12,%xmm1
movapd %xmm12,%xmm7
addsd  %xmm12,%xmm7
mulsd  %xmm10,%xmm7
movapd %xmm8,%xmm12
divsd  %xmm10,%xmm12
movapd %xmm6,%xmm10
addsd  %xmm6,%xmm10
addsd  0x20(%rsp),%xmm10
movsd  0xb8e(%rip),%xmm14
mulsd  %xmm14,%xmm1
mulsd  %xmm2,%xmm1
movsd  %xmm1,0x10(%rsp)
mulsd  0xb9f(%rip),%xmm2
movapd %xmm8,%xmm1
divsd  %xmm2,%xmm1
movsd  0xb96(%rip),%xmm2
mulsd  %xmm6,%xmm2
addsd  %xmm13,%xmm2
mulsd  %xmm3,%xmm9
addsd  %xmm2,%xmm9
mulsd  %xmm1,%xmm9
movapd %xmm6,%xmm13
mulsd  0xb81(%rip),%xmm6
addsd  0xb49(%rip),%xmm6
mulsd  %xmm3,%xmm13
mulsd  0xb74(%rip),%xmm3
addsd  %xmm6,%xmm3
mulsd  %xmm14,%xmm13
addsd  %xmm3,%xmm13
movsd  0x48(%rsp),%xmm2
addsd  0xb60(%rip),%xmm2
movapd %xmm0,%xmm1
divsd  %xmm7,%xmm1
movapd %xmm2,%xmm3
mulsd  %xmm2,%xmm3
mulsd  %xmm3,%xmm1
movsd  0x8(%rsp),%xmm7
subsd  %xmm1,%xmm7
movapd %xmm3,%xmm6
mulsd  %xmm3,%xmm6
movapd %xmm3,%xmm1
mulsd  %xmm6,%xmm1
mulsd  %xmm5,%xmm6
addsd  %xmm7,%xmm6
divsd  0x10(%rsp),%xmm0
mulsd  %xmm11,%xmm0
mulsd  %xmm1,%xmm0
subsd  %xmm0,%xmm6
movapd %xmm2,%xmm0
mulsd  %xmm12,%xmm2
mulsd  0xad5(%rip),%xmm15
addsd  0x28(%rsp),%xmm2
movapd %xmm8,%xmm1
divsd  %xmm15,%xmm1
mulsd  %xmm3,%xmm0
mulsd  %xmm10,%xmm1
movapd %xmm3,%xmm5
mulsd  %xmm0,%xmm5
mulsd  %xmm0,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm5,%xmm3
mulsd  %xmm9,%xmm5
addsd  %xmm1,%xmm5
mulsd  0xaaf(%rip),%xmm4
divsd  %xmm4,%xmm8
mulsd  %xmm13,%xmm8
mulsd  %xmm3,%xmm8
addsd  %xmm5,%xmm8
movsd  0xab3(%rip),%xmm0
mulsd  %xmm0,%xmm6
movsd  %xmm6,(%r15)
mulsd  %xmm0,%xmm8
movsd  %xmm8,(%r14)
add    $0x50,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@M_PI = global i32 0
define void @osGridToLatLong(double* %0, double* %1) {
%3 = alloca double*
%4 = alloca double*
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%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
%48 = alloca double
%49 = alloca double
%50 = alloca double
%51 = alloca double
store double* %0, double** %3
store double* %1, double** %4
%52 = load double*, double** %3
%53 = load double, double* %52
store double %53, double* %5
%54 = load double*, double** %4
%55 = load double, double* %54
store double %55, double* %6
store double 0x41585416D9581062, double* %7
store double 0x41583F483A2D0E56, double* %8
store double 0x3FEFFCBBCE5FBA74, double* %9
%56 = load i32, i32* @M_PI
%57 = mul nsw i32 49, %56
%58 = sdiv i32 %57, 180
%59 = sitofp i32 %58 to double
store double %59, double* %10
%60 = load i32, i32* @M_PI
%61 = mul nsw i32 -2, %60
%62 = sdiv i32 %61, 180
%63 = sitofp i32 %62 to double
store double %63, double* %11
store double -1.000000e+05, double* %12
store double 4.000000e+05, double* %13
%64 = load double, double* %8
%65 = load double, double* %8
%66 = fmul double %64, %65
%67 = load double, double* %7
%68 = load double, double* %7
%69 = fmul double %67, %68
%70 = fdiv double %66, %69
%71 = fsub double 1.000000e+00, %70
store double %71, double* %14
%72 = load double, double* %7
%73 = load double, double* %8
%74 = fsub double %72, %73
%75 = load double, double* %7
%76 = load double, double* %8
%77 = fadd double %75, %76
%78 = fdiv double %74, %77
store double %78, double* %15
%79 = load double, double* %15
%80 = load double, double* %15
%81 = fmul double %79, %80
store double %81, double* %16
%82 = load double, double* %15
%83 = load double, double* %15
%84 = fmul double %82, %83
%85 = load double, double* %15
%86 = fmul double %84, %85
store double %86, double* %17
%87 = load double, double* %10
store double %87, double* %18
store double 0.000000e+00, double* %19
br label %88
88: ; preds = %175, %2
%89 = load double, double* %6
%90 = load double, double* %12
%91 = fsub double %89, %90
%92 = load double, double* %19
%93 = fsub double %91, %92
%94 = load double, double* %7
%95 = load double, double* %9
%96 = fmul double %94, %95
%97 = fdiv double %93, %96
%98 = load double, double* %18
%99 = fadd double %97, %98
store double %99, double* %18
%100 = load double, double* %15
%101 = fadd double 1.000000e+00, %100
%102 = load double, double* %16
%103 = call double @llvm.fmuladd.f64(double 1.000000e+00, double %102, double %101)
%104 = load double, double* %17
%105 = call double @llvm.fmuladd.f64(double 1.000000e+00, double %104, double %103)
%106 = load double, double* %18
%107 = load double, double* %10
%108 = fsub double %106, %107
%109 = fmul double %105, %108
store double %109, double* %20
%110 = load double, double* %15
%111 = load double, double* %15
%112 = fmul double 3.000000e+00, %111
%113 = load double, double* %15
%114 = fmul double %112, %113
%115 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %110, double %114)
%116 = load double, double* %17
%117 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %116, double %115)
%118 = load double, double* %18
%119 = load double, double* %10
%120 = fsub double %118, %119
%121 = call i32 @sin(double %120)
%122 = sitofp i32 %121 to double
%123 = fmul double %117, %122
%124 = load double, double* %18
%125 = load double, double* %10
%126 = fadd double %124, %125
%127 = call i32 @cos(double %126)
%128 = sitofp i32 %127 to double
%129 = fmul double %123, %128
store double %129, double* %21
%130 = load double, double* %16
%131 = load double, double* %17
%132 = fmul double 1.000000e+00, %131
%133 = call double @llvm.fmuladd.f64(double 1.000000e+00, double %130, double %132)
%134 = load double, double* %18
%135 = load double, double* %10
%136 = fsub double %134, %135
%137 = fmul double 2.000000e+00, %136
%138 = call i32 @sin(double %137)
%139 = sitofp i32 %138 to double
%140 = fmul double %133, %139
%141 = load double, double* %18
%142 = load double, double* %10
%143 = fadd double %141, %142
%144 = fmul double 2.000000e+00, %143
%145 = call i32 @cos(double %144)
%146 = sitofp i32 %145 to double
%147 = fmul double %140, %146
store double %147, double* %22
%148 = load double, double* %17
%149 = fmul double 1.000000e+00, %148
%150 = load double, double* %18
%151 = load double, double* %10
%152 = fsub double %150, %151
%153 = fmul double 3.000000e+00, %152
%154 = call i32 @sin(double %153)
%155 = sitofp i32 %154 to double
%156 = fmul double %149, %155
%157 = load double, double* %18
%158 = load double, double* %10
%159 = fadd double %157, %158
%160 = fmul double 3.000000e+00, %159
%161 = call i32 @cos(double %160)
%162 = sitofp i32 %161 to double
%163 = fmul double %156, %162
store double %163, double* %23
%164 = load double, double* %8
%165 = load double, double* %9
%166 = fmul double %164, %165
%167 = load double, double* %20
%168 = load double, double* %21
%169 = fsub double %167, %168
%170 = load double, double* %22
%171 = fadd double %169, %170
%172 = load double, double* %23
%173 = fsub double %171, %172
%174 = fmul double %166, %173
store double %174, double* %19
br label %175
175: ; preds = %88
%176 = load double, double* %6
%177 = load double, double* %12
%178 = fsub double %176, %177
%179 = load double, double* %19
%180 = fsub double %178, %179
%181 = fcmp oge double %180, 1.000000e-05
br i1 %181, label %88, label %182
182: ; preds = %175
%183 = load double, double* %18
%184 = call i32 @cos(double %183)
%185 = sitofp i32 %184 to double
store double %185, double* %24
%186 = load double, double* %18
%187 = call i32 @sin(double %186)
%188 = sitofp i32 %187 to double
store double %188, double* %25
%189 = load double, double* %7
%190 = load double, double* %9
%191 = fmul double %189, %190
%192 = load double, double* %14
%193 = load double, double* %25
%194 = fmul double %192, %193
%195 = load double, double* %25
%196 = fneg double %194
%197 = call double @llvm.fmuladd.f64(double %196, double %195, double 1.000000e+00)
%198 = fptosi double %197 to i32
%199 = call double @sqrt(i32 %198)
%200 = fdiv double %191, %199
store double %200, double* %26
%201 = load double, double* %7
%202 = load double, double* %9
%203 = fmul double %201, %202
%204 = load double, double* %14
%205 = fsub double 1.000000e+00, %204
%206 = fmul double %203, %205
%207 = load double, double* %14
%208 = load double, double* %25
%209 = fmul double %207, %208
%210 = load double, double* %25
%211 = fneg double %209
%212 = call double @llvm.fmuladd.f64(double %211, double %210, double 1.000000e+00)
%213 = fptosi double %212 to i32
%214 = call double @pow(i32 %213, double 1.500000e+00)
%215 = fdiv double %206, %214
store double %215, double* %27
%216 = load double, double* %26
%217 = load double, double* %27
%218 = fdiv double %216, %217
%219 = fsub double %218, 1.000000e+00
store double %219, double* %28
%220 = load double, double* %18
%221 = call double @tan(double %220)
store double %221, double* %29
%222 = load double, double* %29
%223 = load double, double* %29
%224 = fmul double %222, %223
store double %224, double* %30
%225 = load double, double* %30
%226 = load double, double* %30
%227 = fmul double %225, %226
store double %227, double* %31
%228 = load double, double* %31
%229 = load double, double* %30
%230 = fmul double %228, %229
store double %230, double* %32
%231 = load double, double* %24
%232 = fdiv double 1.000000e+00, %231
store double %232, double* %33
%233 = load double, double* %26
%234 = load double, double* %26
%235 = fmul double %233, %234
%236 = load double, double* %26
%237 = fmul double %235, %236
store double %237, double* %34
%238 = load double, double* %34
%239 = load double, double* %26
%240 = fmul double %238, %239
%241 = load double, double* %26
%242 = fmul double %240, %241
store double %242, double* %35
%243 = load double, double* %35
%244 = load double, double* %26
%245 = fmul double %243, %244
%246 = load double, double* %26
%247 = fmul double %245, %246
store double %247, double* %36
%248 = load double, double* %29
%249 = load double, double* %27
%250 = fmul double 2.000000e+00, %249
%251 = load double, double* %26
%252 = fmul double %250, %251
%253 = fdiv double %248, %252
store double %253, double* %37
%254 = load double, double* %29
%255 = load double, double* %27
%256 = fmul double 2.400000e+01, %255
%257 = load double, double* %34
%258 = fmul double %256, %257
%259 = fdiv double %254, %258
%260 = load double, double* %30
%261 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %260, double 5.000000e+00)
%262 = load double, double* %28
%263 = fadd double %261, %262
%264 = load double, double* %30
%265 = fmul double 9.000000e+00, %264
%266 = load double, double* %28
%267 = fneg double %265
%268 = call double @llvm.fmuladd.f64(double %267, double %266, double %263)
%269 = fmul double %259, %268
store double %269, double* %38
%270 = load double, double* %29
%271 = load double, double* %27
%272 = fmul double 7.200000e+02, %271
%273 = load double, double* %35
%274 = fmul double %272, %273
%275 = fdiv double %270, %274
%276 = load double, double* %30
%277 = call double @llvm.fmuladd.f64(double 9.000000e+01, double %276, double 6.100000e+01)
%278 = load double, double* %31
%279 = call double @llvm.fmuladd.f64(double 4.500000e+01, double %278, double %277)
%280 = fmul double %275, %279
store double %280, double* %39
%281 = load double, double* %33
%282 = load double, double* %26
%283 = fdiv double %281, %282
store double %283, double* %40
%284 = load double, double* %33
%285 = load double, double* %34
%286 = fmul double 6.000000e+00, %285
%287 = fdiv double %284, %286
%288 = load double, double* %26
%289 = load double, double* %27
%290 = fdiv double %288, %289
%291 = load double, double* %30
%292 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %291, double %290)
%293 = fmul double %287, %292
store double %293, double* %41
%294 = load double, double* %33
%295 = load double, double* %35
%296 = fmul double 1.200000e+02, %295
%297 = fdiv double %294, %296
%298 = load double, double* %30
%299 = call double @llvm.fmuladd.f64(double 2.800000e+01, double %298, double 5.000000e+00)
%300 = load double, double* %31
%301 = call double @llvm.fmuladd.f64(double 2.400000e+01, double %300, double %299)
%302 = fmul double %297, %301
store double %302, double* %42
%303 = load double, double* %33
%304 = load double, double* %36
%305 = fmul double 5.040000e+03, %304
%306 = fdiv double %303, %305
%307 = load double, double* %30
%308 = call double @llvm.fmuladd.f64(double 6.620000e+02, double %307, double 6.100000e+01)
%309 = load double, double* %31
%310 = call double @llvm.fmuladd.f64(double 1.320000e+03, double %309, double %308)
%311 = load double, double* %32
%312 = call double @llvm.fmuladd.f64(double 7.200000e+02, double %311, double %310)
%313 = fmul double %306, %312
store double %313, double* %43
%314 = load double, double* %5
%315 = load double, double* %13
%316 = fsub double %314, %315
store double %316, double* %44
%317 = load double, double* %44
%318 = load double, double* %44
%319 = fmul double %317, %318
store double %319, double* %45
%320 = load double, double* %45
%321 = load double, double* %44
%322 = fmul double %320, %321
store double %322, double* %46
%323 = load double, double* %45
%324 = load double, double* %45
%325 = fmul double %323, %324
store double %325, double* %47
%326 = load double, double* %46
%327 = load double, double* %45
%328 = fmul double %326, %327
store double %328, double* %48
%329 = load double, double* %47
%330 = load double, double* %45
%331 = fmul double %329, %330
store double %331, double* %49
%332 = load double, double* %48
%333 = load double, double* %45
%334 = fmul double %332, %333
store double %334, double* %50
%335 = load double, double* %18
%336 = load double, double* %37
%337 = load double, double* %45
%338 = fneg double %336
%339 = call double @llvm.fmuladd.f64(double %338, double %337, double %335)
%340 = load double, double* %38
%341 = load double, double* %47
%342 = call double @llvm.fmuladd.f64(double %340, double %341, double %339)
%343 = load double, double* %39
%344 = load double, double* %49
%345 = fneg double %343
%346 = call double @llvm.fmuladd.f64(double %345, double %344, double %342)
store double %346, double* %18
%347 = load double, double* %11
%348 = load double, double* %40
%349 = load double, double* %44
%350 = call double @llvm.fmuladd.f64(double %348, double %349, double %347)
%351 = load double, double* %41
%352 = load double, double* %46
%353 = fneg double %351
%354 = call double @llvm.fmuladd.f64(double %353, double %352, double %350)
%355 = load double, double* %42
%356 = load double, double* %48
%357 = call double @llvm.fmuladd.f64(double %355, double %356, double %354)
%358 = load double, double* %43
%359 = load double, double* %50
%360 = fneg double %358
%361 = call double @llvm.fmuladd.f64(double %360, double %359, double %357)
store double %361, double* %51
%362 = load double, double* %18
%363 = fmul double %362, 0x404CA5DC1A63C1F8
%364 = load double*, double** %3
store double %363, double* %364
%365 = load double, double* %51
%366 = fmul double %365, 0x404CA5DC1A63C1F8
%367 = load double*, double** %4
store double %366, double* %367
ret void
}

LLVM IR (-O2):
@M_PI = global i32 0
define void @osGridToLatLong(double* nocapture %0, double* nocapture %1) {
%3 = load double, double* %0
%4 = load double, double* %1
%5 = load i32, i32* @M_PI
%6 = mul nsw i32 %5, 49
%7 = sdiv i32 %6, 180
%8 = sitofp i32 %7 to double
%9 = fadd double %4, 1.000000e+05
br label %10
10: ; preds = %10, %2
%11 = phi double [ 0.000000e+00, %2 ], [ %46, %10 ]
%12 = phi double [ %8, %2 ], [ %15, %10 ]
%13 = fsub double %9, %11
%14 = fdiv double %13, 0x4158519B1EC885F7
%15 = fadd double %12, %14
%16 = fsub double %15, %8
%17 = fmul double %16, 0x3FF006DD7072FC96
%18 = tail call i32 @sin(double %16)
%19 = sitofp i32 %18 to double
%20 = fmul double %19, 0x3F749850170BE3C1
%21 = fadd double %15, %8
%22 = tail call i32 @cos(double %21)
%23 = sitofp i32 %22 to double
%24 = fmul double %20, %23
%25 = fmul double %16, 2.000000e+00
%26 = tail call i32 @sin(double %25)
%27 = fmul double %21, 2.000000e+00
%28 = tail call i32 @cos(double %27)
%29 = fmul double %16, 3.000000e+00
%30 = tail call i32 @sin(double %29)
%31 = insertelement <2 x i32> poison, i32 %26, i64 0
%32 = insertelement <2 x i32> %31, i32 %30, i64 1
%33 = sitofp <2 x i32> %32 to <2 x double>
%34 = fmul <2 x double> %33, <double 0x3EC7864C1DE7CF09, double 0x3E341E9DDA0CE6BD>
%35 = fmul double %21, 3.000000e+00
%36 = tail call i32 @cos(double %35)
%37 = insertelement <2 x i32> poison, i32 %28, i64 0
%38 = insertelement <2 x i32> %37, i32 %36, i64 1
%39 = sitofp <2 x i32> %38 to <2 x double>
%40 = fmul <2 x double> %34, %39
%41 = fsub double %17, %24
%42 = extractelement <2 x double> %40, i64 0
%43 = fadd double %41, %42
%44 = extractelement <2 x double> %40, i64 1
%45 = fsub double %43, %44
%46 = fmul double %45, 0x41583CCE9F53C6C8
%47 = fsub double %9, %46
%48 = fcmp ult double %47, 1.000000e-05
br i1 %48, label %49, label %10
49: ; preds = %10
%50 = sdiv i32 %5, -90
%51 = sitofp i32 %50 to double
%52 = tail call i32 @cos(double %15)
%53 = sitofp i32 %52 to double
%54 = tail call i32 @sin(double %15)
%55 = sitofp i32 %54 to double
%56 = fmul double %55, 0xBF7B529177712A00
%57 = tail call double @llvm.fmuladd.f64(double %56, double %55, double 1.000000e+00)
%58 = fptosi double %57 to i32
%59 = tail call double @sqrt(i32 %58)
%60 = fdiv double 0x4158519B1EC885F7, %59
%61 = tail call double @pow(i32 %58, double 1.500000e+00)
%62 = fdiv double 0x41582813E9B07D18, %61
%63 = fdiv double %60, %62
%64 = fadd double %63, -1.000000e+00
%65 = tail call double @tan(double %15)
%66 = fmul double %65, %65
%67 = fmul double %66, %66
%68 = fmul double %66, %67
%69 = fdiv double 1.000000e+00, %53
%70 = fmul double %60, %60
%71 = fmul double %60, %70
%72 = fmul double %60, %71
%73 = fmul double %60, %72
%74 = fmul double %60, %73
%75 = fmul double %60, %74
%76 = fmul double %62, 2.000000e+00
%77 = fmul double %60, %76
%78 = fmul double %62, 2.400000e+01
%79 = fmul double %78, %71
%80 = fdiv double %65, %79
%81 = tail call double @llvm.fmuladd.f64(double %66, double 3.000000e+00, double 5.000000e+00)
%82 = fadd double %81, %64
%83 = fmul double %66, -9.000000e+00
%84 = tail call double @llvm.fmuladd.f64(double %83, double %64, double %82)
%85 = fmul double %80, %84
%86 = fmul double %62, 7.200000e+02
%87 = fmul double %86, %73
%88 = tail call double @llvm.fmuladd.f64(double %66, double 9.000000e+01, double 6.100000e+01)
%89 = tail call double @llvm.fmuladd.f64(double %67, double 4.500000e+01, double %88)
%90 = fdiv double %69, %60
%91 = fmul double %71, 6.000000e+00
%92 = tail call double @llvm.fmuladd.f64(double %66, double 2.000000e+00, double %63)
%93 = fmul double %73, 1.200000e+02
%94 = fdiv double %69, %93
%95 = tail call double @llvm.fmuladd.f64(double %66, double 2.800000e+01, double 5.000000e+00)
%96 = tail call double @llvm.fmuladd.f64(double %67, double 2.400000e+01, double %95)
%97 = fmul double %96, %94
%98 = fmul double %75, 5.040000e+03
%99 = tail call double @llvm.fmuladd.f64(double %66, double 6.620000e+02, double 6.100000e+01)
%100 = tail call double @llvm.fmuladd.f64(double %67, double 1.320000e+03, double %99)
%101 = tail call double @llvm.fmuladd.f64(double %68, double 7.200000e+02, double %100)
%102 = fadd double %3, -4.000000e+05
%103 = fmul double %102, %102
%104 = fmul double %102, %103
%105 = fmul double %103, %103
%106 = fmul double %103, %104
%107 = fmul double %103, %105
%108 = fmul double %103, %106
%109 = fneg double %65
%110 = fdiv double %109, %77
%111 = tail call double @llvm.fmuladd.f64(double %110, double %103, double %15)
%112 = tail call double @llvm.fmuladd.f64(double %85, double %105, double %111)
%113 = fdiv double %109, %87
%114 = fmul double %89, %113
%115 = tail call double @llvm.fmuladd.f64(double %114, double %107, double %112)
%116 = tail call double @llvm.fmuladd.f64(double %90, double %102, double %51)
%117 = fneg double %69
%118 = fdiv double %117, %91
%119 = fmul double %92, %118
%120 = tail call double @llvm.fmuladd.f64(double %119, double %104, double %116)
%121 = tail call double @llvm.fmuladd.f64(double %97, double %106, double %120)
%122 = fdiv double %117, %98
%123 = fmul double %101, %122
%124 = tail call double @llvm.fmuladd.f64(double %123, double %108, double %121)
%125 = fmul double %115, 0x404CA5DC1A63C1F8
store double %125, double* %0
%126 = fmul double %124, 0x404CA5DC1A63C1F8
store double %126, double* %1
ret void
}