#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 /*<<< orphan*/ assert(int);
double exp(double);
double gbs(int, double, double, double, double, double, double);
double log(double);
double pow(double, double);
double sqrt(double);
double TurnbullWakemanAsian(int fCall, double S, double SA, double X, double T,
                            double T2, double tau, double r, double b,
                            double v) {
  double m1, m2, bA, vA, t1, result;
  double b2, vv, bvv, b2vv, t22;
  assert(((S) == (S)) && (S) >= 0.000001 && (S) <= 1000000000000.0);
  assert(((SA) == (SA)) && (SA) >= 0.000001 && (SA) <= 1000000000000.0);
  assert(((X) == (X)) && (X) >= 0.000001 && (X) <= 1000000000000.0);
  assert(((T) == (T)) && (T) >= (1.0 / (253.0 * 24.0)) && (T) <= (20.0));
  assert(((T2) == (T2)) && (T2) >= (1.0 / (253.0 * 24.0)) && (T2) <= (20.0));
  assert(((r) == (r)) && (r) >= 0.0 && (r) <= 1000.0);
  assert(((b) == (b)) && (b) >= -1000.0 && (b) <= 1000.0);
  assert(((v) == (v)) && (v) >= 0.0000001 && v <= 100.99999);
  b2 = b * 2.0;
  vv = v * v;
  bvv = b + vv;
  b2vv = b2 + vv;
  t22 = pow(T2 - tau, 2.0);
  m1 = b ? (exp(b * T2) - exp(b * tau)) / (b * (T2 - tau)) : 1.0;
  m2 = 2.0 * exp(b2vv * T2) / (bvv * b2vv * t22) +
       2.0 * exp(b2vv * tau) / (b * t22) *
           (1.0 / b2vv - exp(b * (T2 - tau)) / bvv);
  bA = log(m1) / T2;
  vA = sqrt(log(m2) / T2 - 2.0 * bA);
  t1 = T - T2;
  if (t1 > 0) {
    X = T / T2 * X - t1 / T2 * SA;
    result = gbs(fCall, S, X, T2, r, bA, vA) * T2 / T;
  } else
    result = gbs(fCall, S, X, T2, r, bA, vA);
  return result;
}


x86 assembly (clang, -O0):
<TurnbullWakemanAsian>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
movsd  0x10(%rbp),%xmm8
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  %xmm3,-0x28(%rbp)
movsd  %xmm4,-0x30(%rbp)
movsd  %xmm5,-0x38(%rbp)
movsd  %xmm6,-0x40(%rbp)
movsd  %xmm7,-0x48(%rbp)
movsd  -0x10(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x10(%rbp),%xmm0
mov    %al,-0xa1(%rbp)
jne    11ef <TurnbullWakemanAsian+0x8f>
jp     11ef <TurnbullWakemanAsian+0x8f>
movsd  -0x10(%rbp),%xmm0
xor    %eax,%eax
movsd  0xe37(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0xa1(%rbp)
jb     11ef <TurnbullWakemanAsian+0x8f>
movsd  0xe27(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
setae  %al
mov    %al,-0xa1(%rbp)
mov    -0xa1(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movsd  -0x18(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x18(%rbp),%xmm0
mov    %al,-0xa2(%rbp)
jne    1252 <TurnbullWakemanAsian+0xf2>
jp     1252 <TurnbullWakemanAsian+0xf2>
movsd  -0x18(%rbp),%xmm0
xor    %eax,%eax
movsd  0xdd4(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0xa2(%rbp)
jb     1252 <TurnbullWakemanAsian+0xf2>
movsd  0xdc4(%rip),%xmm0
ucomisd -0x18(%rbp),%xmm0
setae  %al
mov    %al,-0xa2(%rbp)
mov    -0xa2(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movsd  -0x20(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x20(%rbp),%xmm0
mov    %al,-0xa3(%rbp)
jne    12b5 <TurnbullWakemanAsian+0x155>
jp     12b5 <TurnbullWakemanAsian+0x155>
movsd  -0x20(%rbp),%xmm0
xor    %eax,%eax
movsd  0xd71(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0xa3(%rbp)
jb     12b5 <TurnbullWakemanAsian+0x155>
movsd  0xd61(%rip),%xmm0
ucomisd -0x20(%rbp),%xmm0
setae  %al
mov    %al,-0xa3(%rbp)
mov    -0xa3(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movsd  -0x28(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x28(%rbp),%xmm0
mov    %al,-0xa4(%rbp)
jne    1318 <TurnbullWakemanAsian+0x1b8>
jp     1318 <TurnbullWakemanAsian+0x1b8>
movsd  -0x28(%rbp),%xmm0
xor    %eax,%eax
movsd  0xd1e(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0xa4(%rbp)
jb     1318 <TurnbullWakemanAsian+0x1b8>
movsd  0xd0e(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
setae  %al
mov    %al,-0xa4(%rbp)
mov    -0xa4(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movsd  -0x30(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x30(%rbp),%xmm0
mov    %al,-0xa5(%rbp)
jne    137b <TurnbullWakemanAsian+0x21b>
jp     137b <TurnbullWakemanAsian+0x21b>
movsd  -0x30(%rbp),%xmm0
xor    %eax,%eax
movsd  0xcbb(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0xa5(%rbp)
jb     137b <TurnbullWakemanAsian+0x21b>
movsd  0xcab(%rip),%xmm0
ucomisd -0x30(%rbp),%xmm0
setae  %al
mov    %al,-0xa5(%rbp)
mov    -0xa5(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movsd  -0x40(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x40(%rbp),%xmm0
mov    %al,-0xa6(%rbp)
jne    13d9 <TurnbullWakemanAsian+0x279>
jp     13d9 <TurnbullWakemanAsian+0x279>
movsd  -0x40(%rbp),%xmm0
xor    %eax,%eax
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0xa6(%rbp)
jb     13d9 <TurnbullWakemanAsian+0x279>
movsd  0xc55(%rip),%xmm0
ucomisd -0x40(%rbp),%xmm0
setae  %al
mov    %al,-0xa6(%rbp)
mov    -0xa6(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movsd  -0x48(%rbp),%xmm0
xor    %eax,%eax
ucomisd -0x48(%rbp),%xmm0
mov    %al,-0xa7(%rbp)
jne    143c <TurnbullWakemanAsian+0x2dc>
jp     143c <TurnbullWakemanAsian+0x2dc>
movsd  -0x48(%rbp),%xmm0
xor    %eax,%eax
movsd  0xc12(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0xa7(%rbp)
jb     143c <TurnbullWakemanAsian+0x2dc>
movsd  0xbf2(%rip),%xmm0
ucomisd -0x48(%rbp),%xmm0
setae  %al
mov    %al,-0xa7(%rbp)
mov    -0xa7(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movsd  0x10(%rbp),%xmm0
xor    %eax,%eax
ucomisd 0x10(%rbp),%xmm0
mov    %al,-0xa8(%rbp)
jne    149f <TurnbullWakemanAsian+0x33f>
jp     149f <TurnbullWakemanAsian+0x33f>
movsd  0x10(%rbp),%xmm0
xor    %eax,%eax
movsd  0xbb7(%rip),%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0xa8(%rbp)
jb     149f <TurnbullWakemanAsian+0x33f>
movsd  0xba7(%rip),%xmm0
ucomisd 0x10(%rbp),%xmm0
setae  %al
mov    %al,-0xa8(%rbp)
mov    -0xa8(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movsd  0xb89(%rip),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  0x10(%rbp),%xmm0
mulsd  0x10(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
addsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
addsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
movsd  0xb31(%rip),%xmm1
call   1060 <pow@plt>
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1539 <TurnbullWakemanAsian+0x3d9>
jp     1539 <TurnbullWakemanAsian+0x3d9>
jmp    1592 <TurnbullWakemanAsian+0x432>
movsd  -0x48(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
call   1040 <exp@plt>
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0xb8(%rbp),%xmm0
ff
subsd  %xmm1,%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
subsd  -0x38(%rbp),%xmm2
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
jmp    15a7 <TurnbullWakemanAsian+0x447>
movsd  0xaae(%rip),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
jmp    15a7 <TurnbullWakemanAsian+0x447>
movsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0x50(%rbp)
movsd  -0x98(%rbp),%xmm0
ff
mulsd  -0x30(%rbp),%xmm0
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  0xa6f(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  -0x90(%rbp),%xmm1
ff
mulsd  -0x98(%rbp),%xmm1
ff
mulsd  -0xa0(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  0xa2a(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  -0x48(%rbp),%xmm1
mulsd  -0xa0(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  0xa0d(%rip),%xmm0
divsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
subsd  -0x38(%rbp),%xmm1
mulsd  %xmm1,%xmm0
call   1040 <exp@plt>
movsd  -0xd0(%rbp),%xmm2
ff
movsd  -0xc8(%rbp),%xmm1
ff
movaps %xmm0,%xmm3
movsd  -0xc0(%rbp),%xmm0
ff
divsd  -0x90(%rbp),%xmm3
ff
subsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x50(%rbp),%xmm0
call   1050 <log@plt>
divsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x58(%rbp),%xmm0
call   1050 <log@plt>
divsd  -0x30(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm1
addsd  %xmm1,%xmm1
subsd  %xmm1,%xmm0
call   1070 <sqrt@plt>
movsd  %xmm0,-0x68(%rbp)
movsd  -0x28(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    176e <TurnbullWakemanAsian+0x60e>
movsd  -0x28(%rbp),%xmm0
divsd  -0x30(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm1
divsd  -0x30(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x4(%rbp),%edi
movsd  -0x10(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm3
movsd  -0x60(%rbp),%xmm4
movsd  -0x68(%rbp),%xmm5
call   1080 <gbs@plt>
mulsd  -0x30(%rbp),%xmm0
divsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
jmp    1799 <TurnbullWakemanAsian+0x639>
mov    -0x4(%rbp),%edi
movsd  -0x10(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm3
movsd  -0x60(%rbp),%xmm4
movsd  -0x68(%rbp),%xmm5
call   1080 <gbs@plt>
movsd  %xmm0,-0x78(%rbp)
movsd  -0x78(%rbp),%xmm0
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<TurnbullWakemanAsian>:
push   %rbx
sub    $0x70,%rsp
movsd  %xmm7,(%rsp)
movsd  %xmm6,0x40(%rsp)
movsd  %xmm5,0x18(%rsp)
movsd  %xmm4,0x10(%rsp)
movsd  %xmm3,0x30(%rsp)
movsd  %xmm2,0x38(%rsp)
movsd  %xmm1,0x58(%rsp)
mov    %edi,%ebx
ucomisd %xmm0,%xmm0
setnp  %al
ucomisd 0xe71(%rip),%xmm0
setae  %cl
and    %al,%cl
movsd  0xe6c(%rip),%xmm1
movsd  %xmm0,0x50(%rsp)
ucomisd %xmm0,%xmm1
movsd  0x80(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
setae  %al
and    %cl,%al
movzbl %al,%edi
call   1030 <assert@plt>
movsd  0x58(%rsp),%xmm1
ucomisd %xmm1,%xmm1
setnp  %al
ucomisd 0xe29(%rip),%xmm1
setae  %cl
and    %al,%cl
movsd  0xe24(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
and    %cl,%al
movzbl %al,%edi
call   1030 <assert@plt>
movsd  0x38(%rsp),%xmm0
ucomisd %xmm0,%xmm0
setnp  %al
ucomisd 0xdf6(%rip),%xmm0
setae  %cl
and    %al,%cl
movsd  0xdf1(%rip),%xmm1
ucomisd %xmm0,%xmm1
setae  %al
and    %cl,%al
movzbl %al,%edi
call   1030 <assert@plt>
movsd  0x30(%rsp),%xmm0
ucomisd %xmm0,%xmm0
setnp  %al
ucomisd 0xdd3(%rip),%xmm0
setae  %cl
and    %al,%cl
movsd  0xdce(%rip),%xmm1
ucomisd %xmm0,%xmm1
setae  %al
and    %cl,%al
movzbl %al,%edi
call   1030 <assert@plt>
movsd  0x10(%rsp),%xmm0
ucomisd %xmm0,%xmm0
setnp  %al
ucomisd 0xda0(%rip),%xmm0
setae  %cl
and    %al,%cl
movsd  0xd9b(%rip),%xmm1
ucomisd %xmm0,%xmm1
setae  %al
and    %cl,%al
movzbl %al,%edi
call   1030 <assert@plt>
xorpd  %xmm1,%xmm1
movsd  0x40(%rsp),%xmm0
ucomisd %xmm1,%xmm0
setae  %al
movsd  0xd79(%rip),%xmm1
ucomisd %xmm0,%xmm1
setae  %cl
and    %al,%cl
movzbl %cl,%edi
call   1030 <assert@plt>
movsd  (%rsp),%xmm0
ucomisd %xmm0,%xmm0
setnp  %al
ucomisd 0xd5c(%rip),%xmm0
setae  %cl
and    %al,%cl
movsd  0xd47(%rip),%xmm1
ucomisd %xmm0,%xmm1
setae  %al
and    %cl,%al
movzbl %al,%edi
call   1030 <assert@plt>
movsd  0x8(%rsp),%xmm1
ucomisd %xmm1,%xmm1
setnp  %al
ucomisd 0xd31(%rip),%xmm1
setae  %cl
movsd  0xd2e(%rip),%xmm0
ucomisd %xmm1,%xmm0
setae  %dl
and    %al,%dl
and    %cl,%dl
movzbl %dl,%edi
call   1030 <assert@plt>
movsd  0x10(%rsp),%xmm1
movsd  (%rsp),%xmm3
movapd %xmm3,%xmm2
addsd  %xmm3,%xmm2
movsd  0x8(%rsp),%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm0,%xmm2
movsd  %xmm2,0x48(%rsp)
addsd  %xmm3,%xmm0
movsd  %xmm0,0x8(%rsp)
movapd %xmm1,%xmm0
subsd  0x18(%rsp),%xmm0
movapd %xmm0,%xmm2
mulsd  %xmm0,%xmm2
movsd  %xmm2,0x60(%rsp)
ucomisd 0xcda(%rip),%xmm3
jne    1372 <TurnbullWakemanAsian+0x222>
jnp    13c9 <TurnbullWakemanAsian+0x279>
movsd  %xmm0,0x28(%rsp)
movapd %xmm1,%xmm0
mulsd  (%rsp),%xmm0
call   1040 <exp@plt>
movsd  %xmm0,0x20(%rsp)
movsd  0x18(%rsp),%xmm0
mulsd  (%rsp),%xmm0
call   1040 <exp@plt>
movsd  0x10(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
subsd  %xmm0,%xmm2
movsd  0x28(%rsp),%xmm0
mulsd  (%rsp),%xmm0
movsd  %xmm0,0x28(%rsp)
divsd  %xmm0,%xmm2
movsd  %xmm2,0x20(%rsp)
jmp    13e2 <TurnbullWakemanAsian+0x292>
mulsd  (%rsp),%xmm0
movsd  %xmm0,0x28(%rsp)
movsd  0xc64(%rip),%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0x48(%rsp),%xmm0
mulsd  %xmm1,%xmm0
call   1040 <exp@plt>
addsd  %xmm0,%xmm0
movsd  0x8(%rsp),%xmm1
movsd  0x48(%rsp),%xmm2
mulsd  %xmm2,%xmm1
mulsd  0x60(%rsp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,0x68(%rsp)
movsd  0x18(%rsp),%xmm0
mulsd  %xmm2,%xmm0
call   1040 <exp@plt>
addsd  %xmm0,%xmm0
movsd  (%rsp),%xmm1
mulsd  0x60(%rsp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0xbfb(%rip),%xmm0
divsd  0x48(%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x28(%rsp),%xmm0
call   1040 <exp@plt>
divsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
subsd  %xmm0,%xmm1
mulsd  0x18(%rsp),%xmm1
addsd  0x68(%rsp),%xmm1
movsd  %xmm1,(%rsp)
movsd  0x20(%rsp),%xmm0
call   1050 <log@plt>
divsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  (%rsp),%xmm0
call   1050 <log@plt>
movsd  0x10(%rsp),%xmm2
divsd  %xmm2,%xmm0
movsd  0x8(%rsp),%xmm1
addsd  %xmm1,%xmm1
subsd  %xmm1,%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     14c4 <TurnbullWakemanAsian+0x374>
sqrtsd %xmm0,%xmm5
jmp    14d7 <TurnbullWakemanAsian+0x387>
call   1060 <sqrt@plt>
xorpd  %xmm1,%xmm1
movsd  0x10(%rsp),%xmm2
movapd %xmm0,%xmm5
movsd  0x30(%rsp),%xmm3
movapd %xmm3,%xmm0
subsd  %xmm2,%xmm0
ucomisd %xmm1,%xmm0
jbe    1532 <TurnbullWakemanAsian+0x3e2>
movapd %xmm3,%xmm1
divsd  %xmm2,%xmm1
divsd  %xmm2,%xmm0
mulsd  0x58(%rsp),%xmm0
mulsd  0x38(%rsp),%xmm1
subsd  %xmm0,%xmm1
mov    %ebx,%edi
movsd  0x50(%rsp),%xmm0
movsd  0x40(%rsp),%xmm3
movsd  0x8(%rsp),%xmm4
call   1070 <gbs@plt>
mulsd  0x10(%rsp),%xmm0
divsd  0x30(%rsp),%xmm0
add    $0x70,%rsp
pop    %rbx
ret
mov    %ebx,%edi
movsd  0x50(%rsp),%xmm0
movsd  0x38(%rsp),%xmm1
movsd  0x40(%rsp),%xmm3
movsd  0x8(%rsp),%xmm4
add    $0x70,%rsp
pop    %rbx
jmp    1070 <gbs@plt>

LLVM IR (-O0):
define double @TurnbullWakemanAsian(i32 %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9) {
%11 = alloca i32
%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
store i32 %0, i32* %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
%32 = load double, double* %12
%33 = load double, double* %12
%34 = fcmp oeq double %32, %33
br i1 %34, label %35, label %41
35: ; preds = %10
%36 = load double, double* %12
%37 = fcmp oge double %36, 0x3EB0C6F7A0B5ED8D
br i1 %37, label %38, label %41
38: ; preds = %35
%39 = load double, double* %12
%40 = fcmp ole double %39, 1.000000e+12
br label %41
41: ; preds = %38, %35, %10
%42 = phi i1 [ false, %35 ], [ false, %10 ], [ %40, %38 ]
%43 = zext i1 %42 to i32
%44 = call i32 @assert(i32 %43)
%45 = load double, double* %13
%46 = load double, double* %13
%47 = fcmp oeq double %45, %46
br i1 %47, label %48, label %54
48: ; preds = %41
%49 = load double, double* %13
%50 = fcmp oge double %49, 0x3EB0C6F7A0B5ED8D
br i1 %50, label %51, label %54
51: ; preds = %48
%52 = load double, double* %13
%53 = fcmp ole double %52, 1.000000e+12
br label %54
54: ; preds = %51, %48, %41
%55 = phi i1 [ false, %48 ], [ false, %41 ], [ %53, %51 ]
%56 = zext i1 %55 to i32
%57 = call i32 @assert(i32 %56)
%58 = load double, double* %14
%59 = load double, double* %14
%60 = fcmp oeq double %58, %59
br i1 %60, label %61, label %67
61: ; preds = %54
%62 = load double, double* %14
%63 = fcmp oge double %62, 0x3EB0C6F7A0B5ED8D
br i1 %63, label %64, label %67
64: ; preds = %61
%65 = load double, double* %14
%66 = fcmp ole double %65, 1.000000e+12
br label %67
67: ; preds = %64, %61, %54
%68 = phi i1 [ false, %61 ], [ false, %54 ], [ %66, %64 ]
%69 = zext i1 %68 to i32
%70 = call i32 @assert(i32 %69)
%71 = load double, double* %15
%72 = load double, double* %15
%73 = fcmp oeq double %71, %72
br i1 %73, label %74, label %80
74: ; preds = %67
%75 = load double, double* %15
%76 = fcmp oge double %75, 0x3F2596179C29D2CE
br i1 %76, label %77, label %80
77: ; preds = %74
%78 = load double, double* %15
%79 = fcmp ole double %78, 2.000000e+01
br label %80
80: ; preds = %77, %74, %67
%81 = phi i1 [ false, %74 ], [ false, %67 ], [ %79, %77 ]
%82 = zext i1 %81 to i32
%83 = call i32 @assert(i32 %82)
%84 = load double, double* %16
%85 = load double, double* %16
%86 = fcmp oeq double %84, %85
br i1 %86, label %87, label %93
87: ; preds = %80
%88 = load double, double* %16
%89 = fcmp oge double %88, 0x3F2596179C29D2CE
br i1 %89, label %90, label %93
90: ; preds = %87
%91 = load double, double* %16
%92 = fcmp ole double %91, 2.000000e+01
br label %93
93: ; preds = %90, %87, %80
%94 = phi i1 [ false, %87 ], [ false, %80 ], [ %92, %90 ]
%95 = zext i1 %94 to i32
%96 = call i32 @assert(i32 %95)
%97 = load double, double* %18
%98 = load double, double* %18
%99 = fcmp oeq double %97, %98
br i1 %99, label %100, label %106
100: ; preds = %93
%101 = load double, double* %18
%102 = fcmp oge double %101, 0.000000e+00
br i1 %102, label %103, label %106
103: ; preds = %100
%104 = load double, double* %18
%105 = fcmp ole double %104, 1.000000e+03
br label %106
106: ; preds = %103, %100, %93
%107 = phi i1 [ false, %100 ], [ false, %93 ], [ %105, %103 ]
%108 = zext i1 %107 to i32
%109 = call i32 @assert(i32 %108)
%110 = load double, double* %19
%111 = load double, double* %19
%112 = fcmp oeq double %110, %111
br i1 %112, label %113, label %119
113: ; preds = %106
%114 = load double, double* %19
%115 = fcmp oge double %114, -1.000000e+03
br i1 %115, label %116, label %119
116: ; preds = %113
%117 = load double, double* %19
%118 = fcmp ole double %117, 1.000000e+03
br label %119
119: ; preds = %116, %113, %106
%120 = phi i1 [ false, %113 ], [ false, %106 ], [ %118, %116 ]
%121 = zext i1 %120 to i32
%122 = call i32 @assert(i32 %121)
%123 = load double, double* %20
%124 = load double, double* %20
%125 = fcmp oeq double %123, %124
br i1 %125, label %126, label %132
126: ; preds = %119
%127 = load double, double* %20
%128 = fcmp oge double %127, 0x3E7AD7F29ABCAF48
br i1 %128, label %129, label %132
129: ; preds = %126
%130 = load double, double* %20
%131 = fcmp ole double %130, 0x40593FFFD60E94EE
br label %132
132: ; preds = %129, %126, %119
%133 = phi i1 [ false, %126 ], [ false, %119 ], [ %131, %129 ]
%134 = zext i1 %133 to i32
%135 = call i32 @assert(i32 %134)
%136 = load double, double* %19
%137 = fmul double %136, 2.000000e+00
store double %137, double* %27
%138 = load double, double* %20
%139 = load double, double* %20
%140 = fmul double %138, %139
store double %140, double* %28
%141 = load double, double* %19
%142 = load double, double* %28
%143 = fadd double %141, %142
store double %143, double* %29
%144 = load double, double* %27
%145 = load double, double* %28
%146 = fadd double %144, %145
store double %146, double* %30
%147 = load double, double* %16
%148 = load double, double* %17
%149 = fsub double %147, %148
%150 = call double @pow(double %149, double 2.000000e+00)
store double %150, double* %31
%151 = load double, double* %19
%152 = fcmp une double %151, 0.000000e+00
br i1 %152, label %153, label %169
153: ; preds = %132
%154 = load double, double* %19
%155 = load double, double* %16
%156 = fmul double %154, %155
%157 = call double @exp(double %156)
%158 = load double, double* %19
%159 = load double, double* %17
%160 = fmul double %158, %159
%161 = call double @exp(double %160)
%162 = fsub double %157, %161
%163 = load double, double* %19
%164 = load double, double* %16
%165 = load double, double* %17
%166 = fsub double %164, %165
%167 = fmul double %163, %166
%168 = fdiv double %162, %167
br label %170
169: ; preds = %132
br label %170
170: ; preds = %169, %153
%171 = phi double [ %168, %153 ], [ 1.000000e+00, %169 ]
store double %171, double* %21
%172 = load double, double* %30
%173 = load double, double* %16
%174 = fmul double %172, %173
%175 = call double @exp(double %174)
%176 = fmul double 2.000000e+00, %175
%177 = load double, double* %29
%178 = load double, double* %30
%179 = fmul double %177, %178
%180 = load double, double* %31
%181 = fmul double %179, %180
%182 = fdiv double %176, %181
%183 = load double, double* %30
%184 = load double, double* %17
%185 = fmul double %183, %184
%186 = call double @exp(double %185)
%187 = fmul double 2.000000e+00, %186
%188 = load double, double* %19
%189 = load double, double* %31
%190 = fmul double %188, %189
%191 = fdiv double %187, %190
%192 = load double, double* %30
%193 = fdiv double 1.000000e+00, %192
%194 = load double, double* %19
%195 = load double, double* %16
%196 = load double, double* %17
%197 = fsub double %195, %196
%198 = fmul double %194, %197
%199 = call double @exp(double %198)
%200 = load double, double* %29
%201 = fdiv double %199, %200
%202 = fsub double %193, %201
%203 = call double @llvm.fmuladd.f64(double %191, double %202, double %182)
store double %203, double* %22
%204 = load double, double* %21
%205 = call double @log(double %204)
%206 = load double, double* %16
%207 = fdiv double %205, %206
store double %207, double* %23
%208 = load double, double* %22
%209 = call double @log(double %208)
%210 = load double, double* %16
%211 = fdiv double %209, %210
%212 = load double, double* %23
%213 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %212, double %211)
%214 = call double @sqrt(double %213)
store double %214, double* %24
%215 = load double, double* %15
%216 = load double, double* %16
%217 = fsub double %215, %216
store double %217, double* %25
%218 = load double, double* %25
%219 = fcmp ogt double %218, 0.000000e+00
br i1 %219, label %220, label %244
220: ; preds = %170
%221 = load double, double* %15
%222 = load double, double* %16
%223 = fdiv double %221, %222
%224 = load double, double* %14
%225 = load double, double* %25
%226 = load double, double* %16
%227 = fdiv double %225, %226
%228 = load double, double* %13
%229 = fmul double %227, %228
%230 = fneg double %229
%231 = call double @llvm.fmuladd.f64(double %223, double %224, double %230)
store double %231, double* %14
%232 = load i32, i32* %11
%233 = load double, double* %12
%234 = load double, double* %14
%235 = load double, double* %16
%236 = load double, double* %18
%237 = load double, double* %23
%238 = load double, double* %24
%239 = call double @gbs(i32 %232, double %233, double %234, double %235, double %236, double %237, double %238)
%240 = load double, double* %16
%241 = fmul double %239, %240
%242 = load double, double* %15
%243 = fdiv double %241, %242
store double %243, double* %26
br label %253
244: ; preds = %170
%245 = load i32, i32* %11
%246 = load double, double* %12
%247 = load double, double* %14
%248 = load double, double* %16
%249 = load double, double* %18
%250 = load double, double* %23
%251 = load double, double* %24
%252 = call double @gbs(i32 %245, double %246, double %247, double %248, double %249, double %250, double %251)
store double %252, double* %26
br label %253
253: ; preds = %244, %220
%254 = load double, double* %26
ret double %254
}

LLVM IR (-O2):
define double @TurnbullWakemanAsian(i32 %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9) {
%11 = fcmp ord double %1, 0.000000e+00
%12 = fcmp oge double %1, 0x3EB0C6F7A0B5ED8D
%13 = and i1 %11, %12
%14 = fcmp ole double %1, 1.000000e+12
%15 = and i1 %14, %13
%16 = zext i1 %15 to i32
%17 = tail call i32 @assert(i32 %16)
%18 = fcmp ord double %2, 0.000000e+00
%19 = fcmp oge double %2, 0x3EB0C6F7A0B5ED8D
%20 = and i1 %18, %19
%21 = fcmp ole double %2, 1.000000e+12
%22 = and i1 %21, %20
%23 = zext i1 %22 to i32
%24 = tail call i32 @assert(i32 %23)
%25 = fcmp ord double %3, 0.000000e+00
%26 = fcmp oge double %3, 0x3EB0C6F7A0B5ED8D
%27 = and i1 %25, %26
%28 = fcmp ole double %3, 1.000000e+12
%29 = and i1 %28, %27
%30 = zext i1 %29 to i32
%31 = tail call i32 @assert(i32 %30)
%32 = fcmp ord double %4, 0.000000e+00
%33 = fcmp oge double %4, 0x3F2596179C29D2CE
%34 = and i1 %32, %33
%35 = fcmp ole double %4, 2.000000e+01
%36 = and i1 %35, %34
%37 = zext i1 %36 to i32
%38 = tail call i32 @assert(i32 %37)
%39 = fcmp ord double %5, 0.000000e+00
%40 = fcmp oge double %5, 0x3F2596179C29D2CE
%41 = and i1 %39, %40
%42 = fcmp ole double %5, 2.000000e+01
%43 = and i1 %42, %41
%44 = zext i1 %43 to i32
%45 = tail call i32 @assert(i32 %44)
%46 = fcmp oge double %7, 0.000000e+00
%47 = fcmp ole double %7, 1.000000e+03
%48 = and i1 %46, %47
%49 = zext i1 %48 to i32
%50 = tail call i32 @assert(i32 %49)
%51 = fcmp ord double %8, 0.000000e+00
%52 = fcmp oge double %8, -1.000000e+03
%53 = and i1 %51, %52
%54 = fcmp ole double %8, 1.000000e+03
%55 = and i1 %54, %53
%56 = zext i1 %55 to i32
%57 = tail call i32 @assert(i32 %56)
%58 = fcmp ord double %9, 0.000000e+00
%59 = fcmp oge double %9, 0x3E7AD7F29ABCAF48
%60 = and i1 %58, %59
%61 = fcmp ole double %9, 0x40593FFFD60E94EE
%62 = and i1 %61, %60
%63 = zext i1 %62 to i32
%64 = tail call i32 @assert(i32 %63)
%65 = fmul double %8, 2.000000e+00
%66 = fmul double %9, %9
%67 = fadd double %66, %8
%68 = fadd double %65, %66
%69 = fsub double %5, %6
%70 = fmul double %69, %69
%71 = fcmp une double %8, 0.000000e+00
br i1 %71, label %74, label %72
72: ; preds = %10
%73 = fmul double %69, %8
br label %82
74: ; preds = %10
%75 = fmul double %5, %8
%76 = tail call double @exp(double %75)
%77 = fmul double %6, %8
%78 = tail call double @exp(double %77)
%79 = fsub double %76, %78
%80 = fmul double %69, %8
%81 = fdiv double %79, %80
br label %82
82: ; preds = %72, %74
%83 = phi double [ %73, %72 ], [ %80, %74 ]
%84 = phi double [ 1.000000e+00, %72 ], [ %81, %74 ]
%85 = fmul double %68, %5
%86 = tail call double @exp(double %85)
%87 = fmul double %86, 2.000000e+00
%88 = fmul double %67, %68
%89 = fmul double %70, %88
%90 = fdiv double %87, %89
%91 = fmul double %68, %6
%92 = tail call double @exp(double %91)
%93 = fmul double %92, 2.000000e+00
%94 = fmul double %70, %8
%95 = fdiv double %93, %94
%96 = fdiv double 1.000000e+00, %68
%97 = tail call double @exp(double %83)
%98 = fdiv double %97, %67
%99 = fsub double %96, %98
%100 = tail call double @llvm.fmuladd.f64(double %95, double %99, double %90)
%101 = tail call double @log(double %84)
%102 = fdiv double %101, %5
%103 = tail call double @log(double %100)
%104 = fdiv double %103, %5
%105 = tail call double @llvm.fmuladd.f64(double %102, double -2.000000e+00, double %104)
%106 = tail call double @sqrt(double %105)
%107 = fsub double %4, %5
%108 = fcmp ogt double %107, 0.000000e+00
br i1 %108, label %109, label %118
109: ; preds = %82
%110 = fdiv double %4, %5
%111 = fneg double %107
%112 = fdiv double %111, %5
%113 = fmul double %112, %2
%114 = tail call double @llvm.fmuladd.f64(double %110, double %3, double %113)
%115 = tail call double @gbs(i32 %0, double %1, double %114, double %5, double %7, double %102, double %106)
%116 = fmul double %115, %5
%117 = fdiv double %116, %4
br label %120
118: ; preds = %82
%119 = tail call double @gbs(i32 %0, double %1, double %3, double %5, double %7, double %102, double %106)
br label %120
120: ; preds = %118, %109
%121 = phi double [ %117, %109 ], [ %119, %118 ]
ret double %121
}