void edtaa3(double *img, double *gx, double *gy, int w, int h, short *distx,
            short *disty, double *dist) {
  int x, y, i, c;
  int offset_u, offset_ur, offset_r, offset_rd, offset_d, offset_dl, offset_l,
      offset_lu;
  double olddist, newdist;
  int cdistx, cdisty, newdistx, newdisty;
  int changed;
  double epsilon = 1e-3;
  offset_u = -w;
  offset_ur = -w + 1;
  offset_r = 1;
  offset_rd = w + 1;
  offset_d = w;
  offset_dl = w - 1;
  offset_l = -1;
  offset_lu = -w - 1;
  for (i = 0; i < w * h; i++) {
    distx[i] = 0;
    disty[i] = 0;
    if (img[i] <= 0.0) {
      dist[i] = 1000000.0;
    } else if (img[i] < 1.0) {
      dist[i] = edgedf(gx[i], gy[i], img[i]);
    } else {
      dist[i] = 0.0;
    }
  }
  do {
    changed = 0;
    for (y = 1; y < h; y++) {
      i = y * w;
      olddist = dist[i];
      if (olddist > 0) {
        c = i + offset_u;
        cdistx = distx[c];
        cdisty = disty[c];
        newdistx = cdistx;
        newdisty = cdisty + 1;
        newdist =
            (distaa3(img, gx, gy, w, c, cdistx, cdisty, newdistx, newdisty));
        if (newdist < olddist - epsilon) {
          distx[i] = newdistx;
          disty[i] = newdisty;
          dist[i] = newdist;
          olddist = newdist;
          changed = 1;
        }
        c = i + offset_ur;
        cdistx = distx[c];
        cdisty = disty[c];
        newdistx = cdistx - 1;
        newdisty = cdisty + 1;
        newdist =
            (distaa3(img, gx, gy, w, c, cdistx, cdisty, newdistx, newdisty));
        if (newdist < olddist - epsilon) {
          distx[i] = newdistx;
          disty[i] = newdisty;
          dist[i] = newdist;
          changed = 1;
        }
      }
      i++;
      for (x = 1; x < w - 1; x++, i++) {
        olddist = dist[i];
        if (olddist <= 0) {
          continue;
        }
        c = i + offset_l;
        cdistx = distx[c];
        cdisty = disty[c];
        newdistx = cdistx + 1;
        newdisty = cdisty;
        newdist =
            (distaa3(img, gx, gy, w, c, cdistx, cdisty, newdistx, newdisty));
        if (newdist < olddist - epsilon) {
          distx[i] = newdistx;
          disty[i] = newdisty;
          dist[i] = newdist;
          olddist = newdist;
          changed = 1;
        }
        c = i + offset_lu;
        cdistx = distx[c];
        cdisty = disty[c];
        newdistx = cdistx + 1;
        newdisty = cdisty + 1;
        newdist =
            (distaa3(img, gx, gy, w, c, cdistx, cdisty, newdistx, newdisty));
        if (newdist < olddist - epsilon) {
          distx[i] = newdistx;
          disty[i] = newdisty;
          dist[i] = newdist;
          olddist = newdist;
          changed = 1;
        }
        c = i + offset_u;
        cdistx = distx[c];
        cdisty = disty[c];
        newdistx = cdistx;
        newdisty = cdisty + 1;
        newdist =
            (distaa3(img, gx, gy, w, c, cdistx, cdisty, newdistx, newdisty));
        if (newdist < olddist - epsilon) {
          distx[i] = newdistx;
          disty[i] = newdisty;
          dist[i] = newdist;
          olddist = newdist;
          changed = 1;
        }
        c = i + offset_ur;
        cdistx = distx[c];
        cdisty = disty[c];
        newdistx = cdistx - 1;
        newdisty = cdisty + 1;
        newdist =
            (distaa3(img, gx, gy, w, c, cdistx, cdisty, newdistx, newdisty));
        if (newdist < olddist - epsilon) {
          distx[i] = newdistx;
          disty[i] = newdisty;
          dist[i] = newdist;
          changed = 1;
        }
      }
      olddist = dist[i];
      if (olddist > 0) {
        c = i + offset_l;
        cdistx = distx[c];
        cdisty = disty[c];
        newdistx = cdistx + 1;
        newdisty = cdisty;
        newdist =
            (distaa3(img, gx, gy, w, c, cdistx, cdisty, newdistx, newdisty));
        if (newdist < olddist - epsilon) {
          distx[i] = newdistx;
          disty[i] = newdisty;
          dist[i] = newdist;
          olddist = newdist;
          changed = 1;
        }
        c = i + offset_lu;
        cdistx = distx[c];
        cdisty = disty[c];
        newdistx = cdistx + 1;
        newdisty = cdisty + 1;
        newdist =
            (distaa3(img, gx, gy, w, c, cdistx, cdisty, newdistx, newdisty));
        if (newdist < olddist - epsilon) {
          distx[i] = newdistx;
          disty[i] = newdisty;
          dist[i] = newdist;
          olddist = newdist;
          changed = 1;
        }
        c = i + offset_u;
        cdistx = distx[c];
        cdisty = disty[c];
        newdistx = cdistx;
        newdisty = cdisty + 1;
        newdist =
            (distaa3(img, gx, gy, w, c, cdistx, cdisty, newdistx, newdisty));
        if (newdist < olddist - epsilon) {
          distx[i] = newdistx;
          disty[i] = newdisty;
          dist[i] = newdist;
          changed = 1;
        }
      }
      i = y * w + w - 2;
      for (x = w - 2; x >= 0; x--, i--) {
        olddist = dist[i];
        if (olddist <= 0) {
          continue;
        }
        c = i + offset_r;
        cdistx = distx[c];
        cdisty = disty[c];
        newdistx = cdistx - 1;
        newdisty = cdisty;
        newdist =
            (distaa3(img, gx, gy, w, c, cdistx, cdisty, newdistx, newdisty));
        if (newdist < olddist - epsilon) {
          distx[i] = newdistx;
          disty[i] = newdisty;
          dist[i] = newdist;
          changed = 1;
        }
      }
    }
    for (y = h - 2; y >= 0; y--) {
      i = y * w + w - 1;
      olddist = dist[i];
      if (olddist > 0) {
        c = i + offset_d;
        cdistx = distx[c];
        cdisty = disty[c];
        newdistx = cdistx;
        newdisty = cdisty - 1;
        newdist =
            (distaa3(img, gx, gy, w, c, cdistx, cdisty, newdistx, newdisty));
        if (newdist < olddist - epsilon) {
          distx[i] = newdistx;
          disty[i] = newdisty;
          dist[i] = newdist;
          olddist = newdist;
          changed = 1;
        }
        c = i + offset_dl;
        cdistx = distx[c];
        cdisty = disty[c];
        newdistx = cdistx + 1;
        newdisty = cdisty - 1;
        newdist =
            (distaa3(img, gx, gy, w, c, cdistx, cdisty, newdistx, newdisty));
        if (newdist < olddist - epsilon) {
          distx[i] = newdistx;
          disty[i] = newdisty;
          dist[i] = newdist;
          changed = 1;
        }
      }
      i--;
      for (x = w - 2; x > 0; x--, i--) {
        olddist = dist[i];
        if (olddist <= 0) {
          continue;
        }
        c = i + offset_r;
        cdistx = distx[c];
        cdisty = disty[c];
        newdistx = cdistx - 1;
        newdisty = cdisty;
        newdist =
            (distaa3(img, gx, gy, w, c, cdistx, cdisty, newdistx, newdisty));
        if (newdist < olddist - epsilon) {
          distx[i] = newdistx;
          disty[i] = newdisty;
          dist[i] = newdist;
          olddist = newdist;
          changed = 1;
        }
        c = i + offset_rd;
        cdistx = distx[c];
        cdisty = disty[c];
        newdistx = cdistx - 1;
        newdisty = cdisty - 1;
        newdist =
            (distaa3(img, gx, gy, w, c, cdistx, cdisty, newdistx, newdisty));
        if (newdist < olddist - epsilon) {
          distx[i] = newdistx;
          disty[i] = newdisty;
          dist[i] = newdist;
          olddist = newdist;
          changed = 1;
        }
        c = i + offset_d;
        cdistx = distx[c];
        cdisty = disty[c];
        newdistx = cdistx;
        newdisty = cdisty - 1;
        newdist =
            (distaa3(img, gx, gy, w, c, cdistx, cdisty, newdistx, newdisty));
        if (newdist < olddist - epsilon) {
          distx[i] = newdistx;
          disty[i] = newdisty;
          dist[i] = newdist;
          olddist = newdist;
          changed = 1;
        }
        c = i + offset_dl;
        cdistx = distx[c];
        cdisty = disty[c];
        newdistx = cdistx + 1;
        newdisty = cdisty - 1;
        newdist =
            (distaa3(img, gx, gy, w, c, cdistx, cdisty, newdistx, newdisty));
        if (newdist < olddist - epsilon) {
          distx[i] = newdistx;
          disty[i] = newdisty;
          dist[i] = newdist;
          changed = 1;
        }
      }
      olddist = dist[i];
      if (olddist > 0) {
        c = i + offset_r;
        cdistx = distx[c];
        cdisty = disty[c];
        newdistx = cdistx - 1;
        newdisty = cdisty;
        newdist =
            (distaa3(img, gx, gy, w, c, cdistx, cdisty, newdistx, newdisty));
        if (newdist < olddist - epsilon) {
          distx[i] = newdistx;
          disty[i] = newdisty;
          dist[i] = newdist;
          olddist = newdist;
          changed = 1;
        }
        c = i + offset_rd;
        cdistx = distx[c];
        cdisty = disty[c];
        newdistx = cdistx - 1;
        newdisty = cdisty - 1;
        newdist =
            (distaa3(img, gx, gy, w, c, cdistx, cdisty, newdistx, newdisty));
        if (newdist < olddist - epsilon) {
          distx[i] = newdistx;
          disty[i] = newdisty;
          dist[i] = newdist;
          olddist = newdist;
          changed = 1;
        }
        c = i + offset_d;
        cdistx = distx[c];
        cdisty = disty[c];
        newdistx = cdistx;
        newdisty = cdisty - 1;
        newdist =
            (distaa3(img, gx, gy, w, c, cdistx, cdisty, newdistx, newdisty));
        if (newdist < olddist - epsilon) {
          distx[i] = newdistx;
          disty[i] = newdisty;
          dist[i] = newdist;
          changed = 1;
        }
      }
      i = y * w + 1;
      for (x = 1; x < w; x++, i++) {
        olddist = dist[i];
        if (olddist <= 0) {
          continue;
        }
        c = i + offset_l;
        cdistx = distx[c];
        cdisty = disty[c];
        newdistx = cdistx + 1;
        newdisty = cdisty;
        newdist =
            (distaa3(img, gx, gy, w, c, cdistx, cdisty, newdistx, newdisty));
        if (newdist < olddist - epsilon) {
          distx[i] = newdistx;
          disty[i] = newdisty;
          dist[i] = newdist;
          changed = 1;
        }
      }
    }
  } while (changed);
}


x86 assembly (clang, -O0):
<edtaa3>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
movsd  0x1eae(%rip),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
xor    %eax,%eax
sub    -0x1c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
xor    %eax,%eax
sub    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
movl   $0x1,-0x44(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x50(%rbp)
movl   $0xffffffff,-0x54(%rbp)
xor    %eax,%eax
sub    -0x1c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x58(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    -0x1c(%rbp),%ecx
imul   -0x20(%rbp),%ecx
cmp    %ecx,%eax
jge    128a <edtaa3+0x16a>
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
movw   $0x0,(%rax,%rcx,2)
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movw   $0x0,(%rax,%rcx,2)
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
xorps  %xmm0,%xmm0
ucomisd (%rax,%rcx,8),%xmm0
jb     1203 <edtaa3+0xe3>
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  0x1e17(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
jmp    1277 <edtaa3+0x157>
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  0x1df5(%rip),%xmm0
ucomisd (%rax,%rcx,8),%xmm0
jbe    1262 <edtaa3+0x142>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    $0x3,%al
call   1030 <edgedf@plt>
cvtsi2sd %eax,%xmm0
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    1272 <edtaa3+0x152>
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
jmp    1277 <edtaa3+0x157>
jmp    127c <edtaa3+0x15c>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11a5 <edtaa3+0x85>
jmp    128f <edtaa3+0x16f>
movl   $0x0,-0x7c(%rbp)
movl   $0x1,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1c32 <edtaa3+0xb12>
mov    -0x30(%rbp),%eax
imul   -0x1c(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1485 <edtaa3+0x365>
mov    -0x34(%rbp),%eax
add    -0x3c(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x6c(%rbp)
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x70(%rbp)
mov    -0x6c(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    -0x70(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x6c(%rbp),%r9d
mov    -0x70(%rbp),%r11d
mov    -0x74(%rbp),%r10d
mov    -0x78(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1040 <distaa3@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    13af <edtaa3+0x28f>
mov    -0x74(%rbp),%eax
mov    %ax,%dx
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
mov    -0x78(%rbp),%eax
mov    %ax,%dx
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
movsd  -0x68(%rbp),%xmm0
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x1,-0x7c(%rbp)
mov    -0x34(%rbp),%eax
add    -0x40(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x6c(%rbp)
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x70(%rbp)
mov    -0x6c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x74(%rbp)
mov    -0x70(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x6c(%rbp),%r9d
mov    -0x70(%rbp),%r11d
mov    -0x74(%rbp),%r10d
mov    -0x78(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1040 <distaa3@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    1480 <edtaa3+0x360>
mov    -0x74(%rbp),%eax
mov    %ax,%dx
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
mov    -0x78(%rbp),%eax
mov    %ax,%dx
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
movsd  -0x68(%rbp),%xmm0
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x1,-0x7c(%rbp)
jmp    1485 <edtaa3+0x365>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x1c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1843 <edtaa3+0x723>
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x60(%rbp),%xmm0
jb     14cb <edtaa3+0x3ab>
jmp    182c <edtaa3+0x70c>
mov    -0x34(%rbp),%eax
add    -0x54(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x6c(%rbp)
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x70(%rbp)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
mov    -0x70(%rbp),%eax
mov    %eax,-0x78(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x6c(%rbp),%r9d
mov    -0x70(%rbp),%r11d
mov    -0x74(%rbp),%r10d
mov    -0x78(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1040 <distaa3@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    15a3 <edtaa3+0x483>
mov    -0x74(%rbp),%eax
mov    %ax,%dx
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
mov    -0x78(%rbp),%eax
mov    %ax,%dx
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
movsd  -0x68(%rbp),%xmm0
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x1,-0x7c(%rbp)
mov    -0x34(%rbp),%eax
add    -0x58(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x6c(%rbp)
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x70(%rbp)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
mov    -0x70(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x6c(%rbp),%r9d
mov    -0x70(%rbp),%r11d
mov    -0x74(%rbp),%r10d
mov    -0x78(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1040 <distaa3@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    167e <edtaa3+0x55e>
mov    -0x74(%rbp),%eax
mov    %ax,%dx
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
mov    -0x78(%rbp),%eax
mov    %ax,%dx
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
movsd  -0x68(%rbp),%xmm0
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x1,-0x7c(%rbp)
mov    -0x34(%rbp),%eax
add    -0x3c(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x6c(%rbp)
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x70(%rbp)
mov    -0x6c(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    -0x70(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x6c(%rbp),%r9d
mov    -0x70(%rbp),%r11d
mov    -0x74(%rbp),%r10d
mov    -0x78(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1040 <distaa3@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    1756 <edtaa3+0x636>
mov    -0x74(%rbp),%eax
mov    %ax,%dx
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
mov    -0x78(%rbp),%eax
mov    %ax,%dx
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
movsd  -0x68(%rbp),%xmm0
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x1,-0x7c(%rbp)
mov    -0x34(%rbp),%eax
add    -0x40(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x6c(%rbp)
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x70(%rbp)
mov    -0x6c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x74(%rbp)
mov    -0x70(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x6c(%rbp),%r9d
mov    -0x70(%rbp),%r11d
mov    -0x74(%rbp),%r10d
mov    -0x78(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1040 <distaa3@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    1827 <edtaa3+0x707>
mov    -0x74(%rbp),%eax
mov    %ax,%dx
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
mov    -0x78(%rbp),%eax
mov    %ax,%dx
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
movsd  -0x68(%rbp),%xmm0
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x1,-0x7c(%rbp)
jmp    182c <edtaa3+0x70c>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1495 <edtaa3+0x375>
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1aed <edtaa3+0x9cd>
mov    -0x34(%rbp),%eax
add    -0x54(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x6c(%rbp)
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x70(%rbp)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
mov    -0x70(%rbp),%eax
mov    %eax,-0x78(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x6c(%rbp),%r9d
mov    -0x70(%rbp),%r11d
mov    -0x74(%rbp),%r10d
mov    -0x78(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1040 <distaa3@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    193f <edtaa3+0x81f>
mov    -0x74(%rbp),%eax
mov    %ax,%dx
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
mov    -0x78(%rbp),%eax
mov    %ax,%dx
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
movsd  -0x68(%rbp),%xmm0
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x1,-0x7c(%rbp)
mov    -0x34(%rbp),%eax
add    -0x58(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x6c(%rbp)
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x70(%rbp)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
mov    -0x70(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x6c(%rbp),%r9d
mov    -0x70(%rbp),%r11d
mov    -0x74(%rbp),%r10d
mov    -0x78(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1040 <distaa3@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    1a1a <edtaa3+0x8fa>
mov    -0x74(%rbp),%eax
mov    %ax,%dx
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
mov    -0x78(%rbp),%eax
mov    %ax,%dx
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
movsd  -0x68(%rbp),%xmm0
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x1,-0x7c(%rbp)
mov    -0x34(%rbp),%eax
add    -0x3c(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x6c(%rbp)
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x70(%rbp)
mov    -0x6c(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    -0x70(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x6c(%rbp),%r9d
mov    -0x70(%rbp),%r11d
mov    -0x74(%rbp),%r10d
mov    -0x78(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1040 <distaa3@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    1ae8 <edtaa3+0x9c8>
mov    -0x74(%rbp),%eax
mov    %ax,%dx
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
mov    -0x78(%rbp),%eax
mov    %ax,%dx
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
movsd  -0x68(%rbp),%xmm0
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x1,-0x7c(%rbp)
jmp    1aed <edtaa3+0x9cd>
mov    -0x30(%rbp),%eax
imul   -0x1c(%rbp),%eax
add    -0x1c(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x34(%rbp)
mov    -0x1c(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
jl     1c1f <edtaa3+0xaff>
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x60(%rbp),%xmm0
jb     1b35 <edtaa3+0xa15>
jmp    1c08 <edtaa3+0xae8>
mov    -0x34(%rbp),%eax
add    -0x44(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x6c(%rbp)
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x70(%rbp)
mov    -0x6c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x74(%rbp)
mov    -0x70(%rbp),%eax
mov    %eax,-0x78(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x6c(%rbp),%r9d
mov    -0x70(%rbp),%r11d
mov    -0x74(%rbp),%r10d
mov    -0x78(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1040 <distaa3@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    1c03 <edtaa3+0xae3>
mov    -0x74(%rbp),%eax
mov    %ax,%dx
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
mov    -0x78(%rbp),%eax
mov    %ax,%dx
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
movsd  -0x68(%rbp),%xmm0
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x1,-0x7c(%rbp)
jmp    1c08 <edtaa3+0xae8>
mov    -0x2c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x34(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x34(%rbp)
jmp    1b06 <edtaa3+0x9e6>
jmp    1c24 <edtaa3+0xb04>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    129d <edtaa3+0x17d>
mov    -0x20(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x30(%rbp)
cmpl   $0x0,-0x30(%rbp)
jl     25cc <edtaa3+0x14ac>
mov    -0x30(%rbp),%eax
imul   -0x1c(%rbp),%eax
add    -0x1c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1e27 <edtaa3+0xd07>
mov    -0x34(%rbp),%eax
add    -0x4c(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x6c(%rbp)
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x70(%rbp)
mov    -0x6c(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    -0x70(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x78(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x6c(%rbp),%r9d
mov    -0x70(%rbp),%r11d
mov    -0x74(%rbp),%r10d
mov    -0x78(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1040 <distaa3@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    1d51 <edtaa3+0xc31>
mov    -0x74(%rbp),%eax
mov    %ax,%dx
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
mov    -0x78(%rbp),%eax
mov    %ax,%dx
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
movsd  -0x68(%rbp),%xmm0
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x1,-0x7c(%rbp)
mov    -0x34(%rbp),%eax
add    -0x50(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x6c(%rbp)
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x70(%rbp)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
mov    -0x70(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x78(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x6c(%rbp),%r9d
mov    -0x70(%rbp),%r11d
mov    -0x74(%rbp),%r10d
mov    -0x78(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1040 <distaa3@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    1e22 <edtaa3+0xd02>
mov    -0x74(%rbp),%eax
mov    %ax,%dx
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
mov    -0x78(%rbp),%eax
mov    %ax,%dx
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
movsd  -0x68(%rbp),%xmm0
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x1,-0x7c(%rbp)
jmp    1e27 <edtaa3+0xd07>
mov    -0x34(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x34(%rbp)
mov    -0x1c(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
jle    21e0 <edtaa3+0x10c0>
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x60(%rbp),%xmm0
jb     1e68 <edtaa3+0xd48>
jmp    21c9 <edtaa3+0x10a9>
mov    -0x34(%rbp),%eax
add    -0x44(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x6c(%rbp)
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x70(%rbp)
mov    -0x6c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x74(%rbp)
mov    -0x70(%rbp),%eax
mov    %eax,-0x78(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x6c(%rbp),%r9d
mov    -0x70(%rbp),%r11d
mov    -0x74(%rbp),%r10d
mov    -0x78(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1040 <distaa3@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    1f40 <edtaa3+0xe20>
mov    -0x74(%rbp),%eax
mov    %ax,%dx
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
mov    -0x78(%rbp),%eax
mov    %ax,%dx
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
movsd  -0x68(%rbp),%xmm0
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x1,-0x7c(%rbp)
mov    -0x34(%rbp),%eax
add    -0x48(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x6c(%rbp)
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x70(%rbp)
mov    -0x6c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x74(%rbp)
mov    -0x70(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x78(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x6c(%rbp),%r9d
mov    -0x70(%rbp),%r11d
mov    -0x74(%rbp),%r10d
mov    -0x78(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1040 <distaa3@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    201b <edtaa3+0xefb>
mov    -0x74(%rbp),%eax
mov    %ax,%dx
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
mov    -0x78(%rbp),%eax
mov    %ax,%dx
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
movsd  -0x68(%rbp),%xmm0
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x1,-0x7c(%rbp)
mov    -0x34(%rbp),%eax
add    -0x4c(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x6c(%rbp)
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x70(%rbp)
mov    -0x6c(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    -0x70(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x78(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x6c(%rbp),%r9d
mov    -0x70(%rbp),%r11d
mov    -0x74(%rbp),%r10d
mov    -0x78(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1040 <distaa3@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    20f3 <edtaa3+0xfd3>
mov    -0x74(%rbp),%eax
mov    %ax,%dx
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
mov    -0x78(%rbp),%eax
mov    %ax,%dx
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
movsd  -0x68(%rbp),%xmm0
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x1,-0x7c(%rbp)
mov    -0x34(%rbp),%eax
add    -0x50(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x6c(%rbp)
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x70(%rbp)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
mov    -0x70(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x78(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x6c(%rbp),%r9d
mov    -0x70(%rbp),%r11d
mov    -0x74(%rbp),%r10d
mov    -0x78(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1040 <distaa3@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    21c4 <edtaa3+0x10a4>
mov    -0x74(%rbp),%eax
mov    %ax,%dx
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
mov    -0x78(%rbp),%eax
mov    %ax,%dx
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
movsd  -0x68(%rbp),%xmm0
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x1,-0x7c(%rbp)
jmp    21c9 <edtaa3+0x10a9>
mov    -0x2c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x34(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x34(%rbp)
jmp    1e39 <edtaa3+0xd19>
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    248a <edtaa3+0x136a>
mov    -0x34(%rbp),%eax
add    -0x44(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x6c(%rbp)
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x70(%rbp)
mov    -0x6c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x74(%rbp)
mov    -0x70(%rbp),%eax
mov    %eax,-0x78(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x6c(%rbp),%r9d
mov    -0x70(%rbp),%r11d
mov    -0x74(%rbp),%r10d
mov    -0x78(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1040 <distaa3@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    22dc <edtaa3+0x11bc>
mov    -0x74(%rbp),%eax
mov    %ax,%dx
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
mov    -0x78(%rbp),%eax
mov    %ax,%dx
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
movsd  -0x68(%rbp),%xmm0
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x1,-0x7c(%rbp)
mov    -0x34(%rbp),%eax
add    -0x48(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x6c(%rbp)
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x70(%rbp)
mov    -0x6c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x74(%rbp)
mov    -0x70(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x78(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x6c(%rbp),%r9d
mov    -0x70(%rbp),%r11d
mov    -0x74(%rbp),%r10d
mov    -0x78(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1040 <distaa3@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    23b7 <edtaa3+0x1297>
mov    -0x74(%rbp),%eax
mov    %ax,%dx
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
mov    -0x78(%rbp),%eax
mov    %ax,%dx
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
movsd  -0x68(%rbp),%xmm0
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x1,-0x7c(%rbp)
mov    -0x34(%rbp),%eax
add    -0x4c(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x6c(%rbp)
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x70(%rbp)
mov    -0x6c(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    -0x70(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x78(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x6c(%rbp),%r9d
mov    -0x70(%rbp),%r11d
mov    -0x74(%rbp),%r10d
mov    -0x78(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1040 <distaa3@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    2485 <edtaa3+0x1365>
mov    -0x74(%rbp),%eax
mov    %ax,%dx
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
mov    -0x78(%rbp),%eax
mov    %ax,%dx
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
movsd  -0x68(%rbp),%xmm0
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x1,-0x7c(%rbp)
jmp    248a <edtaa3+0x136a>
mov    -0x30(%rbp),%eax
imul   -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    25b9 <edtaa3+0x1499>
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x60(%rbp),%xmm0
jb     24cf <edtaa3+0x13af>
jmp    25a2 <edtaa3+0x1482>
mov    -0x34(%rbp),%eax
add    -0x54(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x6c(%rbp)
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movswl (%rax,%rcx,2),%eax
mov    %eax,-0x70(%rbp)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
mov    -0x70(%rbp),%eax
mov    %eax,-0x78(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x38(%rbp),%r8d
mov    -0x6c(%rbp),%r9d
mov    -0x70(%rbp),%r11d
mov    -0x74(%rbp),%r10d
mov    -0x78(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1040 <distaa3@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
subsd  -0x88(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    259d <edtaa3+0x147d>
mov    -0x74(%rbp),%eax
mov    %ax,%dx
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
mov    -0x78(%rbp),%eax
mov    %ax,%dx
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %dx,(%rax,%rcx,2)
movsd  -0x68(%rbp),%xmm0
mov    0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x1,-0x7c(%rbp)
jmp    25a2 <edtaa3+0x1482>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    249e <edtaa3+0x137e>
jmp    25be <edtaa3+0x149e>
mov    -0x30(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x30(%rbp)
jmp    1c3b <edtaa3+0xb1b>
jmp    25d1 <edtaa3+0x14b1>
cmpl   $0x0,-0x7c(%rbp)
jne    128f <edtaa3+0x16f>
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<edtaa3>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x188,%rsp
mov    %r9,%r13
mov    %rdx,0x20(%rsp)
mov    %rsi,0x18(%rsp)
mov    %rdi,0x28(%rsp)
mov    %r8,%rax
mov    %r8,0x60(%rsp)
mov    %rcx,0x10(%rsp)
imul   %ecx,%r8d
mov    %r8,%r14
test   %r8d,%r8d
jle    1205 <edtaa3+0xe5>
mov    %r14d,%ebx
xor    %ebp,%ebp
movsd  0x1e93(%rip),%xmm1
xorpd  %xmm3,%xmm3
movsd  0x1e8f(%rip),%xmm4
jmp    1196 <edtaa3+0x76>
nopl   0x0(%rax,%rax,1)
mov    0x1c8(%rsp),%rax
movsd  %xmm0,(%rax,%rbp,8)
add    $0x1,%rbp
cmp    %rbp,%rbx
je     1205 <edtaa3+0xe5>
movw   $0x0,0x0(%r13,%rbp,2)
mov    0x1c0(%rsp),%rax
movw   $0x0,(%rax,%rbp,2)
mov    0x28(%rsp),%rax
movsd  (%rax,%rbp,8),%xmm2
ucomisd %xmm2,%xmm3
movapd %xmm1,%xmm0
jae    1180 <edtaa3+0x60>
xorpd  %xmm0,%xmm0
ucomisd %xmm2,%xmm4
jbe    1180 <edtaa3+0x60>
mov    0x18(%rsp),%rax
movsd  (%rax,%rbp,8),%xmm0
mov    0x20(%rsp),%rax
movsd  (%rax,%rbp,8),%xmm1
mov    $0x3,%al
call   1030 <edgedf@plt>
movsd  0x1e1b(%rip),%xmm4
xorpd  %xmm3,%xmm3
movsd  0x1e07(%rip),%xmm1
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
jmp    1180 <edtaa3+0x60>
cmpl   $0x2,0x60(%rsp)
jl     23b2 <edtaa3+0x1292>
mov    $0x1,%ecx
mov    0x10(%rsp),%rbx
sub    %ebx,%ecx
lea    0x1(%rbx),%r8d
lea    -0x1(%rbx),%edx
mov    0x60(%rsp),%rbp
lea    -0x2(%rbp),%esi
lea    -0x1(%rbp),%eax
imul   %ebx,%eax
lea    -0x2(%rax),%r9d
movslq %esi,%rdi
mov    %rdi,0x108(%rsp)
imul   %ebx,%esi
mov    %ebx,%edi
neg    %edi
movslq %ecx,%r10
lea    (%rbx,%rbx,1),%r11d
add    $0xfffffffe,%r11d
movslq %edx,%r15
movslq %esi,%rcx
movslq %edi,%rsi
add    $0xffffffff,%eax
mov    %rax,0x110(%rsp)
lea    -0x1(%r14),%eax
mov    %rax,0x100(%rsp)
lea    -0x2(%r14),%eax
mov    %rax,0xf8(%rsp)
add    $0xfffffffd,%r14d
mov    %r14,0x118(%rsp)
mov    %r9d,%eax
mov    %rax,0xf0(%rsp)
mov    %ecx,%eax
mov    %rax,0xe8(%rsp)
lea    0x2(%r13,%rcx,2),%rax
mov    %rax,0xe0(%rsp)
lea    (%rsi,%rsi,1),%rax
mov    %rax,0x140(%rsp)
mov    0x1c0(%rsp),%rdx
lea    0x2(%rdx,%rcx,2),%rax
mov    %rax,0xd8(%rsp)
mov    0x1c8(%rsp),%rax
lea    (%rax,%rcx,8),%rax
add    $0x8,%rax
mov    %rax,0xd0(%rsp)
shl    $0x3,%rsi
mov    %rsi,0x148(%rsp)
xorpd  %xmm1,%xmm1
movslq %ebx,%rcx
movslq %r8d,%rax
mov    %rax,0x138(%rsp)
mov    %ebp,%eax
mov    %rax,0x130(%rsp)
mov    %r10,%rax
mov    %r10,0xa8(%rsp)
lea    -0x1(%r10),%eax
mov    %rax,0xc0(%rsp)
mov    %rcx,0x80(%rsp)
lea    -0x2(%rcx),%eax
mov    %rax,0x158(%rsp)
lea    0x2(%r13),%rax
mov    %rax,0x128(%rsp)
lea    0x2(%rdx),%rax
mov    %rax,0x120(%rsp)
mov    %r15,0xb8(%rsp)
mov    %r15d,%eax
mov    %rax,0x98(%rsp)
mov    $0x1,%r14d
mov    %r11d,0xa4(%rsp)
mov    %r11d,%ecx
mov    %r8,%rax
mov    %r8,0xb0(%rsp)
mov    %r8,0x40(%rsp)
xor    %r12d,%r12d
mov    %r13,0x30(%rsp)
nopl   0x0(%rax,%rax,1)
mov    %rcx,0x58(%rsp)
mov    %r14,0x90(%rsp)
imul   0x80(%rsp),%r14
mov    0x1c8(%rsp),%rax
movsd  (%rax,%r14,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    14e9 <edtaa3+0x3c9>
mov    %r12d,0x4(%rsp)
mov    %r14d,%eax
mov    0x10(%rsp),%rcx
sub    %ecx,%eax
movslq %eax,%r8
movzwl 0x0(%r13,%r8,2),%r15d
movswl %r15w,%r9d
mov    0x1c0(%rsp),%r12
movswl (%r12,%r8,2),%ebx
lea    0x1(%rbx),%ebp
sub    $0x8,%rsp
mov    0x30(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rdx
xor    %eax,%eax
push   %rbp
push   %r9
push   %rbx
movsd  %xmm0,0x28(%rsp)
call   1040 <distaa3@plt>
movsd  0x28(%rsp),%xmm1
add    $0x20,%rsp
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0x1be9(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    145a <edtaa3+0x33a>
mov    %r15w,0x0(%r13,%r14,2)
mov    %bp,(%r12,%r14,2)
mov    0x1c8(%rsp),%rax
movsd  %xmm0,(%rax,%r14,8)
addsd  0x1bc2(%rip),%xmm0
movl   $0x1,0x4(%rsp)
movapd %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
mov    0xa8(%rsp),%rax
lea    (%r14,%rax,1),%r8
movswl 0x0(%r13,%r8,2),%r9d
movswl (%r12,%r8,2),%ebx
lea    -0x1(%r9),%ebp
lea    0x1(%rbx),%r15d
sub    $0x8,%rsp
mov    0x30(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rdx
mov    0x18(%rsp),%rcx
xor    %eax,%eax
push   %r15
push   %rbp
push   %rbx
call   1040 <distaa3@plt>
add    $0x20,%rsp
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x8(%rsp),%xmm1
ucomisd %xmm0,%xmm1
xorpd  %xmm1,%xmm1
mov    0x4(%rsp),%r12d
jbe    14e9 <edtaa3+0x3c9>
mov    %bp,0x0(%r13,%r14,2)
mov    0x1c0(%rsp),%rax
mov    %r15w,(%rax,%r14,2)
mov    0x1c8(%rsp),%rax
movsd  %xmm0,(%rax,%r14,8)
mov    $0x1,%r12d
cmpl   $0x3,0x10(%rsp)
mov    %r12d,0x4(%rsp)
jl     1800 <edtaa3+0x6e0>
mov    0x40(%rsp),%rcx
movslq %ecx,%r12
mov    %ecx,%eax
mov    %rax,0x78(%rsp)
mov    0xc0(%rsp),%rax
add    %ecx,%eax
mov    %rax,0x38(%rsp)
mov    0xa8(%rsp),%rax
lea    (%rax,%r12,1),%rax
lea    0x0(%r13,%rax,2),%rcx
mov    %rcx,0x70(%rsp)
mov    0x1c0(%rsp),%rcx
lea    (%rcx,%rax,2),%rax
mov    %rax,0x68(%rsp)
mov    0x1c8(%rsp),%rax
lea    (%rax,%r12,8),%r15
mov    %rcx,%rax
lea    0x0(%r13,%r12,2),%rcx
mov    %rcx,0x50(%rsp)
lea    (%rax,%r12,2),%rcx
mov    %rcx,0x48(%rsp)
xor    %ebp,%ebp
jmp    158e <edtaa3+0x46e>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x78(%rsp),%rcx
lea    (%rcx,%rbp,1),%r14d
add    $0x1,%r12
add    $0x1,%rbp
cmp    %ebp,0x158(%rsp)
je     1810 <edtaa3+0x6f0>
movsd  (%r15,%rbp,8),%xmm0
ucomisd %xmm0,%xmm1
jae    1570 <edtaa3+0x450>
movslq %r14d,%r8
movswl 0x0(%r13,%r8,2),%r9d
movswl (%rax,%r8,2),%ebx
lea    0x1(%r9),%r13d
sub    $0x8,%rsp
mov    0x30(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rdx
mov    0x18(%rsp),%rcx
xor    %eax,%eax
push   %rbx
push   %r13
push   %rbx
movsd  %xmm0,0x28(%rsp)
call   1040 <distaa3@plt>
movsd  0x28(%rsp),%xmm1
add    $0x20,%rsp
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0x1a22(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    1621 <edtaa3+0x501>
mov    0x50(%rsp),%rax
mov    %r13w,(%rax,%rbp,2)
mov    0x48(%rsp),%rax
mov    %bx,(%rax,%rbp,2)
movsd  %xmm0,(%r15,%rbp,8)
addsd  0x19fb(%rip),%xmm0
movl   $0x1,0x4(%rsp)
movapd %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
mov    0x10(%rsp),%rcx
sub    %ecx,%r14d
movslq %r14d,%r8
mov    0x30(%rsp),%rax
movswl (%rax,%r8,2),%r9d
mov    0x1c0(%rsp),%rax
movswl (%rax,%r8,2),%ebx
lea    0x1(%r9),%r14d
lea    0x1(%rbx),%r13d
sub    $0x8,%rsp
mov    0x30(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rdx
xor    %eax,%eax
push   %r13
push   %r14
push   %rbx
call   1040 <distaa3@plt>
movsd  0x28(%rsp),%xmm1
add    $0x20,%rsp
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
ucomisd %xmm0,%xmm1
jbe    16b5 <edtaa3+0x595>
mov    0x50(%rsp),%rax
mov    %r14w,(%rax,%rbp,2)
mov    0x48(%rsp),%rax
mov    %r13w,(%rax,%rbp,2)
movsd  %xmm0,(%r15,%rbp,8)
addsd  0x1967(%rip),%xmm0
movl   $0x1,0x4(%rsp)
movapd %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
mov    0x38(%rsp),%rax
add    %rbp,%rax
movslq %eax,%r8
mov    0x30(%rsp),%rax
movzwl (%rax,%r8,2),%r14d
movswl %r14w,%r9d
mov    0x1c0(%rsp),%rax
movswl (%rax,%r8,2),%ebx
lea    0x1(%rbx),%r13d
sub    $0x8,%rsp
mov    0x30(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rdx
mov    0x18(%rsp),%rcx
xor    %eax,%eax
push   %r13
push   %r9
push   %rbx
call   1040 <distaa3@plt>
movsd  0x28(%rsp),%xmm1
add    $0x20,%rsp
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
ucomisd %xmm0,%xmm1
jbe    174e <edtaa3+0x62e>
mov    0x50(%rsp),%rax
mov    %r14w,(%rax,%rbp,2)
mov    0x48(%rsp),%rax
mov    %r13w,(%rax,%rbp,2)
movsd  %xmm0,(%r15,%rbp,8)
addsd  0x18ce(%rip),%xmm0
movl   $0x1,0x4(%rsp)
movapd %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
mov    0x70(%rsp),%rax
movswl (%rax,%rbp,2),%r9d
mov    0x68(%rsp),%rax
movswl (%rax,%rbp,2),%ebx
lea    -0x1(%r9),%r14d
lea    0x1(%rbx),%r13d
mov    0x38(%rsp),%rax
lea    (%rax,%rbp,1),%r8d
add    $0x1,%r8d
sub    $0x8,%rsp
mov    0x30(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rdx
mov    0x18(%rsp),%rcx
xor    %eax,%eax
push   %r13
push   %r14
push   %rbx
call   1040 <distaa3@plt>
add    $0x20,%rsp
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x8(%rsp),%xmm1
ucomisd %xmm0,%xmm1
jbe    17d9 <edtaa3+0x6b9>
mov    0x50(%rsp),%rax
mov    %r14w,(%rax,%rbp,2)
mov    0x48(%rsp),%rax
mov    %r13w,(%rax,%rbp,2)
movsd  %xmm0,(%r15,%rbp,8)
movl   $0x1,0x4(%rsp)
mov    %r12d,%r14d
mov    0x30(%rsp),%r13
mov    0x1c0(%rsp),%rax
xorpd  %xmm1,%xmm1
jmp    1579 <edtaa3+0x459>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r14d,%ebp
add    $0x1,%ebp
jmp    1814 <edtaa3+0x6f4>
nopl   0x0(%rax,%rax,1)
add    0x40(%rsp),%ebp
movslq %ebp,%r15
mov    0x1c8(%rsp),%rax
movsd  (%rax,%r15,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    19e9 <edtaa3+0x8c9>
movslq %r14d,%r8
movswl 0x0(%r13,%r8,2),%r9d
mov    0x1c0(%rsp),%rax
movswl (%rax,%r8,2),%ebx
lea    0x1(%r9),%r12d
sub    $0x8,%rsp
mov    0x30(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rdx
mov    0x18(%rsp),%rcx
xor    %eax,%eax
push   %rbx
push   %r12
push   %rbx
movsd  %xmm0,0x28(%rsp)
call   1040 <distaa3@plt>
movsd  0x28(%rsp),%xmm1
add    $0x20,%rsp
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0x1785(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    18c6 <edtaa3+0x7a6>
mov    %r12w,0x0(%r13,%r15,2)
mov    0x1c0(%rsp),%rax
mov    %bx,(%rax,%r15,2)
mov    0x1c8(%rsp),%rax
movsd  %xmm0,(%rax,%r15,8)
addsd  0x1756(%rip),%xmm0
movl   $0x1,0x4(%rsp)
movapd %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
mov    0x10(%rsp),%rcx
sub    %ecx,%r14d
movslq %r14d,%r8
movswl 0x0(%r13,%r8,2),%r9d
mov    0x1c0(%rsp),%rax
movswl (%rax,%r8,2),%ebx
lea    0x1(%r9),%r14d
lea    0x1(%rbx),%r12d
sub    $0x8,%rsp
mov    0x30(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rdx
xor    %eax,%eax
push   %r12
push   %r14
push   %rbx
call   1040 <distaa3@plt>
movsd  0x28(%rsp),%xmm1
add    $0x20,%rsp
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
ucomisd %xmm0,%xmm1
jbe    195d <edtaa3+0x83d>
mov    %r14w,0x0(%r13,%r15,2)
mov    0x1c0(%rsp),%rax
mov    %r12w,(%rax,%r15,2)
mov    0x1c8(%rsp),%rax
movsd  %xmm0,(%rax,%r15,8)
addsd  0x16bf(%rip),%xmm0
movl   $0x1,0x4(%rsp)
movapd %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
mov    0x10(%rsp),%rcx
sub    %ecx,%ebp
movslq %ebp,%r8
movzwl 0x0(%r13,%r8,2),%r14d
movswl %r14w,%r9d
mov    0x1c0(%rsp),%rax
movswl (%rax,%r8,2),%ebx
lea    0x1(%rbx),%ebp
sub    $0x8,%rsp
mov    0x30(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rdx
xor    %eax,%eax
push   %rbp
push   %r9
push   %rbx
call   1040 <distaa3@plt>
add    $0x20,%rsp
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x8(%rsp),%xmm1
ucomisd %xmm0,%xmm1
xorpd  %xmm1,%xmm1
jbe    19e9 <edtaa3+0x8c9>
mov    %r14w,0x0(%r13,%r15,2)
mov    0x1c0(%rsp),%rax
mov    %bp,(%rax,%r15,2)
mov    0x1c8(%rsp),%rax
movsd  %xmm0,(%rax,%r15,8)
movl   $0x1,0x4(%rsp)
cmpl   $0x2,0x10(%rsp)
jl     1ae0 <edtaa3+0x9c0>
mov    0x58(%rsp),%rdx
movslq %edx,%rax
mov    0x1c8(%rsp),%rcx
lea    (%rcx,%rax,8),%r13
mov    0x128(%rsp),%rcx
lea    (%rcx,%rax,2),%r14
mov    0x120(%rsp),%rcx
lea    (%rcx,%rax,2),%r12
lea    0x1(%rdx),%eax
mov    %rax,0x38(%rsp)
xor    %ebp,%ebp
jmp    1a46 <edtaa3+0x926>
nopl   0x0(%rax)
add    $0xffffffffffffffff,%rbp
mov    0x98(%rsp),%rax
add    %ebp,%eax
test   %eax,%eax
jle    1ae0 <edtaa3+0x9c0>
movsd  0x0(%r13,%rbp,8),%xmm0
ucomisd %xmm0,%xmm1
jae    1a30 <edtaa3+0x910>
movswl (%r14,%rbp,2),%r9d
movswl (%r12,%rbp,2),%ebx
lea    -0x1(%r9),%r15d
mov    0x38(%rsp),%rax
lea    (%rax,%rbp,1),%r8d
sub    $0x8,%rsp
mov    0x30(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rdx
mov    0x18(%rsp),%rcx
xor    %eax,%eax
push   %rbx
push   %r15
push   %rbx
movsd  %xmm0,0x28(%rsp)
call   1040 <distaa3@plt>
xorpd  %xmm1,%xmm1
add    $0x20,%rsp
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x8(%rsp),%xmm2
addsd  0x1560(%rip),%xmm2
ucomisd %xmm0,%xmm2
jbe    1a30 <edtaa3+0x910>
mov    %r15w,-0x2(%r14,%rbp,2)
mov    %bx,-0x2(%r12,%rbp,2)
movsd  %xmm0,0x0(%r13,%rbp,8)
movl   $0x1,0x4(%rsp)
jmp    1a30 <edtaa3+0x910>
nopw   0x0(%rax,%rax,1)
mov    0x90(%rsp),%r14
add    $0x1,%r14
mov    0x10(%rsp),%rax
mov    0x40(%rsp),%rcx
add    %eax,%ecx
mov    %rcx,0x40(%rsp)
mov    0x58(%rsp),%rcx
add    %eax,%ecx
cmp    0x130(%rsp),%r14
mov    0x30(%rsp),%r13
mov    0x4(%rsp),%r12d
jne    1390 <edtaa3+0x270>
cmpl   $0x2,0x60(%rsp)
jl     2380 <edtaa3+0x1260>
mov    0xd0(%rsp),%r15
mov    0xd8(%rsp),%rax
mov    %rax,0x50(%rsp)
mov    0xe0(%rsp),%rax
mov    %rax,0x48(%rsp)
mov    0xe8(%rsp),%rax
mov    %rax,0x78(%rsp)
mov    0xf0(%rsp),%rax
mov    %rax,0x88(%rsp)
mov    0x118(%rsp),%rax
mov    %rax,0x70(%rsp)
mov    0xf8(%rsp),%rax
mov    %rax,0x68(%rsp)
mov    0x100(%rsp),%rax
mov    %rax,0x40(%rsp)
mov    0x110(%rsp),%rax
mov    %rax,0x58(%rsp)
mov    0x108(%rsp),%rax
jmp    1c10 <edtaa3+0xaf0>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0xc8(%rsp),%r15
mov    0x150(%rsp),%rdx
lea    -0x1(%rdx),%rax
mov    0xc0(%rsp),%rcx
add    %rcx,0x88(%rsp)
add    %rcx,0x58(%rsp)
add    %rcx,0x40(%rsp)
add    %rcx,0x68(%rsp)
add    %rcx,0x70(%rsp)
add    %rcx,0x78(%rsp)
mov    0x140(%rsp),%rcx
add    %rcx,0x48(%rsp)
add    %rcx,0x50(%rsp)
add    0x148(%rsp),%r15
test   %rdx,%rdx
jle    2380 <edtaa3+0x1260>
mov    %r15,0xc8(%rsp)
mov    %r12d,0x4(%rsp)
mov    %rax,0x150(%rsp)
mov    0x80(%rsp),%rdx
imul   %rdx,%rax
lea    (%rax,%rdx,1),%r12
mov    0x1c8(%rsp),%rcx
movsd  -0x8(%rcx,%r12,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    1d8e <edtaa3+0xc6e>
lea    (%rax,%rdx,1),%r14
add    $0xffffffffffffffff,%r14
lea    (%r14,%rdx,1),%r8
movzwl 0x0(%r13,%r8,2),%r15d
movswl %r15w,%r9d
mov    0x1c0(%rsp),%r13
movswl 0x0(%r13,%r8,2),%ebx
lea    -0x1(%rbx),%ebp
sub    $0x8,%rsp
mov    0x30(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rdx
mov    0x18(%rsp),%rcx
xor    %eax,%eax
push   %rbp
push   %r9
push   %rbx
movsd  %xmm0,0x28(%rsp)
call   1040 <distaa3@plt>
mov    %r13,%rcx
movsd  0x28(%rsp),%xmm1
add    $0x20,%rsp
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0x1356(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    1cf4 <edtaa3+0xbd4>
mov    0x30(%rsp),%rax
mov    %r15w,-0x2(%rax,%r12,2)
mov    %bp,-0x2(%rcx,%r12,2)
mov    0x1c8(%rsp),%rax
movsd  %xmm0,-0x8(%rax,%r12,8)
addsd  0x1328(%rip),%xmm0
movl   $0x1,0x4(%rsp)
movapd %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
add    0xb8(%rsp),%r14
mov    0x30(%rsp),%r13
movswl 0x0(%r13,%r14,2),%r9d
movswl (%rcx,%r14,2),%ebx
lea    0x1(%r9),%ebp
lea    -0x1(%rbx),%r15d
sub    $0x8,%rsp
mov    0x30(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rdx
mov    0x18(%rsp),%rcx
mov    %r14d,%r8d
xor    %eax,%eax
push   %r15
push   %rbp
push   %rbx
call   1040 <distaa3@plt>
add    $0x20,%rsp
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x8(%rsp),%xmm1
ucomisd %xmm0,%xmm1
xorpd  %xmm1,%xmm1
mov    0x80(%rsp),%rdx
jbe    1d8e <edtaa3+0xc6e>
mov    %bp,-0x2(%r13,%r12,2)
mov    0x1c0(%rsp),%rax
mov    %r15w,-0x2(%rax,%r12,2)
mov    0x1c8(%rsp),%rax
movsd  %xmm0,-0x8(%rax,%r12,8)
movl   $0x1,0x4(%rsp)
cmpl   $0x3,0x10(%rsp)
jl     20a0 <edtaa3+0xf80>
movslq 0x88(%rsp),%rax
mov    0x138(%rsp),%rcx
add    %rax,%rcx
lea    (%rdx,%rax,1),%rdx
mov    0xb8(%rsp),%rsi
lea    (%rsi,%rax,1),%rsi
mov    0x1c8(%rsp),%rdi
lea    (%rdi,%rax,8),%r14
lea    0x0(%r13,%rax,2),%rdi
mov    %rdi,0x38(%rsp)
mov    0x1c0(%rsp),%rdi
lea    (%rdi,%rax,2),%r15
lea    0x0(%r13,%rcx,2),%rax
mov    %rax,0x90(%rsp)
lea    (%rdi,%rcx,2),%rax
mov    %rax,0x180(%rsp)
lea    0x0(%r13,%rdx,2),%rax
mov    %rax,0x178(%rsp)
lea    (%rdi,%rdx,2),%rax
mov    %rax,0x170(%rsp)
lea    0x0(%r13,%rsi,2),%rax
mov    %rax,0x168(%rsp)
lea    (%rdi,%rsi,2),%rax
mov    %rax,0x160(%rsp)
xor    %r12d,%r12d
jmp    1e48 <edtaa3+0xd28>
xchg   %ax,%ax
add    $0xffffffffffffffff,%r12
mov    0x98(%rsp),%rax
add    %r12d,%eax
cmp    $0x1,%eax
jle    20b0 <edtaa3+0xf90>
movsd  (%r14,%r12,8),%xmm0
ucomisd %xmm0,%xmm1
jae    1e30 <edtaa3+0xd10>
mov    0x38(%rsp),%rax
movswl 0x2(%rax,%r12,2),%r9d
movswl 0x2(%r15,%r12,2),%r13d
lea    -0x1(%r9),%ebx
mov    0x58(%rsp),%rax
lea    (%rax,%r12,1),%r8d
sub    $0x8,%rsp
mov    0x30(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rdx
mov    0x18(%rsp),%rcx
xor    %eax,%eax
push   %r13
push   %rbx
push   %r13
movsd  %xmm0,0x28(%rsp)
call   1040 <distaa3@plt>
movsd  0x28(%rsp),%xmm1
add    $0x20,%rsp
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0x115b(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    1ee4 <edtaa3+0xdc4>
mov    0x38(%rsp),%rax
mov    %bx,(%rax,%r12,2)
mov    %r13w,(%r15,%r12,2)
movsd  %xmm0,(%r14,%r12,8)
addsd  0x1138(%rip),%xmm0
movl   $0x1,0x4(%rsp)
movapd %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
mov    0x90(%rsp),%rax
movswl (%rax,%r12,2),%r9d
mov    0x180(%rsp),%rax
movswl (%rax,%r12,2),%ebx
lea    -0x1(%r9),%ebp
lea    -0x1(%rbx),%r13d
mov    0x40(%rsp),%rax
lea    (%rax,%r12,1),%r8d
sub    $0x8,%rsp
mov    0x30(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rdx
mov    0x18(%rsp),%rcx
xor    %eax,%eax
push   %r13
push   %rbp
push   %rbx
call   1040 <distaa3@plt>
movsd  0x28(%rsp),%xmm1
add    $0x20,%rsp
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
ucomisd %xmm0,%xmm1
jbe    1f78 <edtaa3+0xe58>
mov    0x38(%rsp),%rax
mov    %bp,(%rax,%r12,2)
mov    %r13w,(%r15,%r12,2)
movsd  %xmm0,(%r14,%r12,8)
addsd  0x10a4(%rip),%xmm0
movl   $0x1,0x4(%rsp)
movapd %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
mov    0x178(%rsp),%rax
movzwl (%rax,%r12,2),%r13d
movswl %r13w,%r9d
mov    0x170(%rsp),%rax
movswl (%rax,%r12,2),%ebx
lea    -0x1(%rbx),%ebp
mov    0x68(%rsp),%rax
lea    (%rax,%r12,1),%r8d
sub    $0x8,%rsp
mov    0x30(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rdx
mov    0x18(%rsp),%rcx
xor    %eax,%eax
push   %rbp
push   %r9
push   %rbx
call   1040 <distaa3@plt>
movsd  0x28(%rsp),%xmm1
add    $0x20,%rsp
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
ucomisd %xmm0,%xmm1
jbe    200b <edtaa3+0xeeb>
mov    0x38(%rsp),%rax
mov    %r13w,(%rax,%r12,2)
mov    %bp,(%r15,%r12,2)
movsd  %xmm0,(%r14,%r12,8)
addsd  0x1011(%rip),%xmm0
movl   $0x1,0x4(%rsp)
movapd %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
mov    0x168(%rsp),%rax
movswl (%rax,%r12,2),%r9d
mov    0x160(%rsp),%rax
movswl (%rax,%r12,2),%ebx
lea    0x1(%r9),%ebp
lea    -0x1(%rbx),%r13d
mov    0x70(%rsp),%rax
lea    (%rax,%r12,1),%r8d
sub    $0x8,%rsp
mov    0x30(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rdx
mov    0x18(%rsp),%rcx
xor    %eax,%eax
push   %r13
push   %rbp
push   %rbx
call   1040 <distaa3@plt>
add    $0x20,%rsp
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x8(%rsp),%xmm1
ucomisd %xmm0,%xmm1
xorpd  %xmm1,%xmm1
jbe    1e30 <edtaa3+0xd10>
mov    0x38(%rsp),%rax
mov    %bp,(%rax,%r12,2)
mov    %r13w,(%r15,%r12,2)
movsd  %xmm0,(%r14,%r12,8)
movl   $0x1,0x4(%rsp)
jmp    1e30 <edtaa3+0xd10>
add    $0xfffffffe,%r12d
jmp    20bd <edtaa3+0xf9d>
cs nopw 0x0(%rax,%rax,1)
add    0x88(%rsp),%r12d
mov    0x30(%rsp),%r13
movslq %r12d,%rbx
mov    0x1c8(%rsp),%rax
movsd  (%rax,%rbx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    22a0 <edtaa3+0x1180>
lea    0x1(%rbx),%r8d
movswl 0x2(%r13,%rbx,2),%r9d
mov    0x1c0(%rsp),%r13
movswl 0x2(%r13,%rbx,2),%ebp
lea    -0x1(%r9),%r14d
sub    $0x8,%rsp
mov    0x30(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rdx
mov    0x18(%rsp),%rcx
xor    %eax,%eax
push   %rbp
push   %r14
push   %rbp
movsd  %xmm0,0x28(%rsp)
call   1040 <distaa3@plt>
movsd  0x28(%rsp),%xmm1
add    $0x20,%rsp
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0xedb(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    216c <edtaa3+0x104c>
mov    0x30(%rsp),%rax
mov    %r14w,(%rax,%rbx,2)
mov    %bp,0x0(%r13,%rbx,2)
mov    0x1c8(%rsp),%rax
movsd  %xmm0,(%rax,%rbx,8)
addsd  0xeb0(%rip),%xmm0
movl   $0x1,0x4(%rsp)
movapd %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
mov    0xb0(%rsp),%rax
add    %r12d,%eax
movslq %eax,%r8
mov    0x30(%rsp),%rax
movswl (%rax,%r8,2),%r9d
movswl 0x0(%r13,%r8,2),%ebp
lea    -0x1(%r9),%r14d
lea    -0x1(%rbp),%r15d
sub    $0x8,%rsp
mov    0x30(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rdx
mov    0x18(%rsp),%rcx
xor    %eax,%eax
push   %r15
push   %r14
push   %rbp
call   1040 <distaa3@plt>
movsd  0x28(%rsp),%xmm1
add    $0x20,%rsp
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
ucomisd %xmm0,%xmm1
jbe    2204 <edtaa3+0x10e4>
mov    0x30(%rsp),%rax
mov    %r14w,(%rax,%rbx,2)
mov    %r15w,0x0(%r13,%rbx,2)
mov    0x1c8(%rsp),%rax
movsd  %xmm0,(%rax,%rbx,8)
addsd  0xe18(%rip),%xmm0
movl   $0x1,0x4(%rsp)
movapd %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
mov    0x10(%rsp),%rcx
add    %ecx,%r12d
movslq %r12d,%r8
mov    %r13,%rax
mov    0x30(%rsp),%r13
movzwl 0x0(%r13,%r8,2),%r14d
movswl %r14w,%r9d
movswl (%rax,%r8,2),%ebp
lea    -0x1(%rbp),%r15d
sub    $0x8,%rsp
mov    0x30(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rdx
xor    %eax,%eax
push   %r15
push   %r9
push   %rbp
call   1040 <distaa3@plt>
add    $0x20,%rsp
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x8(%rsp),%xmm1
ucomisd %xmm0,%xmm1
xorpd  %xmm1,%xmm1
mov    0x4(%rsp),%r12d
jbe    22a5 <edtaa3+0x1185>
mov    %r14w,0x0(%r13,%rbx,2)
mov    0x1c0(%rsp),%rax
mov    %r15w,(%rax,%rbx,2)
mov    0x1c8(%rsp),%rax
movsd  %xmm0,(%rax,%rbx,8)
mov    $0x1,%r12d
jmp    22a5 <edtaa3+0x1185>
nopw   0x0(%rax,%rax,1)
mov    0x4(%rsp),%r12d
cmpl   $0x2,0x10(%rsp)
jl     1bb0 <edtaa3+0xa90>
xor    %ebx,%ebx
mov    0xc8(%rsp),%r15
jmp    22d1 <edtaa3+0x11b1>
nopl   0x0(%rax)
add    $0x1,%rbx
cmp    %ebx,0x98(%rsp)
je     1bb8 <edtaa3+0xa98>
movsd  (%r15,%rbx,8),%xmm0
ucomisd %xmm0,%xmm1
jae    22c0 <edtaa3+0x11a0>
mov    0x48(%rsp),%rax
movswl -0x2(%rax,%rbx,2),%r9d
mov    0x50(%rsp),%rax
movswl -0x2(%rax,%rbx,2),%ebp
lea    0x1(%r9),%r14d
mov    0x78(%rsp),%rax
lea    (%rax,%rbx,1),%r8d
sub    $0x8,%rsp
mov    0x30(%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rdx
mov    0x18(%rsp),%rcx
xor    %eax,%eax
push   %rbp
push   %r14
push   %rbp
movsd  %xmm0,0x28(%rsp)
call   1040 <distaa3@plt>
xorpd  %xmm1,%xmm1
add    $0x20,%rsp
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x8(%rsp),%xmm2
addsd  0xccb(%rip),%xmm2
ucomisd %xmm0,%xmm2
jbe    22c0 <edtaa3+0x11a0>
mov    0x48(%rsp),%rax
mov    %r14w,(%rax,%rbx,2)
mov    0x50(%rsp),%rax
mov    %bp,(%rax,%rbx,2)
movsd  %xmm0,(%r15,%rbx,8)
mov    $0x1,%r12d
jmp    22c0 <edtaa3+0x11a0>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
cmpl   $0x2,0x60(%rsp)
jl     23b2 <edtaa3+0x1292>
mov    $0x1,%r14d
mov    0xa4(%rsp),%eax
mov    %eax,%ecx
mov    0xb0(%rsp),%rax
mov    %rax,0x40(%rsp)
test   %r12d,%r12d
mov    $0x0,%r12d
jne    1390 <edtaa3+0x270>
add    $0x188,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @edtaa3(double* %0, double* %1, double* %2, i32 %3, i32 %4, i16* %5, i16* %6, double* %7) {
%9 = alloca double*
%10 = alloca double*
%11 = alloca double*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i16*
%15 = alloca i16*
%16 = alloca double*
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
%29 = alloca double
%30 = alloca double
%31 = alloca i32
%32 = alloca i32
%33 = alloca i32
%34 = alloca i32
%35 = alloca i32
%36 = alloca double
store double* %0, double** %9
store double* %1, double** %10
store double* %2, double** %11
store i32 %3, i32* %12
store i32 %4, i32* %13
store i16* %5, i16** %14
store i16* %6, i16** %15
store double* %7, double** %16
store double 1.000000e-03, double* %36
%37 = load i32, i32* %12
%38 = sub nsw i32 0, %37
store i32 %38, i32* %21
%39 = load i32, i32* %12
%40 = sub nsw i32 0, %39
%41 = add nsw i32 %40, 1
store i32 %41, i32* %22
store i32 1, i32* %23
%42 = load i32, i32* %12
%43 = add nsw i32 %42, 1
store i32 %43, i32* %24
%44 = load i32, i32* %12
store i32 %44, i32* %25
%45 = load i32, i32* %12
%46 = sub nsw i32 %45, 1
store i32 %46, i32* %26
store i32 -1, i32* %27
%47 = load i32, i32* %12
%48 = sub nsw i32 0, %47
%49 = sub nsw i32 %48, 1
store i32 %49, i32* %28
store i32 0, i32* %19
br label %50
50: ; preds = %112, %8
%51 = load i32, i32* %19
%52 = load i32, i32* %12
%53 = load i32, i32* %13
%54 = mul nsw i32 %52, %53
%55 = icmp slt i32 %51, %54
br i1 %55, label %56, label %115
56: ; preds = %50
%57 = load i16*, i16** %14
%58 = load i32, i32* %19
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i16, i16* %57, i64 %59
store i16 0, i16* %60
%61 = load i16*, i16** %15
%62 = load i32, i32* %19
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i16, i16* %61, i64 %63
store i16 0, i16* %64
%65 = load double*, double** %9
%66 = load i32, i32* %19
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds double, double* %65, i64 %67
%69 = load double, double* %68
%70 = fcmp ole double %69, 0.000000e+00
br i1 %70, label %71, label %76
71: ; preds = %56
%72 = load double*, double** %16
%73 = load i32, i32* %19
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds double, double* %72, i64 %74
store double 1.000000e+06, double* %75
br label %111
76: ; preds = %56
%77 = load double*, double** %9
%78 = load i32, i32* %19
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds double, double* %77, i64 %79
%81 = load double, double* %80
%82 = fcmp olt double %81, 1.000000e+00
br i1 %82, label %83, label %105
83: ; preds = %76
%84 = load double*, double** %10
%85 = load i32, i32* %19
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds double, double* %84, i64 %86
%88 = load double, double* %87
%89 = load double*, double** %11
%90 = load i32, i32* %19
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds double, double* %89, i64 %91
%93 = load double, double* %92
%94 = load double*, double** %9
%95 = load i32, i32* %19
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds double, double* %94, i64 %96
%98 = load double, double* %97
%99 = call i32 (double, double, double, ...) bitcast (i32 (...)* @edgedf to i32 (double, double, double, ...)*)(double %88, double %93, double %98)
%100 = sitofp i32 %99 to double
%101 = load double*, double** %16
%102 = load i32, i32* %19
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds double, double* %101, i64 %103
store double %100, double* %104
br label %110
105: ; preds = %76
%106 = load double*, double** %16
%107 = load i32, i32* %19
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds double, double* %106, i64 %108
store double 0.000000e+00, double* %109
br label %110
110: ; preds = %105, %83
br label %111
111: ; preds = %110, %71
br label %112
112: ; preds = %111
%113 = load i32, i32* %19
%114 = add nsw i32 %113, 1
store i32 %114, i32* %19
br label %50
115: ; preds = %50
br label %116
116: ; preds = %1358, %115
store i32 0, i32* %35
store i32 1, i32* %18
br label %117
117: ; preds = %733, %116
%118 = load i32, i32* %18
%119 = load i32, i32* %13
%120 = icmp slt i32 %118, %119
br i1 %120, label %121, label %736
121: ; preds = %117
%122 = load i32, i32* %18
%123 = load i32, i32* %12
%124 = mul nsw i32 %122, %123
store i32 %124, i32* %19
%125 = load double*, double** %16
%126 = load i32, i32* %19
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds double, double* %125, i64 %127
%129 = load double, double* %128
store double %129, double* %29
%130 = load double, double* %29
%131 = fcmp ogt double %130, 0.000000e+00
br i1 %131, label %132, label %241
132: ; preds = %121
%133 = load i32, i32* %19
%134 = load i32, i32* %21
%135 = add nsw i32 %133, %134
store i32 %135, i32* %20
%136 = load i16*, i16** %14
%137 = load i32, i32* %20
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds i16, i16* %136, i64 %138
%140 = load i16, i16* %139
%141 = sext i16 %140 to i32
store i32 %141, i32* %31
%142 = load i16*, i16** %15
%143 = load i32, i32* %20
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds i16, i16* %142, i64 %144
%146 = load i16, i16* %145
%147 = sext i16 %146 to i32
store i32 %147, i32* %32
%148 = load i32, i32* %31
store i32 %148, i32* %33
%149 = load i32, i32* %32
%150 = add nsw i32 %149, 1
store i32 %150, i32* %34
%151 = load double*, double** %9
%152 = load double*, double** %10
%153 = load double*, double** %11
%154 = load i32, i32* %12
%155 = load i32, i32* %20
%156 = load i32, i32* %31
%157 = load i32, i32* %32
%158 = load i32, i32* %33
%159 = load i32, i32* %34
%160 = call i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @distaa3 to i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...)*)(double* %151, double* %152, double* %153, i32 %154, i32 %155, i32 %156, i32 %157, i32 %158, i32 %159)
%161 = sitofp i32 %160 to double
store double %161, double* %30
%162 = load double, double* %30
%163 = load double, double* %29
%164 = load double, double* %36
%165 = fsub double %163, %164
%166 = fcmp olt double %162, %165
br i1 %166, label %167, label %186
167: ; preds = %132
%168 = load i32, i32* %33
%169 = trunc i32 %168 to i16
%170 = load i16*, i16** %14
%171 = load i32, i32* %19
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds i16, i16* %170, i64 %172
store i16 %169, i16* %173
%174 = load i32, i32* %34
%175 = trunc i32 %174 to i16
%176 = load i16*, i16** %15
%177 = load i32, i32* %19
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds i16, i16* %176, i64 %178
store i16 %175, i16* %179
%180 = load double, double* %30
%181 = load double*, double** %16
%182 = load i32, i32* %19
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds double, double* %181, i64 %183
store double %180, double* %184
%185 = load double, double* %30
store double %185, double* %29
store i32 1, i32* %35
br label %186
186: ; preds = %167, %132
%187 = load i32, i32* %19
%188 = load i32, i32* %22
%189 = add nsw i32 %187, %188
store i32 %189, i32* %20
%190 = load i16*, i16** %14
%191 = load i32, i32* %20
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds i16, i16* %190, i64 %192
%194 = load i16, i16* %193
%195 = sext i16 %194 to i32
store i32 %195, i32* %31
%196 = load i16*, i16** %15
%197 = load i32, i32* %20
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds i16, i16* %196, i64 %198
%200 = load i16, i16* %199
%201 = sext i16 %200 to i32
store i32 %201, i32* %32
%202 = load i32, i32* %31
%203 = sub nsw i32 %202, 1
store i32 %203, i32* %33
%204 = load i32, i32* %32
%205 = add nsw i32 %204, 1
store i32 %205, i32* %34
%206 = load double*, double** %9
%207 = load double*, double** %10
%208 = load double*, double** %11
%209 = load i32, i32* %12
%210 = load i32, i32* %20
%211 = load i32, i32* %31
%212 = load i32, i32* %32
%213 = load i32, i32* %33
%214 = load i32, i32* %34
%215 = call i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @distaa3 to i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...)*)(double* %206, double* %207, double* %208, i32 %209, i32 %210, i32 %211, i32 %212, i32 %213, i32 %214)
%216 = sitofp i32 %215 to double
store double %216, double* %30
%217 = load double, double* %30
%218 = load double, double* %29
%219 = load double, double* %36
%220 = fsub double %218, %219
%221 = fcmp olt double %217, %220
br i1 %221, label %222, label %240
222: ; preds = %186
%223 = load i32, i32* %33
%224 = trunc i32 %223 to i16
%225 = load i16*, i16** %14
%226 = load i32, i32* %19
%227 = sext i32 %226 to i64
%228 = getelementptr inbounds i16, i16* %225, i64 %227
store i16 %224, i16* %228
%229 = load i32, i32* %34
%230 = trunc i32 %229 to i16
%231 = load i16*, i16** %15
%232 = load i32, i32* %19
%233 = sext i32 %232 to i64
%234 = getelementptr inbounds i16, i16* %231, i64 %233
store i16 %230, i16* %234
%235 = load double, double* %30
%236 = load double*, double** %16
%237 = load i32, i32* %19
%238 = sext i32 %237 to i64
%239 = getelementptr inbounds double, double* %236, i64 %238
store double %235, double* %239
store i32 1, i32* %35
br label %240
240: ; preds = %222, %186
br label %241
241: ; preds = %240, %121
%242 = load i32, i32* %19
%243 = add nsw i32 %242, 1
store i32 %243, i32* %19
store i32 1, i32* %17
br label %244
244: ; preds = %476, %241
%245 = load i32, i32* %17
%246 = load i32, i32* %12
%247 = sub nsw i32 %246, 1
%248 = icmp slt i32 %245, %247
br i1 %248, label %249, label %481
249: ; preds = %244
%250 = load double*, double** %16
%251 = load i32, i32* %19
%252 = sext i32 %251 to i64
%253 = getelementptr inbounds double, double* %250, i64 %252
%254 = load double, double* %253
store double %254, double* %29
%255 = load double, double* %29
%256 = fcmp ole double %255, 0.000000e+00
br i1 %256, label %257, label %258
257: ; preds = %249
br label %476
258: ; preds = %249
%259 = load i32, i32* %19
%260 = load i32, i32* %27
%261 = add nsw i32 %259, %260
store i32 %261, i32* %20
%262 = load i16*, i16** %14
%263 = load i32, i32* %20
%264 = sext i32 %263 to i64
%265 = getelementptr inbounds i16, i16* %262, i64 %264
%266 = load i16, i16* %265
%267 = sext i16 %266 to i32
store i32 %267, i32* %31
%268 = load i16*, i16** %15
%269 = load i32, i32* %20
%270 = sext i32 %269 to i64
%271 = getelementptr inbounds i16, i16* %268, i64 %270
%272 = load i16, i16* %271
%273 = sext i16 %272 to i32
store i32 %273, i32* %32
%274 = load i32, i32* %31
%275 = add nsw i32 %274, 1
store i32 %275, i32* %33
%276 = load i32, i32* %32
store i32 %276, i32* %34
%277 = load double*, double** %9
%278 = load double*, double** %10
%279 = load double*, double** %11
%280 = load i32, i32* %12
%281 = load i32, i32* %20
%282 = load i32, i32* %31
%283 = load i32, i32* %32
%284 = load i32, i32* %33
%285 = load i32, i32* %34
%286 = call i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @distaa3 to i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...)*)(double* %277, double* %278, double* %279, i32 %280, i32 %281, i32 %282, i32 %283, i32 %284, i32 %285)
%287 = sitofp i32 %286 to double
store double %287, double* %30
%288 = load double, double* %30
%289 = load double, double* %29
%290 = load double, double* %36
%291 = fsub double %289, %290
%292 = fcmp olt double %288, %291
br i1 %292, label %293, label %312
293: ; preds = %258
%294 = load i32, i32* %33
%295 = trunc i32 %294 to i16
%296 = load i16*, i16** %14
%297 = load i32, i32* %19
%298 = sext i32 %297 to i64
%299 = getelementptr inbounds i16, i16* %296, i64 %298
store i16 %295, i16* %299
%300 = load i32, i32* %34
%301 = trunc i32 %300 to i16
%302 = load i16*, i16** %15
%303 = load i32, i32* %19
%304 = sext i32 %303 to i64
%305 = getelementptr inbounds i16, i16* %302, i64 %304
store i16 %301, i16* %305
%306 = load double, double* %30
%307 = load double*, double** %16
%308 = load i32, i32* %19
%309 = sext i32 %308 to i64
%310 = getelementptr inbounds double, double* %307, i64 %309
store double %306, double* %310
%311 = load double, double* %30
store double %311, double* %29
store i32 1, i32* %35
br label %312
312: ; preds = %293, %258
%313 = load i32, i32* %19
%314 = load i32, i32* %28
%315 = add nsw i32 %313, %314
store i32 %315, i32* %20
%316 = load i16*, i16** %14
%317 = load i32, i32* %20
%318 = sext i32 %317 to i64
%319 = getelementptr inbounds i16, i16* %316, i64 %318
%320 = load i16, i16* %319
%321 = sext i16 %320 to i32
store i32 %321, i32* %31
%322 = load i16*, i16** %15
%323 = load i32, i32* %20
%324 = sext i32 %323 to i64
%325 = getelementptr inbounds i16, i16* %322, i64 %324
%326 = load i16, i16* %325
%327 = sext i16 %326 to i32
store i32 %327, i32* %32
%328 = load i32, i32* %31
%329 = add nsw i32 %328, 1
store i32 %329, i32* %33
%330 = load i32, i32* %32
%331 = add nsw i32 %330, 1
store i32 %331, i32* %34
%332 = load double*, double** %9
%333 = load double*, double** %10
%334 = load double*, double** %11
%335 = load i32, i32* %12
%336 = load i32, i32* %20
%337 = load i32, i32* %31
%338 = load i32, i32* %32
%339 = load i32, i32* %33
%340 = load i32, i32* %34
%341 = call i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @distaa3 to i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...)*)(double* %332, double* %333, double* %334, i32 %335, i32 %336, i32 %337, i32 %338, i32 %339, i32 %340)
%342 = sitofp i32 %341 to double
store double %342, double* %30
%343 = load double, double* %30
%344 = load double, double* %29
%345 = load double, double* %36
%346 = fsub double %344, %345
%347 = fcmp olt double %343, %346
br i1 %347, label %348, label %367
348: ; preds = %312
%349 = load i32, i32* %33
%350 = trunc i32 %349 to i16
%351 = load i16*, i16** %14
%352 = load i32, i32* %19
%353 = sext i32 %352 to i64
%354 = getelementptr inbounds i16, i16* %351, i64 %353
store i16 %350, i16* %354
%355 = load i32, i32* %34
%356 = trunc i32 %355 to i16
%357 = load i16*, i16** %15
%358 = load i32, i32* %19
%359 = sext i32 %358 to i64
%360 = getelementptr inbounds i16, i16* %357, i64 %359
store i16 %356, i16* %360
%361 = load double, double* %30
%362 = load double*, double** %16
%363 = load i32, i32* %19
%364 = sext i32 %363 to i64
%365 = getelementptr inbounds double, double* %362, i64 %364
store double %361, double* %365
%366 = load double, double* %30
store double %366, double* %29
store i32 1, i32* %35
br label %367
367: ; preds = %348, %312
%368 = load i32, i32* %19
%369 = load i32, i32* %21
%370 = add nsw i32 %368, %369
store i32 %370, i32* %20
%371 = load i16*, i16** %14
%372 = load i32, i32* %20
%373 = sext i32 %372 to i64
%374 = getelementptr inbounds i16, i16* %371, i64 %373
%375 = load i16, i16* %374
%376 = sext i16 %375 to i32
store i32 %376, i32* %31
%377 = load i16*, i16** %15
%378 = load i32, i32* %20
%379 = sext i32 %378 to i64
%380 = getelementptr inbounds i16, i16* %377, i64 %379
%381 = load i16, i16* %380
%382 = sext i16 %381 to i32
store i32 %382, i32* %32
%383 = load i32, i32* %31
store i32 %383, i32* %33
%384 = load i32, i32* %32
%385 = add nsw i32 %384, 1
store i32 %385, i32* %34
%386 = load double*, double** %9
%387 = load double*, double** %10
%388 = load double*, double** %11
%389 = load i32, i32* %12
%390 = load i32, i32* %20
%391 = load i32, i32* %31
%392 = load i32, i32* %32
%393 = load i32, i32* %33
%394 = load i32, i32* %34
%395 = call i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @distaa3 to i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...)*)(double* %386, double* %387, double* %388, i32 %389, i32 %390, i32 %391, i32 %392, i32 %393, i32 %394)
%396 = sitofp i32 %395 to double
store double %396, double* %30
%397 = load double, double* %30
%398 = load double, double* %29
%399 = load double, double* %36
%400 = fsub double %398, %399
%401 = fcmp olt double %397, %400
br i1 %401, label %402, label %421
402: ; preds = %367
%403 = load i32, i32* %33
%404 = trunc i32 %403 to i16
%405 = load i16*, i16** %14
%406 = load i32, i32* %19
%407 = sext i32 %406 to i64
%408 = getelementptr inbounds i16, i16* %405, i64 %407
store i16 %404, i16* %408
%409 = load i32, i32* %34
%410 = trunc i32 %409 to i16
%411 = load i16*, i16** %15
%412 = load i32, i32* %19
%413 = sext i32 %412 to i64
%414 = getelementptr inbounds i16, i16* %411, i64 %413
store i16 %410, i16* %414
%415 = load double, double* %30
%416 = load double*, double** %16
%417 = load i32, i32* %19
%418 = sext i32 %417 to i64
%419 = getelementptr inbounds double, double* %416, i64 %418
store double %415, double* %419
%420 = load double, double* %30
store double %420, double* %29
store i32 1, i32* %35
br label %421
421: ; preds = %402, %367
%422 = load i32, i32* %19
%423 = load i32, i32* %22
%424 = add nsw i32 %422, %423
store i32 %424, i32* %20
%425 = load i16*, i16** %14
%426 = load i32, i32* %20
%427 = sext i32 %426 to i64
%428 = getelementptr inbounds i16, i16* %425, i64 %427
%429 = load i16, i16* %428
%430 = sext i16 %429 to i32
store i32 %430, i32* %31
%431 = load i16*, i16** %15
%432 = load i32, i32* %20
%433 = sext i32 %432 to i64
%434 = getelementptr inbounds i16, i16* %431, i64 %433
%435 = load i16, i16* %434
%436 = sext i16 %435 to i32
store i32 %436, i32* %32
%437 = load i32, i32* %31
%438 = sub nsw i32 %437, 1
store i32 %438, i32* %33
%439 = load i32, i32* %32
%440 = add nsw i32 %439, 1
store i32 %440, i32* %34
%441 = load double*, double** %9
%442 = load double*, double** %10
%443 = load double*, double** %11
%444 = load i32, i32* %12
%445 = load i32, i32* %20
%446 = load i32, i32* %31
%447 = load i32, i32* %32
%448 = load i32, i32* %33
%449 = load i32, i32* %34
%450 = call i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @distaa3 to i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...)*)(double* %441, double* %442, double* %443, i32 %444, i32 %445, i32 %446, i32 %447, i32 %448, i32 %449)
%451 = sitofp i32 %450 to double
store double %451, double* %30
%452 = load double, double* %30
%453 = load double, double* %29
%454 = load double, double* %36
%455 = fsub double %453, %454
%456 = fcmp olt double %452, %455
br i1 %456, label %457, label %475
457: ; preds = %421
%458 = load i32, i32* %33
%459 = trunc i32 %458 to i16
%460 = load i16*, i16** %14
%461 = load i32, i32* %19
%462 = sext i32 %461 to i64
%463 = getelementptr inbounds i16, i16* %460, i64 %462
store i16 %459, i16* %463
%464 = load i32, i32* %34
%465 = trunc i32 %464 to i16
%466 = load i16*, i16** %15
%467 = load i32, i32* %19
%468 = sext i32 %467 to i64
%469 = getelementptr inbounds i16, i16* %466, i64 %468
store i16 %465, i16* %469
%470 = load double, double* %30
%471 = load double*, double** %16
%472 = load i32, i32* %19
%473 = sext i32 %472 to i64
%474 = getelementptr inbounds double, double* %471, i64 %473
store double %470, double* %474
store i32 1, i32* %35
br label %475
475: ; preds = %457, %421
br label %476
476: ; preds = %475, %257
%477 = load i32, i32* %17
%478 = add nsw i32 %477, 1
store i32 %478, i32* %17
%479 = load i32, i32* %19
%480 = add nsw i32 %479, 1
store i32 %480, i32* %19
br label %244
481: ; preds = %244
%482 = load double*, double** %16
%483 = load i32, i32* %19
%484 = sext i32 %483 to i64
%485 = getelementptr inbounds double, double* %482, i64 %484
%486 = load double, double* %485
store double %486, double* %29
%487 = load double, double* %29
%488 = fcmp ogt double %487, 0.000000e+00
br i1 %488, label %489, label %652
489: ; preds = %481
%490 = load i32, i32* %19
%491 = load i32, i32* %27
%492 = add nsw i32 %490, %491
store i32 %492, i32* %20
%493 = load i16*, i16** %14
%494 = load i32, i32* %20
%495 = sext i32 %494 to i64
%496 = getelementptr inbounds i16, i16* %493, i64 %495
%497 = load i16, i16* %496
%498 = sext i16 %497 to i32
store i32 %498, i32* %31
%499 = load i16*, i16** %15
%500 = load i32, i32* %20
%501 = sext i32 %500 to i64
%502 = getelementptr inbounds i16, i16* %499, i64 %501
%503 = load i16, i16* %502
%504 = sext i16 %503 to i32
store i32 %504, i32* %32
%505 = load i32, i32* %31
%506 = add nsw i32 %505, 1
store i32 %506, i32* %33
%507 = load i32, i32* %32
store i32 %507, i32* %34
%508 = load double*, double** %9
%509 = load double*, double** %10
%510 = load double*, double** %11
%511 = load i32, i32* %12
%512 = load i32, i32* %20
%513 = load i32, i32* %31
%514 = load i32, i32* %32
%515 = load i32, i32* %33
%516 = load i32, i32* %34
%517 = call i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @distaa3 to i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...)*)(double* %508, double* %509, double* %510, i32 %511, i32 %512, i32 %513, i32 %514, i32 %515, i32 %516)
%518 = sitofp i32 %517 to double
store double %518, double* %30
%519 = load double, double* %30
%520 = load double, double* %29
%521 = load double, double* %36
%522 = fsub double %520, %521
%523 = fcmp olt double %519, %522
br i1 %523, label %524, label %543
524: ; preds = %489
%525 = load i32, i32* %33
%526 = trunc i32 %525 to i16
%527 = load i16*, i16** %14
%528 = load i32, i32* %19
%529 = sext i32 %528 to i64
%530 = getelementptr inbounds i16, i16* %527, i64 %529
store i16 %526, i16* %530
%531 = load i32, i32* %34
%532 = trunc i32 %531 to i16
%533 = load i16*, i16** %15
%534 = load i32, i32* %19
%535 = sext i32 %534 to i64
%536 = getelementptr inbounds i16, i16* %533, i64 %535
store i16 %532, i16* %536
%537 = load double, double* %30
%538 = load double*, double** %16
%539 = load i32, i32* %19
%540 = sext i32 %539 to i64
%541 = getelementptr inbounds double, double* %538, i64 %540
store double %537, double* %541
%542 = load double, double* %30
store double %542, double* %29
store i32 1, i32* %35
br label %543
543: ; preds = %524, %489
%544 = load i32, i32* %19
%545 = load i32, i32* %28
%546 = add nsw i32 %544, %545
store i32 %546, i32* %20
%547 = load i16*, i16** %14
%548 = load i32, i32* %20
%549 = sext i32 %548 to i64
%550 = getelementptr inbounds i16, i16* %547, i64 %549
%551 = load i16, i16* %550
%552 = sext i16 %551 to i32
store i32 %552, i32* %31
%553 = load i16*, i16** %15
%554 = load i32, i32* %20
%555 = sext i32 %554 to i64
%556 = getelementptr inbounds i16, i16* %553, i64 %555
%557 = load i16, i16* %556
%558 = sext i16 %557 to i32
store i32 %558, i32* %32
%559 = load i32, i32* %31
%560 = add nsw i32 %559, 1
store i32 %560, i32* %33
%561 = load i32, i32* %32
%562 = add nsw i32 %561, 1
store i32 %562, i32* %34
%563 = load double*, double** %9
%564 = load double*, double** %10
%565 = load double*, double** %11
%566 = load i32, i32* %12
%567 = load i32, i32* %20
%568 = load i32, i32* %31
%569 = load i32, i32* %32
%570 = load i32, i32* %33
%571 = load i32, i32* %34
%572 = call i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @distaa3 to i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...)*)(double* %563, double* %564, double* %565, i32 %566, i32 %567, i32 %568, i32 %569, i32 %570, i32 %571)
%573 = sitofp i32 %572 to double
store double %573, double* %30
%574 = load double, double* %30
%575 = load double, double* %29
%576 = load double, double* %36
%577 = fsub double %575, %576
%578 = fcmp olt double %574, %577
br i1 %578, label %579, label %598
579: ; preds = %543
%580 = load i32, i32* %33
%581 = trunc i32 %580 to i16
%582 = load i16*, i16** %14
%583 = load i32, i32* %19
%584 = sext i32 %583 to i64
%585 = getelementptr inbounds i16, i16* %582, i64 %584
store i16 %581, i16* %585
%586 = load i32, i32* %34
%587 = trunc i32 %586 to i16
%588 = load i16*, i16** %15
%589 = load i32, i32* %19
%590 = sext i32 %589 to i64
%591 = getelementptr inbounds i16, i16* %588, i64 %590
store i16 %587, i16* %591
%592 = load double, double* %30
%593 = load double*, double** %16
%594 = load i32, i32* %19
%595 = sext i32 %594 to i64
%596 = getelementptr inbounds double, double* %593, i64 %595
store double %592, double* %596
%597 = load double, double* %30
store double %597, double* %29
store i32 1, i32* %35
br label %598
598: ; preds = %579, %543
%599 = load i32, i32* %19
%600 = load i32, i32* %21
%601 = add nsw i32 %599, %600
store i32 %601, i32* %20
%602 = load i16*, i16** %14
%603 = load i32, i32* %20
%604 = sext i32 %603 to i64
%605 = getelementptr inbounds i16, i16* %602, i64 %604
%606 = load i16, i16* %605
%607 = sext i16 %606 to i32
store i32 %607, i32* %31
%608 = load i16*, i16** %15
%609 = load i32, i32* %20
%610 = sext i32 %609 to i64
%611 = getelementptr inbounds i16, i16* %608, i64 %610
%612 = load i16, i16* %611
%613 = sext i16 %612 to i32
store i32 %613, i32* %32
%614 = load i32, i32* %31
store i32 %614, i32* %33
%615 = load i32, i32* %32
%616 = add nsw i32 %615, 1
store i32 %616, i32* %34
%617 = load double*, double** %9
%618 = load double*, double** %10
%619 = load double*, double** %11
%620 = load i32, i32* %12
%621 = load i32, i32* %20
%622 = load i32, i32* %31
%623 = load i32, i32* %32
%624 = load i32, i32* %33
%625 = load i32, i32* %34
%626 = call i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @distaa3 to i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...)*)(double* %617, double* %618, double* %619, i32 %620, i32 %621, i32 %622, i32 %623, i32 %624, i32 %625)
%627 = sitofp i32 %626 to double
store double %627, double* %30
%628 = load double, double* %30
%629 = load double, double* %29
%630 = load double, double* %36
%631 = fsub double %629, %630
%632 = fcmp olt double %628, %631
br i1 %632, label %633, label %651
633: ; preds = %598
%634 = load i32, i32* %33
%635 = trunc i32 %634 to i16
%636 = load i16*, i16** %14
%637 = load i32, i32* %19
%638 = sext i32 %637 to i64
%639 = getelementptr inbounds i16, i16* %636, i64 %638
store i16 %635, i16* %639
%640 = load i32, i32* %34
%641 = trunc i32 %640 to i16
%642 = load i16*, i16** %15
%643 = load i32, i32* %19
%644 = sext i32 %643 to i64
%645 = getelementptr inbounds i16, i16* %642, i64 %644
store i16 %641, i16* %645
%646 = load double, double* %30
%647 = load double*, double** %16
%648 = load i32, i32* %19
%649 = sext i32 %648 to i64
%650 = getelementptr inbounds double, double* %647, i64 %649
store double %646, double* %650
store i32 1, i32* %35
br label %651
651: ; preds = %633, %598
br label %652
652: ; preds = %651, %481
%653 = load i32, i32* %18
%654 = load i32, i32* %12
%655 = mul nsw i32 %653, %654
%656 = load i32, i32* %12
%657 = add nsw i32 %655, %656
%658 = sub nsw i32 %657, 2
store i32 %658, i32* %19
%659 = load i32, i32* %12
%660 = sub nsw i32 %659, 2
store i32 %660, i32* %17
br label %661
661: ; preds = %727, %652
%662 = load i32, i32* %17
%663 = icmp sge i32 %662, 0
br i1 %663, label %664, label %732
664: ; preds = %661
%665 = load double*, double** %16
%666 = load i32, i32* %19
%667 = sext i32 %666 to i64
%668 = getelementptr inbounds double, double* %665, i64 %667
%669 = load double, double* %668
store double %669, double* %29
%670 = load double, double* %29
%671 = fcmp ole double %670, 0.000000e+00
br i1 %671, label %672, label %673
672: ; preds = %664
br label %727
673: ; preds = %664
%674 = load i32, i32* %19
%675 = load i32, i32* %23
%676 = add nsw i32 %674, %675
store i32 %676, i32* %20
%677 = load i16*, i16** %14
%678 = load i32, i32* %20
%679 = sext i32 %678 to i64
%680 = getelementptr inbounds i16, i16* %677, i64 %679
%681 = load i16, i16* %680
%682 = sext i16 %681 to i32
store i32 %682, i32* %31
%683 = load i16*, i16** %15
%684 = load i32, i32* %20
%685 = sext i32 %684 to i64
%686 = getelementptr inbounds i16, i16* %683, i64 %685
%687 = load i16, i16* %686
%688 = sext i16 %687 to i32
store i32 %688, i32* %32
%689 = load i32, i32* %31
%690 = sub nsw i32 %689, 1
store i32 %690, i32* %33
%691 = load i32, i32* %32
store i32 %691, i32* %34
%692 = load double*, double** %9
%693 = load double*, double** %10
%694 = load double*, double** %11
%695 = load i32, i32* %12
%696 = load i32, i32* %20
%697 = load i32, i32* %31
%698 = load i32, i32* %32
%699 = load i32, i32* %33
%700 = load i32, i32* %34
%701 = call i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @distaa3 to i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...)*)(double* %692, double* %693, double* %694, i32 %695, i32 %696, i32 %697, i32 %698, i32 %699, i32 %700)
%702 = sitofp i32 %701 to double
store double %702, double* %30
%703 = load double, double* %30
%704 = load double, double* %29
%705 = load double, double* %36
%706 = fsub double %704, %705
%707 = fcmp olt double %703, %706
br i1 %707, label %708, label %726
708: ; preds = %673
%709 = load i32, i32* %33
%710 = trunc i32 %709 to i16
%711 = load i16*, i16** %14
%712 = load i32, i32* %19
%713 = sext i32 %712 to i64
%714 = getelementptr inbounds i16, i16* %711, i64 %713
store i16 %710, i16* %714
%715 = load i32, i32* %34
%716 = trunc i32 %715 to i16
%717 = load i16*, i16** %15
%718 = load i32, i32* %19
%719 = sext i32 %718 to i64
%720 = getelementptr inbounds i16, i16* %717, i64 %719
store i16 %716, i16* %720
%721 = load double, double* %30
%722 = load double*, double** %16
%723 = load i32, i32* %19
%724 = sext i32 %723 to i64
%725 = getelementptr inbounds double, double* %722, i64 %724
store double %721, double* %725
store i32 1, i32* %35
br label %726
726: ; preds = %708, %673
br label %727
727: ; preds = %726, %672
%728 = load i32, i32* %17
%729 = add nsw i32 %728, -1
store i32 %729, i32* %17
%730 = load i32, i32* %19
%731 = add nsw i32 %730, -1
store i32 %731, i32* %19
br label %661
732: ; preds = %661
br label %733
733: ; preds = %732
%734 = load i32, i32* %18
%735 = add nsw i32 %734, 1
store i32 %735, i32* %18
br label %117
736: ; preds = %117
%737 = load i32, i32* %13
%738 = sub nsw i32 %737, 2
store i32 %738, i32* %18
br label %739
739: ; preds = %1354, %736
%740 = load i32, i32* %18
%741 = icmp sge i32 %740, 0
br i1 %741, label %742, label %1357
742: ; preds = %739
%743 = load i32, i32* %18
%744 = load i32, i32* %12
%745 = mul nsw i32 %743, %744
%746 = load i32, i32* %12
%747 = add nsw i32 %745, %746
%748 = sub nsw i32 %747, 1
store i32 %748, i32* %19
%749 = load double*, double** %16
%750 = load i32, i32* %19
%751 = sext i32 %750 to i64
%752 = getelementptr inbounds double, double* %749, i64 %751
%753 = load double, double* %752
store double %753, double* %29
%754 = load double, double* %29
%755 = fcmp ogt double %754, 0.000000e+00
br i1 %755, label %756, label %865
756: ; preds = %742
%757 = load i32, i32* %19
%758 = load i32, i32* %25
%759 = add nsw i32 %757, %758
store i32 %759, i32* %20
%760 = load i16*, i16** %14
%761 = load i32, i32* %20
%762 = sext i32 %761 to i64
%763 = getelementptr inbounds i16, i16* %760, i64 %762
%764 = load i16, i16* %763
%765 = sext i16 %764 to i32
store i32 %765, i32* %31
%766 = load i16*, i16** %15
%767 = load i32, i32* %20
%768 = sext i32 %767 to i64
%769 = getelementptr inbounds i16, i16* %766, i64 %768
%770 = load i16, i16* %769
%771 = sext i16 %770 to i32
store i32 %771, i32* %32
%772 = load i32, i32* %31
store i32 %772, i32* %33
%773 = load i32, i32* %32
%774 = sub nsw i32 %773, 1
store i32 %774, i32* %34
%775 = load double*, double** %9
%776 = load double*, double** %10
%777 = load double*, double** %11
%778 = load i32, i32* %12
%779 = load i32, i32* %20
%780 = load i32, i32* %31
%781 = load i32, i32* %32
%782 = load i32, i32* %33
%783 = load i32, i32* %34
%784 = call i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @distaa3 to i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...)*)(double* %775, double* %776, double* %777, i32 %778, i32 %779, i32 %780, i32 %781, i32 %782, i32 %783)
%785 = sitofp i32 %784 to double
store double %785, double* %30
%786 = load double, double* %30
%787 = load double, double* %29
%788 = load double, double* %36
%789 = fsub double %787, %788
%790 = fcmp olt double %786, %789
br i1 %790, label %791, label %810
791: ; preds = %756
%792 = load i32, i32* %33
%793 = trunc i32 %792 to i16
%794 = load i16*, i16** %14
%795 = load i32, i32* %19
%796 = sext i32 %795 to i64
%797 = getelementptr inbounds i16, i16* %794, i64 %796
store i16 %793, i16* %797
%798 = load i32, i32* %34
%799 = trunc i32 %798 to i16
%800 = load i16*, i16** %15
%801 = load i32, i32* %19
%802 = sext i32 %801 to i64
%803 = getelementptr inbounds i16, i16* %800, i64 %802
store i16 %799, i16* %803
%804 = load double, double* %30
%805 = load double*, double** %16
%806 = load i32, i32* %19
%807 = sext i32 %806 to i64
%808 = getelementptr inbounds double, double* %805, i64 %807
store double %804, double* %808
%809 = load double, double* %30
store double %809, double* %29
store i32 1, i32* %35
br label %810
810: ; preds = %791, %756
%811 = load i32, i32* %19
%812 = load i32, i32* %26
%813 = add nsw i32 %811, %812
store i32 %813, i32* %20
%814 = load i16*, i16** %14
%815 = load i32, i32* %20
%816 = sext i32 %815 to i64
%817 = getelementptr inbounds i16, i16* %814, i64 %816
%818 = load i16, i16* %817
%819 = sext i16 %818 to i32
store i32 %819, i32* %31
%820 = load i16*, i16** %15
%821 = load i32, i32* %20
%822 = sext i32 %821 to i64
%823 = getelementptr inbounds i16, i16* %820, i64 %822
%824 = load i16, i16* %823
%825 = sext i16 %824 to i32
store i32 %825, i32* %32
%826 = load i32, i32* %31
%827 = add nsw i32 %826, 1
store i32 %827, i32* %33
%828 = load i32, i32* %32
%829 = sub nsw i32 %828, 1
store i32 %829, i32* %34
%830 = load double*, double** %9
%831 = load double*, double** %10
%832 = load double*, double** %11
%833 = load i32, i32* %12
%834 = load i32, i32* %20
%835 = load i32, i32* %31
%836 = load i32, i32* %32
%837 = load i32, i32* %33
%838 = load i32, i32* %34
%839 = call i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @distaa3 to i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...)*)(double* %830, double* %831, double* %832, i32 %833, i32 %834, i32 %835, i32 %836, i32 %837, i32 %838)
%840 = sitofp i32 %839 to double
store double %840, double* %30
%841 = load double, double* %30
%842 = load double, double* %29
%843 = load double, double* %36
%844 = fsub double %842, %843
%845 = fcmp olt double %841, %844
br i1 %845, label %846, label %864
846: ; preds = %810
%847 = load i32, i32* %33
%848 = trunc i32 %847 to i16
%849 = load i16*, i16** %14
%850 = load i32, i32* %19
%851 = sext i32 %850 to i64
%852 = getelementptr inbounds i16, i16* %849, i64 %851
store i16 %848, i16* %852
%853 = load i32, i32* %34
%854 = trunc i32 %853 to i16
%855 = load i16*, i16** %15
%856 = load i32, i32* %19
%857 = sext i32 %856 to i64
%858 = getelementptr inbounds i16, i16* %855, i64 %857
store i16 %854, i16* %858
%859 = load double, double* %30
%860 = load double*, double** %16
%861 = load i32, i32* %19
%862 = sext i32 %861 to i64
%863 = getelementptr inbounds double, double* %860, i64 %862
store double %859, double* %863
store i32 1, i32* %35
br label %864
864: ; preds = %846, %810
br label %865
865: ; preds = %864, %742
%866 = load i32, i32* %19
%867 = add nsw i32 %866, -1
store i32 %867, i32* %19
%868 = load i32, i32* %12
%869 = sub nsw i32 %868, 2
store i32 %869, i32* %17
br label %870
870: ; preds = %1100, %865
%871 = load i32, i32* %17
%872 = icmp sgt i32 %871, 0
br i1 %872, label %873, label %1105
873: ; preds = %870
%874 = load double*, double** %16
%875 = load i32, i32* %19
%876 = sext i32 %875 to i64
%877 = getelementptr inbounds double, double* %874, i64 %876
%878 = load double, double* %877
store double %878, double* %29
%879 = load double, double* %29
%880 = fcmp ole double %879, 0.000000e+00
br i1 %880, label %881, label %882
881: ; preds = %873
br label %1100
882: ; preds = %873
%883 = load i32, i32* %19
%884 = load i32, i32* %23
%885 = add nsw i32 %883, %884
store i32 %885, i32* %20
%886 = load i16*, i16** %14
%887 = load i32, i32* %20
%888 = sext i32 %887 to i64
%889 = getelementptr inbounds i16, i16* %886, i64 %888
%890 = load i16, i16* %889
%891 = sext i16 %890 to i32
store i32 %891, i32* %31
%892 = load i16*, i16** %15
%893 = load i32, i32* %20
%894 = sext i32 %893 to i64
%895 = getelementptr inbounds i16, i16* %892, i64 %894
%896 = load i16, i16* %895
%897 = sext i16 %896 to i32
store i32 %897, i32* %32
%898 = load i32, i32* %31
%899 = sub nsw i32 %898, 1
store i32 %899, i32* %33
%900 = load i32, i32* %32
store i32 %900, i32* %34
%901 = load double*, double** %9
%902 = load double*, double** %10
%903 = load double*, double** %11
%904 = load i32, i32* %12
%905 = load i32, i32* %20
%906 = load i32, i32* %31
%907 = load i32, i32* %32
%908 = load i32, i32* %33
%909 = load i32, i32* %34
%910 = call i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @distaa3 to i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...)*)(double* %901, double* %902, double* %903, i32 %904, i32 %905, i32 %906, i32 %907, i32 %908, i32 %909)
%911 = sitofp i32 %910 to double
store double %911, double* %30
%912 = load double, double* %30
%913 = load double, double* %29
%914 = load double, double* %36
%915 = fsub double %913, %914
%916 = fcmp olt double %912, %915
br i1 %916, label %917, label %936
917: ; preds = %882
%918 = load i32, i32* %33
%919 = trunc i32 %918 to i16
%920 = load i16*, i16** %14
%921 = load i32, i32* %19
%922 = sext i32 %921 to i64
%923 = getelementptr inbounds i16, i16* %920, i64 %922
store i16 %919, i16* %923
%924 = load i32, i32* %34
%925 = trunc i32 %924 to i16
%926 = load i16*, i16** %15
%927 = load i32, i32* %19
%928 = sext i32 %927 to i64
%929 = getelementptr inbounds i16, i16* %926, i64 %928
store i16 %925, i16* %929
%930 = load double, double* %30
%931 = load double*, double** %16
%932 = load i32, i32* %19
%933 = sext i32 %932 to i64
%934 = getelementptr inbounds double, double* %931, i64 %933
store double %930, double* %934
%935 = load double, double* %30
store double %935, double* %29
store i32 1, i32* %35
br label %936
936: ; preds = %917, %882
%937 = load i32, i32* %19
%938 = load i32, i32* %24
%939 = add nsw i32 %937, %938
store i32 %939, i32* %20
%940 = load i16*, i16** %14
%941 = load i32, i32* %20
%942 = sext i32 %941 to i64
%943 = getelementptr inbounds i16, i16* %940, i64 %942
%944 = load i16, i16* %943
%945 = sext i16 %944 to i32
store i32 %945, i32* %31
%946 = load i16*, i16** %15
%947 = load i32, i32* %20
%948 = sext i32 %947 to i64
%949 = getelementptr inbounds i16, i16* %946, i64 %948
%950 = load i16, i16* %949
%951 = sext i16 %950 to i32
store i32 %951, i32* %32
%952 = load i32, i32* %31
%953 = sub nsw i32 %952, 1
store i32 %953, i32* %33
%954 = load i32, i32* %32
%955 = sub nsw i32 %954, 1
store i32 %955, i32* %34
%956 = load double*, double** %9
%957 = load double*, double** %10
%958 = load double*, double** %11
%959 = load i32, i32* %12
%960 = load i32, i32* %20
%961 = load i32, i32* %31
%962 = load i32, i32* %32
%963 = load i32, i32* %33
%964 = load i32, i32* %34
%965 = call i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @distaa3 to i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...)*)(double* %956, double* %957, double* %958, i32 %959, i32 %960, i32 %961, i32 %962, i32 %963, i32 %964)
%966 = sitofp i32 %965 to double
store double %966, double* %30
%967 = load double, double* %30
%968 = load double, double* %29
%969 = load double, double* %36
%970 = fsub double %968, %969
%971 = fcmp olt double %967, %970
br i1 %971, label %972, label %991
972: ; preds = %936
%973 = load i32, i32* %33
%974 = trunc i32 %973 to i16
%975 = load i16*, i16** %14
%976 = load i32, i32* %19
%977 = sext i32 %976 to i64
%978 = getelementptr inbounds i16, i16* %975, i64 %977
store i16 %974, i16* %978
%979 = load i32, i32* %34
%980 = trunc i32 %979 to i16
%981 = load i16*, i16** %15
%982 = load i32, i32* %19
%983 = sext i32 %982 to i64
%984 = getelementptr inbounds i16, i16* %981, i64 %983
store i16 %980, i16* %984
%985 = load double, double* %30
%986 = load double*, double** %16
%987 = load i32, i32* %19
%988 = sext i32 %987 to i64
%989 = getelementptr inbounds double, double* %986, i64 %988
store double %985, double* %989
%990 = load double, double* %30
store double %990, double* %29
store i32 1, i32* %35
br label %991
991: ; preds = %972, %936
%992 = load i32, i32* %19
%993 = load i32, i32* %25
%994 = add nsw i32 %992, %993
store i32 %994, i32* %20
%995 = load i16*, i16** %14
%996 = load i32, i32* %20
%997 = sext i32 %996 to i64
%998 = getelementptr inbounds i16, i16* %995, i64 %997
%999 = load i16, i16* %998
%1000 = sext i16 %999 to i32
store i32 %1000, i32* %31
%1001 = load i16*, i16** %15
%1002 = load i32, i32* %20
%1003 = sext i32 %1002 to i64
%1004 = getelementptr inbounds i16, i16* %1001, i64 %1003
%1005 = load i16, i16* %1004
%1006 = sext i16 %1005 to i32
store i32 %1006, i32* %32
%1007 = load i32, i32* %31
store i32 %1007, i32* %33
%1008 = load i32, i32* %32
%1009 = sub nsw i32 %1008, 1
store i32 %1009, i32* %34
%1010 = load double*, double** %9
%1011 = load double*, double** %10
%1012 = load double*, double** %11
%1013 = load i32, i32* %12
%1014 = load i32, i32* %20
%1015 = load i32, i32* %31
%1016 = load i32, i32* %32
%1017 = load i32, i32* %33
%1018 = load i32, i32* %34
%1019 = call i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @distaa3 to i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...)*)(double* %1010, double* %1011, double* %1012, i32 %1013, i32 %1014, i32 %1015, i32 %1016, i32 %1017, i32 %1018)
%1020 = sitofp i32 %1019 to double
store double %1020, double* %30
%1021 = load double, double* %30
%1022 = load double, double* %29
%1023 = load double, double* %36
%1024 = fsub double %1022, %1023
%1025 = fcmp olt double %1021, %1024
br i1 %1025, label %1026, label %1045
1026: ; preds = %991
%1027 = load i32, i32* %33
%1028 = trunc i32 %1027 to i16
%1029 = load i16*, i16** %14
%1030 = load i32, i32* %19
%1031 = sext i32 %1030 to i64
%1032 = getelementptr inbounds i16, i16* %1029, i64 %1031
store i16 %1028, i16* %1032
%1033 = load i32, i32* %34
%1034 = trunc i32 %1033 to i16
%1035 = load i16*, i16** %15
%1036 = load i32, i32* %19
%1037 = sext i32 %1036 to i64
%1038 = getelementptr inbounds i16, i16* %1035, i64 %1037
store i16 %1034, i16* %1038
%1039 = load double, double* %30
%1040 = load double*, double** %16
%1041 = load i32, i32* %19
%1042 = sext i32 %1041 to i64
%1043 = getelementptr inbounds double, double* %1040, i64 %1042
store double %1039, double* %1043
%1044 = load double, double* %30
store double %1044, double* %29
store i32 1, i32* %35
br label %1045
1045: ; preds = %1026, %991
%1046 = load i32, i32* %19
%1047 = load i32, i32* %26
%1048 = add nsw i32 %1046, %1047
store i32 %1048, i32* %20
%1049 = load i16*, i16** %14
%1050 = load i32, i32* %20
%1051 = sext i32 %1050 to i64
%1052 = getelementptr inbounds i16, i16* %1049, i64 %1051
%1053 = load i16, i16* %1052
%1054 = sext i16 %1053 to i32
store i32 %1054, i32* %31
%1055 = load i16*, i16** %15
%1056 = load i32, i32* %20
%1057 = sext i32 %1056 to i64
%1058 = getelementptr inbounds i16, i16* %1055, i64 %1057
%1059 = load i16, i16* %1058
%1060 = sext i16 %1059 to i32
store i32 %1060, i32* %32
%1061 = load i32, i32* %31
%1062 = add nsw i32 %1061, 1
store i32 %1062, i32* %33
%1063 = load i32, i32* %32
%1064 = sub nsw i32 %1063, 1
store i32 %1064, i32* %34
%1065 = load double*, double** %9
%1066 = load double*, double** %10
%1067 = load double*, double** %11
%1068 = load i32, i32* %12
%1069 = load i32, i32* %20
%1070 = load i32, i32* %31
%1071 = load i32, i32* %32
%1072 = load i32, i32* %33
%1073 = load i32, i32* %34
%1074 = call i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @distaa3 to i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...)*)(double* %1065, double* %1066, double* %1067, i32 %1068, i32 %1069, i32 %1070, i32 %1071, i32 %1072, i32 %1073)
%1075 = sitofp i32 %1074 to double
store double %1075, double* %30
%1076 = load double, double* %30
%1077 = load double, double* %29
%1078 = load double, double* %36
%1079 = fsub double %1077, %1078
%1080 = fcmp olt double %1076, %1079
br i1 %1080, label %1081, label %1099
1081: ; preds = %1045
%1082 = load i32, i32* %33
%1083 = trunc i32 %1082 to i16
%1084 = load i16*, i16** %14
%1085 = load i32, i32* %19
%1086 = sext i32 %1085 to i64
%1087 = getelementptr inbounds i16, i16* %1084, i64 %1086
store i16 %1083, i16* %1087
%1088 = load i32, i32* %34
%1089 = trunc i32 %1088 to i16
%1090 = load i16*, i16** %15
%1091 = load i32, i32* %19
%1092 = sext i32 %1091 to i64
%1093 = getelementptr inbounds i16, i16* %1090, i64 %1092
store i16 %1089, i16* %1093
%1094 = load double, double* %30
%1095 = load double*, double** %16
%1096 = load i32, i32* %19
%1097 = sext i32 %1096 to i64
%1098 = getelementptr inbounds double, double* %1095, i64 %1097
store double %1094, double* %1098
store i32 1, i32* %35
br label %1099
1099: ; preds = %1081, %1045
br label %1100
1100: ; preds = %1099, %881
%1101 = load i32, i32* %17
%1102 = add nsw i32 %1101, -1
store i32 %1102, i32* %17
%1103 = load i32, i32* %19
%1104 = add nsw i32 %1103, -1
store i32 %1104, i32* %19
br label %870
1105: ; preds = %870
%1106 = load double*, double** %16
%1107 = load i32, i32* %19
%1108 = sext i32 %1107 to i64
%1109 = getelementptr inbounds double, double* %1106, i64 %1108
%1110 = load double, double* %1109
store double %1110, double* %29
%1111 = load double, double* %29
%1112 = fcmp ogt double %1111, 0.000000e+00
br i1 %1112, label %1113, label %1276
1113: ; preds = %1105
%1114 = load i32, i32* %19
%1115 = load i32, i32* %23
%1116 = add nsw i32 %1114, %1115
store i32 %1116, i32* %20
%1117 = load i16*, i16** %14
%1118 = load i32, i32* %20
%1119 = sext i32 %1118 to i64
%1120 = getelementptr inbounds i16, i16* %1117, i64 %1119
%1121 = load i16, i16* %1120
%1122 = sext i16 %1121 to i32
store i32 %1122, i32* %31
%1123 = load i16*, i16** %15
%1124 = load i32, i32* %20
%1125 = sext i32 %1124 to i64
%1126 = getelementptr inbounds i16, i16* %1123, i64 %1125
%1127 = load i16, i16* %1126
%1128 = sext i16 %1127 to i32
store i32 %1128, i32* %32
%1129 = load i32, i32* %31
%1130 = sub nsw i32 %1129, 1
store i32 %1130, i32* %33
%1131 = load i32, i32* %32
store i32 %1131, i32* %34
%1132 = load double*, double** %9
%1133 = load double*, double** %10
%1134 = load double*, double** %11
%1135 = load i32, i32* %12
%1136 = load i32, i32* %20
%1137 = load i32, i32* %31
%1138 = load i32, i32* %32
%1139 = load i32, i32* %33
%1140 = load i32, i32* %34
%1141 = call i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @distaa3 to i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...)*)(double* %1132, double* %1133, double* %1134, i32 %1135, i32 %1136, i32 %1137, i32 %1138, i32 %1139, i32 %1140)
%1142 = sitofp i32 %1141 to double
store double %1142, double* %30
%1143 = load double, double* %30
%1144 = load double, double* %29
%1145 = load double, double* %36
%1146 = fsub double %1144, %1145
%1147 = fcmp olt double %1143, %1146
br i1 %1147, label %1148, label %1167
1148: ; preds = %1113
%1149 = load i32, i32* %33
%1150 = trunc i32 %1149 to i16
%1151 = load i16*, i16** %14
%1152 = load i32, i32* %19
%1153 = sext i32 %1152 to i64
%1154 = getelementptr inbounds i16, i16* %1151, i64 %1153
store i16 %1150, i16* %1154
%1155 = load i32, i32* %34
%1156 = trunc i32 %1155 to i16
%1157 = load i16*, i16** %15
%1158 = load i32, i32* %19
%1159 = sext i32 %1158 to i64
%1160 = getelementptr inbounds i16, i16* %1157, i64 %1159
store i16 %1156, i16* %1160
%1161 = load double, double* %30
%1162 = load double*, double** %16
%1163 = load i32, i32* %19
%1164 = sext i32 %1163 to i64
%1165 = getelementptr inbounds double, double* %1162, i64 %1164
store double %1161, double* %1165
%1166 = load double, double* %30
store double %1166, double* %29
store i32 1, i32* %35
br label %1167
1167: ; preds = %1148, %1113
%1168 = load i32, i32* %19
%1169 = load i32, i32* %24
%1170 = add nsw i32 %1168, %1169
store i32 %1170, i32* %20
%1171 = load i16*, i16** %14
%1172 = load i32, i32* %20
%1173 = sext i32 %1172 to i64
%1174 = getelementptr inbounds i16, i16* %1171, i64 %1173
%1175 = load i16, i16* %1174
%1176 = sext i16 %1175 to i32
store i32 %1176, i32* %31
%1177 = load i16*, i16** %15
%1178 = load i32, i32* %20
%1179 = sext i32 %1178 to i64
%1180 = getelementptr inbounds i16, i16* %1177, i64 %1179
%1181 = load i16, i16* %1180
%1182 = sext i16 %1181 to i32
store i32 %1182, i32* %32
%1183 = load i32, i32* %31
%1184 = sub nsw i32 %1183, 1
store i32 %1184, i32* %33
%1185 = load i32, i32* %32
%1186 = sub nsw i32 %1185, 1
store i32 %1186, i32* %34
%1187 = load double*, double** %9
%1188 = load double*, double** %10
%1189 = load double*, double** %11
%1190 = load i32, i32* %12
%1191 = load i32, i32* %20
%1192 = load i32, i32* %31
%1193 = load i32, i32* %32
%1194 = load i32, i32* %33
%1195 = load i32, i32* %34
%1196 = call i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @distaa3 to i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...)*)(double* %1187, double* %1188, double* %1189, i32 %1190, i32 %1191, i32 %1192, i32 %1193, i32 %1194, i32 %1195)
%1197 = sitofp i32 %1196 to double
store double %1197, double* %30
%1198 = load double, double* %30
%1199 = load double, double* %29
%1200 = load double, double* %36
%1201 = fsub double %1199, %1200
%1202 = fcmp olt double %1198, %1201
br i1 %1202, label %1203, label %1222
1203: ; preds = %1167
%1204 = load i32, i32* %33
%1205 = trunc i32 %1204 to i16
%1206 = load i16*, i16** %14
%1207 = load i32, i32* %19
%1208 = sext i32 %1207 to i64
%1209 = getelementptr inbounds i16, i16* %1206, i64 %1208
store i16 %1205, i16* %1209
%1210 = load i32, i32* %34
%1211 = trunc i32 %1210 to i16
%1212 = load i16*, i16** %15
%1213 = load i32, i32* %19
%1214 = sext i32 %1213 to i64
%1215 = getelementptr inbounds i16, i16* %1212, i64 %1214
store i16 %1211, i16* %1215
%1216 = load double, double* %30
%1217 = load double*, double** %16
%1218 = load i32, i32* %19
%1219 = sext i32 %1218 to i64
%1220 = getelementptr inbounds double, double* %1217, i64 %1219
store double %1216, double* %1220
%1221 = load double, double* %30
store double %1221, double* %29
store i32 1, i32* %35
br label %1222
1222: ; preds = %1203, %1167
%1223 = load i32, i32* %19
%1224 = load i32, i32* %25
%1225 = add nsw i32 %1223, %1224
store i32 %1225, i32* %20
%1226 = load i16*, i16** %14
%1227 = load i32, i32* %20
%1228 = sext i32 %1227 to i64
%1229 = getelementptr inbounds i16, i16* %1226, i64 %1228
%1230 = load i16, i16* %1229
%1231 = sext i16 %1230 to i32
store i32 %1231, i32* %31
%1232 = load i16*, i16** %15
%1233 = load i32, i32* %20
%1234 = sext i32 %1233 to i64
%1235 = getelementptr inbounds i16, i16* %1232, i64 %1234
%1236 = load i16, i16* %1235
%1237 = sext i16 %1236 to i32
store i32 %1237, i32* %32
%1238 = load i32, i32* %31
store i32 %1238, i32* %33
%1239 = load i32, i32* %32
%1240 = sub nsw i32 %1239, 1
store i32 %1240, i32* %34
%1241 = load double*, double** %9
%1242 = load double*, double** %10
%1243 = load double*, double** %11
%1244 = load i32, i32* %12
%1245 = load i32, i32* %20
%1246 = load i32, i32* %31
%1247 = load i32, i32* %32
%1248 = load i32, i32* %33
%1249 = load i32, i32* %34
%1250 = call i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @distaa3 to i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...)*)(double* %1241, double* %1242, double* %1243, i32 %1244, i32 %1245, i32 %1246, i32 %1247, i32 %1248, i32 %1249)
%1251 = sitofp i32 %1250 to double
store double %1251, double* %30
%1252 = load double, double* %30
%1253 = load double, double* %29
%1254 = load double, double* %36
%1255 = fsub double %1253, %1254
%1256 = fcmp olt double %1252, %1255
br i1 %1256, label %1257, label %1275
1257: ; preds = %1222
%1258 = load i32, i32* %33
%1259 = trunc i32 %1258 to i16
%1260 = load i16*, i16** %14
%1261 = load i32, i32* %19
%1262 = sext i32 %1261 to i64
%1263 = getelementptr inbounds i16, i16* %1260, i64 %1262
store i16 %1259, i16* %1263
%1264 = load i32, i32* %34
%1265 = trunc i32 %1264 to i16
%1266 = load i16*, i16** %15
%1267 = load i32, i32* %19
%1268 = sext i32 %1267 to i64
%1269 = getelementptr inbounds i16, i16* %1266, i64 %1268
store i16 %1265, i16* %1269
%1270 = load double, double* %30
%1271 = load double*, double** %16
%1272 = load i32, i32* %19
%1273 = sext i32 %1272 to i64
%1274 = getelementptr inbounds double, double* %1271, i64 %1273
store double %1270, double* %1274
store i32 1, i32* %35
br label %1275
1275: ; preds = %1257, %1222
br label %1276
1276: ; preds = %1275, %1105
%1277 = load i32, i32* %18
%1278 = load i32, i32* %12
%1279 = mul nsw i32 %1277, %1278
%1280 = add nsw i32 %1279, 1
store i32 %1280, i32* %19
store i32 1, i32* %17
br label %1281
1281: ; preds = %1348, %1276
%1282 = load i32, i32* %17
%1283 = load i32, i32* %12
%1284 = icmp slt i32 %1282, %1283
br i1 %1284, label %1285, label %1353
1285: ; preds = %1281
%1286 = load double*, double** %16
%1287 = load i32, i32* %19
%1288 = sext i32 %1287 to i64
%1289 = getelementptr inbounds double, double* %1286, i64 %1288
%1290 = load double, double* %1289
store double %1290, double* %29
%1291 = load double, double* %29
%1292 = fcmp ole double %1291, 0.000000e+00
br i1 %1292, label %1293, label %1294
1293: ; preds = %1285
br label %1348
1294: ; preds = %1285
%1295 = load i32, i32* %19
%1296 = load i32, i32* %27
%1297 = add nsw i32 %1295, %1296
store i32 %1297, i32* %20
%1298 = load i16*, i16** %14
%1299 = load i32, i32* %20
%1300 = sext i32 %1299 to i64
%1301 = getelementptr inbounds i16, i16* %1298, i64 %1300
%1302 = load i16, i16* %1301
%1303 = sext i16 %1302 to i32
store i32 %1303, i32* %31
%1304 = load i16*, i16** %15
%1305 = load i32, i32* %20
%1306 = sext i32 %1305 to i64
%1307 = getelementptr inbounds i16, i16* %1304, i64 %1306
%1308 = load i16, i16* %1307
%1309 = sext i16 %1308 to i32
store i32 %1309, i32* %32
%1310 = load i32, i32* %31
%1311 = add nsw i32 %1310, 1
store i32 %1311, i32* %33
%1312 = load i32, i32* %32
store i32 %1312, i32* %34
%1313 = load double*, double** %9
%1314 = load double*, double** %10
%1315 = load double*, double** %11
%1316 = load i32, i32* %12
%1317 = load i32, i32* %20
%1318 = load i32, i32* %31
%1319 = load i32, i32* %32
%1320 = load i32, i32* %33
%1321 = load i32, i32* %34
%1322 = call i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @distaa3 to i32 (double*, double*, double*, i32, i32, i32, i32, i32, i32, ...)*)(double* %1313, double* %1314, double* %1315, i32 %1316, i32 %1317, i32 %1318, i32 %1319, i32 %1320, i32 %1321)
%1323 = sitofp i32 %1322 to double
store double %1323, double* %30
%1324 = load double, double* %30
%1325 = load double, double* %29
%1326 = load double, double* %36
%1327 = fsub double %1325, %1326
%1328 = fcmp olt double %1324, %1327
br i1 %1328, label %1329, label %1347
1329: ; preds = %1294
%1330 = load i32, i32* %33
%1331 = trunc i32 %1330 to i16
%1332 = load i16*, i16** %14
%1333 = load i32, i32* %19
%1334 = sext i32 %1333 to i64
%1335 = getelementptr inbounds i16, i16* %1332, i64 %1334
store i16 %1331, i16* %1335
%1336 = load i32, i32* %34
%1337 = trunc i32 %1336 to i16
%1338 = load i16*, i16** %15
%1339 = load i32, i32* %19
%1340 = sext i32 %1339 to i64
%1341 = getelementptr inbounds i16, i16* %1338, i64 %1340
store i16 %1337, i16* %1341
%1342 = load double, double* %30
%1343 = load double*, double** %16
%1344 = load i32, i32* %19
%1345 = sext i32 %1344 to i64
%1346 = getelementptr inbounds double, double* %1343, i64 %1345
store double %1342, double* %1346
store i32 1, i32* %35
br label %1347
1347: ; preds = %1329, %1294
br label %1348
1348: ; preds = %1347, %1293
%1349 = load i32, i32* %17
%1350 = add nsw i32 %1349, 1
store i32 %1350, i32* %17
%1351 = load i32, i32* %19
%1352 = add nsw i32 %1351, 1
store i32 %1352, i32* %19
br label %1281
1353: ; preds = %1281
br label %1354
1354: ; preds = %1353
%1355 = load i32, i32* %18
%1356 = add nsw i32 %1355, -1
store i32 %1356, i32* %18
br label %739
1357: ; preds = %739
br label %1358
1358: ; preds = %1357
%1359 = load i32, i32* %35
%1360 = icmp ne i32 %1359, 0
br i1 %1360, label %116, label %1361
1361: ; preds = %1358
ret void
}

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