// File: /workspace/github_c_makefile_star2_O2/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, (%rsp)
movl %ecx, %ebx
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, 0xb8(%rsp)
movslq %ecx, %r12
leaq (,%r12,8), %rdi
leaq 0x61ad1(%rip), %rsi     # 0x99f6a
pushq $0x4
popq %rdx
callq 0x34f59
movq %rax, 0x10(%rsp)
movl %r12d, %edi
movl %r12d, %esi
callq 0x380d3
movl %ebx, %esi
movq %rax, 0xa0(%rsp)
movq %rdx, %r13
leal 0x1(%r15), %edx
movslq %r15d, %rax
movq %rax, 0x90(%rsp)
movl %r12d, %eax
movq %rax, 0x70(%rsp)
xorl %eax, %eax
testl %r12d, %r12d
cmovgl %ebx, %eax
movq %rax, 0xa8(%rsp)
addl $0x2, %eax
movq %rax, 0x80(%rsp)
decq %rdx
pushq $0x1
popq %rbp
pushq $0x2
popq %r8
pushq $0x8
popq %rax
movq %rax, 0x18(%rsp)
movapd 0x5dcd6(%rip), %xmm2    # 0x961e0
movq %r14, %rbx
xorpd %xmm3, %xmm3
xorpd %xmm0, %xmm0
movapd %xmm0, 0x40(%rsp)
xorpd %xmm1, %xmm1
movl %esi, 0xc(%rsp)
movq %r12, 0x38(%rsp)
cmpq 0x80(%rsp), %r8
movsd %xmm3, 0x88(%rsp)
je 0x3893a
movapd 0x40(%rsp), %xmm0
mulsd %xmm1, %xmm0
movq 0x10(%rsp), %rax
movq %rbp, %r10
movsd %xmm0, -0x8(%rax,%rbp,8)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x40(%rsp)
xorpd %xmm4, %xmm4
cmpq 0x90(%rsp), %rbp
movq %rdx, 0x50(%rsp)
movq %r8, 0x60(%rsp)
jg 0x386eb
xorl %eax, %eax
cmpq %rax, %rdx
je 0x3859c
movq (%rbx,%rax,8), %rcx
movsd -0x8(%rcx,%r10,8), %xmm0
andpd %xmm2, %xmm0
addsd %xmm0, %xmm4
incq %rax
jmp 0x3857f
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm4
jne 0x385ac
jnp 0x386eb
xorpd %xmm1, %xmm1
xorl %eax, %eax
cmpq %rax, %rdx
je 0x385da
movq (%rbx,%rax,8), %rcx
movsd -0x8(%rcx,%r10,8), %xmm0
divsd %xmm4, %xmm0
movsd %xmm0, -0x8(%rcx,%r10,8)
mulsd %xmm0, %xmm0
addsd %xmm0, %xmm1
incq %rax
jmp 0x385b2
movq -0x8(%r14,%r10,8), %rax
movsd -0x8(%rax,%r10,8), %xmm0
movsd %xmm0, 0x20(%rsp)
ucomisd 0x5d724(%rip), %xmm1    # 0x95d18
movsd %xmm4, 0x78(%rsp)
movsd %xmm1, 0xb0(%rsp)
jb 0x3860b
sqrtsd %xmm1, %xmm0
jmp 0x38614
movapd %xmm1, %xmm0
callq 0x4300
movsd 0x20(%rsp), %xmm1
callq 0x34c10
movsd 0x20(%rsp), %xmm2
movapd %xmm2, %xmm1
mulsd %xmm0, %xmm1
subsd 0xb0(%rsp), %xmm1
subsd %xmm0, %xmm2
movq %rbp, %r10
movq -0x8(%r14,%rbp,8), %rax
movsd %xmm2, -0x8(%rax,%rbp,8)
movq 0x60(%rsp), %r8
movq %r8, %rax
movl 0xc(%rsp), %esi
movq 0x50(%rsp), %rdi
movsd 0x78(%rsp), %xmm4
cmpl %esi, %eax
jg 0x386b8
xorpd %xmm2, %xmm2
xorl %ecx, %ecx
cmpq %rcx, %rdi
je 0x38688
movq (%rbx,%rcx,8), %rdx
movsd -0x8(%rdx,%r10,8), %xmm3
mulsd -0x8(%rdx,%rax,8), %xmm3
addsd %xmm3, %xmm2
incq %rcx
jmp 0x38669
divsd %xmm1, %xmm2
xorl %ecx, %ecx
cmpq %rcx, %rdi
je 0x386b3
movq (%rbx,%rcx,8), %rdx
movsd -0x8(%rdx,%r10,8), %xmm3
mulsd %xmm2, %xmm3
addsd -0x8(%rdx,%rax,8), %xmm3
movsd %xmm3, -0x8(%rdx,%rax,8)
incq %rcx
jmp 0x3868e
incq %rax
jmp 0x3865f
xorl %eax, %eax
movapd 0x5db1e(%rip), %xmm2    # 0x961e0
movsd 0x88(%rsp), %xmm3
cmpq %rax, %rdi
je 0x386eb
movq (%rbx,%rax,8), %rcx
movsd -0x8(%rcx,%r10,8), %xmm1
mulsd %xmm4, %xmm1
movsd %xmm1, -0x8(%rcx,%r10,8)
incq %rax
jmp 0x386cb
mulsd %xmm4, %xmm0
cmpq 0x90(%rsp), %r10
setg %al
movq (%rsp), %rcx
movsd %xmm0, -0x8(%rcx,%r10,8)
cmpq 0x70(%rsp), %r10
sete %cl
orb %al, %cl
je 0x38720
xorpd %xmm1, %xmm1
movsd %xmm1, 0x20(%rsp)
jmp 0x388d1
movslq %r8d, %r12
xorpd %xmm4, %xmm4
movq %r10, %rax
leal 0x1(%rax), %ecx
cmpl %esi, %ecx
jg 0x38748
movq -0x8(%r14,%r10,8), %rcx
movsd (%rcx,%rax,8), %xmm1
andpd %xmm2, %xmm1
addsd %xmm1, %xmm4
incq %rax
jmp 0x3872a
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm4
movsd %xmm4, 0x20(%rsp)
jne 0x3875a
jnp 0x387ae
movq -0x8(%r14,%r10,8), %rax
movq 0x18(%rsp), %rcx
addq %rax, %rcx
xorl %edx, %edx
leal (%r8,%rdx), %edi
cmpl %esi, %edi
jg 0x3878c
movsd (%rcx,%rdx,8), %xmm0
divsd %xmm4, %xmm0
movsd %xmm0, (%rcx,%rdx,8)
mulsd %xmm0, %xmm0
addsd %xmm0, %xmm1
incq %rdx
jmp 0x38769
movsd (%rax,%r10,8), %xmm0
movsd %xmm0, 0x40(%rsp)
ucomisd 0x5d578(%rip), %xmm1    # 0x95d18
movsd %xmm1, 0x78(%rsp)
jb 0x387b9
sqrtsd %xmm1, %xmm0
jmp 0x387c2
movapd %xmm1, 0x40(%rsp)
jmp 0x388d1
movapd %xmm1, %xmm0
callq 0x4300
movsd 0x40(%rsp), %xmm1
callq 0x34c10
movapd %xmm0, %xmm2
xorpd 0x5d9f7(%rip), %xmm2    # 0x961d0
movapd %xmm2, %xmm1
movsd 0x40(%rsp), %xmm3
mulsd %xmm3, %xmm1
subsd 0x78(%rsp), %xmm1
addsd %xmm0, %xmm3
movq %rbp, %r10
movq -0x8(%r14,%rbp,8), %rax
movsd %xmm3, (%rax,%rbp,8)
movq %r12, %rcx
movl 0xc(%rsp), %edi
movq 0x38(%rsp), %r9
movsd 0x88(%rsp), %xmm3
movq 0x60(%rsp), %r11
movsd 0x20(%rsp), %xmm4
cmpq %r9, %rcx
jg 0x3883d
movsd -0x8(%rax,%rcx,8), %xmm0
divsd %xmm1, %xmm0
movq 0x10(%rsp), %rdx
movsd %xmm0, -0x8(%rdx,%rcx,8)
incq %rcx
jmp 0x3881e
movq %r11, %rcx
cmpl %r15d, %ecx
jg 0x3889e
xorpd %xmm0, %xmm0
movq %r12, %rdx
cmpq %r9, %rdx
jg 0x3886b
movq -0x8(%r14,%rcx,8), %rsi
movsd -0x8(%rsi,%rdx,8), %xmm1
mulsd -0x8(%rax,%rdx,8), %xmm1
addsd %xmm1, %xmm0
incq %rdx
jmp 0x3884c
movq %r12, %rdx
cmpq %r9, %rdx
jg 0x38899
movq -0x8(%r14,%rcx,8), %rsi
movq 0x10(%rsp), %r8
movsd -0x8(%r8,%rdx,8), %xmm1
mulsd %xmm0, %xmm1
addsd -0x8(%rsi,%rdx,8), %xmm1
movsd %xmm1, -0x8(%rsi,%rdx,8)
incq %rdx
jmp 0x3886e
incq %rcx
jmp 0x38840
addq 0x18(%rsp), %rax
xorl %ecx, %ecx
leal (%r11,%rcx), %edx
cmpl %edi, %edx
jg 0x388c0
movsd (%rax,%rcx,8), %xmm0
mulsd %xmm4, %xmm0
movsd %xmm0, (%rax,%rcx,8)
incq %rcx
jmp 0x388a5
movapd %xmm2, 0x40(%rsp)
movq (%rsp), %rax
movsd -0x8(%rax,%r10,8), %xmm0
movapd 0x5d907(%rip), %xmm2    # 0x961e0
andpd %xmm2, %xmm0
movq 0x10(%rsp), %rax
movsd -0x8(%rax,%r10,8), %xmm1
incq %r10
movq %r10, %rbp
andpd %xmm2, %xmm1
addsd %xmm0, %xmm1
movapd %xmm3, %xmm0
callq 0x34c90
movapd %xmm0, %xmm3
movq 0x60(%rsp), %r8
incq %r8
movq 0x50(%rsp), %rdx
decq %rdx
addq $0x8, %rbx
addq $0x8, 0x18(%rsp)
movl 0xc(%rsp), %esi
movq 0x38(%rsp), %r12
movapd 0x5d8b1(%rip), %xmm2    # 0x961e0
movsd 0x20(%rsp), %xmm1
jmp 0x38528
xorpd %xmm0, %xmm0
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq 0x70(%rsp), %rcx
movapd 0x40(%rsp), %xmm2
testl %ecx, %ecx
jle 0x38a4c
movl %ecx, %edx
cmpl %esi, %ecx
jge 0x38a2b
movslq %ebp, %r10
ucomisd %xmm0, %xmm2
jne 0x38974
jnp 0x38a09
movq %r10, %rdi
cmpq %r12, %rdi
jg 0x389a4
movq -0x8(%r14,%rcx,8), %r8
movsd -0x8(%r8,%rdi,8), %xmm1
divsd -0x8(%r8,%r10,8), %xmm1
divsd %xmm2, %xmm1
movq -0x8(%r13,%rdi,8), %r8
movsd %xmm1, -0x8(%r8,%rcx,8)
incq %rdi
jmp 0x38977
movq %r10, %rdi
cmpq %r12, %rdi
jg 0x38a09
xorpd %xmm1, %xmm1
movq %r10, %r8
cmpq %r12, %r8
jg 0x389d9
movq -0x8(%r14,%rcx,8), %r9
movsd -0x8(%r9,%r8,8), %xmm2
movq -0x8(%r13,%r8,8), %r9
mulsd -0x8(%r9,%rdi,8), %xmm2
addsd %xmm2, %xmm1
incq %r8
jmp 0x389b3
movq %r10, %r8
cmpq %r12, %r8
jg 0x38a04
movq -0x8(%r13,%r8,8), %r9
movsd -0x8(%r9,%rcx,8), %xmm2
mulsd %xmm1, %xmm2
addsd -0x8(%r9,%rdi,8), %xmm2
movsd %xmm2, -0x8(%r9,%rdi,8)
incq %r8
jmp 0x389dc
incq %rdi
jmp 0x389a7
leal -0x1(%rcx), %edi
cmpq %r12, %r10
jg 0x38a2b
movq (%r13,%rdi,8), %r8
andq $0x0, -0x8(%r8,%r10,8)
movq -0x8(%r13,%r10,8), %r8
andq $0x0, (%r8,%rdi,8)
incq %r10
jmp 0x38a0c
decq %rcx
movl %ecx, %r8d
movq (%r13,%r8,8), %rdi
movq %rax, (%rdi,%r8,8)
movq 0x10(%rsp), %rdi
movsd (%rdi,%r8,8), %xmm2
movl %edx, %ebp
jmp 0x38953
movl %r15d, %edi
callq 0x34ccd
movapd 0x5d774(%rip), %xmm7    # 0x961d0
movq 0x38(%rsp), %r10
movl 0xc(%rsp), %r9d
leal 0x1(%rax), %ecx
movl %eax, %eax
xorpd %xmm0, %xmm0
testl %eax, %eax
jle 0x38b6f
leaq -0x1(%rax), %rdx
movq (%rsp), %rsi
movsd -0x8(%rsi,%rax,8), %xmm2
movq %rcx, %rsi
cmpl %r9d, %esi
jg 0x38a9c
movq (%r14,%rdx,8), %rdi
andq $0x0, -0x8(%rdi,%rsi,8)
incq %rsi
jmp 0x38a88
ucomisd %xmm0, %xmm2
jne 0x38aa8
jnp 0x38b49
movsd 0x5ca70(%rip), %xmm1    # 0x95520
divsd %xmm2, %xmm1
movq %rcx, %rsi
cmpl %r9d, %esi
jg 0x38b35
xorpd %xmm2, %xmm2
movq %rcx, %rdi
cmpl %r15d, %edi
jg 0x38ae3
movq -0x8(%r14,%rdi,8), %r8
movsd (%r8,%rdx,8), %xmm3
mulsd -0x8(%r8,%rsi,8), %xmm3
addsd %xmm3, %xmm2
incq %rdi
jmp 0x38ac3
movq (%r14,%rdx,8), %rdi
divsd (%rdi,%rdx,8), %xmm2
mulsd %xmm1, %xmm2
movq %rax, %rdi
cmpl %r15d, %edi
jg 0x38b1a
movq -0x8(%r14,%rdi,8), %r8
movsd (%r8,%rdx,8), %xmm3
mulsd %xmm2, %xmm3
addsd -0x8(%r8,%rsi,8), %xmm3
movsd %xmm3, -0x8(%r8,%rsi,8)
incq %rdi
jmp 0x38af3
incq %rsi
jmp 0x38ab7
movq -0x8(%r14,%rax,8), %rsi
movsd (%rsi,%rdx,8), %xmm2
mulsd %xmm1, %xmm2
movsd %xmm2, (%rsi,%rdx,8)
incq %rax
cmpl %r15d, %eax
jle 0x38b1f
jmp 0x38b4e
movq -0x8(%r14,%rax,8), %rsi
andq $0x0, (%rsi,%rdx,8)
incq %rax
cmpl %r15d, %eax
jle 0x38b3c
movq (%r14,%rdx,8), %rax
movsd (%rax,%rdx,8), %xmm1
addsd 0x5c9c1(%rip), %xmm1    # 0x95520
movsd %xmm1, (%rax,%rdx,8)
decq %rcx
movq %rdx, %rax
jmp 0x38a6f
xorl %eax, %eax
testl %r15d, %r15d
cmovlel %eax, %r15d
decq 0x70(%rsp)
movl 0xa8(%rsp), %ebx
movapd 0x5d654(%rip), %xmm1    # 0x961e0
movsd 0x88(%rsp), %xmm2
movq %r13, 0xc0(%rsp)
testq %r10, %r10
jle 0x39184
leaq -0x1(%r10), %rax
movq %rax, 0x18(%rsp)
pushq $0x1
popq %rsi
movq %r10, 0x38(%rsp)
cmpl $0x1f, %esi
je 0x39175
movq 0x70(%rsp), %rax
movl %r10d, %ecx
movl %esi, 0x80(%rsp)
movl %ecx, %ebp
testl %ecx, %ecx
jle 0x38c23
movl %eax, %ecx
movq 0x10(%rsp), %rdx
movsd (%rdx,%rcx,8), %xmm0
andpd %xmm1, %xmm0
addsd %xmm2, %xmm0
leal -0x1(%rbp), %edi
ucomisd %xmm2, %xmm0
jne 0x38bf8
jnp 0x38d56
movq (%rsp), %rcx
movsd -0x8(%rcx,%rax,8), %xmm0
andpd %xmm1, %xmm0
addsd %xmm2, %xmm0
leal -0x1(%rbp), %ecx
decq %rax
ucomisd %xmm2, %xmm0
jne 0x38bcf
jp 0x38bcf
leal 0x1(%rcx), %eax
movl %eax, 0x20(%rsp)
movl %ecx, %edi
jmp 0x38c2b
movl $0x0, 0x20(%rsp)
movl %edi, 0x50(%rsp)
movslq %edi, %r12
testl %ebp, %ebp
movl $0x0, %eax
cmovlel %eax, %ebp
xorpd %xmm5, %xmm5
movsd 0x5c8d8(%rip), %xmm4    # 0x95520
cmpq %r10, %rbp
jg 0x38d45
movq 0x10(%rsp), %rax
movsd -0x8(%rax,%rbp,8), %xmm0
mulsd %xmm0, %xmm4
mulsd %xmm0, %xmm5
movsd %xmm5, -0x8(%rax,%rbp,8)
movapd %xmm4, %xmm0
andpd %xmm1, %xmm0
addsd %xmm2, %xmm0
ucomisd %xmm2, %xmm0
jne 0x38c82
jnp 0x38d45
movq (%rsp), %r13
movsd -0x8(%r13,%rbp,8), %xmm1
movsd %xmm1, 0x40(%rsp)
movapd %xmm4, %xmm0
movapd %xmm4, 0x60(%rsp)
callq 0x34cdd
movsd 0x40(%rsp), %xmm5
movapd 0x60(%rsp), %xmm4
movapd 0x5d51a(%rip), %xmm7    # 0x961d0
movq 0x38(%rsp), %r10
movsd %xmm0, -0x8(%r13,%rbp,8)
movsd 0x5c856(%rip), %xmm1    # 0x95520
divsd %xmm0, %xmm1
mulsd %xmm1, %xmm5
xorpd %xmm7, %xmm4
mulsd %xmm1, %xmm4
xorl %eax, %eax
cmpq %rax, %r15
je 0x38d24
movq (%r14,%rax,8), %rcx
movsd -0x8(%rcx,%r12,8), %xmm0
movsd -0x8(%rcx,%rbp,8), %xmm1
movapd %xmm4, %xmm2
mulsd %xmm1, %xmm2
movapd %xmm4, %xmm3
mulsd %xmm0, %xmm3
mulsd %xmm5, %xmm0
addsd %xmm2, %xmm0
movsd %xmm0, -0x8(%rcx,%r12,8)
mulsd %xmm5, %xmm1
subsd %xmm3, %xmm1
movsd %xmm1, -0x8(%rcx,%rbp,8)
incq %rax
jmp 0x38cdc
incq %rbp
movq 0xc0(%rsp), %r13
movapd 0x5d4a9(%rip), %xmm1    # 0x961e0
movsd 0x88(%rsp), %xmm2
jmp 0x38c48
movl 0x20(%rsp), %eax
movl %eax, %ebp
movl 0x80(%rsp), %esi
movl 0x50(%rsp), %edi
movq (%rsp), %rax
movq 0x18(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm3
cmpl %r10d, %ebp
je 0x39135
cmpl $0x1e, %esi
movapd %xmm3, 0x50(%rsp)
jne 0x38d8f
leaq 0x611f2(%rip), %rdi     # 0x99f71
callq 0x4090
movapd 0x50(%rsp), %xmm3
movq 0x38(%rsp), %r10
movslq %ebp, %r12
leaq -0x1(%r12), %rax
movq %rax, 0x78(%rsp)
movq (%rsp), %rax
movsd -0x8(%rax,%r12,8), %xmm0
movaps %xmm0, 0x60(%rsp)
movsd -0x10(%rax,%r10,8), %xmm5
movq 0x10(%rsp), %rax
movsd -0x10(%rax,%r10,8), %xmm0
movq 0x18(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm2
movsd %xmm2, 0x90(%rsp)
movapd %xmm5, %xmm4
subsd %xmm3, %xmm4
movapd %xmm3, %xmm1
addsd %xmm5, %xmm1
movapd %xmm5, 0x40(%rsp)
mulsd %xmm4, %xmm1
movapd %xmm0, %xmm4
subsd %xmm2, %xmm4
addsd %xmm2, %xmm0
mulsd %xmm4, %xmm0
addsd %xmm1, %xmm0
movapd %xmm2, %xmm1
addsd %xmm2, %xmm1
mulsd %xmm5, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x20(%rsp)
movsd 0x5c702(%rip), %xmm1    # 0x95520
callq 0x34cdd
movapd 0x60(%rsp), %xmm2
movapd %xmm2, %xmm1
movapd 0x50(%rsp), %xmm3
subsd %xmm3, %xmm1
addsd %xmm2, %xmm3
mulsd %xmm1, %xmm3
movapd %xmm3, 0x50(%rsp)
movsd 0x20(%rsp), %xmm1
callq 0x34c10
movapd 0x60(%rsp), %xmm2
movapd 0x40(%rsp), %xmm8
movq 0x38(%rsp), %r10
addsd 0x20(%rsp), %xmm0
divsd %xmm0, %xmm8
movsd 0x90(%rsp), %xmm0
subsd %xmm0, %xmm8
mulsd %xmm0, %xmm8
addsd 0x50(%rsp), %xmm8
divsd %xmm2, %xmm8
movapd 0x60f9b(%rip), %xmm10   # 0x99e30
movapd 0x5d333(%rip), %xmm7    # 0x961d0
cmpq %r10, %r12
jge 0x390f1
movq 0x10(%rsp), %rbp
movsd (%rbp,%r12,8), %xmm0
movq (%rsp), %rax
movsd (%rax,%r12,8), %xmm1
movsd %xmm1, 0x50(%rsp)
movapd %xmm10, %xmm1
unpckhpd %xmm10, %xmm1           # xmm1 = xmm1[1],xmm10[1]
mulsd %xmm0, %xmm1
movapd %xmm1, 0x90(%rsp)
mulsd %xmm0, %xmm10
movapd %xmm10, 0x20(%rsp)
movapd %xmm8, %xmm0
movapd %xmm8, 0x40(%rsp)
movapd %xmm2, 0x60(%rsp)
callq 0x34cdd
movapd 0x20(%rsp), %xmm10
movsd 0x50(%rsp), %xmm9
movapd 0x60(%rsp), %xmm8
movapd 0x5d2b7(%rip), %xmm7    # 0x961d0
movsd %xmm0, -0x8(%rbp,%r12,8)
movapd 0x40(%rsp), %xmm11
unpcklpd 0x90(%rsp), %xmm11      # xmm11 = xmm11[0],mem[0]
unpcklpd %xmm0, %xmm0            # xmm0 = xmm0[0,0]
divpd %xmm0, %xmm11
movapd %xmm11, %xmm2
unpckhpd %xmm11, %xmm2           # xmm2 = xmm2[1],xmm11[1]
movapd %xmm10, %xmm12
mulsd %xmm2, %xmm12
movapd %xmm8, %xmm0
xorpd %xmm7, %xmm0
mulsd %xmm2, %xmm0
movapd %xmm9, %xmm1
mulsd %xmm2, %xmm1
movapd %xmm11, %xmm3
unpcklpd %xmm11, %xmm3           # xmm3 = xmm3[0],xmm11[0]
xorl %eax, %eax
cmpq %rax, %rbx
je 0x38faa
movq (%r13,%rax,8), %rcx
movupd -0x8(%rcx,%r12,8), %xmm4
movapd %xmm4, %xmm5
xorpd %xmm7, %xmm5
movapd %xmm4, %xmm6
shufpd $0x1, %xmm5, %xmm6      # xmm6 = xmm6[1],xmm5[0]
mulpd %xmm2, %xmm6
mulpd %xmm3, %xmm4
addpd %xmm6, %xmm4
movupd %xmm4, -0x8(%rcx,%r12,8)
incq %rax
jmp 0x38f70
mulsd %xmm11, %xmm8
addsd %xmm12, %xmm8
movapd %xmm8, 0x60(%rsp)
mulsd %xmm11, %xmm10
addsd %xmm0, %xmm10
movapd %xmm10, 0x40(%rsp)
mulsd %xmm11, %xmm9
movsd %xmm9, 0x50(%rsp)
movapd %xmm8, %xmm0
movapd %xmm11, 0x20(%rsp)
movapd %xmm1, 0x90(%rsp)
callq 0x34cdd
movsd 0x50(%rsp), %xmm9
movapd 0x40(%rsp), %xmm8
movapd 0x5d1c8(%rip), %xmm7    # 0x961d0
movq (%rsp), %rax
movsd %xmm0, -0x8(%rax,%r12,8)
movsd 0x5c505(%rip), %xmm1    # 0x95520
divsd %xmm0, %xmm1
cmpneqsd 0x5ccf0(%rip), %xmm0    # 0x95d18
movq %xmm0, %rax
andl $0x1, %eax
movapd 0x60(%rsp), %xmm0
unpcklpd 0x90(%rsp), %xmm0       # xmm0 = xmm0[0],mem[0]
unpcklpd %xmm1, %xmm1            # xmm1 = xmm1[0,0]
mulpd %xmm0, %xmm1
movd %eax, %xmm0
pshufd $0x0, %xmm0, %xmm10     # xmm10 = xmm0[0,0,0,0]
pslld $0x1f, %xmm10
psrad $0x1f, %xmm10
andpd %xmm10, %xmm1
andnpd 0x20(%rsp), %xmm10
orpd %xmm1, %xmm10
pshufd $0xee, %xmm10, %xmm2    # xmm2 = xmm10[2,3,2,3]
movapd %xmm9, %xmm1
mulsd %xmm2, %xmm1
movapd %xmm2, %xmm0
xorpd %xmm7, %xmm0
mulsd %xmm8, %xmm0
pshufd $0x44, %xmm10, %xmm3    # xmm3 = xmm10[0,1,0,1]
xorl %eax, %eax
movq 0x38(%rsp), %r10
cmpq %rax, %r15
je 0x390d0
movq (%r14,%rax,8), %rcx
movupd -0x8(%rcx,%r12,8), %xmm4
movapd %xmm4, %xmm5
xorpd %xmm7, %xmm5
movapd %xmm4, %xmm6
shufpd $0x1, %xmm5, %xmm6      # xmm6 = xmm6[1],xmm5[0]
mulpd %xmm2, %xmm6
mulpd %xmm3, %xmm4
addpd %xmm6, %xmm4
movupd %xmm4, -0x8(%rcx,%r12,8)
incq %rax
jmp 0x39097
incq %r12
mulsd %xmm10, %xmm8
addsd %xmm1, %xmm8
mulsd %xmm10, %xmm9
addsd %xmm0, %xmm9
movapd %xmm9, %xmm2
jmp 0x38e9d
movq 0x10(%rsp), %rax
movq 0x78(%rsp), %rcx
andq $0x0, (%rax,%rcx,8)
movq 0x18(%rsp), %rcx
movsd %xmm8, (%rax,%rcx,8)
movq (%rsp), %rax
movsd %xmm2, (%rax,%rcx,8)
movl 0x80(%rsp), %esi
incl %esi
movl %ecx, %edi
movapd 0x5d0b9(%rip), %xmm1    # 0x961e0
movsd 0x88(%rsp), %xmm2
jmp 0x38bb7
xorpd %xmm0, %xmm0
ucomisd %xmm3, %xmm0
jbe 0x39175
xorpd %xmm7, %xmm3
movq (%rsp), %rax
movq 0x18(%rsp), %rcx
movlpd %xmm3, (%rax,%rcx,8)
xorl %eax, %eax
cmpq %rax, %rbx
je 0x39175
movq (%r13,%rax,8), %rcx
movq 0x18(%rsp), %rdx
movsd (%rcx,%rdx,8), %xmm0
xorpd %xmm7, %xmm0
movlpd %xmm0, (%rcx,%rdx,8)
incq %rax
jmp 0x39153
decq 0x70(%rsp)
movq 0x18(%rsp), %r10
jmp 0x38b9d
movq 0x10(%rsp), %rdi
callq 0x34ff7
pushq $0x1
popq %rbp
xorl %r15d, %r15d
movl 0xc(%rsp), %ecx
cmpq %rbx, %r15
je 0x39208
movq %rbp, %r12
cmpl %ecx, %r12d
jge 0x39200
movq (%rsp), %rax
movsd (%rax,%r15,8), %xmm0
movsd (%rax,%r12,8), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x391fb
movq (%rsp), %rax
movsd %xmm1, (%rax,%r15,8)
movsd %xmm0, (%rax,%r12,8)
movq 0xb8(%rsp), %rdi
movq %r14, %rsi
movl %r15d, %edx
movl %r12d, %ecx
callq 0x3b30d
movq 0xa0(%rsp), %rdi
movq %r13, %rsi
movl %r15d, %edx
movl %r12d, %ecx
callq 0x3b30d
movl 0xc(%rsp), %ecx
incq %r12
jmp 0x391a0
incq %r15
incq %rbp
jmp 0x39198
movq 0xa0(%rsp), %rax
movq %r13, %rdx
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq