// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/matrix.c
// Function: hqr2
double* hqr2(matrix* eigenvectors, matrix a)
{
 int nn, m, l, k, j, its, i, mmin, na; 
 double z, y, x, w, v, u, t, s, r, q, p, anorm = 0.0, *eigenvalues;
 double EPS = 2.22045e-016;
 eigenvalues = safemalloc(a.row * sizeof(double), "hqr2", 5);
 for (i = 0; i < a.row; i++) 
   for (j = imax(i - 1,0); j < a.row; j++)
     anorm += fabs(a.values[i][j]);
 nn = a.row - 1; 
 t = 0.0; 
 while (nn >= 0) 
  {
   its = 0; 
   do {
     for (l = nn; l > 0; l--) 
      { 
       s = fabs(a.values[l - 1][l - 1]) + fabs(a.values[l][l]);	
       if (s == 0.0) 
         s = anorm; 
       if (fabs(a.values[l][l - 1]) <= EPS * s) 
        {
         a.values[l][l - 1] = 0.0; 
         break;
        }
      } 
      x = a.values[nn][nn]; 
      if (l == nn) 
       {	
        eigenvalues[nn] = a.values[nn][nn] = x + t;
        nn--; 
       } 
      else 
       {
        y = a.values[nn - 1][nn-1]; 
        w = a.values[nn][nn-1] * a.values[nn-1][nn]; 
        if (l == nn - 1) 
         {	
          p = 0.5 * (y - x); 
          q = p * p + w;
          z = sqrt(fabs(q)); 
          x += t; 
          a.values[nn][nn] = x; 
          a.values[nn - 1][nn - 1] = y + t; 
          if (q >= 0.0) 
           {
            z = p + change_sign(z,p); 
            eigenvalues[nn - 1] = eigenvalues[nn] = x + z; 
            if (z != 0.0) 
              eigenvalues[nn] = x - w / z; 
            x = a.values[nn][nn - 1]; 
            s = fabs(x) + fabs(z); 
            p = x / s; 
            q = z / s; 
            r = sqrt(p * p + q * q); 
            p /= r; 
            q /= r; 
            for (j = nn - 1; j < a.row; j++) 
             {	
              z = a.values[nn - 1][j]; 
              a.values[nn - 1][j] = q * z + p * a.values[nn][j]; 
              a.values[nn][j] = q * a.values[nn][j] - p * z;
             } 
            for (i = 0; i <= nn; i++) 
             {	
              z = a.values[i][nn - 1]; 
              a.values[i][nn - 1] = q * z + p * a.values[i][nn]; 
              a.values[i][nn] = q * a.values[i][nn] - p * z;
             } 
            for (i = 0; i < a.row; i++) 
             {	
              z = eigenvectors->values[i][nn - 1]; 
              eigenvectors->values[i][nn - 1] = q * z + p * eigenvectors->values[i][nn]; 
              eigenvectors->values[i][nn] = q * eigenvectors->values[i][nn] - p * z;
             } 
           } 
          else 
           {
            printf("Complex eigenvalues. Exiting\n");
            return NULL;
           }
          nn -= 2; 
         } 
        else 
         {	
          if (its == 30) 
           {
            printf("Too many iterations. Exiting\n");
            return NULL;
           } 
          if (its == 10 || its == 20) 
           {	
            t += x; 
            for (i = 0; i < nn + 1; i++) 
              a.values[i][i] -= x; 
            s = fabs(a.values[nn][nn - 1]) + fabs(a.values[nn - 1][nn - 2]); 
            y = x = 0.75 * s; 
            w = -0.4375 * s * s;
           } 
          its++; 
          for (m = nn - 2; m >= l; m--) 
           {
            z = a.values[m][m]; 
            r = x - z; 
            s = y - z; 
            p = (r * s - w) / a.values[m + 1][m] + a.values[m][m + 1]; 
            q = a.values[m + 1][m + 1] - z - r - s; 
            r = a.values[m + 2][m + 1]; 
            s = fabs(p) + fabs(q) + fabs(r);
            p /= s; 
            q /= s; 
            r /= s; 
            if (m == l) 
              break; 
            u = fabs(a.values[m][m - 1]) * (fabs(q) + fabs(r)); 
            v = fabs(p) * (fabs(a.values[m - 1][m - 1]) + fabs(z) + fabs(a.values[m + 1][m + 1]));
            if (u <= EPS * v) 
              break;
           } 
          for (i = m; i < nn - 1; i++) 
           {
            a.values[i + 2][i] = 0.0; 
            if (i != m) 
              a.values[i + 2][i - 1] = 0.0;
           } 
          for (k = m; k < nn; k++) 
           { 
            if (k != m) 
             { 
              p = a.values[k][k - 1];	
              q = a.values[k + 1][k - 1];	
              r = 0.0; 
              if (k + 1 != nn) 
                r = a.values[k + 2][k - 1]; 
              if ((x = fabs(p) + fabs(q) + fabs(r)) != 0.0) 
               {
                p /= x;	
                q /= x;	
                r /= x;
               }
             } 
            if ((s = change_sign(sqrt(p * p + q * q + r * r), p)) != 0.0) 
             {
              if (k == m) 
               { 
                if (l != m)
                  a.values[k][k - 1] = -a.values[k][k - 1]; 
               } 
              else
                a.values[k][k - 1] = -s * x; 
              p += s;
              x = p / s; 
              y = q / s; 
              z = r / s; 
              q /= p; 
              r /= p; 
              for (j = k; j < a.row; j++) 
               {
                p = a.values[k][j] + q * a.values[k+1][j]; 
                if (k+1 != nn) 
                 {
                  p += r * a.values[k + 2][j]; 
                  a.values[k + 2][j] -= p * z;
                 } 
                a.values[k + 1][j] -= p * y; 
                a.values[k][j] -= p * x;
               } 
              mmin = nn < k + 3 ? nn : k + 3; 
              for (i = 0; i < mmin + 1; i++) 
               {
                p = x * a.values[i][k] + y * a.values[i][k + 1]; 
                if (k + 1 != nn) 
                 {
                  p += z * a.values[i][k + 2]; 
                  a.values[i][k + 2] -= p * r;
                 } 
                a.values[i][k + 1] -= p * q; 
                a.values[i][k] -= p;
               } 
              for (i = 0; i < a.row; i++) 
               {
                p = x * eigenvectors->values[i][k] + y * eigenvectors->values[i][k + 1]; 
                if (k + 1 != nn) 
                 {
                  p += z * eigenvectors->values[i][k + 2]; 
                  eigenvectors->values[i][k + 2] -= p * r;
                 } 
                eigenvectors->values[i][k + 1] -= p * q; 
                eigenvectors->values[i][k] -= p;
               }
             } 
           } 
         }
       }
   }while (l + 1 < nn);
 }
 if (anorm != 0.0) 
  { 
   for (nn = a.row - 1; nn >= 0; nn--) 
    {
     p = eigenvalues[nn];
     na = nn - 1; 
     m = nn; 
     a.values[nn][nn] = 1.0; 
     for (i = nn - 1; i >= 0;i--) 
      {
       w = a.values[i][i] - p; 
       r = 0.0; 
       for (j = m; j <= nn; j++)
         r += a.values[i][j] * a.values[j][nn]; 
       m = i;
       t = w;
       if (t == 0.0) 
         t = EPS * anorm;
       a.values[i][nn] = -r / t; 
       t = fabs(a.values[i][nn]); 
       if (EPS * t * t > 1)
         for (j = i; j <= nn; j++) 
           a.values[j][nn] /= t;
      }
    }
   for (j = a.row - 1; j >= 0; j--)
     for (i = 0; i < a.row; i++)
      {
       z = 0.0;
       for (k = 0; k <= j; k++)
         z += eigenvectors->values[i][k] * a.values[k][j];
       eigenvectors->values[i][j] = z;
      }
  }
 return eigenvalues;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, 0x70(%rsp)
movslq %r12d, %rbx
leaq (,%rbx,8), %rdi
leaq 0x68580(%rip), %rsi     # 0xaa035
movl $0x5, %edx
callq 0x3a0e1
testl %ebx, %ebx
jle 0x42802
movq %rax, 0x8(%rsp)
movl %r12d, %ebp
andl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
xorpd %xmm8, %xmm8
xorl %ebx, %ebx
movapd %xmm8, 0x30(%rsp)
leal -0x1(%rbx), %edi
xorl %esi, %esi
callq 0x39b51
cmpl %r12d, %eax
jge 0x41b21
movq (%r14,%rbx,8), %rcx
cltq
movapd 0x30(%rsp), %xmm8
movapd 0x646d8(%rip), %xmm9    # 0xa61e0
movsd (%rcx,%rax,8), %xmm0
andpd %xmm9, %xmm0
addsd %xmm0, %xmm8
incq %rax
cmpq %rax, %rbp
jne 0x41b08
jmp 0x41b31
movapd 0x30(%rsp), %xmm8
movapd 0x646af(%rip), %xmm9    # 0xa61e0
incq %rbx
cmpq %rbp, %rbx
jne 0x41adc
testl %r12d, %r12d
jle 0x427e4
leal -0x1(%r12), %eax
movl %r12d, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movq %rcx, 0x48(%rsp)
leaq 0x10(%r14), %rcx
movq %rcx, 0x98(%rsp)
xorpd %xmm7, %xmm7
xorl %esi, %esi
movapd 0x64670(%rip), %xmm13   # 0xa61e0
movsd 0x68377(%rip), %xmm10   # 0xa9ef0
movapd 0x6464e(%rip), %xmm11   # 0xa61d0
xorpd %xmm0, %xmm0
movsd %xmm0, 0x40(%rsp)
movl %eax, 0x7c(%rsp)
movl %eax, %ebx
movq %r12, 0x28(%rsp)
movapd %xmm8, 0x30(%rsp)
movq %rsi, 0x10(%rsp)
movl %ebx, %r9d
leaq (,%r9,8), %r13
leaq (%r14,%r9,8), %rax
xorl %edx, %edx
movq %rdx, %r15
leal (%r9,%rdx), %ecx
testl %ecx, %ecx
jle 0x41c2b
movq -0x8(%rax,%r15,8), %rcx
addq %r13, %rcx
movsd -0x8(%rcx,%r15,8), %xmm0
andpd %xmm13, %xmm0
movq (%rax,%r15,8), %rcx
leaq (%rcx,%r13), %rdx
movsd -0x8(%rdx,%r15,8), %xmm1
movsd (%rdx,%r15,8), %xmm2
andpd %xmm13, %xmm2
addsd %xmm0, %xmm2
movapd %xmm2, %xmm0
cmpeqsd %xmm7, %xmm0
movapd %xmm0, %xmm3
andnpd %xmm2, %xmm3
andpd %xmm8, %xmm0
orpd %xmm3, %xmm0
andpd %xmm13, %xmm1
mulsd %xmm10, %xmm0
leaq -0x1(%r15), %rdx
ucomisd %xmm1, %xmm0
jb 0x41bb4
leaq (%rcx,%r9,8), %rax
movq $0x0, (%rax,%rdx,8)
movq (%r14,%r9,8), %rcx
movsd (%rcx,%r9,8), %xmm6
testl %r15d, %r15d
je 0x41c91
leaq (%r9,%r15), %rax
movq %rax, 0x18(%rsp)
movslq %ebx, %rax
leaq -0x1(%rax), %r12
movq -0x8(%r14,%rax,8), %rdx
movsd -0x8(%rdx,%rax,8), %xmm1
movsd -0x8(%rcx,%rax,8), %xmm0
movsd (%rdx,%r9,8), %xmm5
mulsd %xmm0, %xmm5
cmpl $-0x1, %r15d
movq %r9, 0x20(%rsp)
je 0x41e72
movq 0x10(%rsp), %rsi
cmpl $0xa, %esi
je 0x41cba
cmpl $0x14, %esi
je 0x41cba
cmpl $0x1e, %esi
jne 0x41d25
jmp 0x427f4
addsd 0x40(%rsp), %xmm6
movsd %xmm6, (%rcx,%r9,8)
movq 0x8(%rsp), %rax
movsd %xmm6, (%rax,%r9,8)
movl %ebx, %r8d
leal -0x1(%rbx), %eax
movl %eax, %ebx
movq 0x10(%rsp), %rsi
jmp 0x42592
testl %ebx, %ebx
js 0x41ce5
leal 0x1(%rbx), %esi
xorl %edi, %edi
movq (%r14,%rdi,8), %r8
movsd (%r8,%rdi,8), %xmm0
subsd %xmm6, %xmm0
movsd %xmm0, (%r8,%rdi,8)
incq %rdi
cmpq %rdi, %rsi
jne 0x41cc3
movsd (%rcx,%r12,8), %xmm0
movsd 0x40(%rsp), %xmm1
addsd %xmm6, %xmm1
movsd %xmm1, 0x40(%rsp)
andpd %xmm13, %xmm0
movsd -0x10(%rdx,%rax,8), %xmm1
andpd %xmm13, %xmm1
addsd %xmm0, %xmm1
movapd %xmm1, %xmm5
mulsd 0x681e3(%rip), %xmm5    # 0xa9ef8
mulsd %xmm1, %xmm5
mulsd 0x66027(%rip), %xmm1    # 0xa7d48
movapd %xmm1, %xmm6
leal -0x2(%rbx), %r13d
cmpl 0x18(%rsp), %r13d
jl 0x420e6
xorpd %xmm11, %xmm5
movslq %r13d, %rcx
movq (%r14,%rcx,8), %rsi
movsd (%rsi,%rcx,8), %xmm0
subq %rcx, %rax
addq %r15, %rax
movq 0x98(%rsp), %rdx
leaq (%rdx,%rcx,8), %rdx
shlq $0x3, %rcx
xorl %r13d, %r13d
movapd %xmm6, %xmm2
subsd %xmm0, %xmm2
movapd %xmm1, %xmm3
subsd %xmm0, %xmm3
movq -0x8(%rdx,%r13,8), %rdi
addq %rcx, %rdi
movsd 0x8(%rdi,%r13,8), %xmm12
movapd %xmm12, %xmm14
subsd %xmm0, %xmm14
subsd %xmm2, %xmm14
mulsd %xmm3, %xmm2
addsd %xmm5, %xmm2
divsd (%rdi,%r13,8), %xmm2
addq %rcx, %rsi
addsd 0x8(%rsi,%r13,8), %xmm2
subsd %xmm3, %xmm14
movq (%rdx,%r13,8), %rdi
addq %rcx, %rdi
movsd 0x8(%rdi,%r13,8), %xmm15
movapd %xmm14, %xmm3
unpcklpd %xmm2, %xmm14           # xmm14 = xmm14[0],xmm2[0]
andpd %xmm13, %xmm2
andpd %xmm13, %xmm3
addsd %xmm2, %xmm3
movapd %xmm15, %xmm2
andpd %xmm13, %xmm2
addsd %xmm3, %xmm2
divsd %xmm2, %xmm15
unpcklpd %xmm2, %xmm2            # xmm2 = xmm2[0,0]
divpd %xmm2, %xmm14
cmpq %r13, %rax
je 0x420dc
movapd %xmm14, %xmm2
movlpd -0x8(%rsi,%r13,8), %xmm2 # xmm2 = mem[0],xmm2[1]
movq -0x18(%rdx,%r13,8), %rsi
leaq (%rsi,%rcx), %rdi
movsd -0x8(%rdi,%r13,8), %xmm3
movapd %xmm3, %xmm4
andpd %xmm9, %xmm4
andpd %xmm9, %xmm0
addsd %xmm4, %xmm0
movapd %xmm15, %xmm4
andpd %xmm9, %xmm4
unpcklpd %xmm0, %xmm4            # xmm4 = xmm4[0],xmm0[0]
andpd %xmm9, %xmm2
movapd %xmm14, %xmm0
unpcklpd %xmm12, %xmm0           # xmm0 = xmm0[0],xmm12[0]
andpd %xmm9, %xmm0
addpd %xmm4, %xmm0
mulpd %xmm2, %xmm0
movapd %xmm0, %xmm2
unpckhpd %xmm0, %xmm2            # xmm2 = xmm2[1],xmm0[1]
mulsd %xmm10, %xmm2
decq %r13
ucomisd %xmm0, %xmm2
movapd %xmm3, %xmm0
jb 0x41d5e
addl %r12d, %r13d
jmp 0x420e1
movsd 0x40(%rsp), %xmm2
movapd %xmm2, %xmm3
addsd %xmm1, %xmm3
subsd %xmm6, %xmm1
mulsd 0x63e8c(%rip), %xmm1    # 0xa5d18
movapd %xmm1, %xmm0
mulsd %xmm1, %xmm0
addsd %xmm5, %xmm0
addsd %xmm2, %xmm6
movsd %xmm6, (%rcx,%r9,8)
movsd %xmm3, (%rdx,%r12,8)
ucomisd %xmm7, %xmm0
jb 0x427eb
movapd %xmm5, 0x50(%rsp)
sqrtsd %xmm0, %xmm0
movapd %xmm6, 0x80(%rsp)
movapd %xmm1, 0x60(%rsp)
callq 0x39a88
movapd 0x80(%rsp), %xmm1
movq 0x20(%rsp), %rdi
xorpd %xmm7, %xmm7
movapd %xmm0, %xmm14
addsd 0x60(%rsp), %xmm14
movapd %xmm1, %xmm0
addsd %xmm14, %xmm0
movq 0x8(%rsp), %rax
movsd %xmm0, (%rax,%rdi,8)
movsd %xmm0, (%rax,%r12,8)
ucomisd %xmm7, %xmm14
jne 0x41f10
jnp 0x41f24
movapd 0x50(%rsp), %xmm0
divsd %xmm14, %xmm0
subsd %xmm0, %xmm1
movsd %xmm1, (%rax,%rdi,8)
movq (%r14,%rdi,8), %rax
movsd (%rax,%r12,8), %xmm0
movapd %xmm14, %xmm1
unpcklpd %xmm0, %xmm14           # xmm14 = xmm14[0],xmm0[0]
movapd 0x6429f(%rip), %xmm13   # 0xa61e0
andpd %xmm13, %xmm0
andpd %xmm13, %xmm1
addsd %xmm0, %xmm1
unpcklpd %xmm1, %xmm1            # xmm1 = xmm1[0,0]
divpd %xmm1, %xmm14
movapd %xmm14, %xmm0
mulsd %xmm14, %xmm0
movapd %xmm14, %xmm1
unpckhpd %xmm14, %xmm1           # xmm1 = xmm1[1],xmm14[1]
mulsd %xmm1, %xmm1
addsd %xmm0, %xmm1
sqrtsd %xmm1, %xmm15
movapd %xmm15, %xmm0
unpcklpd %xmm15, %xmm0           # xmm0 = xmm0[0],xmm15[0]
divpd %xmm0, %xmm14
movapd %xmm14, %xmm0
unpckhpd %xmm14, %xmm0           # xmm0 = xmm0[1],xmm14[1]
movq 0x28(%rsp), %rdx
cmpl %edx, %ebx
movapd 0x6422e(%rip), %xmm11   # 0xa61d0
jg 0x41ffe
movapd %xmm0, %xmm1
xorpd %xmm11, %xmm1
leaq (%rax,%rdi,8), %rax
addq (%r14,%r12,8), %r13
movsd (%r13,%r15,8), %xmm2
movsd (%rax,%r15,8), %xmm3
mulsd %xmm0, %xmm3
movapd %xmm14, %xmm4
mulsd %xmm2, %xmm4
addsd %xmm3, %xmm4
movsd %xmm4, (%r13,%r15,8)
mulsd %xmm1, %xmm2
movsd (%rax,%r15,8), %xmm3
mulsd %xmm14, %xmm3
addsd %xmm2, %xmm3
movsd %xmm3, (%rax,%r15,8)
incq %r15
leal (%r15,%rdi), %ecx
cmpl %edx, %ecx
jl 0x41fb5
testl %ebx, %ebx
movapd 0x30(%rsp), %xmm8
movapd 0x641d0(%rip), %xmm9    # 0xa61e0
movsd 0x67ed7(%rip), %xmm10   # 0xa9ef0
js 0x4206d
movapd %xmm0, %xmm1
xorpd %xmm11, %xmm1
leal 0x1(%rbx), %eax
xorl %ecx, %ecx
movq (%r14,%rcx,8), %rdx
movsd (%rdx,%r12,8), %xmm2
movsd (%rdx,%rdi,8), %xmm3
movapd %xmm0, %xmm4
mulsd %xmm3, %xmm4
movapd %xmm14, %xmm5
mulsd %xmm2, %xmm5
addsd %xmm4, %xmm5
movsd %xmm5, (%rdx,%r12,8)
mulsd %xmm1, %xmm2
mulsd %xmm14, %xmm3
addsd %xmm2, %xmm3
movsd %xmm3, (%rdx,%rdi,8)
incq %rcx
cmpq %rcx, %rax
jne 0x42029
movq 0x70(%rsp), %rax
movq 0x8(%rax), %rax
movapd %xmm0, %xmm1
xorpd %xmm11, %xmm1
xorl %ecx, %ecx
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %r8
movq (%rax,%rcx,8), %rdx
movsd (%rdx,%r12,8), %xmm2
movsd (%rdx,%rdi,8), %xmm3
movapd %xmm0, %xmm4
mulsd %xmm3, %xmm4
movapd %xmm14, %xmm5
mulsd %xmm2, %xmm5
addsd %xmm4, %xmm5
movsd %xmm5, (%rdx,%r12,8)
mulsd %xmm1, %xmm2
mulsd %xmm14, %xmm3
addsd %xmm2, %xmm3
movsd %xmm3, (%rdx,%rdi,8)
incq %rcx
cmpq %rcx, %rbp
jne 0x4208b
addl $-0x2, %ebx
movq 0x28(%rsp), %r12
jmp 0x42592
movq 0x18(%rsp), %r13
cmpl %r12d, %r13d
jge 0x42127
movslq %r13d, %rdx
leaq -0x8(,%rdx,8), %rax
movq 0x98(%rsp), %rcx
leaq (%rcx,%rdx,8), %rcx
subq %rdx, %r12
xorl %edx, %edx
movq (%rcx,%rdx,8), %rsi
addq %rax, %rsi
movq $0x0, 0x8(%rsi,%rdx,8)
testq %rdx, %rdx
je 0x4211f
movq $0x0, (%rsi,%rdx,8)
incq %rdx
cmpq %rdx, %r12
jne 0x42102
movq 0x10(%rsp), %rax
incl %eax
movq %rax, 0x10(%rsp)
cmpl %ebx, %r13d
jge 0x42580
movslq %r13d, %r12
negl %r13d
addq 0x18(%rsp), %r13
movq %r12, %r15
cmpq %r15, %r12
je 0x421c0
leaq 0x1(%r12), %rax
xorpd %xmm15, %xmm15
cmpl %eax, %ebx
je 0x42169
movq 0x10(%r14,%r12,8), %rax
movsd -0x8(%rax,%r12,8), %xmm15
movq (%r14,%r12,8), %rax
movq 0x8(%r14,%r12,8), %rcx
movsd -0x8(%rax,%r12,8), %xmm0
movsd -0x8(%rcx,%r12,8), %xmm14
movapd %xmm14, %xmm1
unpcklpd %xmm0, %xmm14           # xmm14 = xmm14[0],xmm0[0]
andpd %xmm13, %xmm0
andpd %xmm13, %xmm1
addsd %xmm0, %xmm1
movapd %xmm15, %xmm6
andpd %xmm13, %xmm6
addsd %xmm1, %xmm6
ucomisd %xmm7, %xmm6
jne 0x421ae
jnp 0x421c0
movapd %xmm6, %xmm0
unpcklpd %xmm6, %xmm0            # xmm0 = xmm0[0],xmm6[0]
divpd %xmm0, %xmm14
divsd %xmm6, %xmm15
movapd %xmm6, 0x80(%rsp)
movapd %xmm14, %xmm0
mulsd %xmm14, %xmm0
movapd %xmm14, 0x60(%rsp)
unpckhpd %xmm14, %xmm14          # xmm14 = xmm14[1,1]
movapd %xmm14, %xmm1
mulsd %xmm14, %xmm1
addsd %xmm0, %xmm1
movapd %xmm15, 0x50(%rsp)
movapd %xmm15, %xmm0
mulsd %xmm15, %xmm0
addsd %xmm1, %xmm0
sqrtsd %xmm0, %xmm0
movapd %xmm14, 0xa0(%rsp)
movapd %xmm14, %xmm1
callq 0x39a88
xorpd %xmm7, %xmm7
ucomisd %xmm7, %xmm0
jne 0x42226
jnp 0x422a0
cmpq %r15, %r12
jne 0x422ec
testl %r13d, %r13d
movapd 0x30(%rsp), %xmm8
movapd 0x63f9e(%rip), %xmm9    # 0xa61e0
movsd 0x67ca5(%rip), %xmm12   # 0xa9ef0
movapd 0x63f7c(%rip), %xmm11   # 0xa61d0
movq 0x48(%rsp), %r8
movapd 0x63f7e(%rip), %xmm13   # 0xa61e0
movq 0x20(%rsp), %r9
movapd 0x60(%rsp), %xmm14
movapd 0x50(%rsp), %xmm15
movapd 0xa0(%rsp), %xmm3
je 0x42359
movq (%r14,%r15,8), %rax
movsd -0x8(%rax,%r15,8), %xmm1
xorpd %xmm11, %xmm1
movlpd %xmm1, -0x8(%rax,%r15,8)
jmp 0x42359
movapd 0x30(%rsp), %xmm8
movapd 0x63f30(%rip), %xmm9    # 0xa61e0
movsd 0x67c37(%rip), %xmm10   # 0xa9ef0
movapd 0x63f0e(%rip), %xmm11   # 0xa61d0
movapd 0x63f15(%rip), %xmm13   # 0xa61e0
movq 0x20(%rsp), %r9
movapd 0x60(%rsp), %xmm14
movapd 0x50(%rsp), %xmm15
movapd 0x80(%rsp), %xmm6
jmp 0x42574
movapd %xmm0, %xmm1
movapd 0x63ed7(%rip), %xmm11   # 0xa61d0
xorpd %xmm11, %xmm1
movapd 0x80(%rsp), %xmm2
mulsd %xmm1, %xmm2
movq (%r14,%r12,8), %rax
movsd %xmm2, -0x8(%rax,%r12,8)
movapd 0x30(%rsp), %xmm8
movapd 0x63eba(%rip), %xmm9    # 0xa61e0
movsd 0x67bc1(%rip), %xmm12   # 0xa9ef0
movq 0x48(%rsp), %r8
movapd 0x63ea3(%rip), %xmm13   # 0xa61e0
movq 0x20(%rsp), %r9
movapd 0x60(%rsp), %xmm14
movapd 0x50(%rsp), %xmm15
movapd 0xa0(%rsp), %xmm3
addsd %xmm0, %xmm3
movapd %xmm3, %xmm6
divsd %xmm0, %xmm6
movapd %xmm14, %xmm1
divsd %xmm0, %xmm1
movapd %xmm15, %xmm2
divsd %xmm0, %xmm2
divsd %xmm3, %xmm14
divsd %xmm3, %xmm15
cmpq %r8, %r12
jge 0x42412
movq (%r14,%r12,8), %rax
movq 0x8(%r14,%r12,8), %rcx
leaq 0x1(%r12), %rdx
movq %r12, %rsi
movsd (%rcx,%rsi,8), %xmm3
movapd %xmm14, %xmm0
mulsd %xmm3, %xmm0
addsd (%rax,%rsi,8), %xmm0
cmpl %edx, %ebx
jne 0x423b9
xorpd %xmm11, %xmm0
jmp 0x423eb
movq 0x10(%r14,%r12,8), %rdi
movsd (%rdi,%rsi,8), %xmm3
movapd %xmm15, %xmm4
mulsd %xmm3, %xmm4
addsd %xmm0, %xmm4
movapd %xmm4, %xmm0
xorpd %xmm11, %xmm0
mulsd %xmm2, %xmm4
subsd %xmm4, %xmm3
movsd %xmm3, (%rdi,%rsi,8)
movsd (%rcx,%rsi,8), %xmm3
movapd %xmm0, %xmm4
mulsd %xmm1, %xmm4
addsd %xmm3, %xmm4
movsd %xmm4, (%rcx,%rsi,8)
mulsd %xmm6, %xmm0
addsd (%rax,%rsi,8), %xmm0
movsd %xmm0, (%rax,%rsi,8)
incq %rsi
cmpq %r8, %rsi
jl 0x4239b
leal 0x3(%r12), %ecx
cmpl %ecx, %ebx
cmovll %ebx, %ecx
testl %ecx, %ecx
movapd %xmm6, %xmm10
js 0x424c7
leal 0x1(%r12), %eax
movl %ecx, %ecx
movq $-0x1, %rdx
movq 0x8(%r14,%rdx,8), %rsi
movsd (%rsi,%r12,8), %xmm0
movsd 0x8(%rsi,%r12,8), %xmm3
movapd %xmm1, %xmm5
mulsd %xmm3, %xmm5
movapd %xmm6, %xmm4
mulsd %xmm0, %xmm4
addsd %xmm5, %xmm4
cmpl %eax, %ebx
jne 0x4246c
movapd %xmm4, %xmm5
xorpd %xmm11, %xmm5
jmp 0x424a1
movsd 0x10(%rsi,%r12,8), %xmm6
movapd %xmm2, %xmm5
mulsd %xmm6, %xmm5
addsd %xmm5, %xmm4
movapd %xmm4, %xmm5
xorpd %xmm11, %xmm5
movapd %xmm4, %xmm7
mulsd %xmm15, %xmm7
subsd %xmm7, %xmm6
movsd %xmm6, 0x10(%rsi,%r12,8)
movapd %xmm10, %xmm6
mulsd %xmm14, %xmm5
addsd %xmm3, %xmm5
movsd %xmm5, 0x8(%rsi,%r12,8)
subsd %xmm4, %xmm0
movsd %xmm0, (%rsi,%r12,8)
incq %rdx
cmpq %rcx, %rdx
jb 0x42437
movq 0x70(%rsp), %rax
movq 0x8(%rax), %rax
leal 0x1(%r12), %ecx
xorl %edx, %edx
movq (%rax,%rdx,8), %rsi
movsd (%rsi,%r12,8), %xmm3
movsd 0x8(%rsi,%r12,8), %xmm4
movapd %xmm1, %xmm5
mulsd %xmm4, %xmm5
movapd %xmm6, %xmm0
mulsd %xmm3, %xmm0
addsd %xmm5, %xmm0
cmpl %ecx, %ebx
jne 0x4250b
movapd %xmm0, %xmm5
xorpd %xmm11, %xmm5
jmp 0x42540
movsd 0x10(%rsi,%r12,8), %xmm6
movapd %xmm2, %xmm5
mulsd %xmm6, %xmm5
addsd %xmm5, %xmm0
movapd %xmm0, %xmm5
xorpd %xmm11, %xmm5
movapd %xmm0, %xmm7
mulsd %xmm15, %xmm7
subsd %xmm7, %xmm6
movsd %xmm6, 0x10(%rsi,%r12,8)
movapd %xmm10, %xmm6
mulsd %xmm14, %xmm5
addsd %xmm4, %xmm5
movsd %xmm5, 0x8(%rsi,%r12,8)
subsd %xmm0, %xmm3
movsd %xmm3, (%rsi,%r12,8)
incq %rdx
cmpq %rdx, %rbp
jne 0x424d7
unpcklpd %xmm0, %xmm14           # xmm14 = xmm14[0],xmm0[0]
movapd %xmm12, %xmm10
xorpd %xmm7, %xmm7
incq %r12
cmpl %r12d, %ebx
jne 0x4214a
movl %r9d, %ebx
movq 0x28(%rsp), %r12
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %r8
incl %r8d
cmpl %ebx, %r8d
jl 0x41b9e
movl $0x0, %esi
testl %ebx, %ebx
jns 0x41b9e
testl %r12d, %r12d
setle %al
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm8
setnp %cl
sete %dl
andb %cl, %dl
orb %al, %dl
jne 0x427e4
mulsd 0x6791d(%rip), %xmm8    # 0xa9ef0
movl 0x7c(%rsp), %eax
leal -0x2(%r12), %ecx
movslq %ecx, %rcx
movq %rax, %rdi
shlq $0x20, %rdi
leaq (,%rax,8), %r13
leaq (%r14,%rax,8), %rbp
leaq (%r14,%rcx,8), %r12
movsd 0x62f22(%rip), %xmm1    # 0xa5520
movabsq $0x100000000, %r10      # imm = 0x100000000
movq %rax, %rbx
movq %rax, %rsi
movq 0x8(%rsp), %rcx
movsd (%rcx,%rbx,8), %xmm2
movq (%r14,%rbx,8), %rcx
movabsq $0x3ff0000000000000, %rdx # imm = 0x3FF0000000000000
movq %rdx, (%rcx,%rbx,8)
subq $0x1, %rsi
jb 0x42782
movq %rsi, 0x48(%rsp)
movl $0x2, %r15d
movq %r12, 0x20(%rsp)
movq %r13, 0xa0(%rsp)
movq %rbp, 0x30(%rsp)
movq %rdi, 0x80(%rsp)
movq %rbx, %rsi
leaq -0x1(%rsi), %rcx
movq %rcx, 0x60(%rsp)
movl %ecx, %r8d
movq (%r14,%r8,8), %r9
movq %rsi, 0x50(%rsp)
movslq %esi, %rcx
xorpd %xmm3, %xmm3
cmpq %rbx, %rcx
jg 0x426ad
leaq (%r9,%r13), %r11
xorl %ecx, %ecx
movq %rdi, %rdx
movsd (%r11,%rcx), %xmm4
movq (%rbp,%rcx), %rsi
mulsd (%rsi,%rbx,8), %xmm4
addsd %xmm4, %xmm3
movq %rdx, %rsi
sarq $0x20, %rsi
addq %r10, %rdx
addq $0x8, %rcx
cmpq %rbx, %rsi
jl 0x42686
movsd (%r9,%r8,8), %xmm4
subsd %xmm2, %xmm4
movapd %xmm4, %xmm5
cmpeqsd %xmm0, %xmm5
movapd %xmm5, %xmm6
andpd %xmm8, %xmm6
andnpd %xmm4, %xmm5
orpd %xmm6, %xmm5
xorpd %xmm11, %xmm3
divsd %xmm5, %xmm3
movsd %xmm3, (%r9,%rbx,8)
andpd %xmm9, %xmm3
movapd %xmm3, %xmm4
mulsd %xmm10, %xmm4
mulsd %xmm3, %xmm4
ucomisd %xmm1, %xmm4
movq 0x60(%rsp), %rsi
jbe 0x42721
movslq %esi, %rcx
cmpq %rbx, %rcx
jg 0x42721
xorl %ecx, %ecx
movq (%r12,%rcx,8), %rdx
movsd (%rdx,%rbx,8), %xmm4
divsd %xmm3, %xmm4
movsd %xmm4, (%rdx,%rbx,8)
incq %rcx
cmpl %ecx, %r15d
jne 0x42707
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
addq %rcx, %rdi
addq $-0x8, %rbp
addq $-0x8, %r13
addq $-0x8, %r12
incq %r15
cmpl $0x1, 0x50(%rsp)
jg 0x4265c
movq 0x80(%rsp), %rdi
addq %rcx, %rdi
movq 0x30(%rsp), %rbp
addq $-0x8, %rbp
movq 0xa0(%rsp), %r13
addq $-0x8, %r13
movq 0x20(%rsp), %r12
addq $-0x8, %r12
testq %rbx, %rbx
movq 0x48(%rsp), %rsi
movq %rsi, %rbx
jne 0x4260e
movq 0x28(%rsp), %r10
testl %r10d, %r10d
jle 0x427e4
andl $0x7fffffff, %r10d      # imm = 0x7FFFFFFF
movq 0x70(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq %r10, %rdx
xorl %esi, %esi
movq (%rcx,%rsi,8), %rdi
xorpd %xmm0, %xmm0
xorl %r8d, %r8d
movsd (%rdi,%r8,8), %xmm1
movq (%r14,%r8,8), %r9
mulsd (%r9,%rax,8), %xmm1
addsd %xmm1, %xmm0
incq %r8
cmpq %r8, %rdx
jne 0x427ac
movsd %xmm0, (%rdi,%rax,8)
incq %rsi
cmpq %r10, %rsi
jne 0x427a1
leaq -0x1(%rax), %rsi
decq %rdx
testq %rax, %rax
movq %rsi, %rax
jg 0x4279f
movq 0x8(%rsp), %rax
jmp 0x42802
leaq 0x67a6c(%rip), %rdi     # 0xaa25e
jmp 0x427fb
leaq 0x67a46(%rip), %rdi     # 0xaa241
callq 0x4090
xorl %eax, %eax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq