#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*/ CUBICROOTS(double *, double **);
int /*<<< orphan*/ QUADROOTS(double *, double **);
double sqrt(double);
void BIQUADROOTS(double p[], double r[][5]) {
  double a, b, c, d, e;
  int k, j;
  if (p[0] != 1.0) {
    for (k = 1; k < 5; k++)
      p[k] = p[k] / p[0];
    p[0] = 1.0;
  }
  e = 0.25 * p[1];
  b = 2.0 * e;
  c = b * b;
  d = 0.75 * c;
  b = p[3] + b * (c - p[2]);
  a = p[2] - d;
  c = p[4] + e * (e * a - p[3]);
  a = a - d;
  p[1] = 0.5 * a;
  p[2] = (p[1] * p[1] - c) * 0.25;
  p[3] = b * b / (-64.0);
  if (p[3] < 0.0) {
    CUBICROOTS(p, r);
    for (k = 1; k < 4; k++) {
      if (r[2][k] == 0.0 && r[1][k] > 0.0) {
        d = r[1][k] * 4.0;
        a = a + d;
        if (a >= 0.0 && b >= 0.0)
          p[1] = sqrt(d);
        else if (a <= 0.0 && b <= 0.0)
          p[1] = sqrt(d);
        else
          p[1] = -sqrt(d);
        b = 0.5 * (a + b / p[1]);
        goto QUAD;
      }
    }
  }
  if (p[2] < 0.0) {
    b = sqrt(c);
    d = b + b - a;
    p[1] = 0.0;
    if (d > 0.0)
      p[1] = sqrt(d);
  } else {
    if (p[1] > 0.0)
      b = sqrt(p[2]) * 2.0 + p[1];
    else
      b = -sqrt(p[2]) * 2.0 + p[1];
    if (b != 0.0) {
      p[1] = 0.0;
    } else {
      for (k = 1; k < 5; k++) {
        r[1][k] = -e;
        r[2][k] = 0.0;
      }
      goto END;
    }
  }
QUAD:
  p[2] = c / b;
  QUADROOTS(p, r);
  for (k = 1; k < 3; k++)
    for (j = 1; j < 3; j++)
      r[j][k + 2] = r[j][k];
  p[1] = -p[1];
  p[2] = b;
  QUADROOTS(p, r);
  for (k = 1; k < 5; k++)
    r[1][k] = r[1][k] - e;
END:
  return;
}


