// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/svmsolve.c
// Function: solve
void solve(Solverptr s, int l, SVM_Q_MATRIX_TYPE qmatrixtype, double* b, signed char *y, double *alpha, double Cp, double Cn, Solutioninfoptr si, Svm_problem prob, Svm_parameter param, int nu)
{
 /*Last Changed 28.04.2005*/
	double *Q_i, *Q_j, alpha_i, C_i, C_j, old_alpha_i, old_alpha_j, delta, diff, sum, delta_alpha_i, delta_alpha_j, v;
	int i, j, iter, counter, ui, uj, k;
	s->l = l;
	s->qmatrixtype = qmatrixtype;
	switch (qmatrixtype)
	 {
	  case QC  :s->svcq = empty_svcq(prob, param, y);
				         break;
			case QR  :s->svrq = empty_svrq(prob, param);
				         break;
			case QONE:s->oneclassq = empty_oneclassq(prob, param);
				         break;
	 }
 s->b = safemalloc(s->l * sizeof(double), "solve", 14);
	memcpy(s->b, b, s->l * sizeof(double));
 s->y = safemalloc(s->l * sizeof(signed char), "solve", 16);
	memcpy(s->y, y, s->l * sizeof(signed char));
 s->alpha = safemalloc(s->l * sizeof(double), "solve", 18);
	memcpy(s->alpha, alpha, s->l * sizeof(double));
	s->Cp = Cp;
	s->Cn = Cn;
	s->eps = param.eps;
	s->unshrinked = 0;
	s->alpha_status = safemalloc(s->l * sizeof(char), "solve", 24);
	for (i = 0; i < s->l; i++)
			update_alpha_status(s, i);
	s->active_set = safemalloc(s->l * sizeof(int), "solve", 27);
	for (i = 0; i < s->l; i++)
			s->active_set[i] = i;
	s->active_size = s->l;
	s->G = safemalloc(s->l * sizeof(double), "solve", 31);
	s->G_bar = safemalloc(s->l * sizeof(double), "solve", 32);
	for (i = 0; i < s->l; i++)
	 {
			s->G[i] = b[i];
			s->G_bar[i] = 0;
		}
	for (i = 0; i < s->l; i++)
			if (!is_lower_bound(s, i))
			 {
				 Q_i = solver_get_Q(s, i, s->l);
				 alpha_i = s->alpha[i];
				 for (j = 0; j < s->l; j++)
					  s->G[j] += alpha_i * Q_i[j];
				 if (is_upper_bound(s, i))
					  for (j = 0; j < s->l; j++)
						   s->G_bar[j] += get_C(s, i) * Q_i[j];
			 }
	iter = 0;
	counter = imin(s->l, 1000) + 1;
	while (1)
	 {
		 if(--counter == 0)
			 {
			  counter = imin(s->l, 1000);
			  if (param.shrinking) 
						 do_shrinking(s);
			 }
		 if (select_working_set_general(s, &i, &j, nu) != 0)
			 {
			  reconstruct_gradient(s);
			  s->active_size = s->l;
			  if (select_working_set_general(s, &i, &j, nu) != 0)
				   break;
			  else
				   counter = 1;	
			 }		
		++iter;
		Q_i = solver_get_Q(s, i, s->active_size);
		Q_j = solver_get_Q(s, j, s->active_size);
		C_i = get_C(s, i);
		C_j = get_C(s, j);
		old_alpha_i = s->alpha[i];
		old_alpha_j = s->alpha[j];
		if (s->y[i] != s->y[j])
		 {
			 delta = (-s->G[i] - s->G[j]) / fmax(Q_i[i] + Q_j[j] + 2 * Q_i[j], 0.0);
			 diff = s->alpha[i] - s->alpha[j];
			 s->alpha[i] += delta;
			 s->alpha[j] += delta;			
			 if (diff > 0)
			  {
		  		if (s->alpha[j] < 0)
						 {
				   	s->alpha[j] = 0;
					   s->alpha[i] = diff;
						 }
				 }
			 else
				 {
				  if (s->alpha[i] < 0)
						 {
					   s->alpha[i] = 0;
					   s->alpha[j] = -diff;
						 }
				 }
			 if (diff > C_i - C_j)
				 {
			  	if (s->alpha[i] > C_i)
						 {
					   s->alpha[i] = C_i;
					   s->alpha[j] = C_i - diff;
						 }
				 }
			 else
			  {
				  if (s->alpha[j] > C_j)
						 {
					   s->alpha[j] = C_j;
					   s->alpha[i] = C_j + diff;
						 } 
				 }
		 }
		else
		 {
			 delta = (s->G[i] - s->G[j]) / fmax(Q_i[i] + Q_j[j] - 2 * Q_i[j], 0.0);
			 sum = s->alpha[i] + s->alpha[j];
			 s->alpha[i] -= delta;
			 s->alpha[j] += delta;
			 if (sum > C_i)
				 {
			  	if (s->alpha[i] > C_i)
						 {
					   s->alpha[i] = C_i;
					   s->alpha[j] = sum - C_i;
						 }
				 }
			 else
			  {
			  	if (alpha[j] < 0)
						 {
					   s->alpha[j] = 0;
					   s->alpha[i] = sum;
						 }
				 }
			 if (sum > C_j)
				 {
			  	if (s->alpha[j] > C_j)
						 {
					   s->alpha[j] = C_j;
					   s->alpha[i] = sum - C_j;
						 }
				 }
			 else
				 {
				  if (s->alpha[i] < 0)
						 {
					   s->alpha[i] = 0;
					   s->alpha[j] = sum;
						 }
				 }
		 }
		delta_alpha_i = s->alpha[i] - old_alpha_i;
		delta_alpha_j = s->alpha[j] - old_alpha_j;	
		for (k = 0; k < s->active_size; k++)
			 s->G[k] += Q_i[k] * delta_alpha_i + Q_j[k] * delta_alpha_j;
  ui = is_upper_bound(s, i);
		uj = is_upper_bound(s, j);
		update_alpha_status(s, i);
		update_alpha_status(s, j);
		if (ui != is_upper_bound(s, i))
		 {
				Q_i = solver_get_Q(s, i, s->l);
				if (ui)
					 for (k = 0; k < s->l; k++)
						  s->G_bar[k] -= C_i * Q_i[k];
				else
					 for (k = 0;k < s->l; k++)
						  s->G_bar[k] += C_i * Q_i[k];
		 }
		if (uj != is_upper_bound(s, j))
		 {
				Q_j = solver_get_Q(s, j, s->l);
				if (uj)
					 for (k = 0; k < s->l; k++)
						  s->G_bar[k] -= C_j * Q_j[k];
				else
					 for (k = 0; k < s->l; k++)
						  s->G_bar[k] += C_j * Q_j[k];
		 }
	 }
	si->rho = calculate_rho_general(s, si, nu);
	v = 0;
	for (i = 0; i < s->l; i++)
			v += s->alpha[i] * (s->G[i] + s->b[i]);
	si->obj = v / 2;
 for (i = 0; i < s->l; i++)
			alpha[s->active_set[i]] = s->alpha[i];
	si->upper_bound_p = Cp;
	si->upper_bound_n = Cn;
	safe_free(s->b);
	safe_free(s->y);
	safe_free(s->alpha);
	safe_free(s->alpha_status);
	safe_free(s->active_set);
	safe_free(s->G);
	safe_free(s->G_bar);
	switch (qmatrixtype)
	 {
	  case QC  :free_svcq(s->svcq);
				         break;
			case QR  :free_svrq(s->svrq);
				         break;
			case QONE:free_oneclassq(s->oneclassq);
				         break;
	 }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movsd %xmm1, 0xb8(%rsp)
movsd %xmm0, 0xb0(%rsp)
movq %r9, %r13
movq %r8, %r15
movq %rcx, %r14
movq %rdi, %rbx
movl 0x1a0(%rsp), %eax
movl %eax, 0x88(%rsp)
leaq 0x128(%rsp), %rax
movq 0x120(%rsp), %rcx
movl %esi, 0x78(%rdi)
movl %edx, 0x28(%rdi)
cmpl $0x2, %edx
movl %edx, 0x98(%rsp)
movq %rcx, 0xa8(%rsp)
je 0x940a3
cmpl $0x1, %edx
je 0x9406f
testl %edx, %edx
jne 0x940d9
leaq 0x20(%rsp), %rdi
movl $0xb, %ecx
leaq 0x148(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movups (%rax), %xmm0
movupd 0x10(%rax), %xmm1
movupd %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %r15, %rdi
callq 0x91790
movl $0x30, %r12d
jmp 0x940d5
leaq 0x20(%rsp), %rdi
movl $0xb, %ecx
leaq 0x148(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movups (%rax), %xmm0
movupd 0x10(%rax), %xmm1
movupd %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movl $0x38, %r12d
callq 0x91a83
jmp 0x940d5
leaq 0x20(%rsp), %rdi
movl $0xb, %ecx
leaq 0x148(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movups (%rax), %xmm0
movupd 0x10(%rax), %xmm1
movupd %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movl $0x40, %r12d
callq 0x9195d
movq %rax, (%rbx,%r12)
movslq 0x78(%rbx), %rdi
shlq $0x3, %rdi
leaq 0x1ab18(%rip), %r12     # 0xaec00
movq %r12, %rsi
movl $0xe, %edx
callq 0x390f5
movq %rax, 0x60(%rbx)
movslq 0x78(%rbx), %rdx
shlq $0x3, %rdx
movq %rax, %rdi
movq %r14, %rsi
callq 0x4310
movslq 0x78(%rbx), %rdi
movq %r12, %rsi
movl $0x10, %edx
callq 0x390f5
movq %rax, 0x8(%rbx)
movslq 0x78(%rbx), %rdx
movq %rax, %rdi
movq %r15, %rsi
callq 0x4310
movslq 0x78(%rbx), %rdi
shlq $0x3, %rdi
movq %r12, %rsi
movl $0x12, %edx
callq 0x390f5
movq %rax, 0x20(%rbx)
movslq 0x78(%rbx), %rdx
shlq $0x3, %rdx
movq %rax, %rdi
movq %r13, %rsi
callq 0x4310
movsd 0xb0(%rsp), %xmm0
movsd %xmm0, 0x50(%rbx)
movsd 0xb8(%rsp), %xmm0
movsd %xmm0, 0x58(%rbx)
leaq 0x148(%rsp), %rax
movsd 0x28(%rax), %xmm0
movsd %xmm0, 0x48(%rbx)
movl $0x0, 0x7c(%rbx)
movslq 0x78(%rbx), %rdi
movq %r12, %rsi
movl $0x18, %edx
callq 0x390f5
movq %rax, 0x18(%rbx)
movl 0x78(%rbx), %eax
xorl %r15d, %r15d
movl $0x0, %ebp
testl %eax, %eax
jle 0x941ca
xorl %ebp, %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x93413
incl %ebp
movl 0x78(%rbx), %eax
cmpl %eax, %ebp
jl 0x941b7
movl %ebp, 0x84(%rsp)
movslq %eax, %rdi
shlq $0x2, %rdi
leaq 0x1aa21(%rip), %rsi     # 0xaec00
movl $0x1b, %edx
callq 0x390f5
movq %rax, 0x68(%rbx)
movl 0x78(%rbx), %ecx
testl %ecx, %ecx
jle 0x94207
xorl %r15d, %r15d
movl %r15d, (%rax,%r15,4)
incq %r15
movslq 0x78(%rbx), %rcx
cmpq %rcx, %r15
jl 0x941f7
movl %r15d, 0x84(%rsp)
movl %ecx, (%rbx)
movslq %ecx, %rdi
shlq $0x3, %rdi
leaq 0x1a9e1(%rip), %r15     # 0xaec00
movq %r15, %rsi
movl $0x1f, %edx
callq 0x390f5
movq %rax, 0x10(%rbx)
movslq 0x78(%rbx), %rdi
shlq $0x3, %rdi
movq %r15, %rsi
movl $0x20, %edx
callq 0x390f5
movq %rax, 0x70(%rbx)
movslq 0x78(%rbx), %rcx
xorl %r15d, %r15d
movl $0x0, %edx
testq %rcx, %rcx
jle 0x9427b
movq 0x10(%rbx), %rsi
xorl %edx, %edx
movsd (%r14,%rdx,8), %xmm0
movsd %xmm0, (%rsi,%rdx,8)
movq $0x0, (%rax,%rdx,8)
incq %rdx
cmpq %rdx, %rcx
jne 0x94260
movl %edx, 0x84(%rsp)
movl 0x8c(%rsp), %ecx
movl 0x78(%rbx), %edx
testl %edx, %edx
movq %r13, 0x90(%rsp)
jle 0x94351
xorl %r15d, %r15d
movl 0x88(%rsp), %ebp
movq 0x18(%rbx), %rax
cmpb $0x0, (%rax,%r15)
je 0x9433f
movq %rbx, %rdi
movl %r15d, %esi
callq 0x93488
movslq 0x78(%rbx), %rdx
testq %rdx, %rdx
jle 0x942f6
movq 0x20(%rbx), %rcx
movsd (%rcx,%r15,8), %xmm0
movq 0x10(%rbx), %rsi
xorl %ecx, %ecx
movsd (%rax,%rcx,8), %xmm1
mulsd %xmm0, %xmm1
addsd (%rsi,%rcx,8), %xmm1
movsd %xmm1, (%rsi,%rcx,8)
incq %rcx
cmpq %rcx, %rdx
jne 0x942d9
jmp 0x942f8
xorl %ecx, %ecx
movq 0x18(%rbx), %rsi
cmpb $0x1, (%rsi,%r15)
jne 0x9433f
testl %edx, %edx
jle 0x9433d
movq 0x8(%rbx), %rsi
movq 0x70(%rbx), %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
cmpb $0x0, (%rsi,%r15)
setle %r8b
movsd 0x50(%rbx,%r8,8), %xmm0
mulsd (%rax,%rcx,8), %xmm0
addsd (%rdi,%rcx,8), %xmm0
movsd %xmm0, (%rdi,%rcx,8)
incq %rcx
cmpq %rcx, %rdx
jne 0x94311
jmp 0x9433f
xorl %ecx, %ecx
incq %r15
movslq 0x78(%rbx), %rdx
cmpq %rdx, %r15
jl 0x942a6
jmp 0x94358
movl 0x88(%rsp), %ebp
leaq 0x84(%rsp), %r14
movl %r15d, (%r14)
leaq 0x8c(%rsp), %r15
movl %ecx, (%r15)
movl %edx, %edi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x38de9
movl %eax, %r12d
incl %r12d
decl %r12d
jne 0x943ab
movl 0x78(%rbx), %edi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x38de9
movl %eax, %r12d
leaq 0x148(%rsp), %rax
cmpl $0x0, 0x50(%rax)
je 0x943ab
movq %rbx, %rdi
callq 0x93b78
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl %ebp, %ecx
callq 0x93637
testl %eax, %eax
je 0x943ea
movq %rbx, %rdi
callq 0x93592
movl 0x78(%rbx), %eax
movl %eax, (%rbx)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl %ebp, %ecx
callq 0x93637
movl $0x1, %r12d
testl %eax, %eax
jne 0x94827
movl %r12d, 0xa4(%rsp)
movl 0x84(%rsp), %r14d
movl (%rbx), %edx
movq %rbx, %rdi
movl %r14d, %esi
callq 0x93488
movq %rax, %r13
movl 0x8c(%rsp), %ebp
movl (%rbx), %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x93488
movl %r14d, 0x9c(%rsp)
movslq %r14d, %r12
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %rdx
movb (%rcx,%r12), %sil
xorl %edi, %edi
testb %sil, %sil
setle %dil
movsd 0x50(%rbx,%rdi,8), %xmm7
movl %ebp, 0xa0(%rsp)
movslq %ebp, %r15
movb (%rcx,%r15), %dil
xorl %ecx, %ecx
testb %dil, %dil
setle %cl
movsd 0x50(%rbx,%rcx,8), %xmm6
movq 0x20(%rbx), %rcx
movsd (%rcx,%r12,8), %xmm1
movsd (%rcx,%r15,8), %xmm0
movsd (%rdx,%r12,8), %xmm2
cmpb %dil, %sil
jne 0x94501
subsd (%rdx,%r15,8), %xmm2
movsd (%r13,%r12,8), %xmm3
addsd (%rax,%r15,8), %xmm3
movsd (%r13,%r15,8), %xmm4
addsd %xmm4, %xmm4
subsd %xmm4, %xmm3
xorpd %xmm5, %xmm5
maxsd %xmm5, %xmm3
divsd %xmm3, %xmm2
movapd %xmm1, %xmm3
movapd %xmm1, %xmm4
subsd %xmm2, %xmm4
movsd %xmm4, (%rcx,%r12,8)
addsd (%rcx,%r15,8), %xmm2
addsd %xmm0, %xmm3
movsd %xmm2, (%rcx,%r15,8)
ucomisd %xmm7, %xmm3
jbe 0x94575
movsd (%rcx,%r12,8), %xmm2
ucomisd %xmm7, %xmm2
jbe 0x94593
movsd %xmm7, (%rcx,%r12,8)
movapd %xmm3, %xmm2
subsd %xmm7, %xmm2
movsd %xmm2, (%rcx,%r15,8)
jmp 0x94593
xorpd 0xecc7(%rip), %xmm2     # 0xa31d0
subsd (%rdx,%r15,8), %xmm2
movsd (%r13,%r12,8), %xmm3
addsd (%rax,%r15,8), %xmm3
movsd (%r13,%r15,8), %xmm4
addsd %xmm4, %xmm4
addsd %xmm3, %xmm4
xorpd %xmm5, %xmm5
maxsd %xmm5, %xmm4
divsd %xmm4, %xmm2
movapd %xmm1, %xmm3
movapd %xmm1, %xmm4
addsd %xmm2, %xmm4
movsd %xmm4, (%rcx,%r12,8)
addsd (%rcx,%r15,8), %xmm2
subsd %xmm0, %xmm3
movsd %xmm2, (%rcx,%r15,8)
ucomisd %xmm5, %xmm3
jbe 0x945b8
ucomisd %xmm2, %xmm5
jbe 0x945da
movq $0x0, (%rcx,%r15,8)
movsd %xmm3, (%rcx,%r12,8)
jmp 0x945da
movq 0x90(%rsp), %rdx
ucomisd (%rdx,%r15,8), %xmm5
jbe 0x94593
movq $0x0, (%rcx,%r15,8)
movsd %xmm3, (%rcx,%r12,8)
ucomisd %xmm6, %xmm3
jbe 0x9460a
movsd (%rcx,%r15,8), %xmm2
ucomisd %xmm6, %xmm2
jbe 0x9463e
movsd %xmm6, (%rcx,%r15,8)
subsd %xmm6, %xmm3
jmp 0x94638
ucomisd (%rcx,%r12,8), %xmm5
jbe 0x945da
movq $0x0, (%rcx,%r12,8)
movapd %xmm3, %xmm2
xorpd 0xebfc(%rip), %xmm2     # 0xa31d0
movlpd %xmm2, (%rcx,%r15,8)
movapd %xmm7, %xmm2
subsd %xmm6, %xmm2
ucomisd %xmm2, %xmm3
jbe 0x94622
movsd (%rcx,%r12,8), %xmm2
ucomisd %xmm7, %xmm2
jbe 0x9463e
movsd %xmm7, (%rcx,%r12,8)
movapd %xmm7, %xmm2
subsd %xmm3, %xmm2
movsd %xmm2, (%rcx,%r15,8)
jmp 0x9463e
ucomisd (%rcx,%r12,8), %xmm5
jbe 0x9463e
movq $0x0, (%rcx,%r12,8)
movsd %xmm3, (%rcx,%r15,8)
jmp 0x9463e
movsd (%rcx,%r15,8), %xmm2
ucomisd %xmm6, %xmm2
jbe 0x9463e
movsd %xmm6, (%rcx,%r15,8)
addsd %xmm6, %xmm3
movsd %xmm3, (%rcx,%r12,8)
movapd %xmm7, 0xd0(%rsp)
movapd %xmm6, 0xc0(%rsp)
movslq (%rbx), %rdx
testq %rdx, %rdx
jle 0x9469c
movsd (%rcx,%r12,8), %xmm2
subsd %xmm1, %xmm2
movsd (%rcx,%r15,8), %xmm1
subsd %xmm0, %xmm1
movq 0x10(%rbx), %rcx
xorl %esi, %esi
movsd (%rax,%rsi,8), %xmm0
mulsd %xmm1, %xmm0
movsd (%r13,%rsi,8), %xmm3
mulsd %xmm2, %xmm3
addsd %xmm0, %xmm3
addsd (%rcx,%rsi,8), %xmm3
movsd %xmm3, (%rcx,%rsi,8)
incq %rsi
cmpq %rsi, %rdx
jne 0x94672
movq 0x18(%rbx), %rax
movb (%rax,%r12), %r14b
cmpb $0x1, %r14b
sete %bpl
movb (%rax,%r15), %r13b
movq %rbx, %rdi
movl %r12d, %esi
callq 0x93413
movq %rbx, %rdi
movl %r15d, %esi
callq 0x93413
movq 0x18(%rbx), %rax
cmpb $0x1, (%rax,%r12)
setne %al
xorb %bpl, %al
movl 0xa4(%rsp), %r12d
jne 0x94764
movl 0x78(%rbx), %edx
movq %rbx, %rdi
movl 0x9c(%rsp), %esi
callq 0x93488
movl 0x78(%rbx), %ecx
cmpb $0x1, %r14b
jne 0x94736
testl %ecx, %ecx
movapd 0xd0(%rsp), %xmm1
jle 0x94764
movq 0x70(%rbx), %rdx
xorpd 0xeab9(%rip), %xmm1     # 0xa31d0
xorl %esi, %esi
movsd (%rax,%rsi,8), %xmm0
mulsd %xmm1, %xmm0
addsd (%rdx,%rsi,8), %xmm0
movsd %xmm0, (%rdx,%rsi,8)
incq %rsi
cmpq %rsi, %rcx
jne 0x94719
jmp 0x94764
testl %ecx, %ecx
movapd 0xd0(%rsp), %xmm1
jle 0x94764
movq 0x70(%rbx), %rdx
xorl %esi, %esi
movsd (%rax,%rsi,8), %xmm0
mulsd %xmm1, %xmm0
addsd (%rdx,%rsi,8), %xmm0
movsd %xmm0, (%rdx,%rsi,8)
incq %rsi
cmpq %rsi, %rcx
jne 0x94749
cmpb $0x1, %r13b
sete %al
movq 0x18(%rbx), %rcx
cmpb $0x1, (%rcx,%r15)
setne %cl
xorb %al, %cl
movl 0x88(%rsp), %ebp
leaq 0x84(%rsp), %r14
leaq 0x8c(%rsp), %r15
jne 0x94380
movl 0x78(%rbx), %edx
movq %rbx, %rdi
movl 0xa0(%rsp), %esi
callq 0x93488
movl 0x78(%rbx), %ecx
cmpb $0x1, %r13b
jne 0x947f0
testl %ecx, %ecx
jle 0x94380
movq 0x70(%rbx), %rdx
movapd 0xc0(%rsp), %xmm1
xorpd 0xea02(%rip), %xmm1     # 0xa31d0
xorl %esi, %esi
movsd (%rax,%rsi,8), %xmm0
mulsd %xmm1, %xmm0
addsd (%rdx,%rsi,8), %xmm0
movsd %xmm0, (%rdx,%rsi,8)
incq %rsi
cmpq %rsi, %rcx
jne 0x947d0
jmp 0x94380
testl %ecx, %ecx
jle 0x94380
movq 0x70(%rbx), %rdx
xorl %esi, %esi
movapd 0xc0(%rsp), %xmm1
movsd (%rax,%rsi,8), %xmm0
mulsd %xmm1, %xmm0
addsd (%rdx,%rsi,8), %xmm0
movsd %xmm0, (%rdx,%rsi,8)
incq %rsi
cmpq %rsi, %rcx
jne 0x94807
jmp 0x94380
movq %rbx, %rdi
testl %ebp, %ebp
je 0x94848
movq 0xa8(%rsp), %r14
movq %r14, %rsi
callq 0x93d11
movq 0x90(%rsp), %r9
jmp 0x9485d
callq 0x93ee2
movq 0x90(%rsp), %r9
movq 0xa8(%rsp), %r14
movsd %xmm0, 0x8(%r14)
movslq 0x78(%rbx), %rax
xorl %ecx, %ecx
testq %rax, %rax
jle 0x948ab
movq 0x10(%rbx), %rdx
movq 0x20(%rbx), %rsi
movq 0x60(%rbx), %rdi
xorpd %xmm0, %xmm0
xorl %r8d, %r8d
movsd (%rdx,%r8,8), %xmm1
addsd (%rdi,%r8,8), %xmm1
mulsd (%rsi,%r8,8), %xmm1
addsd %xmm1, %xmm0
incq %r8
cmpq %r8, %rax
jne 0x94881
mulsd 0xe471(%rip), %xmm0     # 0xa2d18
movl %eax, %edx
jmp 0x948b1
xorpd %xmm0, %xmm0
xorl %edx, %edx
movl %edx, 0x84(%rsp)
movsd %xmm0, (%r14)
testl %eax, %eax
jle 0x948e2
movq 0x20(%rbx), %rdx
movq 0x68(%rbx), %rsi
xorl %ecx, %ecx
movsd (%rdx,%rcx,8), %xmm0
movslq (%rsi,%rcx,4), %rdi
movsd %xmm0, (%r9,%rdi,8)
incq %rcx
cmpq %rcx, %rax
jne 0x948cb
movl %ecx, 0x84(%rsp)
movsd 0xb0(%rsp), %xmm0
movsd %xmm0, 0x10(%r14)
movsd 0xb8(%rsp), %xmm0
movsd %xmm0, 0x18(%r14)
movq 0x60(%rbx), %rdi
callq 0x39194
movq 0x8(%rbx), %rdi
callq 0x39194
movq 0x20(%rbx), %rdi
callq 0x39194
movq 0x18(%rbx), %rdi
callq 0x39194
movq 0x68(%rbx), %rdi
callq 0x39194
movq 0x10(%rbx), %rdi
callq 0x39194
movq 0x70(%rbx), %rdi
callq 0x39194
movl 0x98(%rsp), %eax
cmpl $0x2, %eax
je 0x9498f
cmpl $0x1, %eax
je 0x94975
testl %eax, %eax
jne 0x949a9
movq 0x30(%rbx), %rdi
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9182d
movq 0x38(%rbx), %rdi
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x91ba4
movq 0x40(%rbx), %rdi
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x919c7
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq