// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/svm.c
// Function: svm_train
Svm_modelptr svm_train(Svm_problem prob, Svm_parameter param, int calculate_probability)
{
 /*Last Changed 04.01.2006 added probA, probB*/
	/*Last Changed 01.05.2005*/
	int i, j, k, l, nr_class, *start, *count, *perm, *nonzero, p = 0, si, sj, ci, cj, total_sv, *nz_count, nSV, *nz_start, q;
	Svm_weights f, *weights;
	Svm_modelptr model;
	Svm_node** x;
	Svm_problem sub_prob;
 model = safemalloc(sizeof(Svm_model), "svm_train", 6);
	model->prob = prob;
	model->param = param;
	if (in_list(param.svm_type, 3, ONE_CLASS, EPSILON_SVR, NU_SVR))
	 {
 		model->nr_class = 2;
   model->probA = NULL; 
   model->probB = NULL;
	 	model->nSV = NULL;
		 model->sv_coef = safemalloc(sizeof(double*), "svm_train", 12);
		 f = svm_train_one(prob, param, 0, 0);
		 model->rho = safemalloc(sizeof(double), "svm_train", 14);
		 model->rho[0] = f.rho;
		 model->l = f.nSV;
		 model->SV = safemalloc(sizeof(Svm_nodeptr) * f.nSV, "svm_train", 17);
		 model->sv_coef[0] = safemalloc(sizeof(double) * f.nSV, "svm_train", 18);
		 j = 0;
		 for (i = 0; i < prob.l; i++)
			  if (fabs(f.alpha[i]) > 0)
					 {
				   model->SV[j] = prob.x[i];
				   model->sv_coef[0][j] = f.alpha[i];
				   ++j;
					 }		
		 safe_free(f.alpha);
	 }
	else
	 {
 		l = prob.l;
 		start = NULL;
 		count = NULL;
 		perm = safemalloc(l * sizeof(int), "svm_train", 34);
 		nr_class = svm_group_classes(prob, &start, &count, perm);		
 		x = safemalloc(l * sizeof(Svm_nodeptr), "svm_train", 37);
 		for (i = 0; i < l; i++)
 			 x[i] = prob.x[perm[i]];
 		nonzero = safemalloc(l * sizeof(int), "svm_train", 40);
 		for (i = 0; i < l; i++)
 			 nonzero[i] = 0;
 		weights = safemalloc(sizeof(Svm_weights) * nr_class * (nr_class - 1) / 2, "svm_train", 43);
   if (calculate_probability)
    {
     model->probA = safemalloc(sizeof(double) * nr_class * (nr_class - 1) / 2, "svm_train", 44);
     model->probB = safemalloc(sizeof(double) * nr_class * (nr_class - 1) / 2, "svm_train", 44);
    }
   else
    {
     model->probA = NULL;
     model->probB = NULL;
    }
 		for (i = 0; i < nr_class; i++)
 			 for (j = i + 1; j < nr_class; j++)
					 {
			 	  si = start[i];
			 			sj = start[j];
			 	  ci = count[i];
			 			cj = count[j];
			 	  sub_prob.l = ci + cj;
			 	  sub_prob.x = safemalloc(sizeof(Svm_nodeptr) * sub_prob.l, "svm_train", 52);
			 	  sub_prob.y = safemalloc(sizeof(double) * sub_prob.l, "svm_train", 53);
			 	  for (k = 0; k < ci; k++)
							 {
				 	   sub_prob.x[k] = x[si + k];
				 	   sub_prob.y[k] = +1;
							 }
				   for (k = 0; k < cj; k++)
							 {
					    sub_prob.x[ci + k] = x[sj + k];
					    sub_prob.y[ci + k] = -1;
							 }
       if (calculate_probability)
         svm_binary_svc_probability(sub_prob, param, param.C * param.cweights[i], param.C * param.cweights[j], &(model->probA[p]), &(model->probB[p]));
			 	  weights[p] = svm_train_one(sub_prob, param, param.C * param.cweights[i], param.C * param.cweights[j]);
			 	  for (k = 0; k < ci; k++)
			 		   if (!nonzero[si + k] && fabs(weights[p].alpha[k]) > 0)
			 			    nonzero[si + k] = 1;
			 	  for (k = 0; k < cj; k++)
    					if (!nonzero[sj + k] && fabs(weights[p].alpha[ci+k]) > 0)
			 			    nonzero[sj + k] = 1;
  	 			safe_free(sub_prob.x);
	   			safe_free(sub_prob.y);
			 	  ++p;
					 }
		 model->nr_class = nr_class;
		 model->rho = safemalloc(sizeof(double) * nr_class * (nr_class - 1) / 2, "svm_train", 76);
		 for (i = 0;i < nr_class * (nr_class - 1) / 2; i++)
 	 		model->rho[i] = weights[i].rho;
		 total_sv = 0;
		 nz_count = safemalloc(nr_class * sizeof(int), "svm_train", 80);
		 model->nSV = safemalloc(nr_class * sizeof(int), "svm_train", 81);
		 for (i = 0; i < nr_class; i++)
			 {
	 		 nSV = 0;
	 		 for (j = 0; j < count[i]; j++)
	 			  if (nonzero[start[i] + j])
							 {	
				    	++nSV;
				 	   ++total_sv;
							 }
		 	 model->nSV[i] = nSV;
		 	 nz_count[i] = nSV;
			 }
 		model->l = total_sv;
 		model->SV = safemalloc(sizeof(Svm_nodeptr) * total_sv, "svm_train", 95);
 		p = 0;
 		for (i = 0; i < l; i++)
 			 if (nonzero[i]) 
				 	 model->SV[p++] = x[i];
   nz_start = safemalloc(nr_class * sizeof(int), "svm_train", 100);
 		nz_start[0] = 0;
 		for (i = 1; i < nr_class; i++)
 			 nz_start[i] = nz_start[i - 1] + nz_count[i - 1];
 		model->sv_coef = safemalloc(sizeof(double *) * (nr_class-1), "svm_train", 104);
 		for (i = 0; i < nr_class - 1; i++)
 			 model->sv_coef[i] = safemalloc(sizeof(double) * total_sv, "svm_train", 106);
 		p = 0;
 		for (i = 0; i < nr_class; i++)
 			 for (j = i + 1; j < nr_class; j++)
					 {
		 		  si = start[i];
		 		  sj = start[j];
		 		  ci = count[i];
		 		  cj = count[j];				
		 		  q = nz_start[i];
   				for (k = 0; k < ci; k++)
    					if (nonzero[si + k])
		 				    model->sv_coef[j - 1][q++] = weights[p].alpha[k];
   				q = nz_start[j];
		 		  for (k = 0; k < cj; k++)
    					if (nonzero[sj + k])
     						model->sv_coef[i][q++] = weights[p].alpha[ci+k];
   				++p;
					 }		
		 safe_free(count);
		 safe_free(perm);
		 safe_free(start);
		 safe_free(x);
		 safe_free(nonzero);
		 for (i = 0; i < nr_class * (nr_class - 1) / 2; i++)
 	 		safe_free(weights[i].alpha);
		 safe_free(weights);
		 safe_free(nz_count);
		 safe_free(nz_start);
	 }
	return model;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x168, %rsp            # imm = 0x168
movl %edi, %ebx
leaq 0x1c0(%rsp), %r14
leaq 0x1a0(%rsp), %rbp
leaq 0x1e385(%rip), %rsi     # 0xa19db
pushq $0x6
popq %rdx
movl $0xb0, %edi
callq 0x34f59
movq %rax, %r12
movaps (%rbp), %xmm0
movaps 0x10(%rbp), %xmm1
movups %xmm0, 0x80(%rax)
movups %xmm1, 0x90(%rax)
pushq $0xb
popq %rcx
movq %rax, %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl (%r14), %edi
xorl %r13d, %r13d
pushq $0x2
popq %rdx
pushq $0x3
popq %rcx
pushq $0x4
popq %r8
movl %ecx, %esi
xorl %eax, %eax
callq 0x35812
testl %eax, %eax
movq %r12, 0x90(%rsp)
je 0x837e5
movl $0x2, 0x58(%r12)
andq $0x0, 0x78(%r12)
xorps %xmm0, %xmm0
movups %xmm0, 0xa0(%r12)
leaq 0x1e308(%rip), %rbx     # 0xa19db
pushq $0x8
popq %rdi
pushq $0xc
popq %rdx
movq %rbx, %rsi
callq 0x34f59
movq %rax, 0x68(%r12)
leaq 0x20(%rsp), %rdi
pushq $0xb
popq %rcx
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
movups (%rbp), %xmm0
movupd 0x10(%rbp), %xmm1
movupd %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq 0xd8(%rsp), %r15
xorps %xmm0, %xmm0
xorpd %xmm1, %xmm1
movq %r15, %rdi
callq 0x832b1
movq (%r15), %r14
movsd 0x8(%r15), %xmm0
movsd %xmm0, 0x78(%rsp)
movslq 0x10(%r15), %r15
pushq $0xe
popq %rdx
pushq $0x8
popq %rdi
movq %rbx, %rsi
callq 0x34f59
movq %rax, 0x70(%r12)
movsd 0x78(%rsp), %xmm0
movsd %xmm0, (%rax)
movl %r15d, 0x5c(%r12)
shlq $0x3, %r15
pushq $0x11
popq %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x34f59
movq %rax, 0x60(%r12)
pushq $0x12
popq %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x34f59
movq 0x68(%r12), %rcx
movq %rax, (%rcx)
movl (%rbp), %eax
testl %eax, %eax
cmovlel %r13d, %eax
xorl %ecx, %ecx
xorpd %xmm1, %xmm1
movq 0x90(%rsp), %rdi
cmpq %rcx, %rax
je 0x837d0
movsd (%r14,%rcx,8), %xmm0
ucomisd %xmm0, %xmm1
je 0x837cb
movq 0x10(%rbp), %rdx
movq (%rdx,%rcx,8), %rdx
movq 0x60(%rdi), %rsi
movslq %r13d, %r13
movq %rdx, (%rsi,%r13,8)
movq 0x68(%rdi), %rdx
movq (%rdx), %rdx
movsd %xmm0, (%rdx,%r13,8)
incl %r13d
incq %rcx
jmp 0x83797
movq %r14, %rdi
callq 0x34ff7
movq 0x90(%rsp), %r13
jmp 0x840c9
movl %ebx, 0x9c(%rsp)
movslq (%rbp), %rbx
leaq 0x120(%rsp), %rax
andq $0x0, (%rax)
leaq 0x148(%rsp), %r13
andq $0x0, (%r13)
leaq (,%rbx,4), %r14
leaq 0x1e1c3(%rip), %rsi     # 0xa19db
pushq $0x22
popq %rdx
movq %r14, %rdi
callq 0x34f59
movq %rax, %r15
movupd (%rbp), %xmm0
movupd 0x10(%rbp), %xmm1
movupd %xmm1, 0x10(%rsp)
movupd %xmm0, (%rsp)
leaq 0x120(%rsp), %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x834b7
movq %rax, 0x80(%rsp)
movq %rbx, %rdi
shlq $0x3, %rdi
pushq $0x25
popq %rdx
leaq 0x1e174(%rip), %rsi     # 0xa19db
callq 0x34f59
xorl %esi, %esi
testl %ebx, %ebx
movl $0x0, %r8d
cmovgl %ebx, %r8d
movq %r12, %r13
cmpq %rsi, %r8
je 0x83897
movq 0x10(%rbp), %rcx
movslq (%r15,%rsi,4), %rdx
movq (%rcx,%rdx,8), %rcx
movq %rcx, (%rax,%rsi,8)
incq %rsi
jmp 0x8387d
movq %rax, 0xd0(%rsp)
movq %r15, 0x130(%rsp)
leaq 0x1e12d(%rip), %rsi     # 0xa19db
pushq $0x28
popq %rdx
movq %r14, %rdi
movq %r8, 0x100(%rsp)
callq 0x34f59
movq 0x100(%rsp), %rdx
movq %rax, 0x78(%rsp)
xorl %eax, %eax
movl 0x9c(%rsp), %ebx
pushq $0x2
popq %r15
movq 0x78(%rsp), %rcx
cmpq %rax, %rdx
je 0x838ee
andl $0x0, (%rcx,%rax,4)
incq %rax
jmp 0x838e0
movq 0x80(%rsp), %rax
movslq %eax, %r12
decl %eax
movq %rax, 0x108(%rsp)
cltq
movq %r12, 0xf8(%rsp)
movq %rax, 0x128(%rsp)
imulq %rax, %r12
imulq $0x18, %r12, %rdi
shrq %rdi
leaq 0x1e0b4(%rip), %rsi     # 0xa19db
pushq $0x2b
popq %rdx
callq 0x34f59
movq %rax, 0x88(%rsp)
movabsq $0x7ffffffffffffffc, %rdx # imm = 0x7FFFFFFFFFFFFFFC
testl %ebx, %ebx
je 0x83986
leaq (,%r12,4), %r14
andq %rdx, %r14
leaq 0x1e084(%rip), %rbp     # 0xa19db
pushq $0x2c
popq %rdx
movq %r14, %rdi
movq %rbp, %rsi
callq 0x34f59
movq %rax, 0xa0(%r13)
movq %r14, %rdi
movq %rbp, %rsi
pushq $0x2c
popq %rdx
callq 0x34f59
movabsq $0x7ffffffffffffffc, %rdx # imm = 0x7FFFFFFFFFFFFFFC
jmp 0x83990
andq $0x0, 0xa0(%r13)
xorl %eax, %eax
movq %rax, 0xa8(%r13)
movq 0x120(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0x80(%rsp), %rcx
testl %ecx, %ecx
movl $0x0, %eax
cmovgl %ecx, %eax
movq %rax, 0xc8(%rsp)
movq 0x148(%rsp), %rax
movq %rax, 0xa0(%rsp)
pushq $0x1
popq %rax
movq %rax, 0x110(%rsp)
xorl %ecx, %ecx
xorl %r14d, %r14d
movq %r12, 0x138(%rsp)
cmpq 0xc8(%rsp), %rcx
je 0x83d28
movslq %r14d, %r14
movq 0x110(%rsp), %rsi
movq %rcx, 0x118(%rsp)
cmpl %esi, 0x80(%rsp)
jle 0x83d18
movq %r14, 0xb8(%rsp)
movq 0xc0(%rsp), %rax
movslq (%rax,%rcx,4), %rbx
movslq (%rax,%rsi,4), %rax
movq %rax, 0xa8(%rsp)
movq 0xa0(%rsp), %rax
movslq (%rax,%rcx,4), %r12
movq %rsi, 0xb0(%rsp)
movl (%rax,%rsi,4), %ebp
leal (%r12,%rbp), %eax
movl %eax, 0xd8(%rsp)
movslq %eax, %r15
shlq $0x3, %r15
movq %r15, %rdi
leaq 0x1df71(%rip), %r14     # 0xa19db
movq %r14, %rsi
pushq $0x34
popq %rdx
callq 0x34f59
movq %rax, 0xe8(%rsp)
movq %r15, %rdi
movq %r14, %rsi
pushq $0x35
popq %rdx
callq 0x34f59
movabsq $0x3ff0000000000000, %r9 # imm = 0x3FF0000000000000
movabsq $-0x4010000000000000, %r8 # imm = 0xBFF0000000000000
movq %rax, 0xe0(%rsp)
testl %r12d, %r12d
movl $0x0, %r15d
cmovgl %r12d, %r15d
movq 0xd0(%rsp), %rdi
movq %rbx, 0x140(%rsp)
leaq (%rdi,%rbx,8), %rax
xorl %ecx, %ecx
cmpq %rcx, %r15
je 0x83af0
movq (%rax,%rcx,8), %rdx
movq 0xe8(%rsp), %rsi
movq %rdx, (%rsi,%rcx,8)
movq 0xe0(%rsp), %rdx
movq %r9, (%rdx,%rcx,8)
incq %rcx
jmp 0x83aca
testl %ebp, %ebp
movl $0x0, %eax
cmovlel %eax, %ebp
movq 0xa8(%rsp), %rax
leaq (%rdi,%rax,8), %rax
movq %r12, %rcx
movq %rbp, %rdx
movq 0xb8(%rsp), %r14
movl 0x9c(%rsp), %r9d
subq $0x1, %rdx
jb 0x83b46
movq (%rax), %rsi
movq 0xe8(%rsp), %rdi
movq %rsi, (%rdi,%rcx,8)
movq 0xe0(%rsp), %rsi
movq %r8, (%rsi,%rcx,8)
addq $0x8, %rax
incq %rcx
jmp 0x83b1c
testl %r9d, %r9d
leaq 0x1c0(%rsp), %rsi
pushq $0xb
popq %rcx
movq 0x118(%rsp), %rdi
movq 0xb0(%rsp), %rdx
je 0x83bd9
movsd 0x30(%rsi), %xmm1
movq 0x38(%rsi), %rax
movsd (%rax,%rdi,8), %xmm0
mulsd %xmm1, %xmm0
mulsd (%rax,%rdx,8), %xmm1
leaq (,%r14,8), %rax
movq %rdx, %rbx
movq 0xa0(%r13), %rdx
addq %rax, %rdx
addq 0xa8(%r13), %rax
movq %rdi, %r13
leaq 0x20(%rsp), %rdi
rep  movsq (%rsi), %es:(%rdi)
movups 0xd8(%rsp), %xmm2
movups 0xe8(%rsp), %xmm3
movups %xmm3, 0x10(%rsp)
movups %xmm2, (%rsp)
movq %rdx, %rdi
movq %rax, %rsi
callq 0x840de
movq %r13, %rdi
movq %rbx, %rdx
pushq $0xb
popq %rcx
leaq 0x1c0(%rsp), %rsi
imulq $0x18, %r14, %r13
movq 0x88(%rsp), %r14
leaq (%r14,%r13), %rbx
movsd 0x30(%rsi), %xmm1
movq 0x38(%rsi), %rax
movsd (%rax,%rdi,8), %xmm0
mulsd %xmm1, %xmm0
mulsd (%rax,%rdx,8), %xmm1
leaq 0x20(%rsp), %rdi
rep  movsq (%rsi), %es:(%rdi)
movups 0xd8(%rsp), %xmm2
movups 0xe8(%rsp), %xmm3
movups %xmm3, 0x10(%rsp)
movups %xmm2, (%rsp)
leaq 0x150(%rsp), %rdi
callq 0x832b1
movq 0x160(%rsp), %rax
movq %rax, 0x10(%r14,%r13)
movupd 0x150(%rsp), %xmm0
movupd %xmm0, (%r14,%r13)
movq 0x78(%rsp), %rax
movq 0x140(%rsp), %rcx
leaq (%rax,%rcx,4), %rax
xorl %ecx, %ecx
xorpd %xmm0, %xmm0
cmpq %rcx, %r15
je 0x83c82
cmpl $0x0, (%rax,%rcx,4)
jne 0x83c7d
movq (%rbx), %rdx
ucomisd (%rdx,%rcx,8), %xmm0
je 0x83c7d
movl $0x1, (%rax,%rcx,4)
incq %rcx
jmp 0x83c61
movq 0x78(%rsp), %rax
movq 0xa8(%rsp), %rcx
leaq (%rax,%rcx,4), %rax
shlq $0x3, %r12
xorl %ecx, %ecx
movq 0x90(%rsp), %r13
pushq $0x2
popq %r15
movq 0xb8(%rsp), %r14
cmpq %rcx, %rbp
je 0x83cd1
cmpl $0x0, (%rax,%rcx,4)
jne 0x83ccc
movq (%rbx), %rdx
addq %r12, %rdx
ucomisd (%rdx,%rcx,8), %xmm0
je 0x83ccc
movl $0x1, (%rax,%rcx,4)
incq %rcx
jmp 0x83cad
movq 0xe8(%rsp), %rdi
callq 0x34ff7
movq 0xe0(%rsp), %rdi
callq 0x34ff7
incq %r14
movq 0xb0(%rsp), %rsi
incq %rsi
movq 0x138(%rsp), %r12
movabsq $0x7ffffffffffffffc, %rdx # imm = 0x7FFFFFFFFFFFFFFC
movq 0x118(%rsp), %rcx
jmp 0x83a0a
incq %rcx
incq 0x110(%rsp)
jmp 0x839e9
movq 0x80(%rsp), %rbx
movl %ebx, 0x58(%r13)
shlq $0x2, %r12
andq %rdx, %r12
leaq 0x1dc99(%rip), %rsi     # 0xa19db
pushq $0x4c
popq %rdx
movq %r12, %rdi
callq 0x34f59
movq %rax, %rcx
movq %rax, 0x70(%r13)
movq 0x108(%rsp), %rax
imull %ebx, %eax
cltd
idivl %r15d
xorl %edi, %edi
testl %eax, %eax
cmovlel %edi, %eax
movq %rax, 0xb0(%rsp)
leaq (%rax,%rax,2), %rdx
movq 0x88(%rsp), %rsi
cmpq %rdi, %rdx
je 0x83d97
movsd 0x8(%rsi,%rdi,8), %xmm0
movsd %xmm0, (%rcx)
addq $0x3, %rdi
addq $0x8, %rcx
jmp 0x83d7e
movq 0xf8(%rsp), %rax
leaq (,%rax,4), %r14
leaq 0x1dc2d(%rip), %r15     # 0xa19db
pushq $0x50
popq %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x34f59
movq %rax, %rbx
pushq $0x51
popq %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x34f59
movq %rax, 0x78(%r13)
xorl %ecx, %ecx
xorl %edx, %edx
movq 0x78(%rsp), %r11
cmpq 0xc8(%rsp), %rcx
je 0x83e30
movq 0xa0(%rsp), %rsi
movl (%rsi,%rcx,4), %esi
xorl %edi, %edi
testl %esi, %esi
cmovlel %edi, %esi
xorl %r8d, %r8d
cmpl %edi, %esi
je 0x83e23
movq 0xc0(%rsp), %r9
movslq (%r9,%rcx,4), %r9
addq %rdi, %r9
xorl %r10d, %r10d
cmpl $0x0, (%r11,%r9,4)
setne %r10b
addl %r10d, %edx
addl %r10d, %r8d
incq %rdi
jmp 0x83df9
movl %r8d, (%rax,%rcx,4)
movl %r8d, (%rbx,%rcx,4)
incq %rcx
jmp 0x83dda
movl %edx, 0x5c(%r13)
movslq %edx, %r12
shlq $0x3, %r12
leaq 0x1db99(%rip), %rsi     # 0xa19db
pushq $0x5f
popq %rdx
movq %r12, %rdi
callq 0x34f59
movq %rax, 0x60(%r13)
xorl %eax, %eax
xorl %ecx, %ecx
movq 0xd0(%rsp), %r8
movq 0x100(%rsp), %r9
cmpq %rax, %r9
je 0x83e8b
movq 0x78(%rsp), %rdx
cmpl $0x0, (%rdx,%rax,4)
je 0x83e86
movq (%r8,%rax,8), %rdx
movq 0x60(%r13), %rsi
movslq %ecx, %rdi
incl %ecx
movq %rdx, (%rsi,%rdi,8)
incq %rax
jmp 0x83e65
leaq 0x1db49(%rip), %rsi     # 0xa19db
pushq $0x64
popq %rdx
movq %r14, %rdi
callq 0x34f59
movq %rax, %r15
andl $0x0, (%rax)
pushq $0x1
popq %rax
xorl %ecx, %ecx
movq 0xf8(%rsp), %rdx
cmpq %rdx, %rax
jge 0x83ec2
addl -0x4(%rbx,%rax,4), %ecx
movl %ecx, (%r15,%rax,4)
incq %rax
jmp 0x83eb0
movq %rbx, 0xa8(%rsp)
movq 0x128(%rsp), %rdi
shlq $0x3, %rdi
leaq 0x1dafe(%rip), %rbp     # 0xa19db
pushq $0x68
popq %rdx
movq %rbp, %rsi
callq 0x34f59
movq %rax, 0x68(%r13)
xorl %ebx, %ebx
movq 0x108(%rsp), %r14
testl %r14d, %r14d
cmovlel %ebx, %r14d
cmpq %rbx, %r14
je 0x83f1d
movq %r12, %rdi
movq %rbp, %rsi
pushq $0x6a
popq %rdx
callq 0x34f59
movq 0x68(%r13), %rcx
movq %rax, (%rcx,%rbx,8)
incq %rbx
jmp 0x83efd
movl 0x80(%rsp), %eax
pushq $0x1
popq %r8
xorl %esi, %esi
xorl %edi, %edi
cmpq 0xc8(%rsp), %rsi
je 0x84041
movslq %edi, %rdi
movq %r8, 0xb8(%rsp)
cmpq %rax, %r8
je 0x8402e
movq 0xc0(%rsp), %rcx
movslq (%rcx,%rsi,4), %r12
movslq (%rcx,%r8,4), %rbx
movq 0xa0(%rsp), %rcx
movslq (%rcx,%rsi,4), %r9
movl (%rcx,%r8,4), %r10d
movl (%r15,%rsi,4), %ebp
imulq $0x18, %rdi, %r11
addq 0x88(%rsp), %r11
testl %r9d, %r9d
movl $0x0, %r14d
cmovgl %r9d, %r14d
movq 0x78(%rsp), %rcx
leaq (%rcx,%r12,4), %r12
xorl %r13d, %r13d
cmpq %r13, %r14
je 0x83fcc
cmpl $0x0, (%r12,%r13,4)
je 0x83fc7
movq (%r11), %rcx
movsd (%rcx,%r13,8), %xmm0
movq 0x90(%rsp), %rcx
movq 0x68(%rcx), %rcx
movq -0x8(%rcx,%r8,8), %rcx
movslq %ebp, %rdx
incl %ebp
movsd %xmm0, (%rcx,%rdx,8)
incq %r13
jmp 0x83f97
testl %r10d, %r10d
movl $0x0, %ecx
cmovlel %ecx, %r10d
movl (%r15,%r8,4), %ebp
movq 0x78(%rsp), %rcx
leaq (%rcx,%rbx,4), %rbx
shlq $0x3, %r9
xorl %r14d, %r14d
movq 0x90(%rsp), %r13
cmpq %r14, %r10
je 0x84023
cmpl $0x0, (%rbx,%r14,4)
je 0x8401e
movq (%r11), %rcx
addq %r9, %rcx
movsd (%rcx,%r14,8), %xmm0
movq 0x68(%r13), %rcx
movq (%rcx,%rsi,8), %rcx
movslq %ebp, %rdx
incl %ebp
movsd %xmm0, (%rcx,%rdx,8)
incq %r14
jmp 0x83ff4
incq %rdi
incq %r8
jmp 0x83f45
incq %rsi
movq 0xb8(%rsp), %r8
incq %r8
jmp 0x83f2c
movq 0xa0(%rsp), %rdi
callq 0x34ff7
movq 0x130(%rsp), %rdi
callq 0x34ff7
movq 0xc0(%rsp), %rdi
callq 0x34ff7
movq 0xd0(%rsp), %rdi
callq 0x34ff7
movq 0x78(%rsp), %rdi
callq 0x34ff7
imulq $0x18, 0xb0(%rsp), %rbx
xorl %r14d, %r14d
cmpq %r14, %rbx
je 0x840a7
movq 0x88(%rsp), %rax
movq (%rax,%r14), %rdi
callq 0x34ff7
addq $0x18, %r14
jmp 0x8408b
movq 0x88(%rsp), %rdi
callq 0x34ff7
movq 0xa8(%rsp), %rdi
callq 0x34ff7
movq %r15, %rdi
callq 0x34ff7
movq %r13, %rax
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq