// File: /workspace/github_c_makefile_star2_O2/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, 0xb0(%rsp)
movsd %xmm0, 0xa8(%rsp)
movq %r9, 0x90(%rsp)
movq %r8, %r15
movq %rcx, %r14
movq %rdi, %rbx
movl 0x1a0(%rsp), %ebp
leaq 0x128(%rsp), %rax
movq 0x120(%rsp), %rcx
movq %rcx, 0xb8(%rsp)
movl %esi, 0x78(%rdi)
movl %edx, 0x28(%rdi)
cmpl $0x2, %edx
movl %edx, 0x9c(%rsp)
je 0x88529
cmpl $0x1, %edx
je 0x884f9
testl %edx, %edx
jne 0x8855b
leaq 0x20(%rsp), %rdi
pushq $0xb
popq %rcx
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 0x85d70
pushq $0x30
popq %r12
jmp 0x88557
leaq 0x20(%rsp), %rdi
pushq $0xb
popq %rcx
leaq 0x148(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movups (%rax), %xmm0
movupd 0x10(%rax), %xmm1
movupd %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
pushq $0x38
popq %r12
callq 0x8604a
jmp 0x88557
leaq 0x20(%rsp), %rdi
pushq $0xb
popq %rcx
leaq 0x148(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movups (%rax), %xmm0
movupd 0x10(%rax), %xmm1
movupd %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
pushq $0x40
popq %r12
callq 0x85f22
movq %rax, (%rbx,%r12)
movl %ebp, 0x80(%rsp)
movslq 0x78(%rbx), %rdi
shlq $0x3, %rdi
leaq 0x1965f(%rip), %r12     # 0xa1bd0
pushq $0xe
popq %rdx
movq %r12, %rsi
callq 0x34f59
movq %rax, 0x60(%rbx)
movslq 0x78(%rbx), %rdx
shlq $0x3, %rdx
movq %rax, %rdi
movq %r14, %rsi
callq 0x4310
movslq 0x78(%rbx), %rdi
pushq $0x10
popq %rdx
movq %r12, %rsi
callq 0x34f59
movq %rax, 0x8(%rbx)
movslq 0x78(%rbx), %rdx
movq %rax, %rdi
movq %r15, %rsi
callq 0x4310
movslq 0x78(%rbx), %rdi
shlq $0x3, %rdi
pushq $0x12
popq %rdx
movq %r12, %rsi
callq 0x34f59
movq %rax, 0x20(%rbx)
movslq 0x78(%rbx), %rdx
shlq $0x3, %rdx
movq %rax, %rdi
movq 0x90(%rsp), %rsi
callq 0x4310
movsd 0xa8(%rsp), %xmm0
movsd %xmm0, 0x50(%rbx)
movsd 0xb0(%rsp), %xmm0
movsd %xmm0, 0x58(%rbx)
leaq 0x148(%rsp), %rax
movsd 0x28(%rax), %xmm0
movsd %xmm0, 0x48(%rbx)
andl $0x0, 0x7c(%rbx)
movslq 0x78(%rbx), %rdi
pushq $0x18
popq %rdx
movq %r12, %rsi
callq 0x34f59
movq %rax, 0x18(%rbx)
xorl %ebp, %ebp
movslq 0x78(%rbx), %rdi
cmpl %edi, %ebp
jge 0x88641
movq %rbx, %rdi
movl %ebp, %esi
callq 0x878bf
incl %ebp
jmp 0x8862b
shlq $0x2, %rdi
leaq 0x19584(%rip), %rsi     # 0xa1bd0
pushq $0x1b
popq %rdx
callq 0x34f59
movq %rax, 0x68(%rbx)
xorl %ecx, %ecx
movl 0x80(%rsp), %ebp
movl 0x78(%rbx), %edx
movslq %edx, %rdi
cmpq %rdi, %rcx
jge 0x88674
movl %ecx, (%rax,%rcx,4)
incq %rcx
jmp 0x88661
movl %edi, (%rbx)
shlq $0x3, %rdi
leaq 0x1954f(%rip), %r15     # 0xa1bd0
pushq $0x1f
popq %rdx
movq %r15, %rsi
callq 0x34f59
movq %rax, 0x10(%rbx)
movslq 0x78(%rbx), %rdi
shlq $0x3, %rdi
pushq $0x20
popq %rdx
movq %r15, %rsi
callq 0x34f59
movq %rax, 0x70(%rbx)
movl 0x78(%rbx), %edx
xorl %ecx, %ecx
testl %edx, %edx
movl $0x0, %esi
cmovgl %edx, %esi
cmpq %rcx, %rsi
je 0x886d4
movsd (%r14,%rcx,8), %xmm0
movq 0x10(%rbx), %rdi
movsd %xmm0, (%rdi,%rcx,8)
andq $0x0, (%rax,%rcx,8)
incq %rcx
jmp 0x886b6
xorl %r14d, %r14d
movslq %edx, %rax
cmpq %rax, %r14
jge 0x88782
movq 0x18(%rbx), %rax
cmpb $0x0, (%rax,%r14)
je 0x8877a
movq %rbx, %rdi
movl %r14d, %esi
callq 0x87934
movq 0x20(%rbx), %rcx
movsd (%rcx,%r14,8), %xmm0
movl 0x78(%rbx), %edx
testl %edx, %edx
movl $0x0, %ecx
cmovgl %edx, %ecx
xorl %esi, %esi
cmpq %rsi, %rcx
je 0x88737
movq 0x10(%rbx), %rdi
movsd (%rax,%rsi,8), %xmm1
mulsd %xmm0, %xmm1
addsd (%rdi,%rsi,8), %xmm1
movsd %xmm1, (%rdi,%rsi,8)
incq %rsi
jmp 0x88716
movq 0x18(%rbx), %rsi
cmpb $0x1, (%rsi,%r14)
jne 0x8877a
xorl %esi, %esi
cmpq %rsi, %rcx
je 0x8877a
movq 0x8(%rbx), %rdi
movq 0x70(%rbx), %r8
xorl %r9d, %r9d
cmpb $0x0, (%rdi,%r14)
setle %r9b
movsd 0x50(%rbx,%r9,8), %xmm0
mulsd (%rax,%rsi,8), %xmm0
addsd (%r8,%rsi,8), %xmm0
movsd %xmm0, (%r8,%rsi,8)
incq %rsi
jmp 0x88744
incq %r14
jmp 0x886d7
leaq 0x8c(%rsp), %r15
movl %r14d, (%r15)
leaq 0x88(%rsp), %r12
movl %ecx, (%r12)
movl %edx, %edi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x34ccd
movl %eax, %r14d
incl %r14d
decl %r14d
jne 0x887d6
movl 0x78(%rbx), %edi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x34ccd
movl %eax, %r14d
leaq 0x148(%rsp), %rax
cmpl $0x0, 0x50(%rax)
je 0x887d6
movq %rbx, %rdi
callq 0x87feb
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movl %ebp, %ecx
callq 0x87ae4
testl %eax, %eax
je 0x8881c
movq %rbx, %rdi
callq 0x87a3e
movl 0x78(%rbx), %r14d
movl %r14d, (%rbx)
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movl %ebp, %ecx
callq 0x87ae4
pushq $0x1
popq %rcx
movl %ecx, 0x84(%rsp)
testl %eax, %eax
je 0x88827
jmp 0x88c70
movl %r14d, 0x84(%rsp)
movl (%rbx), %r14d
movl 0x8c(%rsp), %r15d
movq %rbx, %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x87934
movq %rax, %r13
movl 0x88(%rsp), %ebp
movl (%rbx), %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x87934
movl %r15d, 0xa0(%rsp)
movslq %r15d, %r12
movq 0x8(%rbx), %rdx
movq 0x10(%rbx), %rcx
movb (%rdx,%r12), %sil
xorl %edi, %edi
testb %sil, %sil
setle %dil
movsd 0x50(%rbx,%rdi,8), %xmm7
movl %ebp, 0xa4(%rsp)
movslq %ebp, %r15
movb (%rdx,%r15), %dil
xorl %edx, %edx
testb %dil, %dil
setle %dl
movsd 0x50(%rbx,%rdx,8), %xmm6
movq 0x20(%rbx), %rdx
movsd (%rdx,%r12,8), %xmm1
movsd (%rdx,%r15,8), %xmm0
movsd (%rcx,%r12,8), %xmm2
cmpb %dil, %sil
jne 0x88937
subsd (%rcx,%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, (%rdx,%r12,8)
addsd (%rdx,%r15,8), %xmm2
addsd %xmm0, %xmm3
movsd %xmm2, (%rdx,%r15,8)
ucomisd %xmm7, %xmm3
jbe 0x889a8
movsd (%rdx,%r12,8), %xmm2
ucomisd %xmm7, %xmm2
jbe 0x889c3
movsd %xmm7, (%rdx,%r12,8)
movapd %xmm3, %xmm2
subsd %xmm7, %xmm2
movsd %xmm2, (%rdx,%r15,8)
jmp 0x889c3
xorpd 0xd891(%rip), %xmm2     # 0x961d0
subsd (%rcx,%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, (%rdx,%r12,8)
addsd (%rdx,%r15,8), %xmm2
subsd %xmm0, %xmm3
movsd %xmm2, (%rdx,%r15,8)
ucomisd %xmm5, %xmm3
jbe 0x889e5
ucomisd %xmm2, %xmm5
jbe 0x88a04
andq $0x0, (%rdx,%r15,8)
movsd %xmm3, (%rdx,%r12,8)
jmp 0x88a04
movq 0x90(%rsp), %rsi
ucomisd (%rsi,%r15,8), %xmm5
jbe 0x889c3
andq $0x0, (%rdx,%r15,8)
movsd %xmm3, (%rdx,%r12,8)
ucomisd %xmm6, %xmm3
jbe 0x88a34
movsd (%rdx,%r15,8), %xmm2
ucomisd %xmm6, %xmm2
jbe 0x88a65
movsd %xmm6, (%rdx,%r15,8)
subsd %xmm6, %xmm3
jmp 0x88a5f
ucomisd (%rdx,%r12,8), %xmm5
jbe 0x88a04
andq $0x0, (%rdx,%r12,8)
movapd %xmm3, %xmm2
xorpd 0xd7d2(%rip), %xmm2     # 0x961d0
movlpd %xmm2, (%rdx,%r15,8)
movapd %xmm7, %xmm2
subsd %xmm6, %xmm2
ucomisd %xmm2, %xmm3
jbe 0x88a49
movsd (%rdx,%r12,8), %xmm2
ucomisd %xmm7, %xmm2
jbe 0x88a65
movsd %xmm7, (%rdx,%r12,8)
movapd %xmm7, %xmm2
subsd %xmm3, %xmm2
movsd %xmm2, (%rdx,%r15,8)
jmp 0x88a65
ucomisd (%rdx,%r12,8), %xmm5
jbe 0x88a65
andq $0x0, (%rdx,%r12,8)
movsd %xmm3, (%rdx,%r15,8)
jmp 0x88a65
movsd (%rdx,%r15,8), %xmm2
ucomisd %xmm6, %xmm2
jbe 0x88a65
movsd %xmm6, (%rdx,%r15,8)
addsd %xmm6, %xmm3
movsd %xmm3, (%rdx,%r12,8)
movsd (%rdx,%r12,8), %xmm2
subsd %xmm1, %xmm2
movsd (%rdx,%r15,8), %xmm1
subsd %xmm0, %xmm1
movl (%rbx), %edx
testl %edx, %edx
movl $0x0, %esi
cmovlel %esi, %edx
xorl %esi, %esi
cmpq %rsi, %rdx
je 0x88ab3
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
jmp 0x88a87
movapd %xmm6, 0xd0(%rsp)
movq 0x18(%rbx), %rax
movb (%rax,%r12), %r14b
cmpb $0x1, %r14b
sete %bpl
movb (%rax,%r15), %r13b
movq %rbx, %rdi
movl %r12d, %esi
movapd %xmm7, 0xc0(%rsp)
callq 0x878bf
movq %rbx, %rdi
movl %r15d, %esi
callq 0x878bf
movq 0x18(%rbx), %rax
cmpb $0x1, (%rax,%r12)
setne %al
xorb %bpl, %al
movl 0x80(%rsp), %ebp
leaq 0x88(%rsp), %r12
je 0x88b9f
cmpb $0x1, %r13b
sete %al
movq 0x18(%rbx), %rcx
cmpb $0x1, (%rcx,%r15)
setne %cl
xorb %al, %cl
leaq 0x8c(%rsp), %r15
movl 0x84(%rsp), %r14d
jne 0x887ab
movl 0x78(%rbx), %edx
movq %rbx, %rdi
movl 0xa4(%rsp), %esi
callq 0x87934
movl 0x78(%rbx), %ecx
cmpb $0x1, %r13b
jne 0x88bfc
movapd 0xd0(%rsp), %xmm1
xorpd 0xd662(%rip), %xmm1     # 0x961d0
testl %ecx, %ecx
movl $0x0, %edx
cmovlel %edx, %ecx
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x887ab
movq 0x70(%rbx), %rsi
movsd (%rax,%rdx,8), %xmm0
mulsd %xmm1, %xmm0
addsd (%rsi,%rdx,8), %xmm0
movsd %xmm0, (%rsi,%rdx,8)
incq %rdx
jmp 0x88b7a
movl 0x78(%rbx), %edx
movq %rbx, %rdi
movl 0xa0(%rsp), %esi
callq 0x87934
movl 0x78(%rbx), %ecx
cmpb $0x1, %r14b
jne 0x88c36
movapd 0xc0(%rsp), %xmm1
xorpd 0xd605(%rip), %xmm1     # 0x961d0
testl %ecx, %ecx
movl $0x0, %edx
cmovlel %edx, %ecx
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x88b13
movq 0x70(%rbx), %rsi
movsd (%rax,%rdx,8), %xmm0
mulsd %xmm1, %xmm0
addsd (%rsi,%rdx,8), %xmm0
movsd %xmm0, (%rsi,%rdx,8)
incq %rdx
jmp 0x88bd7
testl %ecx, %ecx
movl $0x0, %edx
cmovlel %edx, %ecx
xorl %edx, %edx
movapd 0xd0(%rsp), %xmm1
cmpq %rdx, %rcx
je 0x887ab
movq 0x70(%rbx), %rsi
movsd (%rax,%rdx,8), %xmm0
mulsd %xmm1, %xmm0
addsd (%rsi,%rdx,8), %xmm0
movsd %xmm0, (%rsi,%rdx,8)
incq %rdx
jmp 0x88c11
testl %ecx, %ecx
movl $0x0, %edx
cmovlel %edx, %ecx
xorl %edx, %edx
movapd 0xc0(%rsp), %xmm1
cmpq %rdx, %rcx
je 0x88b13
movq 0x70(%rbx), %rsi
movsd (%rax,%rdx,8), %xmm0
mulsd %xmm1, %xmm0
addsd (%rsi,%rdx,8), %xmm0
movsd %xmm0, (%rsi,%rdx,8)
incq %rdx
jmp 0x88c4b
movq %rbx, %rdi
movq 0xb8(%rsp), %r14
movq %r14, %rsi
movl %ebp, %edx
callq 0x88176
movsd %xmm0, 0x8(%r14)
movl 0x78(%rbx), %eax
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
xorpd %xmm0, %xmm0
cmpq %rcx, %rax
je 0x88cc2
movq 0x10(%rbx), %rdx
movq 0x20(%rbx), %rsi
movsd (%rdx,%rcx,8), %xmm1
movq 0x60(%rbx), %rdx
addsd (%rdx,%rcx,8), %xmm1
mulsd (%rsi,%rcx,8), %xmm1
addsd %xmm1, %xmm0
incq %rcx
jmp 0x88c99
mulsd 0xd056(%rip), %xmm0     # 0x95d20
movsd %xmm0, (%r14)
xorl %ecx, %ecx
cmpq %rcx, %rax
je 0x88cf9
movq 0x20(%rbx), %rdx
movq 0x68(%rbx), %rsi
movsd (%rdx,%rcx,8), %xmm0
movslq (%rsi,%rcx,4), %rdx
movq 0x90(%rsp), %rsi
movsd %xmm0, (%rsi,%rdx,8)
incq %rcx
jmp 0x88cd1
movsd 0xa8(%rsp), %xmm0
movsd %xmm0, 0x10(%r14)
movsd 0xb0(%rsp), %xmm0
movsd %xmm0, 0x18(%r14)
movq 0x60(%rbx), %rdi
callq 0x34ff7
movq 0x8(%rbx), %rdi
callq 0x34ff7
movq 0x20(%rbx), %rdi
callq 0x34ff7
movq 0x18(%rbx), %rdi
callq 0x34ff7
movq 0x68(%rbx), %rdi
callq 0x34ff7
movq 0x10(%rbx), %rdi
callq 0x34ff7
movq 0x70(%rbx), %rdi
callq 0x34ff7
movl 0x9c(%rsp), %eax
cmpl $0x2, %eax
je 0x88d9f
cmpl $0x1, %eax
je 0x88d85
testl %eax, %eax
jne 0x88db9
movq 0x30(%rbx), %rdi
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x85e07
movq 0x38(%rbx), %rdi
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x86167
movq 0x40(%rbx), %rdi
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x85f88
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq