// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/svm.c
// Function: solve_c_svc
void solve_c_svc(Svm_problem prob, Svm_parameter param, double *alpha, Solutioninfoptr si, double Cp, double Cn)
{
	/*Last Changed 29.04.2005*/
	int i, l = prob.l;
	double *minus_ones, sum_alpha = 0.0;
	signed char* y;
	Solverptr s;
 minus_ones = safemalloc(l * sizeof(double), "solve_c_svc", 5);
	y = safemalloc(l * sizeof(signed char), "solve_c_svc", 6);
	s = safemalloc(sizeof(Solver), "solve_c_svc", 7);
	for (i = 0; i < l; i++)
	 {
		 alpha[i] = 0;
		 minus_ones[i] = -1;
		 if (prob.y[i] > 0) 
				 y[i] = +1; 
			else 
				 y[i] = -1;
	 }
	solve(s, l, QC, minus_ones, y, alpha, Cp, Cn, si, prob, param, 0);
	for (i = 0; i < l; i++)
		 sum_alpha += alpha[i];
	for (i = 0; i < l; i++)
		 alpha[i] *= y[i];
	safe_free(s);
	safe_free(minus_ones);
	safe_free(y);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0xe8, %rsp
leaq 0x30(%rbp), %rax
movq %rax, -0x60(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x58(%rbp)
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movsd %xmm0, -0x20(%rbp)
movsd %xmm1, -0x28(%rbp)
movl (%rax), %eax
movl %eax, -0x30(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x40(%rbp)
movslq -0x30(%rbp), %rdi
shlq $0x3, %rdi
leaq 0x28062(%rip), %rsi     # 0xee00c
movl $0x5, %edx
callq 0x52d70
movq %rax, -0x38(%rbp)
movslq -0x30(%rbp), %rdi
shlq $0x0, %rdi
leaq 0x28045(%rip), %rsi     # 0xee00c
movl $0x6, %edx
callq 0x52d70
movq %rax, -0x48(%rbp)
movl $0x80, %edi
leaq 0x2802b(%rip), %rsi     # 0xee00c
movl $0x7, %edx
callq 0x52d70
movq %rax, -0x50(%rbp)
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
cmpl -0x30(%rbp), %eax
jge 0xc6064
movq -0x58(%rbp), %rax
movq -0x10(%rbp), %rcx
movslq -0x2c(%rbp), %rdx
xorps %xmm0, %xmm0
movsd %xmm0, (%rcx,%rdx,8)
movq -0x38(%rbp), %rcx
movslq -0x2c(%rbp), %rdx
movsd 0x1ca26(%rip), %xmm0    # 0xe2a48
movsd %xmm0, (%rcx,%rdx,8)
movq 0x8(%rax), %rax
movslq -0x2c(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0xc604b
movq -0x48(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movb $0x1, (%rax,%rcx)
jmp 0xc6057
movq -0x48(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movb $-0x1, (%rax,%rcx)
jmp 0xc6059
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0xc5ff6
movq -0x58(%rbp), %r10
movq -0x60(%rbp), %r11
movq -0x50(%rbp), %rdi
movl -0x30(%rbp), %esi
movq -0x38(%rbp), %rcx
movq -0x48(%rbp), %r8
movq -0x10(%rbp), %r9
movsd -0x20(%rbp), %xmm0
movsd -0x28(%rbp), %xmm1
movq -0x18(%rbp), %rdx
xorl %eax, %eax
movq 0x50(%r11), %rbx
movq %rsp, %rax
movq %rax, -0x68(%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)
xorl %edx, %edx
callq 0xcf420
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
cmpl -0x30(%rbp), %eax
jge 0xc6120
movq -0x10(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
addsd -0x40(%rbp), %xmm0
movsd %xmm0, -0x40(%rbp)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0xc60f6
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
cmpl -0x30(%rbp), %eax
jge 0xc615c
movq -0x48(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cvtsi2sd %eax, %xmm0
movq -0x10(%rbp), %rax
movslq -0x2c(%rbp), %rcx
mulsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0xc6127
movq -0x50(%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)