// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/svm.c
// Function: solve_one_class
void solve_one_class(Svm_problem prob, Svm_parameter param, double *alpha, Solutioninfoptr si)
{
	/*Last Changed 29.04.2005*/
	Solverptr s;
	int l = prob.l, i, n;
	double *zeros; 
	signed char *ones; 
 zeros = safemalloc(l * sizeof(double), "solve_one_class", 5);
	ones = safemalloc(l * sizeof(signed char), "solve_one_class", 6);
	s = safemalloc(sizeof(Solver), "solve_one_class", 7);
 n = (int)(param.nu * prob.l);	
	for (i = 0; i < n; i++)
		 alpha[i] = 1;
	alpha[n] = param.nu * prob.l - n;
	for (i = n + 1; i < l; i++)
		 alpha[i] = 0;
	for (i = 0; i < l; i++)
	 {
 		zeros[i] = 0;
 		ones[i] = 1;
	 }
	solve(s, l, QONE, zeros, ones, alpha, 1.0, 1.0, si, prob, param, 0);
	safe_free(s);
	safe_free(zeros);
	safe_free(ones);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0xd8, %rsp
leaq 0x30(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl (%rax), %eax
movl %eax, -0x24(%rbp)
movslq -0x24(%rbp), %rdi
shlq $0x3, %rdi
leaq 0x27b1d(%rip), %rsi     # 0xee025
movl $0x5, %edx
callq 0x52d70
movq %rax, -0x38(%rbp)
movslq -0x24(%rbp), %rdi
shlq $0x0, %rdi
leaq 0x27b00(%rip), %rsi     # 0xee025
movl $0x6, %edx
callq 0x52d70
movq %rax, -0x40(%rbp)
movl $0x80, %edi
leaq 0x27ae6(%rip), %rsi     # 0xee025
movl $0x7, %edx
callq 0x52d70
movq -0x50(%rbp), %rcx
movq %rax, %rdx
movq -0x48(%rbp), %rax
movq %rdx, -0x20(%rbp)
movsd 0x40(%rcx), %xmm0
cvtsi2sdl (%rax), %xmm1
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movl %eax, -0x2c(%rbp)
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jge 0xc659b
movq -0x10(%rbp), %rax
movslq -0x28(%rbp), %rcx
movsd 0x1ba8d(%rip), %xmm0    # 0xe2018
movsd %xmm0, (%rax,%rcx,8)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0xc6573
movq -0x48(%rbp), %rax
movq -0x50(%rbp), %rcx
movsd 0x40(%rcx), %xmm0
cvtsi2sdl (%rax), %xmm2
cvtsi2sdl -0x2c(%rbp), %xmm1
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0xc6609
movq -0x10(%rbp), %rax
movslq -0x28(%rbp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0xc65e6
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0xc663f
movq -0x38(%rbp), %rax
movslq -0x28(%rbp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movq -0x40(%rbp), %rax
movslq -0x28(%rbp), %rcx
movb $0x1, (%rax,%rcx)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0xc6610
movq -0x48(%rbp), %r10
movq -0x50(%rbp), %r11
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x38(%rbp), %rcx
movq -0x40(%rbp), %r8
movq -0x10(%rbp), %r9
movq -0x18(%rbp), %rdx
xorl %eax, %eax
movq 0x50(%r11), %rbx
movq %rsp, %rax
movq %rbx, 0x78(%rax)
movups 0x40(%r11), %xmm0
movups %xmm0, 0x68(%rax)
movups (%r11), %xmm0
movups 0x10(%r11), %xmm1
movups 0x20(%r11), %xmm2
movups 0x30(%r11), %xmm3
movups %xmm3, 0x58(%rax)
movups %xmm2, 0x48(%rax)
movups %xmm1, 0x38(%rax)
movups %xmm0, 0x28(%rax)
movups (%r10), %xmm0
movups 0x10(%r10), %xmm1
movups %xmm1, 0x18(%rax)
movups %xmm0, 0x8(%rax)
movq %rdx, (%rax)
movl $0x0, 0x80(%rax)
movl $0x2, %edx
movsd 0x1b956(%rip), %xmm1    # 0xe2018
movaps %xmm1, %xmm0
callq 0xcf420
movq -0x20(%rbp), %rdi
callq 0x52e80
movq -0x38(%rbp), %rdi
callq 0x52e80
movq -0x40(%rbp), %rdi
callq 0x52e80
addq $0xd8, %rsp
popq %rbx
popq %rbp
retq
nop