int odrrb(int *n, double *d__, double *lld, int *ifirst, int *ilast,
          double *rtol1, double *rtol2, int *offset, double *w, double *wgap,
          double *werr, double *work, int *iwork, double *pivmin,
          double *spdiam, int *twist, int *info) {
  int i__1;
  double d__1, d__2;
  int i__, k, r__, i1, ii, ip;
  double gap, mid, tmp, back, lgap, rgap, left;
  int iter, nint, prev, next;
  double cvrgd, right, width;
  extern int odneg(int *, double *, double *, double *, double *, int *);
  int negcnt;
  double mnwdth;
  int olnint, maxitr;
  --iwork;
  --work;
  --werr;
  --wgap;
  --w;
  --lld;
  --d__;
  *info = 0;
  maxitr = (int)((log(*spdiam + *pivmin) - log(*pivmin)) / log(2.)) + 2;
  mnwdth = *pivmin * 2.;
  r__ = *twist;
  if (r__ < 1 || r__ > *n) {
    r__ = *n;
  }
  i1 = *ifirst;
  nint = 0;
  prev = 0;
  rgap = wgap[i1 - *offset];
  i__1 = *ilast;
  for (i__ = i1; i__ <= i__1; ++i__) {
    k = i__ << 1;
    ii = i__ - *offset;
    left = w[ii] - werr[ii];
    right = w[ii] + werr[ii];
    lgap = rgap;
    rgap = wgap[ii];
    gap = fmin(lgap, rgap);
    back = werr[ii];
  L20:
    negcnt = odneg(n, &d__[1], &lld[1], &left, pivmin, &r__);
    if (negcnt > i__ - 1) {
      left -= back;
      back *= 2.;
      goto L20;
    }
    back = werr[ii];
  L50:
    negcnt = odneg(n, &d__[1], &lld[1], &right, pivmin, &r__);
    if (negcnt < i__) {
      right += back;
      back *= 2.;
      goto L50;
    }
    width = (d__1 = left - right, fabs(d__1)) * .5;
    d__1 = fabs(left), d__2 = fabs(right);
    tmp = fmax(d__1, d__2);
    d__1 = *rtol1 * gap, d__2 = *rtol2 * tmp;
    cvrgd = fmax(d__1, d__2);
    if (width <= cvrgd || width <= mnwdth) {
      iwork[k - 1] = -1;
      if (i__ == i1 && i__ < *ilast) {
        i1 = i__ + 1;
      }
      if (prev >= i1 && i__ <= *ilast) {
        iwork[(prev << 1) - 1] = i__ + 1;
      }
    } else {
      prev = i__;
      ++nint;
      iwork[k - 1] = i__ + 1;
      iwork[k] = negcnt;
    }
    work[k - 1] = left;
    work[k] = right;
  }
  iter = 0;
L80:
  prev = i1 - 1;
  i__ = i1;
  olnint = nint;
  i__1 = olnint;
  for (ip = 1; ip <= i__1; ++ip) {
    k = i__ << 1;
    ii = i__ - *offset;
    rgap = wgap[ii];
    lgap = rgap;
    if (ii > 1) {
      lgap = wgap[ii - 1];
    }
    gap = fmin(lgap, rgap);
    next = iwork[k - 1];
    left = work[k - 1];
    right = work[k];
    mid = (left + right) * .5;
    width = right - mid;
    d__1 = fabs(left), d__2 = fabs(right);
    tmp = fmax(d__1, d__2);
    d__1 = *rtol1 * gap, d__2 = *rtol2 * tmp;
    cvrgd = fmax(d__1, d__2);
    if (width <= cvrgd || width <= mnwdth || iter == maxitr) {
      --nint;
      iwork[k - 1] = 0;
      if (i1 == i__) {
        i1 = next;
      } else {
        if (prev >= i1) {
          iwork[(prev << 1) - 1] = next;
        }
      }
      i__ = next;
      goto L100;
    }
    prev = i__;
    negcnt = odneg(n, &d__[1], &lld[1], &mid, pivmin, &r__);
    if (negcnt <= i__ - 1) {
      work[k - 1] = mid;
    } else {
      work[k] = mid;
    }
    i__ = next;
  L100:;
  }
  ++iter;
  if (nint > 0 && iter <= maxitr) {
    goto L80;
  }
  i__1 = *ilast;
  for (i__ = *ifirst; i__ <= i__1; ++i__) {
    k = i__ << 1;
    ii = i__ - *offset;
    if (iwork[k - 1] == 0) {
      w[ii] = (work[k - 1] + work[k]) * .5;
      werr[ii] = work[k] - w[ii];
    }
  }
  i__1 = *ilast;
  for (i__ = *ifirst + 1; i__ <= i__1; ++i__) {
    k = i__ << 1;
    ii = i__ - *offset;
    d__1 = 0., d__2 = w[ii] - werr[ii] - w[ii - 1] - werr[ii - 1];
    wgap[ii - 1] = fmax(d__1, d__2);
  }
  return 0;
}


x86 assembly (clang, -O0):
<odrrb>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    0x60(%rbp),%rax
mov    0x58(%rbp),%rax
mov    0x50(%rbp),%rax
mov    0x48(%rbp),%rax
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    0x40(%rbp),%rax
add    $0xfffffffffffffffc,%rax
mov    %rax,0x40(%rbp)
mov    0x38(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,0x38(%rbp)
mov    0x30(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,0x30(%rbp)
mov    0x28(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,0x28(%rbp)
mov    0x20(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,0x20(%rbp)
mov    -0x18(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x10(%rbp)
mov    0x60(%rbp),%rax
movl   $0x0,(%rax)
mov    0x50(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x48(%rbp),%rax
addsd  (%rax),%xmm0
call   1040 <log@plt>
movsd  %xmm0,-0xe8(%rbp)
ff
mov    0x48(%rbp),%rax
movsd  (%rax),%xmm0
call   1040 <log@plt>
movaps %xmm0,%xmm1
movsd  -0xe8(%rbp),%xmm0
ff
subsd  %xmm1,%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  0xdea(%rip),%xmm0
call   1040 <log@plt>
movaps %xmm0,%xmm1
movsd  -0xe0(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
add    $0x2,%eax
mov    %eax,-0xd8(%rbp)
mov    0x48(%rbp),%rax
movsd  0xdbd(%rip),%xmm0
mulsd  (%rax),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
mov    0x58(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x54(%rbp)
cmpl   $0x1,-0x54(%rbp)
jl     1271 <odrrb+0x151>
mov    -0x54(%rbp),%eax
mov    -0x8(%rbp),%rcx
cmp    (%rcx),%eax
jle    127a <odrrb+0x15a>
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x54(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x58(%rbp)
movl   $0x0,-0xa0(%rbp)
movl   $0x0,-0xa4(%rbp)
mov    0x28(%rbp),%rax
mov    -0x58(%rbp),%ecx
mov    0x18(%rbp),%rdx
sub    (%rdx),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x28(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x34(%rbp)
mov    -0x58(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x34(%rbp),%eax
jg     1690 <odrrb+0x570>
mov    -0x4c(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x50(%rbp)
mov    -0x4c(%rbp),%eax
mov    0x18(%rbp),%rcx
sub    (%rcx),%eax
mov    %eax,-0x5c(%rbp)
mov    0x20(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x30(%rbp),%rax
movslq -0x5c(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    0x20(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x30(%rbp),%rax
movslq -0x5c(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x88(%rbp)
ff
mov    0x28(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x88(%rbp),%xmm3
ff
movsd  -0x90(%rbp),%xmm2
ff
movaps %xmm2,%xmm4
movaps %xmm3,%xmm0
cmpunordsd %xmm0,%xmm0
movaps %xmm0,%xmm1
pand   %xmm4,%xmm1
minsd  %xmm3,%xmm2
pandn  %xmm2,%xmm0
por    %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    0x30(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
mov    -0x18(%rbp),%rdx
add    $0x8,%rdx
mov    0x48(%rbp),%r8
lea    -0x98(%rbp),%rcx
lea    -0x54(%rbp),%r9
call   1030 <odneg@plt>
mov    %eax,-0xc4(%rbp)
mov    -0xc4(%rbp),%eax
mov    -0x4c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jle    1404 <odrrb+0x2e4>
movsd  -0x80(%rbp),%xmm1
movsd  -0x98(%rbp),%xmm0
ff
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  0xc0b(%rip),%xmm0
mulsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
jmp    1392 <odrrb+0x272>
mov    0x30(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
mov    -0x18(%rbp),%rdx
add    $0x8,%rdx
mov    0x48(%rbp),%r8
lea    -0xb8(%rbp),%rcx
lea    -0x54(%rbp),%r9
call   1030 <odneg@plt>
mov    %eax,-0xc4(%rbp)
mov    -0xc4(%rbp),%eax
cmp    -0x4c(%rbp),%eax
jge    147f <odrrb+0x35f>
movsd  -0x80(%rbp),%xmm0
addsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  0xb90(%rip),%xmm0
mulsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
jmp    1416 <odrrb+0x2f6>
movsd  -0x98(%rbp),%xmm0
ff
subsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
movaps 0xb70(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0xb5c(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
movaps 0xb49(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0xb8(%rbp),%xmm0
ff
movaps 0xb31(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x40(%rbp),%xmm3
movsd  -0x48(%rbp),%xmm2
movaps %xmm2,%xmm4
movaps %xmm3,%xmm0
cmpunordsd %xmm0,%xmm0
movaps %xmm0,%xmm1
pand   %xmm4,%xmm1
maxsd  %xmm3,%xmm2
pandn  %xmm2,%xmm0
por    %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
mulsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    0x10(%rbp),%rax
movsd  (%rax),%xmm0
mulsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x40(%rbp),%xmm3
movsd  -0x48(%rbp),%xmm2
movaps %xmm2,%xmm4
movaps %xmm3,%xmm0
cmpunordsd %xmm0,%xmm0
movaps %xmm0,%xmm1
pand   %xmm4,%xmm1
maxsd  %xmm3,%xmm2
pandn  %xmm2,%xmm0
por    %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0xc0(%rbp),%xmm1
ff
movsd  -0xb0(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jae    159d <odrrb+0x47d>
movsd  -0xc0(%rbp),%xmm1
ff
movsd  -0xd0(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jb     1614 <odrrb+0x4f4>
mov    0x40(%rbp),%rax
mov    -0x50(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movl   $0xffffffff,(%rax,%rcx,4)
mov    -0x4c(%rbp),%eax
cmp    -0x58(%rbp),%eax
jne    15d5 <odrrb+0x4b5>
mov    -0x4c(%rbp),%eax
mov    -0x28(%rbp),%rcx
cmp    (%rcx),%eax
jge    15d5 <odrrb+0x4b5>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
mov    -0xa4(%rbp),%eax
cmp    -0x58(%rbp),%eax
jl     160f <odrrb+0x4ef>
mov    -0x4c(%rbp),%eax
mov    -0x28(%rbp),%rcx
cmp    (%rcx),%eax
jg     160f <odrrb+0x4ef>
mov    -0x4c(%rbp),%edx
add    $0x1,%edx
mov    0x40(%rbp),%rax
mov    -0xa4(%rbp),%ecx
shl    $0x1,%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
jmp    1653 <odrrb+0x533>
mov    -0x4c(%rbp),%eax
mov    %eax,-0xa4(%rbp)
mov    -0xa0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa0(%rbp)
mov    -0x4c(%rbp),%edx
add    $0x1,%edx
mov    0x40(%rbp),%rax
mov    -0x50(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0xc4(%rbp),%edx
mov    0x40(%rbp),%rax
movslq -0x50(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
movsd  -0x98(%rbp),%xmm0
ff
mov    0x38(%rbp),%rax
mov    -0x50(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xb8(%rbp),%xmm0
ff
mov    0x38(%rbp),%rax
movslq -0x50(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    12c3 <odrrb+0x1a3>
movl   $0x0,-0x9c(%rbp)
mov    -0x58(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0xa4(%rbp)
mov    -0x58(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0xa0(%rbp),%eax
mov    %eax,-0xd4(%rbp)
mov    -0xd4(%rbp),%eax
mov    %eax,-0x34(%rbp)
movl   $0x1,-0x60(%rbp)
mov    -0x60(%rbp),%eax
cmp    -0x34(%rbp),%eax
jg     19e4 <odrrb+0x8c4>
mov    -0x4c(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x50(%rbp)
mov    -0x4c(%rbp),%eax
mov    0x18(%rbp),%rcx
sub    (%rcx),%eax
mov    %eax,-0x5c(%rbp)
mov    0x28(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x88(%rbp)
ff
cmpl   $0x1,-0x5c(%rbp)
jle    1732 <odrrb+0x612>
mov    0x28(%rbp),%rax
mov    -0x5c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x88(%rbp),%xmm3
ff
movsd  -0x90(%rbp),%xmm2
ff
movaps %xmm2,%xmm4
movaps %xmm3,%xmm0
cmpunordsd %xmm0,%xmm0
movaps %xmm0,%xmm1
pand   %xmm4,%xmm1
minsd  %xmm3,%xmm2
pandn  %xmm2,%xmm0
por    %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    0x40(%rbp),%rax
mov    -0x50(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0xa8(%rbp)
mov    0x38(%rbp),%rax
mov    -0x50(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    0x38(%rbp),%rax
movslq -0x50(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
addsd  -0xb8(%rbp),%xmm0
ff
movsd  0x846(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0xb8(%rbp),%xmm0
ff
subsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
movaps 0x821(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0xb8(%rbp),%xmm0
ff
movaps 0x809(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x40(%rbp),%xmm3
movsd  -0x48(%rbp),%xmm2
movaps %xmm2,%xmm4
movaps %xmm3,%xmm0
cmpunordsd %xmm0,%xmm0
movaps %xmm0,%xmm1
pand   %xmm4,%xmm1
maxsd  %xmm3,%xmm2
pandn  %xmm2,%xmm0
por    %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
mulsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    0x10(%rbp),%rax
movsd  (%rax),%xmm0
mulsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x40(%rbp),%xmm3
movsd  -0x48(%rbp),%xmm2
movaps %xmm2,%xmm4
movaps %xmm3,%xmm0
cmpunordsd %xmm0,%xmm0
movaps %xmm0,%xmm1
pand   %xmm4,%xmm1
maxsd  %xmm3,%xmm2
pandn  %xmm2,%xmm0
por    %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0xc0(%rbp),%xmm1
ff
movsd  -0xb0(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jae    18d7 <odrrb+0x7b7>
movsd  -0xc0(%rbp),%xmm1
ff
movsd  -0xd0(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jae    18d7 <odrrb+0x7b7>
mov    -0x9c(%rbp),%eax
cmp    -0xd8(%rbp),%eax
jne    1952 <odrrb+0x832>
mov    -0xa0(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xa0(%rbp)
mov    0x40(%rbp),%rax
mov    -0x50(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x58(%rbp),%eax
cmp    -0x4c(%rbp),%eax
jne    1914 <odrrb+0x7f4>
mov    -0xa8(%rbp),%eax
mov    %eax,-0x58(%rbp)
jmp    1944 <odrrb+0x824>
mov    -0xa4(%rbp),%eax
cmp    -0x58(%rbp),%eax
jl     193f <odrrb+0x81f>
mov    -0xa8(%rbp),%edx
mov    0x40(%rbp),%rax
mov    -0xa4(%rbp),%ecx
shl    $0x1,%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
jmp    1944 <odrrb+0x824>
mov    -0xa8(%rbp),%eax
mov    %eax,-0x4c(%rbp)
jmp    19d1 <odrrb+0x8b1>
mov    -0x4c(%rbp),%eax
mov    %eax,-0xa4(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
mov    -0x18(%rbp),%rdx
add    $0x8,%rdx
mov    0x48(%rbp),%r8
lea    -0x70(%rbp),%rcx
lea    -0x54(%rbp),%r9
call   1030 <odneg@plt>
mov    %eax,-0xc4(%rbp)
mov    -0xc4(%rbp),%eax
mov    -0x4c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     19b6 <odrrb+0x896>
movsd  -0x70(%rbp),%xmm0
mov    0x38(%rbp),%rax
mov    -0x50(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    19c8 <odrrb+0x8a8>
movsd  -0x70(%rbp),%xmm0
mov    0x38(%rbp),%rax
movslq -0x50(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0xa8(%rbp),%eax
mov    %eax,-0x4c(%rbp)
jmp    19d6 <odrrb+0x8b6>
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    16c8 <odrrb+0x5a8>
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
cmpl   $0x0,-0xa0(%rbp)
jle    1a17 <odrrb+0x8f7>
mov    -0x9c(%rbp),%eax
cmp    -0xd8(%rbp),%eax
jg     1a17 <odrrb+0x8f7>
jmp    169a <odrrb+0x57a>
mov    -0x28(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x34(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x34(%rbp),%eax
jg     1ad3 <odrrb+0x9b3>
mov    -0x4c(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x50(%rbp)
mov    -0x4c(%rbp),%eax
mov    0x18(%rbp),%rcx
sub    (%rcx),%eax
mov    %eax,-0x5c(%rbp)
mov    0x40(%rbp),%rax
mov    -0x50(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
cmpl   $0x0,(%rax,%rcx,4)
jne    1ac0 <odrrb+0x9a0>
mov    0x38(%rbp),%rax
mov    -0x50(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x38(%rbp),%rax
movslq -0x50(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  0x580(%rip),%xmm1
mulsd  %xmm1,%xmm0
mov    0x20(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x38(%rbp),%rax
movslq -0x50(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x20(%rbp),%rax
movslq -0x5c(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    0x30(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    1ac5 <odrrb+0x9a5>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1a29 <odrrb+0x909>
mov    -0x28(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x34(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x34(%rbp),%eax
jg     1b9c <odrrb+0xa7c>
mov    -0x4c(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x50(%rbp)
mov    -0x4c(%rbp),%eax
mov    0x18(%rbp),%rcx
sub    (%rcx),%eax
mov    %eax,-0x5c(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    0x20(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x30(%rbp),%rax
movslq -0x5c(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    0x20(%rbp),%rax
mov    -0x5c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    0x30(%rbp),%rax
mov    -0x5c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x40(%rbp),%xmm3
movsd  -0x48(%rbp),%xmm2
movaps %xmm2,%xmm4
movaps %xmm3,%xmm0
cmpunordsd %xmm0,%xmm0
movaps %xmm0,%xmm1
pand   %xmm4,%xmm1
maxsd  %xmm3,%xmm2
pandn  %xmm2,%xmm0
por    %xmm1,%xmm0
mov    0x28(%rbp),%rax
mov    -0x5c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1ae8 <odrrb+0x9c8>
xor    %eax,%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<odrrb>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
mov    %r9,0x78(%rsp)
mov    %r8,%rbx
mov    %rcx,%r15
mov    %rdx,0x58(%rsp)
mov    %rsi,0x30(%rsp)
mov    %rdi,%rbp
mov    0x128(%rsp),%r12
mov    0xf8(%rsp),%r13
mov    0x140(%rsp),%rax
movl   $0x0,(%rax)
mov    0x130(%rsp),%rax
movsd  (%rax),%xmm0
mov    0x138(%rsp),%r14
addsd  (%r12),%xmm0
call   1040 <log@plt>
movsd  %xmm0,0x8(%rsp)
movsd  (%r12),%xmm0
call   1040 <log@plt>
movsd  0x8(%rsp),%xmm1
subsd  %xmm0,%xmm1
divsd  0xe57(%rip),%xmm1
cvttsd2si %xmm1,%eax
mov    %eax,0x14(%rsp)
movsd  (%r12),%xmm0
addsd  %xmm0,%xmm0
movsd  %xmm0,0x70(%rsp)
mov    (%r14),%eax
mov    %eax,0x4(%rsp)
mov    %rbp,0x8(%rsp)
mov    0x0(%rbp),%ecx
cmp    %ecx,%eax
mov    %eax,%edx
cmovg  %ecx,%edx
test   %eax,%eax
cmovle %ecx,%edx
mov    %edx,0x4(%rsp)
mov    (%r15),%r8d
mov    %rbx,0x38(%rsp)
mov    (%rbx),%edx
xor    %eax,%eax
mov    %rax,0x60(%rsp)
cmp    %edx,%r8d
mov    %r15,0x88(%rsp)
jle    1220 <odrrb+0x100>
xor    %edi,%edi
mov    0x108(%rsp),%r14
mov    %r13,%r11
mov    0x120(%rsp),%r9
mov    0x118(%rsp),%r10
jmp    15c2 <odrrb+0x4a2>
movslq %r8d,%r14
mov    0x0(%r13),%eax
mov    %r8,0x48(%rsp)
mov    %r8d,%ecx
sub    %eax,%ecx
movslq %ecx,%rcx
mov    0x108(%rsp),%rsi
movsd  -0x8(%rsi,%rcx,8),%xmm0
movapd %xmm0,0x90(%rsp)
add    $0x1,%edx
mov    %edx,0x6c(%rsp)
xor    %ecx,%ecx
mov    %rcx,0x40(%rsp)
lea    0x18(%rsp),%rcx
lea    0x4(%rsp),%rbp
movl   $0x0,(%rsp)
mov    0x100(%rsp),%rbx
mov    0x30(%rsp),%r15
mov    0x128(%rsp),%r12
nop
cltq
mov    %r14,%rdx
sub    %rax,%rdx
movsd  -0x8(%rbx,%rdx,8),%xmm0
mov    0x110(%rsp),%rax
movsd  -0x8(%rax,%rdx,8),%xmm2
movapd %xmm0,%xmm1
subsd  %xmm2,%xmm1
movsd  %xmm1,0x18(%rsp)
movsd  %xmm2,0x20(%rsp)
addsd  %xmm2,%xmm0
movsd  %xmm0,0x28(%rsp)
mov    0x108(%rsp),%rax
mov    %rdx,0x50(%rsp)
movsd  -0x8(%rax,%rdx,8),%xmm0
movaps %xmm0,0xa0(%rsp)
mov    0x8(%rsp),%rdi
mov    %r15,%rsi
mov    0x58(%rsp),%r13
mov    %r13,%rdx
mov    %rcx,%rbx
nopl   0x0(%rax,%rax,1)
mov    %r12,%r8
mov    %rbp,%r9
call   1030 <odneg@plt>
cltq
cmp    %rax,%r14
jg     1340 <odrrb+0x220>
movsd  0x18(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,0x18(%rsp)
addsd  %xmm1,%xmm1
movsd  %xmm1,0x20(%rsp)
mov    0x8(%rsp),%rdi
mov    %r15,%rsi
mov    %r13,%rdx
mov    %rbx,%rcx
jmp    12f0 <odrrb+0x1d0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    (%r14,%r14,1),%ebx
mov    0x110(%rsp),%rax
mov    0x50(%rsp),%rcx
movsd  -0x8(%rax,%rcx,8),%xmm0
movsd  %xmm0,0x20(%rsp)
mov    0x8(%rsp),%rdi
mov    %r15,%rsi
mov    %r13,%rdx
lea    0x28(%rsp),%r13
mov    %r13,%rcx
mov    %r12,%r8
mov    %rbp,%r9
call   1030 <odneg@plt>
movslq %eax,%rcx
cmp    %rcx,%r14
jle    13e5 <odrrb+0x2c5>
mov    %ebx,0x50(%rsp)
mov    0x58(%rsp),%r12
lea    0x4(%rsp),%r15
mov    0x128(%rsp),%rbp
mov    0x30(%rsp),%rbx
xchg   %ax,%ax
movsd  0x28(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,0x28(%rsp)
addsd  %xmm1,%xmm1
movsd  %xmm1,0x20(%rsp)
mov    0x8(%rsp),%rdi
mov    %rbx,%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %rbp,%r8
mov    %r15,%r9
call   1030 <odneg@plt>
movslq %eax,%rcx
cmp    %rcx,%r14
jg     13a0 <odrrb+0x280>
mov    0x50(%rsp),%ebx
movapd 0xa0(%rsp),%xmm8
movapd %xmm8,%xmm0
movapd 0x90(%rsp),%xmm1
minsd  %xmm1,%xmm0
cmpunordsd %xmm1,%xmm1
movapd %xmm1,%xmm2
andpd  %xmm8,%xmm2
andnpd %xmm0,%xmm1
orpd   %xmm2,%xmm1
movsd  0x18(%rsp),%xmm0
movsd  0x28(%rsp),%xmm7
movapd %xmm0,%xmm2
subsd  %xmm7,%xmm2
movapd 0xbdd(%rip),%xmm5
andpd  %xmm5,%xmm2
mulsd  0xbc9(%rip),%xmm2
movapd %xmm0,%xmm3
andpd  %xmm5,%xmm3
movapd %xmm7,%xmm4
andpd  %xmm5,%xmm4
movapd %xmm3,%xmm5
cmpunordsd %xmm3,%xmm5
movapd %xmm5,%xmm6
andpd  %xmm4,%xmm6
maxsd  %xmm3,%xmm4
andnpd %xmm4,%xmm5
orpd   %xmm6,%xmm5
mov    0x78(%rsp),%rcx
mulsd  (%rcx),%xmm1
mov    0xf0(%rsp),%rcx
mulsd  (%rcx),%xmm5
movapd %xmm1,%xmm3
cmpunordsd %xmm1,%xmm3
movapd %xmm3,%xmm4
andpd  %xmm5,%xmm4
maxsd  %xmm1,%xmm5
andnpd %xmm5,%xmm3
orpd   %xmm4,%xmm3
ucomisd %xmm2,%xmm3
movslq %ebx,%rcx
jae    1500 <odrrb+0x3e0>
movsd  0x70(%rsp),%xmm3
ucomisd %xmm2,%xmm3
jae    1500 <odrrb+0x3e0>
addl   $0x1,(%rsp)
lea    -0x1(%rcx),%rdx
lea    0x1(%r14),%esi
mov    0x120(%rsp),%r9
mov    %esi,-0x8(%r9,%rcx,4)
mov    %eax,-0x4(%r9,%rcx,4)
mov    %r14d,%eax
mov    %rax,0x40(%rsp)
mov    0x100(%rsp),%rbx
mov    0xf8(%rsp),%r11
mov    0x118(%rsp),%r10
mov    0x48(%rsp),%r8
jmp    1570 <odrrb+0x450>
nopl   0x0(%rax,%rax,1)
mov    0x120(%rsp),%r9
movl   $0xffffffff,-0x8(%r9,%rcx,4)
ff ff
mov    0x48(%rsp),%r8
cmp    %r14d,%r8d
mov    0x100(%rsp),%rbx
mov    0xf8(%rsp),%r11
mov    0x118(%rsp),%r10
jne    1546 <odrrb+0x426>
mov    0x38(%rsp),%rax
movslq (%rax),%rax
lea    0x1(%r14),%edx
cmp    %rax,%r14
cmovl  %edx,%r8d
lea    -0x1(%rcx),%rdx
cmp    %r8d,0x40(%rsp)
jl     1570 <odrrb+0x450>
mov    0x38(%rsp),%rax
movslq (%rax),%rax
cmp    %rax,%r14
jg     1570 <odrrb+0x450>
mov    0x40(%rsp),%rax
add    %eax,%eax
cltq
lea    0x1(%r14),%esi
mov    %esi,-0x8(%r9,%rax,4)
movsd  %xmm0,-0x8(%r10,%rdx,8)
movsd  %xmm7,-0x8(%r10,%rcx,8)
add    $0x1,%r14
cmp    %r14d,0x6c(%rsp)
je     15b7 <odrrb+0x497>
mov    %r8,0x48(%rsp)
mov    (%r11),%eax
movapd %xmm8,0x90(%rsp)
lea    0x18(%rsp),%rcx
lea    0x4(%rsp),%rbp
mov    0x128(%rsp),%r12
mov    0x30(%rsp),%r15
jmp    1280 <odrrb+0x160>
mov    (%rsp),%edi
mov    0x108(%rsp),%r14
addl   $0x2,0x14(%rsp)
movsd  0xa38(%rip),%xmm8
movapd 0xa38(%rip),%xmm7
nopl   0x0(%rax,%rax,1)
test   %edi,%edi
jle    17fb <odrrb+0x6db>
lea    -0x1(%r8),%eax
mov    %edi,%ebx
mov    %r8d,%r15d
jmp    1644 <odrrb+0x524>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  %xmm0,-0x8(%r10,%r13,8)
mov    %ebp,%eax
mov    0x108(%rsp),%rcx
mov    0xf8(%rsp),%r11
mov    0x120(%rsp),%r9
mov    %r14,%r8
mov    %rcx,%r14
mov    (%rsp),%edi
movsd  0x9d5(%rip),%xmm8
movapd 0x9d5(%rip),%xmm7
add    $0xffffffff,%ebx
je     17e0 <odrrb+0x6c0>
mov    %r15d,%ebp
lea    0x0(%rbp,%rbp,1),%ecx
movslq (%r11),%rsi
movslq %r15d,%rdx
sub    %rsi,%rdx
movsd  -0x8(%r14,%rdx,8),%xmm1
movapd %xmm1,%xmm2
cmp    $0x2,%edx
jl     166e <odrrb+0x54e>
add    $0xffffffff,%edx
movsd  -0x8(%r14,%rdx,8),%xmm2
movapd %xmm2,%xmm0
cmpunordsd %xmm2,%xmm0
movapd %xmm0,%xmm3
andpd  %xmm1,%xmm3
minsd  %xmm2,%xmm1
andnpd %xmm1,%xmm0
orpd   %xmm3,%xmm0
movslq %ecx,%r13
mov    -0x8(%r9,%r13,4),%r15d
movsd  -0x10(%r10,%r13,8),%xmm2
movsd  %xmm2,0x18(%rsp)
movsd  -0x8(%r10,%r13,8),%xmm3
movsd  %xmm3,0x28(%rsp)
movapd %xmm2,%xmm4
addsd  %xmm3,%xmm4
movapd %xmm3,%xmm1
andpd  %xmm7,%xmm2
andpd  %xmm7,%xmm3
movapd %xmm2,%xmm5
cmpunordsd %xmm2,%xmm5
movapd %xmm5,%xmm6
andpd  %xmm3,%xmm6
maxsd  %xmm2,%xmm3
lea    -0x1(%r13),%r12
mulsd  %xmm8,%xmm4
movsd  %xmm4,0x80(%rsp)
andnpd %xmm3,%xmm5
orpd   %xmm6,%xmm5
mov    0x78(%rsp),%rcx
mulsd  (%rcx),%xmm0
mov    0xf0(%rsp),%rcx
mulsd  (%rcx),%xmm5
subsd  %xmm4,%xmm1
movapd %xmm0,%xmm2
cmpunordsd %xmm0,%xmm2
movapd %xmm2,%xmm3
andpd  %xmm5,%xmm3
maxsd  %xmm0,%xmm5
andnpd %xmm5,%xmm2
orpd   %xmm3,%xmm2
ucomisd %xmm1,%xmm2
jae    17a0 <odrrb+0x680>
movsd  0x70(%rsp),%xmm0
ucomisd %xmm1,%xmm0
jae    17a0 <odrrb+0x680>
mov    0x60(%rsp),%rcx
cmp    0x14(%rsp),%ecx
je     17a0 <odrrb+0x680>
mov    %edi,(%rsp)
mov    0x8(%rsp),%rdi
mov    %r8,%r14
mov    0x30(%rsp),%rsi
mov    0x58(%rsp),%rdx
lea    0x80(%rsp),%rcx
mov    0x128(%rsp),%r8
lea    0x4(%rsp),%r9
call   1030 <odneg@plt>
movsd  0x80(%rsp),%xmm0
mov    0x118(%rsp),%r10
cmp    %ebp,%eax
jge    1600 <odrrb+0x4e0>
movsd  %xmm0,-0x8(%r10,%r12,8)
jmp    1607 <odrrb+0x4e7>
nopw   0x0(%rax,%rax,1)
add    $0xffffffff,%edi
movl   $0x0,-0x4(%r9,%r12,4)
cmp    %ebp,%r8d
jne    17c0 <odrrb+0x6a0>
mov    %r15d,%r8d
jmp    163b <odrrb+0x51b>
nopl   0x0(%rax)
cmp    %r8d,%eax
jl     163b <odrrb+0x51b>
lea    (%rax,%rax,1),%ecx
movslq %ecx,%rcx
mov    %r15d,-0x8(%r9,%rcx,4)
jmp    163b <odrrb+0x51b>
nopl   0x0(%rax)
test   %edi,%edi
jle    17fb <odrrb+0x6db>
mov    0x60(%rsp),%rcx
lea    0x1(%rcx),%eax
cmp    0x14(%rsp),%ecx
mov    %rax,0x60(%rsp)
jl     15e0 <odrrb+0x4c0>
mov    %r14,%r13
mov    0x38(%rsp),%rax
movslq (%rax),%r12
mov    0x88(%rsp),%rax
movslq (%rax),%r15
cmp    %r12d,%r15d
mov    0x110(%rsp),%r14
jle    1850 <odrrb+0x730>
cmp    %r12d,%r15d
mov    0x100(%rsp),%rbx
jge    1a6d <odrrb+0x94d>
movslq (%r11),%r10
mov    %r12,%r9
sub    %r15,%r9
mov    %r10,%r8
not    %r8
cmp    $0x4,%r9
jae    18dc <odrrb+0x7bc>
mov    %r15,%rdi
jmp    1a21 <odrrb+0x901>
mov    0x100(%rsp),%rax
lea    (%rax,%r15,8),%rax
add    $0xfffffffffffffff8,%rax
lea    (%r14,%r15,8),%rsi
add    $0xfffffffffffffff8,%rsi
lea    (%r15,%r15,1),%ecx
mov    %r12d,%ebp
sub    %r15d,%ebp
add    $0x1,%ebp
jmp    1890 <odrrb+0x770>
nopw   0x0(%rax,%rax,1)
add    $0x8,%rax
add    $0x8,%rsi
add    $0x2,%ecx
add    $0xffffffff,%ebp
je     181e <odrrb+0x6fe>
lea    -0x1(%rcx),%ebx
movslq %ebx,%rbx
cmpl   $0x0,-0x4(%r9,%rbx,4)
jne    1880 <odrrb+0x760>
movslq (%r11),%r8
movsd  -0x8(%r10,%rbx,8),%xmm0
movslq %ecx,%rbx
addsd  -0x8(%r10,%rbx,8),%xmm0
mulsd  %xmm8,%xmm0
shl    $0x3,%r8
mov    %rax,%rdx
sub    %r8,%rdx
movsd  %xmm0,(%rdx)
movsd  -0x8(%r10,%rbx,8),%xmm1
subsd  %xmm0,%xmm1
mov    %rsi,%rdx
sub    %r8,%rdx
movsd  %xmm1,(%rdx)
jmp    1880 <odrrb+0x760>
lea    (%r8,%r15,1),%rdx
lea    0x0(,%rdx,8),%rsi
add    %r13,%rsi
lea    (%r8,%r12,1),%rdi
lea    0x0(%r13,%rdi,8),%rdi
lea    (%rbx,%rdx,8),%r11
mov    %rbx,%rax
mov    %r12,%rbx
sub    %r10,%rbx
lea    (%rax,%rbx,8),%rbp
mov    %r14,%rcx
lea    (%r14,%rdx,8),%r14
mov    %rcx,%rax
lea    (%rcx,%rbx,8),%rdx
cmp    %rbp,%rsi
setb   %bpl
cmp    %rdi,%r11
setb   %bl
cmp    %rdx,%rsi
setb   %dl
cmp    %rdi,%r14
setb   %sil
test   %bl,%bpl
jne    1a0b <odrrb+0x8eb>
and    %sil,%dl
jne    1a0b <odrrb+0x8eb>
mov    %r9,%rbp
and    $0xfffffffffffffffc,%rbp
lea    (%r15,%rbp,1),%rdi
sub    %r10,%r15
mov    0x108(%rsp),%r11
mov    %r11,%r13
lea    (%r11,%r15,8),%rsi
add    $0x8,%rsi
mov    %rax,%r14
lea    (%rax,%r15,8),%rbx
mov    0x100(%rsp),%rax
lea    (%rax,%r15,8),%rcx
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nop
movupd -0x8(%rcx,%rdx,8),%xmm0
movupd (%rcx,%rdx,8),%xmm1
movupd 0x8(%rcx,%rdx,8),%xmm2
movupd 0x10(%rcx,%rdx,8),%xmm3
movupd -0x8(%rbx,%rdx,8),%xmm4
movupd (%rbx,%rdx,8),%xmm5
subpd  %xmm5,%xmm1
subpd  %xmm0,%xmm1
subpd  %xmm4,%xmm1
movupd 0x8(%rbx,%rdx,8),%xmm0
movupd 0x10(%rbx,%rdx,8),%xmm4
subpd  %xmm4,%xmm3
subpd  %xmm2,%xmm3
subpd  %xmm0,%xmm3
xorpd  %xmm0,%xmm0
maxpd  %xmm1,%xmm0
cmpordpd %xmm1,%xmm1
andpd  %xmm0,%xmm1
xorpd  %xmm0,%xmm0
maxpd  %xmm3,%xmm0
cmpordpd %xmm3,%xmm3
andpd  %xmm0,%xmm3
movupd %xmm1,-0x10(%rsi,%rdx,8)
movupd %xmm3,(%rsi,%rdx,8)
add    $0x4,%rdx
cmp    %rdx,%rbp
jne    1980 <odrrb+0x860>
cmp    %rbp,%r9
mov    0x100(%rsp),%rbx
jne    1a21 <odrrb+0x901>
jmp    1a6d <odrrb+0x94d>
mov    %r15,%rdi
mov    %rax,%r14
mov    0x100(%rsp),%rbx
mov    0x108(%rsp),%r13
shl    $0x3,%r10
sub    %r10,%rbx
sub    %r10,%r14
lea    0x0(,%r8,8),%rcx
add    %r13,%rcx
xorpd  %xmm0,%xmm0
nopw   0x0(%rax,%rax,1)
movsd  (%rbx,%rdi,8),%xmm1
subsd  (%r14,%rdi,8),%xmm1
subsd  -0x8(%rbx,%rdi,8),%xmm1
subsd  -0x8(%r14,%rdi,8),%xmm1
maxsd  %xmm0,%xmm1
movsd  %xmm1,(%rcx,%rdi,8)
lea    0x1(%rdi),%rax
mov    %rax,%rdi
cmp    %rax,%r12
jne    1a40 <odrrb+0x920>
xor    %eax,%eax
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @odrrb(i32* %0, double* %1, double* %2, i32* %3, i32* %4, double* %5, double* %6, i32* %7, double* %8, double* %9, double* %10, double* %11, i32* %12, double* %13, double* %14, i32* %15, i32* %16) {
%18 = alloca i32*
%19 = alloca double*
%20 = alloca double*
%21 = alloca i32*
%22 = alloca i32*
%23 = alloca double*
%24 = alloca double*
%25 = alloca i32*
%26 = alloca double*
%27 = alloca double*
%28 = alloca double*
%29 = alloca double*
%30 = alloca i32*
%31 = alloca double*
%32 = alloca double*
%33 = alloca i32*
%34 = alloca i32*
%35 = alloca i32
%36 = alloca double
%37 = alloca double
%38 = alloca i32
%39 = alloca i32
%40 = alloca i32
%41 = alloca i32
%42 = alloca i32
%43 = alloca i32
%44 = alloca double
%45 = alloca double
%46 = alloca double
%47 = alloca double
%48 = alloca double
%49 = alloca double
%50 = alloca double
%51 = alloca i32
%52 = alloca i32
%53 = alloca i32
%54 = alloca i32
%55 = alloca double
%56 = alloca double
%57 = alloca double
%58 = alloca i32
%59 = alloca double
%60 = alloca i32
%61 = alloca i32
store i32* %0, i32** %18
store double* %1, double** %19
store double* %2, double** %20
store i32* %3, i32** %21
store i32* %4, i32** %22
store double* %5, double** %23
store double* %6, double** %24
store i32* %7, i32** %25
store double* %8, double** %26
store double* %9, double** %27
store double* %10, double** %28
store double* %11, double** %29
store i32* %12, i32** %30
store double* %13, double** %31
store double* %14, double** %32
store i32* %15, i32** %33
store i32* %16, i32** %34
%62 = load i32*, i32** %30
%63 = getelementptr inbounds i32, i32* %62, i32 -1
store i32* %63, i32** %30
%64 = load double*, double** %29
%65 = getelementptr inbounds double, double* %64, i32 -1
store double* %65, double** %29
%66 = load double*, double** %28
%67 = getelementptr inbounds double, double* %66, i32 -1
store double* %67, double** %28
%68 = load double*, double** %27
%69 = getelementptr inbounds double, double* %68, i32 -1
store double* %69, double** %27
%70 = load double*, double** %26
%71 = getelementptr inbounds double, double* %70, i32 -1
store double* %71, double** %26
%72 = load double*, double** %20
%73 = getelementptr inbounds double, double* %72, i32 -1
store double* %73, double** %20
%74 = load double*, double** %19
%75 = getelementptr inbounds double, double* %74, i32 -1
store double* %75, double** %19
%76 = load i32*, i32** %34
store i32 0, i32* %76
%77 = load double*, double** %32
%78 = load double, double* %77
%79 = load double*, double** %31
%80 = load double, double* %79
%81 = fadd double %78, %80
%82 = call double @log(double %81)
%83 = load double*, double** %31
%84 = load double, double* %83
%85 = call double @log(double %84)
%86 = fsub double %82, %85
%87 = call double @log(double 2.000000e+00)
%88 = fdiv double %86, %87
%89 = fptosi double %88 to i32
%90 = add nsw i32 %89, 2
store i32 %90, i32* %61
%91 = load double*, double** %31
%92 = load double, double* %91
%93 = fmul double %92, 2.000000e+00
store double %93, double* %59
%94 = load i32*, i32** %33
%95 = load i32, i32* %94
store i32 %95, i32* %40
%96 = load i32, i32* %40
%97 = icmp slt i32 %96, 1
br i1 %97, label %103, label %98
98: ; preds = %17
%99 = load i32, i32* %40
%100 = load i32*, i32** %18
%101 = load i32, i32* %100
%102 = icmp sgt i32 %99, %101
br i1 %102, label %103, label %106
103: ; preds = %98, %17
%104 = load i32*, i32** %18
%105 = load i32, i32* %104
store i32 %105, i32* %40
br label %106
106: ; preds = %103, %98
%107 = load i32*, i32** %21
%108 = load i32, i32* %107
store i32 %108, i32* %41
store i32 0, i32* %52
store i32 0, i32* %53
%109 = load double*, double** %27
%110 = load i32, i32* %41
%111 = load i32*, i32** %25
%112 = load i32, i32* %111
%113 = sub nsw i32 %110, %112
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds double, double* %109, i64 %114
%116 = load double, double* %115
store double %116, double* %49
%117 = load i32*, i32** %22
%118 = load i32, i32* %117
store i32 %118, i32* %35
%119 = load i32, i32* %41
store i32 %119, i32* %38
br label %120
120: ; preds = %304, %106
%121 = load i32, i32* %38
%122 = load i32, i32* %35
%123 = icmp sle i32 %121, %122
br i1 %123, label %124, label %307
124: ; preds = %120
%125 = load i32, i32* %38
%126 = shl i32 %125, 1
store i32 %126, i32* %39
%127 = load i32, i32* %38
%128 = load i32*, i32** %25
%129 = load i32, i32* %128
%130 = sub nsw i32 %127, %129
store i32 %130, i32* %42
%131 = load double*, double** %26
%132 = load i32, i32* %42
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds double, double* %131, i64 %133
%135 = load double, double* %134
%136 = load double*, double** %28
%137 = load i32, i32* %42
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds double, double* %136, i64 %138
%140 = load double, double* %139
%141 = fsub double %135, %140
store double %141, double* %50
%142 = load double*, double** %26
%143 = load i32, i32* %42
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds double, double* %142, i64 %144
%146 = load double, double* %145
%147 = load double*, double** %28
%148 = load i32, i32* %42
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds double, double* %147, i64 %149
%151 = load double, double* %150
%152 = fadd double %146, %151
store double %152, double* %56
%153 = load double, double* %49
store double %153, double* %48
%154 = load double*, double** %27
%155 = load i32, i32* %42
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds double, double* %154, i64 %156
%158 = load double, double* %157
store double %158, double* %49
%159 = load double, double* %48
%160 = load double, double* %49
%161 = call double @llvm.minnum.f64(double %159, double %160)
store double %161, double* %44
%162 = load double*, double** %28
%163 = load i32, i32* %42
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds double, double* %162, i64 %164
%166 = load double, double* %165
store double %166, double* %47
br label %167
167: ; preds = %179, %124
%168 = load i32*, i32** %18
%169 = load double*, double** %19
%170 = getelementptr inbounds double, double* %169, i64 1
%171 = load double*, double** %20
%172 = getelementptr inbounds double, double* %171, i64 1
%173 = load double*, double** %31
%174 = call i32 @odneg(i32* %168, double* %170, double* %172, double* %50, double* %173, i32* %40)
store i32 %174, i32* %58
%175 = load i32, i32* %58
%176 = load i32, i32* %38
%177 = sub nsw i32 %176, 1
%178 = icmp sgt i32 %175, %177
br i1 %178, label %179, label %185
179: ; preds = %167
%180 = load double, double* %47
%181 = load double, double* %50
%182 = fsub double %181, %180
store double %182, double* %50
%183 = load double, double* %47
%184 = fmul double %183, 2.000000e+00
store double %184, double* %47
br label %167
185: ; preds = %167
%186 = load double*, double** %28
%187 = load i32, i32* %42
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds double, double* %186, i64 %188
%190 = load double, double* %189
store double %190, double* %47
br label %191
191: ; preds = %202, %185
%192 = load i32*, i32** %18
%193 = load double*, double** %19
%194 = getelementptr inbounds double, double* %193, i64 1
%195 = load double*, double** %20
%196 = getelementptr inbounds double, double* %195, i64 1
%197 = load double*, double** %31
%198 = call i32 @odneg(i32* %192, double* %194, double* %196, double* %56, double* %197, i32* %40)
store i32 %198, i32* %58
%199 = load i32, i32* %58
%200 = load i32, i32* %38
%201 = icmp slt i32 %199, %200
br i1 %201, label %202, label %208
202: ; preds = %191
%203 = load double, double* %47
%204 = load double, double* %56
%205 = fadd double %204, %203
store double %205, double* %56
%206 = load double, double* %47
%207 = fmul double %206, 2.000000e+00
store double %207, double* %47
br label %191
208: ; preds = %191
%209 = load double, double* %50
%210 = load double, double* %56
%211 = fsub double %209, %210
store double %211, double* %36
%212 = load double, double* %36
%213 = call double @llvm.fabs.f64(double %212)
%214 = fmul double %213, 5.000000e-01
store double %214, double* %57
%215 = load double, double* %50
%216 = call double @llvm.fabs.f64(double %215)
store double %216, double* %36
%217 = load double, double* %56
%218 = call double @llvm.fabs.f64(double %217)
store double %218, double* %37
%219 = load double, double* %36
%220 = load double, double* %37
%221 = call double @llvm.maxnum.f64(double %219, double %220)
store double %221, double* %46
%222 = load double*, double** %23
%223 = load double, double* %222
%224 = load double, double* %44
%225 = fmul double %223, %224
store double %225, double* %36
%226 = load double*, double** %24
%227 = load double, double* %226
%228 = load double, double* %46
%229 = fmul double %227, %228
store double %229, double* %37
%230 = load double, double* %36
%231 = load double, double* %37
%232 = call double @llvm.maxnum.f64(double %230, double %231)
store double %232, double* %55
%233 = load double, double* %57
%234 = load double, double* %55
%235 = fcmp ole double %233, %234
br i1 %235, label %240, label %236
236: ; preds = %208
%237 = load double, double* %57
%238 = load double, double* %59
%239 = fcmp ole double %237, %238
br i1 %239, label %240, label %276
240: ; preds = %236, %208
%241 = load i32*, i32** %30
%242 = load i32, i32* %39
%243 = sub nsw i32 %242, 1
%244 = sext i32 %243 to i64
%245 = getelementptr inbounds i32, i32* %241, i64 %244
store i32 -1, i32* %245
%246 = load i32, i32* %38
%247 = load i32, i32* %41
%248 = icmp eq i32 %246, %247
br i1 %248, label %249, label %257
249: ; preds = %240
%250 = load i32, i32* %38
%251 = load i32*, i32** %22
%252 = load i32, i32* %251
%253 = icmp slt i32 %250, %252
br i1 %253, label %254, label %257
254: ; preds = %249
%255 = load i32, i32* %38
%256 = add nsw i32 %255, 1
store i32 %256, i32* %41
br label %257
257: ; preds = %254, %249, %240
%258 = load i32, i32* %53
%259 = load i32, i32* %41
%260 = icmp sge i32 %258, %259
br i1 %260, label %261, label %275
261: ; preds = %257
%262 = load i32, i32* %38
%263 = load i32*, i32** %22
%264 = load i32, i32* %263
%265 = icmp sle i32 %262, %264
br i1 %265, label %266, label %275
266: ; preds = %261
%267 = load i32, i32* %38
%268 = add nsw i32 %267, 1
%269 = load i32*, i32** %30
%270 = load i32, i32* %53
%271 = shl i32 %270, 1
%272 = sub nsw i32 %271, 1
%273 = sext i32 %272 to i64
%274 = getelementptr inbounds i32, i32* %269, i64 %273
store i32 %268, i32* %274
br label %275
275: ; preds = %266, %261, %257
br label %292
276: ; preds = %236
%277 = load i32, i32* %38
store i32 %277, i32* %53
%278 = load i32, i32* %52
%279 = add nsw i32 %278, 1
store i32 %279, i32* %52
%280 = load i32, i32* %38
%281 = add nsw i32 %280, 1
%282 = load i32*, i32** %30
%283 = load i32, i32* %39
%284 = sub nsw i32 %283, 1
%285 = sext i32 %284 to i64
%286 = getelementptr inbounds i32, i32* %282, i64 %285
store i32 %281, i32* %286
%287 = load i32, i32* %58
%288 = load i32*, i32** %30
%289 = load i32, i32* %39
%290 = sext i32 %289 to i64
%291 = getelementptr inbounds i32, i32* %288, i64 %290
store i32 %287, i32* %291
br label %292
292: ; preds = %276, %275
%293 = load double, double* %50
%294 = load double*, double** %29
%295 = load i32, i32* %39
%296 = sub nsw i32 %295, 1
%297 = sext i32 %296 to i64
%298 = getelementptr inbounds double, double* %294, i64 %297
store double %293, double* %298
%299 = load double, double* %56
%300 = load double*, double** %29
%301 = load i32, i32* %39
%302 = sext i32 %301 to i64
%303 = getelementptr inbounds double, double* %300, i64 %302
store double %299, double* %303
br label %304
304: ; preds = %292
%305 = load i32, i32* %38
%306 = add nsw i32 %305, 1
store i32 %306, i32* %38
br label %120
307: ; preds = %120
store i32 0, i32* %51
br label %308
308: ; preds = %466, %307
%309 = load i32, i32* %41
%310 = sub nsw i32 %309, 1
store i32 %310, i32* %53
%311 = load i32, i32* %41
store i32 %311, i32* %38
%312 = load i32, i32* %52
store i32 %312, i32* %60
%313 = load i32, i32* %60
store i32 %313, i32* %35
store i32 1, i32* %43
br label %314
314: ; preds = %454, %308
%315 = load i32, i32* %43
%316 = load i32, i32* %35
%317 = icmp sle i32 %315, %316
br i1 %317, label %318, label %457
318: ; preds = %314
%319 = load i32, i32* %38
%320 = shl i32 %319, 1
store i32 %320, i32* %39
%321 = load i32, i32* %38
%322 = load i32*, i32** %25
%323 = load i32, i32* %322
%324 = sub nsw i32 %321, %323
store i32 %324, i32* %42
%325 = load double*, double** %27
%326 = load i32, i32* %42
%327 = sext i32 %326 to i64
%328 = getelementptr inbounds double, double* %325, i64 %327
%329 = load double, double* %328
store double %329, double* %49
%330 = load double, double* %49
store double %330, double* %48
%331 = load i32, i32* %42
%332 = icmp sgt i32 %331, 1
br i1 %332, label %333, label %340
333: ; preds = %318
%334 = load double*, double** %27
%335 = load i32, i32* %42
%336 = sub nsw i32 %335, 1
%337 = sext i32 %336 to i64
%338 = getelementptr inbounds double, double* %334, i64 %337
%339 = load double, double* %338
store double %339, double* %48
br label %340
340: ; preds = %333, %318
%341 = load double, double* %48
%342 = load double, double* %49
%343 = call double @llvm.minnum.f64(double %341, double %342)
store double %343, double* %44
%344 = load i32*, i32** %30
%345 = load i32, i32* %39
%346 = sub nsw i32 %345, 1
%347 = sext i32 %346 to i64
%348 = getelementptr inbounds i32, i32* %344, i64 %347
%349 = load i32, i32* %348
store i32 %349, i32* %54
%350 = load double*, double** %29
%351 = load i32, i32* %39
%352 = sub nsw i32 %351, 1
%353 = sext i32 %352 to i64
%354 = getelementptr inbounds double, double* %350, i64 %353
%355 = load double, double* %354
store double %355, double* %50
%356 = load double*, double** %29
%357 = load i32, i32* %39
%358 = sext i32 %357 to i64
%359 = getelementptr inbounds double, double* %356, i64 %358
%360 = load double, double* %359
store double %360, double* %56
%361 = load double, double* %50
%362 = load double, double* %56
%363 = fadd double %361, %362
%364 = fmul double %363, 5.000000e-01
store double %364, double* %45
%365 = load double, double* %56
%366 = load double, double* %45
%367 = fsub double %365, %366
store double %367, double* %57
%368 = load double, double* %50
%369 = call double @llvm.fabs.f64(double %368)
store double %369, double* %36
%370 = load double, double* %56
%371 = call double @llvm.fabs.f64(double %370)
store double %371, double* %37
%372 = load double, double* %36
%373 = load double, double* %37
%374 = call double @llvm.maxnum.f64(double %372, double %373)
store double %374, double* %46
%375 = load double*, double** %23
%376 = load double, double* %375
%377 = load double, double* %44
%378 = fmul double %376, %377
store double %378, double* %36
%379 = load double*, double** %24
%380 = load double, double* %379
%381 = load double, double* %46
%382 = fmul double %380, %381
store double %382, double* %37
%383 = load double, double* %36
%384 = load double, double* %37
%385 = call double @llvm.maxnum.f64(double %383, double %384)
store double %385, double* %55
%386 = load double, double* %57
%387 = load double, double* %55
%388 = fcmp ole double %386, %387
br i1 %388, label %397, label %389
389: ; preds = %340
%390 = load double, double* %57
%391 = load double, double* %59
%392 = fcmp ole double %390, %391
br i1 %392, label %397, label %393
393: ; preds = %389
%394 = load i32, i32* %51
%395 = load i32, i32* %61
%396 = icmp eq i32 %394, %395
br i1 %396, label %397, label %425
397: ; preds = %393, %389, %340
%398 = load i32, i32* %52
%399 = add nsw i32 %398, -1
store i32 %399, i32* %52
%400 = load i32*, i32** %30
%401 = load i32, i32* %39
%402 = sub nsw i32 %401, 1
%403 = sext i32 %402 to i64
%404 = getelementptr inbounds i32, i32* %400, i64 %403
store i32 0, i32* %404
%405 = load i32, i32* %41
%406 = load i32, i32* %38
%407 = icmp eq i32 %405, %406
br i1 %407, label %408, label %410
408: ; preds = %397
%409 = load i32, i32* %54
store i32 %409, i32* %41
br label %423
410: ; preds = %397
%411 = load i32, i32* %53
%412 = load i32, i32* %41
%413 = icmp sge i32 %411, %412
br i1 %413, label %414, label %422
414: ; preds = %410
%415 = load i32, i32* %54
%416 = load i32*, i32** %30
%417 = load i32, i32* %53
%418 = shl i32 %417, 1
%419 = sub nsw i32 %418, 1
%420 = sext i32 %419 to i64
%421 = getelementptr inbounds i32, i32* %416, i64 %420
store i32 %415, i32* %421
br label %422
422: ; preds = %414, %410
br label %423
423: ; preds = %422, %408
%424 = load i32, i32* %54
store i32 %424, i32* %38
br label %453
425: ; preds = %393
%426 = load i32, i32* %38
store i32 %426, i32* %53
%427 = load i32*, i32** %18
%428 = load double*, double** %19
%429 = getelementptr inbounds double, double* %428, i64 1
%430 = load double*, double** %20
%431 = getelementptr inbounds double, double* %430, i64 1
%432 = load double*, double** %31
%433 = call i32 @odneg(i32* %427, double* %429, double* %431, double* %45, double* %432, i32* %40)
store i32 %433, i32* %58
%434 = load i32, i32* %58
%435 = load i32, i32* %38
%436 = sub nsw i32 %435, 1
%437 = icmp sle i32 %434, %436
br i1 %437, label %438, label %445
438: ; preds = %425
%439 = load double, double* %45
%440 = load double*, double** %29
%441 = load i32, i32* %39
%442 = sub nsw i32 %441, 1
%443 = sext i32 %442 to i64
%444 = getelementptr inbounds double, double* %440, i64 %443
store double %439, double* %444
br label %451
445: ; preds = %425
%446 = load double, double* %45
%447 = load double*, double** %29
%448 = load i32, i32* %39
%449 = sext i32 %448 to i64
%450 = getelementptr inbounds double, double* %447, i64 %449
store double %446, double* %450
br label %451
451: ; preds = %445, %438
%452 = load i32, i32* %54
store i32 %452, i32* %38
br label %453
453: ; preds = %451, %423
br label %454
454: ; preds = %453
%455 = load i32, i32* %43
%456 = add nsw i32 %455, 1
store i32 %456, i32* %43
br label %314
457: ; preds = %314
%458 = load i32, i32* %51
%459 = add nsw i32 %458, 1
store i32 %459, i32* %51
%460 = load i32, i32* %52
%461 = icmp sgt i32 %460, 0
br i1 %461, label %462, label %467
462: ; preds = %457
%463 = load i32, i32* %51
%464 = load i32, i32* %61
%465 = icmp sle i32 %463, %464
br i1 %465, label %466, label %467
466: ; preds = %462
br label %308
467: ; preds = %462, %457
%468 = load i32*, i32** %22
%469 = load i32, i32* %468
store i32 %469, i32* %35
%470 = load i32*, i32** %21
%471 = load i32, i32* %470
store i32 %471, i32* %38
br label %472
472: ; preds = %524, %467
%473 = load i32, i32* %38
%474 = load i32, i32* %35
%475 = icmp sle i32 %473, %474
br i1 %475, label %476, label %527
476: ; preds = %472
%477 = load i32, i32* %38
%478 = shl i32 %477, 1
store i32 %478, i32* %39
%479 = load i32, i32* %38
%480 = load i32*, i32** %25
%481 = load i32, i32* %480
%482 = sub nsw i32 %479, %481
store i32 %482, i32* %42
%483 = load i32*, i32** %30
%484 = load i32, i32* %39
%485 = sub nsw i32 %484, 1
%486 = sext i32 %485 to i64
%487 = getelementptr inbounds i32, i32* %483, i64 %486
%488 = load i32, i32* %487
%489 = icmp eq i32 %488, 0
br i1 %489, label %490, label %523
490: ; preds = %476
%491 = load double*, double** %29
%492 = load i32, i32* %39
%493 = sub nsw i32 %492, 1
%494 = sext i32 %493 to i64
%495 = getelementptr inbounds double, double* %491, i64 %494
%496 = load double, double* %495
%497 = load double*, double** %29
%498 = load i32, i32* %39
%499 = sext i32 %498 to i64
%500 = getelementptr inbounds double, double* %497, i64 %499
%501 = load double, double* %500
%502 = fadd double %496, %501
%503 = fmul double %502, 5.000000e-01
%504 = load double*, double** %26
%505 = load i32, i32* %42
%506 = sext i32 %505 to i64
%507 = getelementptr inbounds double, double* %504, i64 %506
store double %503, double* %507
%508 = load double*, double** %29
%509 = load i32, i32* %39
%510 = sext i32 %509 to i64
%511 = getelementptr inbounds double, double* %508, i64 %510
%512 = load double, double* %511
%513 = load double*, double** %26
%514 = load i32, i32* %42
%515 = sext i32 %514 to i64
%516 = getelementptr inbounds double, double* %513, i64 %515
%517 = load double, double* %516
%518 = fsub double %512, %517
%519 = load double*, double** %28
%520 = load i32, i32* %42
%521 = sext i32 %520 to i64
%522 = getelementptr inbounds double, double* %519, i64 %521
store double %518, double* %522
br label %523
523: ; preds = %490, %476
br label %524
524: ; preds = %523
%525 = load i32, i32* %38
%526 = add nsw i32 %525, 1
store i32 %526, i32* %38
br label %472
527: ; preds = %472
%528 = load i32*, i32** %22
%529 = load i32, i32* %528
store i32 %529, i32* %35
%530 = load i32*, i32** %21
%531 = load i32, i32* %530
%532 = add nsw i32 %531, 1
store i32 %532, i32* %38
br label %533
533: ; preds = %577, %527
%534 = load i32, i32* %38
%535 = load i32, i32* %35
%536 = icmp sle i32 %534, %535
br i1 %536, label %537, label %580
537: ; preds = %533
%538 = load i32, i32* %38
%539 = shl i32 %538, 1
store i32 %539, i32* %39
%540 = load i32, i32* %38
%541 = load i32*, i32** %25
%542 = load i32, i32* %541
%543 = sub nsw i32 %540, %542
store i32 %543, i32* %42
store double 0.000000e+00, double* %36
%544 = load double*, double** %26
%545 = load i32, i32* %42
%546 = sext i32 %545 to i64
%547 = getelementptr inbounds double, double* %544, i64 %546
%548 = load double, double* %547
%549 = load double*, double** %28
%550 = load i32, i32* %42
%551 = sext i32 %550 to i64
%552 = getelementptr inbounds double, double* %549, i64 %551
%553 = load double, double* %552
%554 = fsub double %548, %553
%555 = load double*, double** %26
%556 = load i32, i32* %42
%557 = sub nsw i32 %556, 1
%558 = sext i32 %557 to i64
%559 = getelementptr inbounds double, double* %555, i64 %558
%560 = load double, double* %559
%561 = fsub double %554, %560
%562 = load double*, double** %28
%563 = load i32, i32* %42
%564 = sub nsw i32 %563, 1
%565 = sext i32 %564 to i64
%566 = getelementptr inbounds double, double* %562, i64 %565
%567 = load double, double* %566
%568 = fsub double %561, %567
store double %568, double* %37
%569 = load double, double* %36
%570 = load double, double* %37
%571 = call double @llvm.maxnum.f64(double %569, double %570)
%572 = load double*, double** %27
%573 = load i32, i32* %42
%574 = sub nsw i32 %573, 1
%575 = sext i32 %574 to i64
%576 = getelementptr inbounds double, double* %572, i64 %575
store double %571, double* %576
br label %577
577: ; preds = %537
%578 = load i32, i32* %38
%579 = add nsw i32 %578, 1
store i32 %579, i32* %38
br label %533
580: ; preds = %533
ret i32 0
}

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