// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
pushq %rbx
subq $0xe8, %rsp
leaq 0x30(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl (%rax), %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
shll %eax
movslq %eax, %rdi
shlq $0x3, %rdi
leaq 0x27909(%rip), %rsi     # 0xee035
movl $0x5, %edx
callq 0x52d70
movq %rax, -0x30(%rbp)
movl -0x24(%rbp), %eax
shll %eax
movslq %eax, %rdi
shlq $0x3, %rdi
leaq 0x278e8(%rip), %rsi     # 0xee035
movl $0x6, %edx
callq 0x52d70
movq %rax, -0x38(%rbp)
movl -0x24(%rbp), %eax
shll %eax
movslq %eax, %rdi
shlq $0x0, %rdi
leaq 0x278c7(%rip), %rsi     # 0xee035
movl $0x7, %edx
callq 0x52d70
movq %rax, -0x48(%rbp)
movl $0x80, %edi
leaq 0x278ad(%rip), %rsi     # 0xee035
movl $0x8, %edx
callq 0x52d70
movq %rax, -0x20(%rbp)
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0xc6844
movq -0x50(%rbp), %rax
movq -0x58(%rbp), %rcx
movq -0x30(%rbp), %rdx
movslq -0x28(%rbp), %rsi
xorps %xmm0, %xmm0
movsd %xmm0, (%rdx,%rsi,8)
movsd 0x48(%rcx), %xmm0
movq 0x8(%rax), %rdx
movslq -0x28(%rbp), %rsi
subsd (%rdx,%rsi,8), %xmm0
movq -0x38(%rbp), %rdx
movslq -0x28(%rbp), %rsi
movsd %xmm0, (%rdx,%rsi,8)
movq -0x48(%rbp), %rdx
movslq -0x28(%rbp), %rsi
movb $0x1, (%rdx,%rsi)
movq -0x30(%rbp), %rdx
movl -0x28(%rbp), %esi
addl -0x24(%rbp), %esi
movslq %esi, %rsi
xorps %xmm0, %xmm0
movsd %xmm0, (%rdx,%rsi,8)
movsd 0x48(%rcx), %xmm0
movq 0x8(%rax), %rax
movslq -0x28(%rbp), %rcx
addsd (%rax,%rcx,8), %xmm0
movq -0x38(%rbp), %rax
movl -0x28(%rbp), %ecx
addl -0x24(%rbp), %ecx
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -0x48(%rbp), %rax
movl -0x28(%rbp), %ecx
addl -0x24(%rbp), %ecx
movslq %ecx, %rcx
movb $-0x1, (%rax,%rcx)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0xc679d
movq -0x50(%rbp), %r10
movq -0x58(%rbp), %r11
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
shll %esi
movq -0x38(%rbp), %rcx
movq -0x48(%rbp), %r8
movq -0x30(%rbp), %r9
movsd 0x30(%r11), %xmm0
movsd 0x30(%r11), %xmm1
movq -0x18(%rbp), %rdx
xorl %eax, %eax
movq 0x50(%r11), %rbx
movq %rsp, %rax
movq %rax, -0x60(%rbp)
movq %rbx, 0x78(%rax)
movups 0x40(%r11), %xmm2
movups %xmm2, 0x68(%rax)
movups (%r11), %xmm2
movups 0x10(%r11), %xmm3
movups 0x20(%r11), %xmm4
movups 0x30(%r11), %xmm5
movups %xmm5, 0x58(%rax)
movups %xmm4, 0x48(%rax)
movups %xmm3, 0x38(%rax)
movups %xmm2, 0x28(%rax)
movups (%r10), %xmm2
movups 0x10(%r10), %xmm3
movups %xmm3, 0x18(%rax)
movups %xmm2, 0x8(%rax)
movq %rdx, (%rax)
movl $0x0, 0x80(%rax)
movl $0x1, %edx
callq 0xcf420
xorps %xmm0, %xmm0
movsd %xmm0, -0x40(%rbp)
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0xc6946
movq -0x30(%rbp), %rax
movslq -0x28(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x30(%rbp), %rax
movl -0x28(%rbp), %ecx
addl -0x24(%rbp), %ecx
movslq %ecx, %rcx
subsd (%rax,%rcx,8), %xmm0
movq -0x10(%rbp), %rax
movslq -0x28(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -0x10(%rbp), %rax
movslq -0x28(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movaps 0x1c533(%rip), %xmm1    # 0xe2e60
pand %xmm1, %xmm0
addsd -0x40(%rbp), %xmm0
movsd %xmm0, -0x40(%rbp)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0xc68e5
movq -0x20(%rbp), %rdi
callq 0x52e80
movq -0x30(%rbp), %rdi
callq 0x52e80
movq -0x38(%rbp), %rdi
callq 0x52e80
movq -0x48(%rbp), %rdi
callq 0x52e80
addq $0xe8, %rsp
popq %rbx
popq %rbp
retq
nopw %cs:(%rax,%rax)