x86 assembly (clang, -O0):
<BIQUADROOTS>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0xeb0(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1165 <BIQUADROOTS+0x35>
jp     1165 <BIQUADROOTS+0x35>
jmp    11b6 <BIQUADROOTS+0x86>
movl   $0x1,-0x3c(%rbp)
cmpl   $0x5,-0x3c(%rbp)
jge    11a6 <BIQUADROOTS+0x76>
mov    -0x8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
divsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    116c <BIQUADROOTS+0x3c>
mov    -0x8(%rbp),%rax
movsd  0xe4e(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movsd  0xe4e(%rip),%xmm0
mulsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xe54(%rip),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe2b(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x18(%rax),%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm2
mov    -0x8(%rbp),%rax
subsd  0x10(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x20(%rax),%xmm1
movsd  -0x38(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm2
movsd  -0x18(%rbp),%xmm4
mov    -0x8(%rbp),%rax
movsd  0x18(%rax),%xmm3
movq   %xmm3,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm3
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xd79(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm2
movsd  -0x28(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xd25(%rip),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x10(%rax)
movsd  -0x20(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  0xcfe(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
ucomisd 0x18(%rax),%xmm0
jbe    1491 <BIQUADROOTS+0x361>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <CUBICROOTS@plt>
movl   $0x1,-0x3c(%rbp)
cmpl   $0x4,-0x3c(%rbp)
jge    148c <BIQUADROOTS+0x35c>
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  0x50(%rax,%rcx,8),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1479 <BIQUADROOTS+0x349>
jp     1479 <BIQUADROOTS+0x349>
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  0x28(%rax,%rcx,8),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1479 <BIQUADROOTS+0x349>
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  0xc9d(%rip),%xmm0
mulsd  0x28(%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x18(%rbp),%xmm0
addsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     13e9 <BIQUADROOTS+0x2b9>
movsd  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     13e9 <BIQUADROOTS+0x2b9>
movsd  -0x30(%rbp),%xmm0
call   1050 <sqrt@plt>
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x8(%rax)
jmp    144c <BIQUADROOTS+0x31c>
xorps  %xmm0,%xmm0
ucomisd -0x18(%rbp),%xmm0
jb     141d <BIQUADROOTS+0x2ed>
xorps  %xmm0,%xmm0
ucomisd -0x20(%rbp),%xmm0
jb     141d <BIQUADROOTS+0x2ed>
movsd  -0x30(%rbp),%xmm0
call   1050 <sqrt@plt>
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x8(%rax)
jmp    1447 <BIQUADROOTS+0x317>
movsd  -0x30(%rbp),%xmm0
call   1050 <sqrt@plt>
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x8(%rax)
jmp    144c <BIQUADROOTS+0x31c>
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm0
mov    -0x8(%rbp),%rax
divsd  0x8(%rax),%xmm0
addsd  %xmm0,%xmm1
movsd  0xbad(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
jmp    160d <BIQUADROOTS+0x4dd>
jmp    147e <BIQUADROOTS+0x34e>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    133d <BIQUADROOTS+0x20d>
jmp    1491 <BIQUADROOTS+0x361>
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
ucomisd 0x10(%rax),%xmm0
jbe    14fc <BIQUADROOTS+0x3cc>
movsd  -0x28(%rbp),%xmm0
call   1050 <sqrt@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
addsd  -0x20(%rbp),%xmm0
subsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
movsd  -0x30(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    14f7 <BIQUADROOTS+0x3c7>
movsd  -0x30(%rbp),%xmm0
call   1050 <sqrt@plt>
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x8(%rax)
jmp    1608 <BIQUADROOTS+0x4d8>
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    153b <BIQUADROOTS+0x40b>
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
call   1050 <sqrt@plt>
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm1
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
jmp    1576 <BIQUADROOTS+0x446>
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
call   1050 <sqrt@plt>
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm1
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1593 <BIQUADROOTS+0x463>
jp     1593 <BIQUADROOTS+0x463>
jmp    15a4 <BIQUADROOTS+0x474>
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
jmp    1603 <BIQUADROOTS+0x4d3>
movl   $0x1,-0x3c(%rbp)
cmpl   $0x5,-0x3c(%rbp)
jge    15fe <BIQUADROOTS+0x4ce>
movsd  -0x38(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,0x28(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,0x50(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    15ab <BIQUADROOTS+0x47b>
jmp    172e <BIQUADROOTS+0x5fe>
jmp    1608 <BIQUADROOTS+0x4d8>
jmp    160d <BIQUADROOTS+0x4dd>
movsd  -0x28(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <QUADROOTS@plt>
movl   $0x1,-0x3c(%rbp)
cmpl   $0x3,-0x3c(%rbp)
jge    16a5 <BIQUADROOTS+0x575>
movl   $0x1,-0x40(%rbp)
cmpl   $0x3,-0x40(%rbp)
jge    1692 <BIQUADROOTS+0x562>
mov    -0x10(%rbp),%rax
movslq -0x40(%rbp),%rcx
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x40(%rbp),%rcx
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
mov    -0x3c(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1645 <BIQUADROOTS+0x515>
jmp    1697 <BIQUADROOTS+0x567>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1634 <BIQUADROOTS+0x504>
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x20(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <QUADROOTS@plt>
movl   $0x1,-0x3c(%rbp)
cmpl   $0x5,-0x3c(%rbp)
jge    1729 <BIQUADROOTS+0x5f9>
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  0x28(%rax,%rcx,8),%xmm0
subsd  -0x38(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,0x28(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    16f0 <BIQUADROOTS+0x5c0>
jmp    172e <BIQUADROOTS+0x5fe>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<BIQUADROOTS>:
push   %rbp
push   %r14
push   %rbx
sub    $0x40,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
movsd  (%rdi),%xmm2
movsd  0x8(%rdi),%xmm4
ucomisd 0xeb1(%rip),%xmm2
jne    1153 <BIQUADROOTS+0x23>
jnp    1186 <BIQUADROOTS+0x56>
divsd  %xmm2,%xmm4
movsd  0x18(%rbx),%xmm0
divsd  %xmm2,%xmm0
movsd  0x20(%rbx),%xmm1
movhpd 0x10(%rbx),%xmm1
unpcklpd %xmm2,%xmm2
divpd  %xmm2,%xmm1
movlpd %xmm1,0x20(%rbx)
movabs $0x3ff0000000000000,%rax
mov    %rax,(%rbx)
jmp    1195 <BIQUADROOTS+0x65>
movsd  0x18(%rbx),%xmm0
movsd  0x20(%rbx),%xmm1
movhpd 0x10(%rbx),%xmm1
mulsd  0xe6b(%rip),%xmm4
movapd %xmm4,%xmm2
addsd  %xmm4,%xmm2
movapd %xmm2,%xmm6
mulsd  %xmm2,%xmm6
movsd  0xe5b(%rip),%xmm3
mulsd  %xmm6,%xmm3
movapd %xmm1,%xmm5
unpckhpd %xmm1,%xmm5
subsd  %xmm5,%xmm6
mulsd  %xmm2,%xmm6
addsd  %xmm0,%xmm6
subsd  %xmm3,%xmm5
movapd %xmm4,%xmm2
mulsd  %xmm5,%xmm2
subsd  %xmm0,%xmm2
mulsd  %xmm4,%xmm2
addsd  %xmm1,%xmm2
subsd  %xmm3,%xmm5
movsd  0xe27(%rip),%xmm0
mulsd  %xmm5,%xmm0
movsd  %xmm0,0x8(%rbx)
mulsd  %xmm0,%xmm0
subsd  %xmm2,%xmm0
movapd %xmm6,%xmm1
mulsd  %xmm6,%xmm1
unpcklpd %xmm1,%xmm0
mulpd  0xe1a(%rip),%xmm0
movupd %xmm0,0x10(%rbx)
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
xorpd  %xmm3,%xmm3
ucomisd %xmm1,%xmm3
movapd %xmm4,0x30(%rsp)
jbe    1330 <BIQUADROOTS+0x200>
movapd %xmm6,0x20(%rsp)
movapd %xmm5,(%rsp)
movapd %xmm2,0x10(%rsp)
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <CUBICROOTS@plt>
xorpd  %xmm3,%xmm3
movsd  0x58(%r14),%xmm0
ucomisd %xmm3,%xmm0
jne    1275 <BIQUADROOTS+0x145>
jp     1275 <BIQUADROOTS+0x145>
movsd  0x30(%r14),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
ja     12b1 <BIQUADROOTS+0x181>
movsd  0x60(%r14),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1293 <BIQUADROOTS+0x163>
jp     1293 <BIQUADROOTS+0x163>
movsd  0x38(%r14),%xmm0
ucomisd %xmm1,%xmm0
ja     12b1 <BIQUADROOTS+0x181>
movsd  0x68(%r14),%xmm0
ucomisd %xmm1,%xmm0
jne    131a <BIQUADROOTS+0x1ea>
jp     131a <BIQUADROOTS+0x1ea>
movsd  0x40(%r14),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    131a <BIQUADROOTS+0x1ea>
mulsd  0xd67(%rip),%xmm0
movapd (%rsp),%xmm3
addsd  %xmm0,%xmm3
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm3
movapd 0x20(%rsp),%xmm4
jb     12f5 <BIQUADROOTS+0x1c5>
ucomisd %xmm1,%xmm4
jb     12f5 <BIQUADROOTS+0x1c5>
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     144f <BIQUADROOTS+0x31f>
sqrtsd %xmm0,%xmm0
movapd 0x10(%rsp),%xmm2
jmp    1494 <BIQUADROOTS+0x364>
ucomisd %xmm3,%xmm1
setae  %al
ucomisd %xmm4,%xmm1
setae  %bpl
and    %al,%bpl
ucomisd %xmm1,%xmm0
jb     146c <BIQUADROOTS+0x33c>
sqrtsd %xmm0,%xmm0
jmp    1481 <BIQUADROOTS+0x351>
movsd  0x10(%rbx),%xmm0
movapd 0x30(%rsp),%xmm4
movapd 0x10(%rsp),%xmm2
movapd (%rsp),%xmm5
ucomisd %xmm0,%xmm3
jbe    1349 <BIQUADROOTS+0x219>
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm2
jb     1361 <BIQUADROOTS+0x231>
xorps  %xmm3,%xmm3
sqrtsd %xmm2,%xmm3
jmp    1388 <BIQUADROOTS+0x258>
movsd  0x8(%rbx),%xmm6
xorpd  %xmm5,%xmm5
ucomisd %xmm5,%xmm0
jb     13bd <BIQUADROOTS+0x28d>
sqrtsd %xmm0,%xmm0
jmp    13e2 <BIQUADROOTS+0x2b2>
movapd %xmm2,%xmm0
movapd %xmm2,0x10(%rsp)
movapd %xmm5,(%rsp)
call   1050 <sqrt@plt>
xorpd  %xmm1,%xmm1
movapd (%rsp),%xmm5
movapd 0x10(%rsp),%xmm2
movapd %xmm0,%xmm3
movapd %xmm3,%xmm0
addsd  %xmm3,%xmm0
subsd  %xmm5,%xmm0
movq   $0x0,0x8(%rbx)
ucomisd %xmm1,%xmm0
jbe    14cb <BIQUADROOTS+0x39b>
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     14ab <BIQUADROOTS+0x37b>
sqrtsd %xmm0,%xmm0
jmp    14c6 <BIQUADROOTS+0x396>
movapd %xmm2,0x10(%rsp)
movsd  %xmm6,(%rsp)
call   1050 <sqrt@plt>
movsd  (%rsp),%xmm6
xorpd  %xmm5,%xmm5
movapd 0x10(%rsp),%xmm2
movapd 0x30(%rsp),%xmm4
movapd 0xc56(%rip),%xmm1
xorpd  %xmm0,%xmm1
xorpd  %xmm3,%xmm3
cmpltsd %xmm6,%xmm3
andpd  %xmm3,%xmm0
andnpd %xmm1,%xmm3
orpd   %xmm0,%xmm3
addsd  %xmm3,%xmm3
addsd  0x8(%rbx),%xmm3
ucomisd %xmm5,%xmm3
jne    1414 <BIQUADROOTS+0x2e4>
jnp    1421 <BIQUADROOTS+0x2f1>
movq   $0x0,0x8(%rbx)
jmp    14cb <BIQUADROOTS+0x39b>
xorpd  0xc17(%rip),%xmm4
pshufd $0x44,%xmm4,%xmm0
movdqu %xmm0,0x30(%r14)
xorpd  %xmm1,%xmm1
movupd %xmm1,0x58(%r14)
movdqu %xmm0,0x40(%r14)
movupd %xmm1,0x68(%r14)
jmp    1546 <BIQUADROOTS+0x416>
movapd %xmm3,(%rsp)
call   1050 <sqrt@plt>
movapd 0x20(%rsp),%xmm4
movapd (%rsp),%xmm3
movapd 0x10(%rsp),%xmm2
jmp    1494 <BIQUADROOTS+0x364>
movapd %xmm3,(%rsp)
call   1050 <sqrt@plt>
movapd 0x20(%rsp),%xmm4
movapd (%rsp),%xmm3
movapd 0x10(%rsp),%xmm2
test   %bpl,%bpl
jne    1494 <BIQUADROOTS+0x364>
xorpd  0xbac(%rip),%xmm0
movsd  %xmm0,0x8(%rbx)
divsd  %xmm0,%xmm4
addsd  %xmm4,%xmm3
mulsd  0xb6f(%rip),%xmm3
jmp    14cb <BIQUADROOTS+0x39b>
movapd %xmm2,0x10(%rsp)
movapd %xmm3,(%rsp)
call   1050 <sqrt@plt>
movapd (%rsp),%xmm3
movapd 0x10(%rsp),%xmm2
movsd  %xmm0,0x8(%rbx)
movapd %xmm3,(%rsp)
divsd  %xmm3,%xmm2
movsd  %xmm2,0x10(%rbx)
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <QUADROOTS@plt>
movups 0x30(%r14),%xmm0
movups 0x58(%r14),%xmm1
movups %xmm0,0x40(%r14)
movups %xmm1,0x68(%r14)
movsd  0x8(%rbx),%xmm0
xorps  0xb3c(%rip),%xmm0
movlps %xmm0,0x8(%rbx)
movaps (%rsp),%xmm0
movsd  %xmm0,0x10(%rbx)
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <QUADROOTS@plt>
movapd 0x30(%rsp),%xmm2
unpcklpd %xmm2,%xmm2
movupd 0x30(%r14),%xmm0
movupd 0x40(%r14),%xmm1
subpd  %xmm2,%xmm0
movupd %xmm0,0x30(%r14)
subpd  %xmm2,%xmm1
movupd %xmm1,0x40(%r14)
add    $0x40,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
define void @BIQUADROOTS(double* %0, [5 x double]* %1) {
%3 = load double, double* %0
%4 = fcmp une double %3, 1.000000e+00
%5 = getelementptr inbounds double, double* %0, i64 1
%6 = load double, double* %5
br i1 %4, label %16, label %7
7: ; preds = %2
%8 = getelementptr inbounds double, double* %0, i64 3
%9 = load double, double* %8
%10 = getelementptr inbounds double, double* %0, i64 2
%11 = load double, double* %10
%12 = getelementptr inbounds double, double* %0, i64 4
%13 = load double, double* %12
%14 = insertelement <2 x double> poison, double %13, i64 0
%15 = insertelement <2 x double> %14, double %11, i64 1
br label %31
16: ; preds = %2
%17 = fdiv double %6, %3
%18 = getelementptr inbounds double, double* %0, i64 2
%19 = load double, double* %18
%20 = getelementptr inbounds double, double* %0, i64 3
%21 = load double, double* %20
%22 = fdiv double %21, %3
%23 = getelementptr inbounds double, double* %0, i64 4
%24 = load double, double* %23
%25 = insertelement <2 x double> poison, double %24, i64 0
%26 = insertelement <2 x double> %25, double %19, i64 1
%27 = insertelement <2 x double> poison, double %3, i64 0
%28 = shufflevector <2 x double> %27, <2 x double> poison, <2 x i32> zeroinitializer
%29 = fdiv <2 x double> %26, %28
%30 = extractelement <2 x double> %29, i64 0
store double %30, double* %23
store double 1.000000e+00, double* %0
br label %31
31: ; preds = %7, %16
%32 = phi double [ %9, %7 ], [ %22, %16 ]
%33 = phi double [ %6, %7 ], [ %17, %16 ]
%34 = phi <2 x double> [ %15, %7 ], [ %29, %16 ]
%35 = getelementptr inbounds double, double* %0, i64 1
%36 = fmul double %33, 2.500000e-01
%37 = fmul double %36, 2.000000e+00
%38 = fmul double %37, %37
%39 = fmul double %38, 7.500000e-01
%40 = getelementptr inbounds double, double* %0, i64 2
%41 = extractelement <2 x double> %34, i64 1
%42 = fsub double %38, %41
%43 = tail call double @llvm.fmuladd.f64(double %37, double %42, double %32)
%44 = fsub double %41, %39
%45 = fneg double %32
%46 = tail call double @llvm.fmuladd.f64(double %36, double %44, double %45)
%47 = extractelement <2 x double> %34, i64 0
%48 = tail call double @llvm.fmuladd.f64(double %36, double %46, double %47)
%49 = fsub double %44, %39
%50 = fmul double %49, 5.000000e-01
store double %50, double* %35
%51 = fneg double %48
%52 = tail call double @llvm.fmuladd.f64(double %50, double %50, double %51)
%53 = fmul double %43, %43
%54 = insertelement <2 x double> poison, double %52, i64 0
%55 = insertelement <2 x double> %54, double %53, i64 1
%56 = fmul <2 x double> %55, <double 2.500000e-01, double -1.562500e-02>
%57 = bitcast double* %40 to <2 x double>*
store <2 x double> %56, <2 x double>* %57
%58 = extractelement <2 x double> %56, i64 1
%59 = fcmp olt double %58, 0.000000e+00
%60 = extractelement <2 x double> %56, i64 0
br i1 %59, label %61, label %110
61: ; preds = %31
%62 = bitcast [5 x double]* %1 to double**
%63 = tail call i32 @CUBICROOTS(double* %0, double** %62)
%64 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 2, i64 1
%65 = load double, double* %64
%66 = fcmp oeq double %65, 0.000000e+00
br i1 %66, label %67, label %92
67: ; preds = %61
%68 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 1, i64 1
%69 = load double, double* %68
%70 = fcmp ogt double %69, 0.000000e+00
br i1 %70, label %71, label %92
71: ; preds = %104, %96, %67
%72 = phi double [ %69, %67 ], [ %98, %96 ], [ %106, %104 ]
%73 = fmul double %72, 4.000000e+00
%74 = fadd double %49, %73
%75 = fcmp oge double %74, 0.000000e+00
%76 = fcmp oge double %43, 0.000000e+00
%77 = select i1 %75, i1 %76, i1 false
br i1 %77, label %78, label %80
78: ; preds = %71
%79 = tail call double @sqrt(double %73)
br label %87
80: ; preds = %71
%81 = fcmp ole double %74, 0.000000e+00
%82 = fcmp ole double %43, 0.000000e+00
%83 = select i1 %81, i1 %82, i1 false
%84 = tail call double @sqrt(double %73)
%85 = fneg double %84
%86 = select i1 %83, double %84, double %85
br label %87
87: ; preds = %80, %78
%88 = phi double [ %79, %78 ], [ %86, %80 ]
store double %88, double* %35
%89 = fdiv double %43, %88
%90 = fadd double %74, %89
%91 = fmul double %90, 5.000000e-01
br label %140
92: ; preds = %61, %67
%93 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 2, i64 2
%94 = load double, double* %93
%95 = fcmp oeq double %94, 0.000000e+00
br i1 %95, label %96, label %100
96: ; preds = %92
%97 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 1, i64 2
%98 = load double, double* %97
%99 = fcmp ogt double %98, 0.000000e+00
br i1 %99, label %71, label %100
100: ; preds = %96, %92
%101 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 2, i64 3
%102 = load double, double* %101
%103 = fcmp oeq double %102, 0.000000e+00
br i1 %103, label %104, label %108
104: ; preds = %100
%105 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 1, i64 3
%106 = load double, double* %105
%107 = fcmp ogt double %106, 0.000000e+00
br i1 %107, label %71, label %108
108: ; preds = %104, %100
%109 = load double, double* %40
br label %110
110: ; preds = %108, %31
%111 = phi double [ %109, %108 ], [ %60, %31 ]
%112 = fcmp olt double %111, 0.000000e+00
br i1 %112, label %113, label %120
113: ; preds = %110
%114 = tail call double @sqrt(double %48)
%115 = fadd double %114, %114
%116 = fsub double %115, %49
store double 0.000000e+00, double* %35
%117 = fcmp ogt double %116, 0.000000e+00
br i1 %117, label %118, label %140
118: ; preds = %113
%119 = tail call double @sqrt(double %116)
store double %119, double* %35
br label %140
120: ; preds = %110
%121 = load double, double* %35
%122 = fcmp ogt double %121, 0.000000e+00
%123 = tail call double @sqrt(double %111)
%124 = fneg double %123
%125 = select i1 %122, double %123, double %124
%126 = load double, double* %35
%127 = tail call double @llvm.fmuladd.f64(double %125, double 2.000000e+00, double %126)
%128 = fcmp une double %127, 0.000000e+00
br i1 %128, label %139, label %129
129: ; preds = %120
%130 = fneg double %36
%131 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 1, i64 1
store double %130, double* %131
%132 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 2, i64 1
%133 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 1, i64 2
store double %130, double* %133
%134 = bitcast double* %132 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %134
%135 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 1, i64 3
store double %130, double* %135
%136 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 2, i64 3
%137 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 1, i64 4
store double %130, double* %137
%138 = bitcast double* %136 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %138
br label %168
139: ; preds = %120
store double 0.000000e+00, double* %35
br label %140
140: ; preds = %139, %118, %113, %87
%141 = phi double [ %91, %87 ], [ %114, %118 ], [ %114, %113 ], [ %127, %139 ]
%142 = fdiv double %48, %141
store double %142, double* %40
%143 = bitcast [5 x double]* %1 to double**
%144 = tail call i32 @QUADROOTS(double* %0, double** %143)
%145 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 1, i64 1
%146 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 1, i64 3
%147 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 2, i64 1
%148 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 2, i64 3
%149 = bitcast double* %145 to <2 x double>*
%150 = load <2 x double>, <2 x double>* %149
%151 = bitcast double* %146 to <2 x double>*
store <2 x double> %150, <2 x double>* %151
%152 = bitcast double* %147 to <2 x double>*
%153 = load <2 x double>, <2 x double>* %152
%154 = bitcast double* %148 to <2 x double>*
store <2 x double> %153, <2 x double>* %154
%155 = load double, double* %35
%156 = fneg double %155
store double %156, double* %35
store double %141, double* %40
%157 = tail call i32 @QUADROOTS(double* %0, double** %143)
%158 = bitcast double* %145 to <2 x double>*
%159 = load <2 x double>, <2 x double>* %158
%160 = insertelement <2 x double> poison, double %36, i64 0
%161 = shufflevector <2 x double> %160, <2 x double> poison, <2 x i32> zeroinitializer
%162 = fsub <2 x double> %159, %161
%163 = bitcast double* %145 to <2 x double>*
store <2 x double> %162, <2 x double>* %163
%164 = bitcast double* %146 to <2 x double>*
%165 = load <2 x double>, <2 x double>* %164
%166 = fsub <2 x double> %165, %161
%167 = bitcast double* %146 to <2 x double>*
store <2 x double> %166, <2 x double>* %167
br label %168
168: ; preds = %129, %140
ret void
}