// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/matrix.c
// Function: svdcmp
matrix svdcmp(matrix a, int m, int n, double* w)
{
/*Given a matrix a[1..m][1..n], this routine computes its singular value decomposition, A = UWV T. Thematrix U replaces a on output. The diagonal matrix of singular values W is output as a vector w[1..n]. Thematrix V (not the transpose V T ) is output as v[1..n][1..n].*/
 int flag, i, its, j, jj, k, l, nm;
 double anorm, c, f, g, h, s, scale, x, y, z, *rv1, tmp;
	matrix v;
 rv1 = safemalloc(n * sizeof(double), "svdcmp", 4);
	v = matrix_alloc(n, n);
 g = 0.0;
	scale = 0.0;
	anorm = 0.0; 
 for (i = 1; i <= n; i++) 
	 {
   l = i + 1;
   rv1[i - 1] = scale * g;
   g = 0.0;
			s = 0.0;
			scale = 0.0;
   if (i <= m) 
			 {
     for (k = i; k <= m; k++) 
						 scale += fabs(a.values[k - 1][i - 1]);
     if (scale) 
					 {
       for (k = i; k <= m; k++) 
							 {
         a.values[k - 1][i - 1] /= scale;
         s += a.values[k - 1][i - 1] * a.values[k - 1][i - 1];
						  }
       f = a.values[i - 1][i - 1];
       g = change_sign(sqrt(s), f);
       h = f * g - s;
       a.values[i - 1][i - 1] = f - g;
       for (j = l; j <= n; j++) 
							 {
         for (s = 0.0, k = i; k <= m; k++) 
										 s += a.values[k - 1][i - 1]*a.values[k - 1][j - 1];
         f = s / h;
         for (k = i; k <= m; k++) 
										 a.values[k - 1][j - 1] += f*a.values[k - 1][i - 1];
							 }
       for (k = i; k <= m; k++) 
								 a.values[k - 1][i - 1] *= scale;
					 }
			 }
   w[i - 1] = scale * g;
   g = 0.0;
			s = 0.0;
			scale = 0.0;
   if (i <= m && i != n) 
			 {
     for (k = l; k <= n; k++) 
						 scale += fabs(a.values[i - 1][k - 1]);
     if (scale) 
					 {
       for (k = l; k <= n; k++) 
							 {
         a.values[i - 1][k - 1] /= scale;
         s += a.values[i - 1][k - 1] * a.values[i - 1][k - 1];
						  }
       f = a.values[i - 1][l - 1];
       g = -change_sign(sqrt(s), f);
       h = f * g - s;
       a.values[i - 1][l - 1] = f - g;
       for (k = l; k <= n; k++) 
								 rv1[k - 1] = a.values[i - 1][k - 1] / h;
       for (j = l; j <= m; j++) 
							 {
         for (s = 0.0, k = l; k <= n; k++) 
										 s += a.values[j - 1][k - 1] * a.values[i - 1][k - 1];
         for (k = l; k <= n; k++) 
										 a.values[j - 1][k - 1] += s * rv1[k - 1];
							 }
       for (k = l; k <= n; k++) 
								 a.values[i - 1][k - 1] *= scale;
					 }
			 }
   anorm = fmax(anorm, (fabs(w[i - 1]) + fabs(rv1[i - 1])));
	 }
 for (i = n; i >= 1; i--) 
	 { 
   if (i < n) 
			 {
     if (g) 
					 {
       for (j = l; j <= n; j++) 
         v.values[j - 1][i - 1] = (a.values[i - 1][j - 1] / a.values[i - 1][l - 1]) / g;
       for (j = l; j <= n; j++) 
							 {
         for (s = 0.0, k = l; k <= n; k++) 
										 s += a.values[i - 1][k - 1] * v.values[k - 1][j - 1];
         for (k = l; k <= n; k++) 
										 v.values[k - 1][j - 1] += s * v.values[k - 1][i - 1];
							 }
					 }
     for (j = l; j <= n; j++) 
					 {
						 v.values[i - 1][j - 1] = 0.0;
							v.values[j - 1][i - 1] = 0.0;
					 }
			 }
   v.values[i - 1][i - 1] = 1.0;
   g = rv1[i - 1];
   l = i;
	 }
 for (i = imin(m, n); i >= 1; i--) 
	 { 
   l = i + 1;
   g = w[i - 1];
   for (j = l; j <= n; j++) 
				 a.values[i - 1][j - 1] = 0.0;
   if (g) 
			 {
     g = 1.0 / g;
     for (j = l; j <= n; j++) 
					 {
       for (s = 0.0, k = l; k <= m; k++) 
								 s += a.values[k - 1][i - 1] * a.values[k - 1][j - 1];
       f = (s / a.values[i - 1][i - 1]) * g;
       for (k = i; k <= m; k++) 
								 a.values[k - 1][j - 1] += f * a.values[k - 1][i - 1];
					 }
     for (j = i; j <= m; j++) 
						 a.values[j - 1][i - 1] *= g;
			 } 
		 else 
				 for (j = i; j <= m; j++) 
						 a.values[j - 1][i - 1] = 0.0;
   ++(a.values[i - 1][i - 1]);
	 }
 for (k = n; k >= 1; k--) 
	 {  
		 for (its = 1; its <= 30; its++) 
			 {
     flag = 1;
     for (l = k; l >= 1; l--) 
					 { 
       nm = l - 1; 
       if ((double)(fabs(rv1[l - 1]) + anorm) == anorm) 
							 {
         flag = 0;
         break;
							 }
       if ((double)(fabs(w[nm - 1]) + anorm) == anorm) 
								 break;
					 }
     if (flag) 
					 {
       c = 0.0; 
       s = 1.0;
       for (i = l; i <= k; i++) 
							 {
         f = s * rv1[i - 1];
         rv1[i - 1] = c * rv1[i - 1];
         if ((double)(fabs(f) + anorm) == anorm) 
										 break;
         g = w[i - 1];
         h = pythag(f,g);
         w[i - 1] = h;
         h = 1.0 / h;
         c = g * h;
         s = -f * h;
         for (j = 1; j <= m; j++) 
									 {
           y = a.values[j - 1][nm - 1];
           z = a.values[j - 1][i - 1];
           a.values[j - 1][nm - 1] = y * c + z * s;
           a.values[j - 1][i - 1] = z * c - y * s;
									 }
							 }
					 }
     z = w[k - 1];
     if (l == k) 
					 { 
       if (z < 0.0) 
							 {
         w[k - 1] = -z;
         for (j = 1; j <= n; j++) 
										 v.values[j - 1][k - 1] = -v.values[j - 1][k - 1];
							 }
       break;
					 }
     if (its == 30) 
						 printf(m1304);
     x = w[l - 1]; 
     nm = k - 1;
     y = w[nm - 1];
     g = rv1[nm - 1];
     h = rv1[k - 1];
     f = ((y - z) * (y + z) + (g - h) * (g + h)) / (2.0 * h * y);
     g = pythag(f, 1.0);
     f = ((x - z) * (x + z) + h * ((y / ( f + change_sign(g, f))) - h)) / x;
     c = 1.0; 
					s = 1.0; 
     for (j=l;j<=nm;j++) 
					 {
       i = j + 1;
       g = rv1[i - 1];
       y = w[i - 1];
       h = s * g;
       g = c * g;
       z = pythag(f, h);
       rv1[j - 1] = z;
       c = f / z;
       s = h / z;
       f = x * c + g * s;
       g = g * c - x * s;
       h = y * s;
       y *= c;
       for (jj = 1; jj <= n; jj++) 
							 {
         x = v.values[jj - 1][j - 1];
         z = v.values[jj - 1][i - 1];
         v.values[jj - 1][j - 1] = x * c + z * s;
         v.values[jj - 1][i - 1] = z * c - x * s;
							 }
       z = pythag(f, h);
       w[j - 1] = z; 
       if (z) 
							 {
         z = 1.0 / z;
         c = f * z;
         s = h * z;
							 }
       f = c * g + s * y;
       x = c * y - s * g;
       for (jj = 1; jj <= m; jj++) 
							 {
         y = a.values[jj - 1][j - 1];
         z = a.values[jj - 1][i - 1];
         a.values[jj - 1][j - 1] = y * c + z * s;
         a.values[jj - 1][i - 1] = z * c - y * s;
							 }
					 }
     rv1[l - 1] = 0.0;
     rv1[k - 1] = f;
     w[k - 1] = x;
    }
  }
 safe_free(rv1);
	for (i = 0; i < n; i++)
		 for (j = i + 1; j < n; j++)
				 if (w[i] < w[j])
					 {
       tmp = w[i];
						 w[i] = w[j];
							w[j] = tmp;
						 matrix_exchange_columns(a, i, j);
						 matrix_exchange_columns(v, i, j);
					 }
 return v;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %r8, 0x28(%rsp)
movl %ecx, %r13d
movl %edx, %ebx
movq %rsi, %r12
movq %rdi, 0xb8(%rsp)
movslq %ecx, %r14
leaq (,%r14,8), %rdi
leaq 0x6a4a5(%rip), %rsi     # 0xa6f9a
movl $0x4, %edx
callq 0x390f5
movq %rax, %r15
leaq 0x6a3c3(%rip), %r8      # 0xa6ecc
movl $0x8, %edi
movl $0x8, %esi
movl %r14d, %edx
movl %r14d, %ecx
movl $0x3, %r9d
callq 0x39245
movq %rax, 0x68(%rsp)
movl %r14d, %ebp
movslq %ebx, %rax
movq %rax, 0x58(%rsp)
movq %r14, 0x70(%rsp)
testl %r14d, %r14d
movq %r13, 0x88(%rsp)
movq %rbx, 0x98(%rsp)
movq %r15, 0x50(%rsp)
jle 0x3d05a
leal 0x1(%rbx), %eax
movq %rax, 0xa8(%rsp)
leal 0x1(%r13), %ebx
leal 0x2(%r13), %ecx
movq %rcx, 0x38(%rsp)
leaq -0x1(%rax), %rsi
movq %r15, %rax
addq $-0x8, %rax
movq %rax, 0xc0(%rsp)
leal -0x1(%r13), %r10d
movl $0x1, %eax
movl $0x2, %r11d
xorl %edx, %edx
movapd 0x66645(%rip), %xmm5    # 0xa31e0
movq %rbp, %rdi
movq %r12, %r9
xorpd %xmm6, %xmm6
xorpd %xmm0, %xmm0
xorpd %xmm3, %xmm3
movq 0x28(%rsp), %r8
movq 0x58(%rsp), %r14
movl %ebx, 0xa4(%rsp)
movq %rax, %r13
mulsd %xmm0, %xmm6
movsd %xmm6, -0x8(%r15,%rax,8)
xorpd %xmm0, %xmm0
xorpd %xmm2, %xmm2
cmpq %r14, %rax
jg 0x3cd80
xorl %eax, %eax
movq (%r9,%rax,8), %rcx
movsd -0x8(%rcx,%r13,8), %xmm0
andpd %xmm5, %xmm0
addsd %xmm0, %xmm2
incq %rax
cmpq %rax, %rsi
jne 0x3cbdf
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm2
jne 0x3cc0a
jnp 0x3cd80
xorl %eax, %eax
movq (%r9,%rax,8), %rcx
movsd -0x8(%rcx,%r13,8), %xmm1
divsd %xmm2, %xmm1
movsd %xmm1, -0x8(%rcx,%r13,8)
mulsd %xmm1, %xmm1
addsd %xmm1, %xmm0
incq %rax
cmpq %rax, %rsi
jne 0x3cc0c
movq %rdi, 0x18(%rsp)
movq %rdx, 0x30(%rsp)
movq %r11, 0x20(%rsp)
movq %r10, 0x8(%rsp)
movsd %xmm3, 0x60(%rsp)
movq -0x8(%r12,%r13,8), %rax
movsd -0x8(%rax,%r13,8), %xmm1
ucomisd 0x660a8(%rip), %xmm0    # 0xa2d08
movq %r9, 0x40(%rsp)
movsd %xmm2, 0x48(%rsp)
movsd %xmm1, 0x10(%rsp)
movsd %xmm0, 0x90(%rsp)
movq %rsi, %r15
jb 0x3cc85
sqrtsd %xmm0, %xmm0
jmp 0x3cc90
callq 0x4300
movsd 0x10(%rsp), %xmm1
callq 0x38d28
movsd 0x10(%rsp), %xmm4
movapd %xmm4, %xmm1
subsd %xmm0, %xmm1
movq -0x8(%r12,%r13,8), %rax
movsd %xmm1, -0x8(%rax,%r13,8)
cmpq %rbp, %r13
movsd 0x60(%rsp), %xmm3
movq 0x28(%rsp), %r8
movq %r15, %rsi
movq 0x8(%rsp), %r10
movq 0x20(%rsp), %r11
movapd 0x6650e(%rip), %xmm5    # 0xa31e0
movq 0x18(%rsp), %rdi
movq 0x40(%rsp), %r9
movq 0x50(%rsp), %r15
jae 0x3cd50
mulsd %xmm0, %xmm4
subsd 0x90(%rsp), %xmm4
movq %r11, %rax
xorpd %xmm1, %xmm1
cmpq %r14, %r13
jg 0x3cd1b
xorl %ecx, %ecx
movq (%r9,%rcx,8), %rdx
movsd -0x8(%rdx,%r13,8), %xmm2
mulsd -0x8(%rdx,%rax,8), %xmm2
addsd %xmm2, %xmm1
incq %rcx
cmpq %rcx, %rsi
jne 0x3ccfe
cmpq %r14, %r13
jg 0x3cd49
divsd %xmm4, %xmm1
xorl %ecx, %ecx
movq (%r9,%rcx,8), %rdx
movsd -0x8(%rdx,%r13,8), %xmm2
mulsd %xmm1, %xmm2
addsd -0x8(%rdx,%rax,8), %xmm2
movsd %xmm2, -0x8(%rdx,%rax,8)
incq %rcx
cmpq %rcx, %rsi
jne 0x3cd26
incq %rax
cmpl %eax, %ebx
jne 0x3ccf3
cmpq %r14, %r13
movq 0x30(%rsp), %rdx
movsd 0x48(%rsp), %xmm2
jg 0x3cd80
xorl %eax, %eax
movq (%r9,%rax,8), %rcx
movsd -0x8(%rcx,%r13,8), %xmm1
mulsd %xmm2, %xmm1
movsd %xmm1, -0x8(%rcx,%r13,8)
incq %rax
cmpq %rax, %rsi
jne 0x3cd62
mulsd %xmm2, %xmm0
cmpq %r14, %r13
setg %al
movsd %xmm0, -0x8(%r8,%r13,8)
cmpq %rbp, %r13
sete %cl
orb %al, %cl
xorpd %xmm0, %xmm0
xorpd %xmm6, %xmm6
jne 0x3cfe6
cmpq %rbp, %r13
jae 0x3cdcd
movq -0x8(%r12,%r13,8), %rax
addq %rdx, %rax
movl $0x1, %ecx
movsd (%rax,%rcx,8), %xmm1
andpd %xmm5, %xmm1
addsd %xmm1, %xmm6
incq %rcx
cmpl %ecx, %edi
jne 0x3cdb9
ucomisd %xmm0, %xmm6
jne 0x3cdd9
jnp 0x3cfe6
xorpd %xmm0, %xmm0
cmpq %rbp, %r13
jae 0x3ce0c
movq -0x8(%r12,%r13,8), %rax
addq %rdx, %rax
movl $0x1, %ecx
movsd (%rax,%rcx,8), %xmm1
divsd %xmm6, %xmm1
movsd %xmm1, (%rax,%rcx,8)
mulsd %xmm1, %xmm1
addsd %xmm1, %xmm0
incq %rcx
cmpl %ecx, %edi
jne 0x3cdef
movq %r10, 0x8(%rsp)
movq %rsi, 0x48(%rsp)
movsd %xmm3, 0x60(%rsp)
movq -0x8(%r12,%r13,8), %rax
movsd (%rax,%r13,8), %xmm1
ucomisd 0x65ed9(%rip), %xmm0    # 0xa2d08
movq %rdx, 0x30(%rsp)
movq %rdi, 0x18(%rsp)
movq %r9, 0x40(%rsp)
movsd %xmm6, 0x90(%rsp)
movsd %xmm0, 0xb0(%rsp)
movsd %xmm1, 0x10(%rsp)
jb 0x3ce5e
sqrtsd %xmm0, %xmm0
jmp 0x3ce6f
movq %r11, %rbx
callq 0x4300
movsd 0x10(%rsp), %xmm1
movq %rbx, %r11
movq %r11, 0x20(%rsp)
movslq %r11d, %rbx
movq 0xc0(%rsp), %rax
leaq (%rax,%rbx,8), %r15
shlq $0x3, %rbx
callq 0x38d28
movsd 0x10(%rsp), %xmm2
movapd %xmm2, %xmm1
addsd %xmm0, %xmm1
xorpd 0x6632e(%rip), %xmm0    # 0xa31d0
movq -0x8(%r12,%r13,8), %rax
movsd %xmm1, (%rax,%r13,8)
cmpq %rbp, %r13
movq 0x8(%rsp), %r10
jae 0x3cee5
mulsd %xmm0, %xmm2
subsd 0xb0(%rsp), %xmm2
leaq (%rax,%rbx), %rcx
addq $-0x8, %rcx
xorl %edx, %edx
movsd (%rcx,%rdx,8), %xmm1
divsd %xmm2, %xmm1
movsd %xmm1, (%r15,%rdx,8)
incq %rdx
cmpl %edx, %r10d
jne 0x3cece
cmpq %r14, %r13
movsd 0x60(%rsp), %xmm3
movq 0x28(%rsp), %r8
movq 0xa8(%rsp), %r9
movq 0x20(%rsp), %r11
movapd 0x662d8(%rip), %xmm5    # 0xa31e0
movsd 0x90(%rsp), %xmm6
jge 0x3cf82
leaq (%rax,%rbx), %rcx
addq $-0x8, %rcx
movq %r11, %rdx
xorpd %xmm1, %xmm1
cmpq %rbp, %r13
jae 0x3cf4b
movq -0x8(%r12,%rdx,8), %rsi
addq %rbx, %rsi
addq $-0x8, %rsi
xorl %edi, %edi
movsd (%rsi,%rdi,8), %xmm2
mulsd (%rcx,%rdi,8), %xmm2
addsd %xmm2, %xmm1
incq %rdi
cmpl %edi, %r10d
jne 0x3cf35
cmpq %rbp, %r13
jae 0x3cf7a
movq -0x8(%r12,%rdx,8), %rsi
addq %rbx, %rsi
addq $-0x8, %rsi
xorl %edi, %edi
movsd (%r15,%rdi,8), %xmm2
mulsd %xmm1, %xmm2
addsd (%rsi,%rdi,8), %xmm2
movsd %xmm2, (%rsi,%rdi,8)
incq %rdi
cmpl %edi, %r10d
jne 0x3cf5e
incq %rdx
cmpl %edx, %r9d
jne 0x3cf1e
cmpq %rbp, %r13
jae 0x3cfc6
movq 0x30(%rsp), %rdx
addq %rdx, %rax
movl $0x1, %ecx
movq 0x50(%rsp), %r15
movl 0xa4(%rsp), %ebx
movq 0x48(%rsp), %rsi
movq 0x18(%rsp), %rdi
movq 0x40(%rsp), %r9
movsd (%rax,%rcx,8), %xmm1
mulsd %xmm6, %xmm1
movsd %xmm1, (%rax,%rcx,8)
incq %rcx
cmpl %ecx, %edi
jne 0x3cfaf
jmp 0x3cfe6
movq 0x50(%rsp), %r15
movl 0xa4(%rsp), %ebx
movq 0x48(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0x18(%rsp), %rdi
movq 0x40(%rsp), %r9
leaq 0x1(%r13), %rax
movsd -0x8(%r8,%r13,8), %xmm1
movapd 0x661e7(%rip), %xmm4    # 0xa31e0
andpd %xmm4, %xmm1
movsd -0x8(%r15,%r13,8), %xmm2
andpd %xmm4, %xmm2
addsd %xmm1, %xmm2
movapd %xmm3, %xmm1
cmpunordsd %xmm3, %xmm1
movapd %xmm3, %xmm4
movapd %xmm1, %xmm3
andpd %xmm2, %xmm3
maxsd %xmm4, %xmm2
andnpd %xmm2, %xmm1
orpd %xmm3, %xmm1
movapd %xmm1, %xmm3
incq %r11
addq $0x8, %r9
decq %rsi
addq $0x8, %rdx
decq %rdi
decq %r10
cmpq 0x38(%rsp), %r11
jne 0x3cbbe
movq 0x88(%rsp), %r13
jmp 0x3d067
xorpd %xmm3, %xmm3
xorpd %xmm0, %xmm0
movq 0x58(%rsp), %r14
testl %r13d, %r13d
jle 0x3d1d1
leal 0x1(%r13), %ecx
xorpd %xmm1, %xmm1
xorl %edx, %edx
movabsq $0x3ff0000000000000, %rsi # imm = 0x3FF0000000000000
movq %rbp, %rdi
cmpq %rbp, %rdi
jge 0x3d1a8
ucomisd %xmm1, %xmm0
jne 0x3d09c
jnp 0x3d161
movl %r13d, %r8d
subl %eax, %r8d
jl 0x3d0e4
movq -0x8(%r12,%rdi,8), %r9
movslq %eax, %r10
leaq (%r9,%r10,8), %r11
movq 0x68(%rsp), %rbx
leaq (%rbx,%r10,8), %rbx
movq $-0x1, %r14
movsd (%r11,%r14,8), %xmm2
divsd -0x8(%r9,%r10,8), %xmm2
divsd %xmm0, %xmm2
movq (%rbx,%r14,8), %r15
movsd %xmm2, -0x8(%r15,%rdi,8)
incq %r14
cmpl %r14d, %r8d
jne 0x3d0c0
movl %r13d, %r8d
subl %eax, %r8d
jl 0x3d161
movslq %eax, %r9
leaq (,%r9,8), %r10
addq -0x8(%r12,%rdi,8), %r10
movq 0x68(%rsp), %r11
leaq (%r11,%r9,8), %r11
xorpd %xmm0, %xmm0
movq $-0x1, %rbx
movsd (%r10,%rbx,8), %xmm2
movq (%r11,%rbx,8), %r14
mulsd -0x8(%r14,%r9,8), %xmm2
addsd %xmm2, %xmm0
incq %rbx
cmpl %ebx, %r8d
jne 0x3d110
movq $-0x1, %rbx
movq (%r11,%rbx,8), %r14
movsd -0x8(%r14,%rdi,8), %xmm2
mulsd %xmm0, %xmm2
addsd -0x8(%r14,%r9,8), %xmm2
movsd %xmm2, -0x8(%r14,%r9,8)
incq %rbx
cmpl %ebx, %r8d
jne 0x3d134
incq %r9
cmpl %r9d, %ecx
jne 0x3d105
movl %r13d, %r8d
subl %eax, %r8d
movq 0x50(%rsp), %r15
movq 0x58(%rsp), %r14
jl 0x3d1a8
movslq %eax, %r9
leaq (,%r9,8), %rax
movq 0x68(%rsp), %r10
addq -0x8(%r10,%rdi,8), %rax
leaq (%r10,%r9,8), %r9
movq $-0x1, %r10
movq %rdx, (%rax,%r10,8)
movq (%r9,%r10,8), %r11
movq %rdx, -0x8(%r11,%rdi,8)
incq %r10
cmpl %r10d, %r8d
jne 0x3d193
movq 0x68(%rsp), %rax
movq -0x8(%rax,%rdi,8), %rax
movq %rsi, -0x8(%rax,%rdi,8)
movsd -0x8(%r15,%rdi,8), %xmm0
movl %edi, %eax
leaq -0x1(%rdi), %r8
cmpq $0x1, %rdi
movq %r8, %rdi
jg 0x3d087
movsd %xmm3, 0x60(%rsp)
movq %rbp, 0xa8(%rsp)
movq 0x98(%rsp), %rbx
movl %ebx, %edi
movl %r13d, %esi
callq 0x38de9
movq %rbx, %rdi
testl %eax, %eax
movq 0x28(%rsp), %r8
jle 0x3d3da
movq %rax, %rcx
movl %ecx, %r9d
leaq 0x1(%r9), %r10
leaq 0x8(,%r9,8), %rax
addq $-0x8, %rax
movq %rax, 0x38(%rsp)
notl %ecx
addl 0x88(%rsp), %ecx
movq %rcx, 0x18(%rsp)
leaq (%r12,%r9,8), %rbx
xorl %r11d, %r11d
xorpd %xmm3, %xmm3
movsd 0x652e3(%rip), %xmm4    # 0xa2520
movq %rbx, %rbp
movq %r9, %r13
movq %r9, 0x40(%rsp)
movq %r13, %r15
decq %r13
movsd -0x8(%r8,%r15,8), %xmm1
cmpq 0x70(%rsp), %r15
jge 0x3d2c5
movq 0x18(%rsp), %rax
addl %r11d, %eax
leaq 0x8(,%rax,8), %rdx
leaq (,%r11,8), %rax
movq 0x38(%rsp), %rdi
subq %rax, %rdi
addq (%r12,%r13,8), %rdi
xorl %esi, %esi
movq %r10, 0x8(%rsp)
movq %r11, 0x20(%rsp)
movsd %xmm1, 0x30(%rsp)
callq 0x4050
movsd 0x30(%rsp), %xmm1
movsd 0x6527b(%rip), %xmm4    # 0xa2520
xorpd %xmm3, %xmm3
movq 0x20(%rsp), %r11
movq 0x8(%rsp), %r10
movq 0x40(%rsp), %r9
movq 0x28(%rsp), %r8
movq 0x98(%rsp), %rdi
ucomisd %xmm3, %xmm1
jne 0x3d2d1
jnp 0x3d38b
movapd %xmm4, %xmm0
divsd %xmm1, %xmm0
cmpq 0x70(%rsp), %r15
jge 0x3d35d
movq (%r12,%r13,8), %rax
movq %r10, %rcx
xorpd %xmm1, %xmm1
cmpq %r14, %r15
jge 0x3d311
xorl %edx, %edx
movq (%rbx,%rdx,8), %rsi
movsd (%rsi,%r13,8), %xmm2
mulsd -0x8(%rsi,%rcx,8), %xmm2
addsd %xmm2, %xmm1
incq %rdx
leal (%r15,%rdx), %esi
cmpl %edi, %esi
jl 0x3d2f2
cmpq %r14, %r15
jg 0x3d34d
divsd (%rax,%r13,8), %xmm1
mulsd %xmm0, %xmm1
movq $-0x1, %rdx
movq (%rbp,%rdx,8), %rsi
movsd (%rsi,%r13,8), %xmm2
mulsd %xmm1, %xmm2
addsd -0x8(%rsi,%rcx,8), %xmm2
movsd %xmm2, -0x8(%rsi,%rcx,8)
incq %rdx
leal (%rdx,%r15), %esi
cmpl %edi, %esi
jl 0x3d327
leaq 0x1(%rcx), %rdx
cmpl 0x88(%rsp), %ecx
movq %rdx, %rcx
jl 0x3d2e7
cmpq %r14, %r15
jg 0x3d3af
movq $-0x1, %rax
movq (%rbp,%rax,8), %rcx
movsd (%rcx,%r13,8), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, (%rcx,%r13,8)
incq %rax
leal (%rax,%r15), %ecx
cmpl %edi, %ecx
jl 0x3d369
jmp 0x3d3af
cmpq %r14, %r15
jg 0x3d3af
movq $-0x1, %rax
movq (%rbp,%rax,8), %rcx
movq $0x0, (%rcx,%r13,8)
incq %rax
leal (%rax,%r15), %ecx
cmpl %edi, %ecx
jl 0x3d397
movq (%r12,%r13,8), %rax
movsd (%rax,%r13,8), %xmm0
addsd %xmm4, %xmm0
movsd %xmm0, (%rax,%r13,8)
incq %r11
decq %r10
addq $-0x8, %rbp
addq $-0x8, %rbx
cmpq %r9, %r11
jne 0x3d248
cmpl $0x0, 0x88(%rsp)
movq 0x50(%rsp), %rbx
movsd 0x60(%rsp), %xmm2
jle 0x3da0c
movabsq $-0x100000000, %rsi     # imm = 0xFFFFFFFF00000000
leal 0x1(%rdi), %r13d
movq 0x88(%rsp), %rax
leal 0x1(%rax), %ecx
movq 0xa8(%rsp), %rax
movq %rax, %rdx
shlq $0x20, %rdx
addq %rsi, %rdx
movq %rdx, 0xb0(%rsp)
decq %r13
movq %rcx, 0x58(%rsp)
leaq -0x1(%rcx), %rbp
movapd 0x65da6(%rip), %xmm3    # 0xa31e0
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x38(%rsp)
decq %rax
movq %rax, 0x10(%rsp)
movl $0x1, 0x48(%rsp)
movq 0xb0(%rsp), %rcx
movq 0x58(%rsp), %rax
movq 0x38(%rsp), %rdx
movq %rcx, %r15
leal -0x1(%rdx), %ecx
movsd (%rbx,%rcx,8), %xmm0
andpd %xmm3, %xmm0
addsd %xmm2, %xmm0
ucomisd %xmm2, %xmm0
jne 0x3d486
jnp 0x3d4ab
movsd -0x10(%r8,%rdx,8), %xmm1
andpd %xmm3, %xmm1
addsd %xmm2, %xmm1
ucomisd %xmm2, %xmm1
jne 0x3d49d
jnp 0x3d4ab
decl %eax
leaq (%r15,%rsi), %rcx
decq %rdx
cmpl $0x2, %eax
jge 0x3d46b
movq %rdx, 0x20(%rsp)
ucomisd %xmm2, %xmm0
jne 0x3d4bc
jnp 0x3d5de
movslq 0x20(%rsp), %rax
cmpq %rax, 0x38(%rsp)
jl 0x3d5de
movslq 0x20(%rsp), %r14
sarq $0x1d, %r15
xorpd %xmm5, %xmm5
movsd 0x6503f(%rip), %xmm4    # 0xa2520
movsd -0x8(%rbx,%r14,8), %xmm0
mulsd %xmm0, %xmm4
mulsd %xmm0, %xmm5
movsd %xmm5, -0x8(%rbx,%r14,8)
movapd %xmm4, %xmm0
andpd %xmm3, %xmm0
addsd %xmm2, %xmm0
ucomisd %xmm2, %xmm0
jne 0x3d50f
jnp 0x3d5de
movq %r12, %rbx
movq 0x28(%rsp), %r12
movsd -0x8(%r12,%r14,8), %xmm1
movsd %xmm1, 0x8(%rsp)
movapd %xmm4, %xmm0
movapd %xmm4, 0x70(%rsp)
callq 0x38df9
movsd 0x8(%rsp), %xmm5
movapd 0x70(%rsp), %xmm4
movsd %xmm0, -0x8(%r12,%r14,8)
movq %rbx, %r12
movsd 0x64fcf(%rip), %xmm1    # 0xa2520
divsd %xmm0, %xmm1
mulsd %xmm1, %xmm5
xorpd 0x65c6f(%rip), %xmm4    # 0xa31d0
mulsd %xmm1, %xmm4
cmpl $0x0, 0x98(%rsp)
jle 0x3d5b9
xorl %eax, %eax
movq (%r12,%rax,8), %rcx
movsd -0x8(%rcx,%r15), %xmm0
movsd -0x8(%rcx,%r14,8), %xmm1
movapd %xmm4, %xmm2
mulsd %xmm1, %xmm2
movapd %xmm4, %xmm3
mulsd %xmm0, %xmm3
mulsd %xmm5, %xmm0
addsd %xmm2, %xmm0
movsd %xmm0, -0x8(%rcx,%r15)
mulsd %xmm5, %xmm1
subsd %xmm3, %xmm1
movsd %xmm1, -0x8(%rcx,%r14,8)
incq %rax
cmpq %rax, %r13
jne 0x3d571
leaq 0x1(%r14), %rax
cmpq 0x38(%rsp), %r14
movq %rax, %r14
movq 0x50(%rsp), %rbx
movsd 0x60(%rsp), %xmm2
movapd 0x65c08(%rip), %xmm3    # 0xa31e0
jl 0x3d4e1
movq 0x28(%rsp), %r8
movq 0x10(%rsp), %rax
movsd (%r8,%rax,8), %xmm1
movq 0x20(%rsp), %r15
movl %r15d, %eax
cmpq 0x38(%rsp), %rax
je 0x3d99b
cmpl $0x1e, 0x48(%rsp)
movapd %xmm1, 0x70(%rsp)
jne 0x3d625
leaq 0x6998c(%rip), %rdi     # 0xa6fa1
callq 0x4090
movapd 0x70(%rsp), %xmm1
movq 0x28(%rsp), %r8
movq %r15, %rcx
shlq $0x20, %rcx
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
addq %rax, %rcx
movq %rcx, 0x90(%rsp)
movq %rcx, %rax
sarq $0x1d, %rax
movsd (%r8,%rax), %xmm0
movsd %xmm0, 0x18(%rsp)
movq 0x38(%rsp), %r14
movsd -0x10(%r8,%r14,8), %xmm4
movsd -0x10(%rbx,%r14,8), %xmm0
movq 0x10(%rsp), %rax
movsd (%rbx,%rax,8), %xmm2
movsd %xmm2, 0x40(%rsp)
movapd %xmm4, %xmm3
subsd %xmm1, %xmm3
addsd %xmm4, %xmm1
movsd %xmm4, 0x30(%rsp)
mulsd %xmm3, %xmm1
movapd %xmm0, %xmm3
subsd %xmm2, %xmm3
addsd %xmm2, %xmm0
mulsd %xmm3, %xmm0
addsd %xmm1, %xmm0
movapd %xmm2, %xmm1
addsd %xmm2, %xmm1
mulsd %xmm4, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
movsd 0x64e61(%rip), %xmm1    # 0xa2520
callq 0x38df9
movsd 0x18(%rsp), %xmm3
movapd %xmm3, %xmm1
movapd 0x70(%rsp), %xmm2
subsd %xmm2, %xmm1
addsd %xmm3, %xmm2
mulsd %xmm1, %xmm2
movapd %xmm2, 0x70(%rsp)
movsd 0x8(%rsp), %xmm1
callq 0x38d28
movsd 0x18(%rsp), %xmm4
movsd 0x30(%rsp), %xmm2
addsd 0x8(%rsp), %xmm0
divsd %xmm0, %xmm2
movsd 0x40(%rsp), %xmm0
subsd %xmm0, %xmm2
mulsd %xmm0, %xmm2
addsd 0x70(%rsp), %xmm2
divsd %xmm4, %xmm2
movslq %r15d, %rax
cmpq %r14, %rax
jge 0x3d940
movslq %r15d, %rbx
movsd 0x64dea(%rip), %xmm5    # 0xa2520
movapd %xmm5, %xmm1
movq 0x28(%rsp), %r8
movsd %xmm4, 0x18(%rsp)
movsd %xmm2, 0x30(%rsp)
movq %rbx, %r15
incq %rbx
movq 0x50(%rsp), %r14
movsd (%r14,%r15,8), %xmm0
movsd (%r8,%r15,8), %xmm3
movsd %xmm3, 0x20(%rsp)
mulsd %xmm0, %xmm1
movsd %xmm1, 0x70(%rsp)
mulsd %xmm0, %xmm5
movsd %xmm5, 0x8(%rsp)
movapd %xmm2, %xmm0
callq 0x38df9
movsd 0x30(%rsp), %xmm4
movsd %xmm0, -0x8(%r14,%r15,8)
divsd %xmm0, %xmm4
movsd 0x70(%rsp), %xmm7
divsd %xmm0, %xmm7
movsd 0x8(%rsp), %xmm3
movapd %xmm3, %xmm2
mulsd %xmm7, %xmm2
movapd %xmm7, %xmm1
movsd 0x18(%rsp), %xmm0
mulsd %xmm0, %xmm1
mulsd %xmm4, %xmm0
addsd %xmm2, %xmm0
movapd %xmm3, %xmm2
mulsd %xmm4, %xmm2
subsd %xmm1, %xmm2
movsd %xmm2, 0x8(%rsp)
movsd 0x20(%rsp), %xmm2
movapd %xmm2, %xmm1
mulsd %xmm7, %xmm1
mulsd %xmm4, %xmm2
movsd %xmm2, 0x20(%rsp)
xorl %eax, %eax
movq 0x68(%rsp), %rdx
movq (%rdx,%rax,8), %rcx
movsd -0x8(%rcx,%r15,8), %xmm6
movsd (%rcx,%r15,8), %xmm5
movapd %xmm7, %xmm2
mulsd %xmm5, %xmm2
movapd %xmm7, %xmm3
mulsd %xmm6, %xmm3
mulsd %xmm4, %xmm6
addsd %xmm2, %xmm6
movsd %xmm6, -0x8(%rcx,%r15,8)
mulsd %xmm4, %xmm5
subsd %xmm3, %xmm5
movsd %xmm5, (%rcx,%r15,8)
incq %rax
cmpq %rax, %rbp
jne 0x3d7f5
movsd %xmm7, 0x40(%rsp)
movsd %xmm4, 0x30(%rsp)
movsd %xmm1, 0x70(%rsp)
movsd %xmm0, 0x18(%rsp)
callq 0x38df9
movsd 0x18(%rsp), %xmm5
ucomisd 0x654a2(%rip), %xmm0    # 0xa2d08
movsd 0x64cb2(%rip), %xmm2    # 0xa2520
divsd %xmm0, %xmm2
mulsd %xmm2, %xmm5
jne 0x3d88f
movq 0x98(%rsp), %rax
movq 0x28(%rsp), %r8
jp 0x3d89c
movsd 0x30(%rsp), %xmm5
jmp 0x3d89c
movq 0x98(%rsp), %rax
movq 0x28(%rsp), %r8
movsd 0x70(%rsp), %xmm1
mulsd %xmm2, %xmm1
movsd 0x40(%rsp), %xmm2
jne 0x3d8b4
jp 0x3d8b4
movapd %xmm2, %xmm1
movsd %xmm0, -0x8(%r8,%r15,8)
testl %eax, %eax
jle 0x3d907
xorl %eax, %eax
movq (%r12,%rax,8), %rcx
movsd -0x8(%rcx,%r15,8), %xmm0
movsd (%rcx,%r15,8), %xmm4
movapd %xmm1, %xmm2
mulsd %xmm4, %xmm2
movapd %xmm1, %xmm3
mulsd %xmm0, %xmm3
mulsd %xmm5, %xmm0
addsd %xmm2, %xmm0
movsd %xmm0, -0x8(%rcx,%r15,8)
mulsd %xmm5, %xmm4
subsd %xmm3, %xmm4
movsd %xmm4, (%rcx,%r15,8)
incq %rax
cmpq %rax, %r13
jne 0x3d8c1
movapd %xmm5, %xmm4
movsd 0x20(%rsp), %xmm3
mulsd %xmm3, %xmm4
mulsd %xmm1, %xmm3
movapd %xmm5, %xmm2
movsd 0x8(%rsp), %xmm0
mulsd %xmm0, %xmm2
addsd %xmm3, %xmm2
mulsd %xmm1, %xmm0
subsd %xmm0, %xmm4
cmpq 0x38(%rsp), %rbx
jl 0x3d73f
jmp 0x3d945
movq 0x28(%rsp), %r8
movq 0x90(%rsp), %rax
sarq $0x20, %rax
movq 0x50(%rsp), %rbx
movq $0x0, (%rbx,%rax,8)
movq 0x10(%rsp), %rax
movsd %xmm2, (%rbx,%rax,8)
movsd %xmm4, (%r8,%rax,8)
movl 0x48(%rsp), %eax
incl %eax
movl %eax, 0x48(%rsp)
cmpl $0x1f, %eax
movsd 0x60(%rsp), %xmm2
movabsq $-0x100000000, %rsi     # imm = 0xFFFFFFFF00000000
movapd 0x6584d(%rip), %xmm3    # 0xa31e0
jne 0x3d459
jmp 0x3d9ec
xorpd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
movq 0x68(%rsp), %rdx
movabsq $-0x100000000, %rsi     # imm = 0xFFFFFFFF00000000
jbe 0x3d9ec
xorpd 0x65814(%rip), %xmm1    # 0xa31d0
movq 0x10(%rsp), %rax
movlpd %xmm1, (%r8,%rax,8)
xorl %eax, %eax
movq (%rdx,%rax,8), %rcx
movq 0x10(%rsp), %rdi
movsd (%rcx,%rdi,8), %xmm0
xorpd 0x657f1(%rip), %xmm0    # 0xa31d0
movlpd %xmm0, (%rcx,%rdi,8)
incq %rax
cmpq %rax, %rbp
jne 0x3d9c9
movq 0x58(%rsp), %rax
decl %eax
movq %rax, 0x58(%rsp)
addq %rsi, 0xb0(%rsp)
cmpq $0x1, 0x38(%rsp)
jg 0x3d43f
movq %r8, %r14
movq %rbx, %rdi
callq 0x39194
movq 0x68(%rsp), %rdx
cmpl $0x0, 0x88(%rsp)
movq 0xb8(%rsp), %r10
movq 0xa8(%rsp), %rbx
jle 0x3dadd
movl %r10d, %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl $0x1, %ecx
xorl %r11d, %r11d
movq %r11, %rsi
incq %r11
cmpq %rbx, %r11
jae 0x3dad1
movq %rcx, %rdi
movsd (%r14,%rsi,8), %xmm0
movsd (%r14,%rdi,8), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x3dac9
movsd %xmm1, (%r14,%rsi,8)
movsd %xmm0, (%r14,%rdi,8)
testl %r10d, %r10d
jle 0x3daa2
xorl %r8d, %r8d
movq (%r12,%r8,8), %r9
movsd (%r9,%rsi,8), %xmm0
movsd (%r9,%rdi,8), %xmm1
movsd %xmm1, (%r9,%rsi,8)
movsd %xmm0, (%r9,%rdi,8)
incq %r8
cmpq %r8, %rax
jne 0x3da7e
xorl %r8d, %r8d
movq (%rdx,%r8,8), %r9
movsd (%r9,%rsi,8), %xmm0
movsd (%r9,%rdi,8), %xmm1
movsd %xmm1, (%r9,%rsi,8)
movsd %xmm0, (%r9,%rdi,8)
incq %r8
cmpq %r8, %rbx
jne 0x3daa5
incq %rdi
cmpq %rbx, %rdi
jne 0x3da58
incq %rcx
cmpq %rbx, %r11
jne 0x3da4a
movq %rbx, %rax
shlq $0x20, %rax
orq %rbx, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq