// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/svm.c
// Function: solve_epsilon_svr
void solve_epsilon_svr(Svm_problem prob, Svm_parameter param, double *alpha, Solutioninfoptr si)
{
	/*Last Changed 29.04.2005*/
	Solverptr s;
	int l = prob.l, i;
	double *alpha2, *linear_term, sum_alpha;
	signed char* y;
 alpha2 = safemalloc(2 * l * sizeof(double), "solve_epsilon_svr", 5);
 linear_term = safemalloc(2 * l * sizeof(double), "solve_epsilon_svr", 6);
	y = safemalloc(2 * l * sizeof(signed char), "solve_epsilon_svr", 7);
	s = safemalloc(sizeof(Solver), "solve_epsilon_svr", 8);
	for (i = 0; i < l; i++)
	 {
 		alpha2[i] = 0;
	 	linear_term[i] = param.p - prob.y[i];
		 y[i] = 1;
		 alpha2[i + l] = 0;
		 linear_term[i + l] = param.p + prob.y[i];
		 y[i + l] = -1;
	 }
 solve(s, 2 * l, QR, linear_term, y, alpha2, param.C, param.C, si, prob, param, 0);
 sum_alpha = 0;
	for (i = 0; i < l; i++)
	 {
 		alpha[i] = alpha2[i] - alpha2[i+l];
		 sum_alpha += fabs(alpha[i]);
	 }
	safe_free(s);
	safe_free(alpha2);
	safe_free(linear_term);
	safe_free(y);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, 0x98(%rsp)
movq %rdi, %r12
leaq 0xe0(%rsp), %rax
movslq (%rax), %r14
leaq (%r14,%r14), %r13
movq %r14, %r15
shlq $0x4, %r15
leaq 0x20d02(%rip), %rbp     # 0xb1a15
movq %r15, %rdi
movq %rbp, %rsi
movl $0x5, %edx
callq 0x3a0e1
movq %rax, %rbx
movq %r15, %rdi
movq %rbp, %r15
movq %rbp, %rsi
movl $0x6, %edx
callq 0x3a0e1
movq %rax, %rbp
movq %r13, 0x90(%rsp)
movq %r13, %rdi
movq %r15, %rsi
movq %r15, %r13
movl $0x7, %edx
callq 0x3a0e1
movq %rax, %r15
movl $0x80, %edi
movq %r13, %rsi
movl $0x8, %edx
callq 0x3a0e1
testq %r14, %r14
movq %rax, 0xa0(%rsp)
jle 0x90e78
movq 0x98(%rsp), %r10
movq 0x90(%rsp), %r9
leaq 0x100(%rsp), %rcx
movsd 0x48(%rcx), %xmm0
leaq 0xe0(%rsp), %r11
movq 0x8(%r11), %r8
movq %r15, %rcx
addq %r14, %rcx
leaq (,%r14,8), %rdx
addq %rbp, %rdx
leaq (%rbx,%r14,8), %r13
xorl %esi, %esi
xorl %edi, %edi
movq %rsi, (%rbx,%rdi,8)
movapd %xmm0, %xmm1
subsd (%r8,%rdi,8), %xmm1
movsd %xmm1, (%rbp,%rdi,8)
movb $0x1, (%r15,%rdi)
movq %rsi, (%r13,%rdi,8)
movsd (%r8,%rdi,8), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%rdx,%rdi,8)
movb $-0x1, (%rcx,%rdi)
incq %rdi
cmpq %rdi, %r14
jne 0x90dbf
leaq 0x100(%rsp), %rsi
movsd 0x30(%rsi), %xmm0
leaq 0x28(%rsp), %rdi
movl $0xb, %ecx
rep  movsq (%rsi), %es:(%rdi)
movups (%r11), %xmm1
movups 0x10(%r11), %xmm2
movups %xmm2, 0x18(%rsp)
movups %xmm1, 0x8(%rsp)
movq %r10, (%rsp)
movl $0x0, 0x80(%rsp)
movq %rax, %rdi
movl %r9d, %esi
movl $0x1, %edx
movq %rbp, %rcx
movq %r15, %r8
movq %rbx, %r9
movapd %xmm0, %xmm1
callq 0x96b2b
testl %r14d, %r14d
jle 0x90ee4
xorl %eax, %eax
movsd (%rbx,%rax,8), %xmm0
subsd (%r13,%rax,8), %xmm0
movsd %xmm0, (%r12,%rax,8)
incq %rax
cmpq %rax, %r14
jne 0x90e5c
jmp 0x90ee4
leaq 0x100(%rsp), %rsi
movsd 0x30(%rsi), %xmm0
leaq 0x28(%rsp), %rdi
movl $0xb, %ecx
rep  movsq (%rsi), %es:(%rdi)
leaq 0xe0(%rsp), %rcx
movups (%rcx), %xmm1
movups 0x10(%rcx), %xmm2
movups %xmm2, 0x18(%rsp)
movups %xmm1, 0x8(%rsp)
movq 0x98(%rsp), %rcx
movq %rcx, (%rsp)
movl $0x0, 0x80(%rsp)
movq %rax, %rdi
movq 0x90(%rsp), %rsi
movl $0x1, %edx
movq %rbp, %rcx
movq %r15, %r8
movq %rbx, %r9
movapd %xmm0, %xmm1
callq 0x96b2b
movq 0xa0(%rsp), %rdi
callq 0x3a180
movq %rbx, %rdi
callq 0x3a180
movq %rbp, %rdi
callq 0x3a180
movq %r15, %rdi
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3a180