// File: /workspace/github_c_makefile_star2_O3/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 $0x178, %rsp            # imm = 0x178
movl %edi, %r14d
leaq 0x1d0(%rsp), %r15
leaq 0x1b0(%rsp), %r13
leaq 0x204fa(%rip), %rsi     # 0xb1a7b
movl $0xb0, %edi
movl $0x6, %edx
callq 0x3a0e1
movq %rax, %rbx
movq %rax, %rbp
movaps (%r13), %xmm0
movaps 0x10(%r13), %xmm1
movups %xmm0, 0x80(%rax)
movups %xmm1, 0x90(%rax)
movl $0xb, %ecx
movq %rax, %rdi
movq %r15, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl (%r15), %edi
movl $0x3, %esi
movl $0x2, %edx
movl $0x3, %ecx
movl $0x4, %r8d
xorl %eax, %eax
callq 0x3aa8c
testl %eax, %eax
je 0x9170e
movl $0x2, 0x58(%rbp)
movq $0x0, 0x78(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, 0xa0(%rbp)
leaq 0x20478(%rip), %r14     # 0xb1a7b
movl $0x8, %edi
movq %r14, %rsi
movl $0xc, %edx
callq 0x3a0e1
movq %rax, 0x68(%rbp)
leaq 0x20(%rsp), %rdi
movl $0xb, %ecx
movq %r15, %rsi
rep  movsq (%rsi), %es:(%rdi)
movups (%r13), %xmm0
movupd 0x10(%r13), %xmm1
movupd %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq 0x110(%rsp), %r15
xorps %xmm0, %xmm0
xorpd %xmm1, %xmm1
movq %r15, %rdi
callq 0x9119a
movq (%r15), %rbx
movsd 0x8(%r15), %xmm0
movsd %xmm0, 0x88(%rsp)
movslq 0x10(%r15), %r15
movl $0x8, %edi
movq %r14, %rsi
movl $0xe, %edx
callq 0x3a0e1
movq %rax, 0x70(%rbp)
movsd 0x88(%rsp), %xmm0
movsd %xmm0, (%rax)
movl %r15d, 0x5c(%rbp)
shlq $0x3, %r15
movq %r15, %rdi
movq %r14, %rsi
movl $0x11, %edx
callq 0x3a0e1
movq %rax, 0x60(%rbp)
movq %r15, %rdi
movq %r14, %rsi
movl $0x12, %edx
callq 0x3a0e1
xorpd %xmm1, %xmm1
movq 0x68(%rbp), %rcx
movq %rax, (%rcx)
movslq (%r13), %rax
testq %rax, %rax
jle 0x91706
xorl %ecx, %ecx
xorl %edx, %edx
movsd (%rbx,%rcx,8), %xmm0
ucomisd %xmm0, %xmm1
je 0x916fe
movq 0x10(%r13), %rsi
movq (%rsi,%rcx,8), %rsi
movq 0x60(%rbp), %rdi
movslq %edx, %rdx
movq %rsi, (%rdi,%rdx,8)
movq 0x68(%rbp), %rsi
movq (%rsi), %rsi
movsd %xmm0, (%rsi,%rdx,8)
incl %edx
incq %rcx
cmpq %rcx, %rax
jne 0x916d2
movq %rbx, %rdi
jmp 0x9213a
movl %r14d, 0xc8(%rsp)
movq %rbx, 0x138(%rsp)
movq %rbp, 0xb0(%rsp)
movslq (%r13), %r14
xorl %eax, %eax
leaq 0x108(%rsp), %rbx
movq %rax, (%rbx)
leaq 0x100(%rsp), %rbp
movq %rax, (%rbp)
leaq (,%r14,4), %r12
leaq 0x20329(%rip), %rsi     # 0xb1a7b
movq %r12, %rdi
movl $0x22, %edx
callq 0x3a0e1
movupd (%r13), %xmm0
movupd 0x10(%r13), %xmm1
movupd %xmm1, 0x10(%rsp)
movupd %xmm0, (%rsp)
movq %rbx, %rdi
movq %r14, %rbx
movq %rbp, %rsi
movq %rax, %r14
movq %rax, %rdx
callq 0x913c0
movl %eax, %r15d
leaq (,%rbx,8), %rdi
leaq 0x202df(%rip), %rsi     # 0xb1a7b
movl $0x25, %edx
callq 0x3a0e1
testq %rbx, %rbx
movq %rax, 0xf0(%rsp)
movq %rbx, 0x150(%rsp)
jle 0x9180c
movq 0x10(%r13), %rsi
xorl %ecx, %ecx
movslq (%r14,%rcx,4), %rdx
movq (%rsi,%rdx,8), %rdx
movq %rdx, (%rax,%rcx,8)
incq %rcx
cmpq %rcx, %rbx
jne 0x917c1
leaq 0x2029f(%rip), %rsi     # 0xb1a7b
movq %r12, %rdi
movl $0x28, %edx
callq 0x3a0e1
testl %ebx, %ebx
movq 0xb0(%rsp), %rbx
movq %rax, 0x90(%rsp)
jle 0x91830
movq %rax, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x4050
jmp 0x91830
leaq 0x20268(%rip), %rsi     # 0xb1a7b
movq %r12, %rdi
movl $0x28, %edx
callq 0x3a0e1
movq %rax, 0x90(%rsp)
movq 0xb0(%rsp), %rbx
movslq %r15d, %r13
leal -0x1(%r15), %eax
movl %eax, 0xbc(%rsp)
movslq %eax, %r12
movq %r13, %rbp
imulq %r12, %rbp
leaq (,%rbp,8), %rax
leaq (%rax,%rax,2), %rdi
shrq %rdi
leaq 0x2021d(%rip), %rsi     # 0xb1a7b
movl $0x2b, %edx
callq 0x3a0e1
movq %rax, 0x88(%rsp)
movabsq $0x7ffffffffffffffc, %rax # imm = 0x7FFFFFFFFFFFFFFC
cmpl $0x0, 0xc8(%rsp)
movq %r14, 0x158(%rsp)
movq %r12, 0x130(%rsp)
je 0x918cf
leaq (,%rbp,4), %r12
andq %rax, %r12
leaq 0x201d5(%rip), %r14     # 0xb1a7b
movq %r12, %rdi
movq %r14, %rsi
movl $0x2c, %edx
callq 0x3a0e1
movq %rax, 0xa0(%rbx)
movq %r12, %rdi
movq %r14, %rsi
movl $0x2c, %edx
callq 0x3a0e1
jmp 0x918dc
movq $0x0, 0xa0(%rbx)
xorl %eax, %eax
movq %rbp, 0x148(%rsp)
movq %rax, 0xa8(%rbx)
movl %r15d, %eax
movq %rax, 0xa0(%rsp)
movq %r15, 0xc0(%rsp)
testl %r15d, %r15d
movq %r13, 0x140(%rsp)
jle 0x91c62
movq 0x108(%rsp), %rax
movq %rax, 0xe8(%rsp)
movq 0x100(%rsp), %rax
movq %rax, 0xe0(%rsp)
xorl %eax, %eax
movl $0x1, %r12d
movabsq $0x3ff0000000000000, %r15 # imm = 0x3FF0000000000000
xorl %ebp, %ebp
movq %rax, %rcx
incq %rax
cmpq %r13, %rax
jge 0x91c51
movq %rax, 0xd8(%rsp)
movslq %ebp, %rbp
movq %r12, 0xd0(%rsp)
movq %rcx, 0x98(%rsp)
movq %rbp, 0xf8(%rsp)
movq 0xe8(%rsp), %rax
movslq (%rax,%rcx,4), %rdx
movq %rdx, 0xa8(%rsp)
movslq (%rax,%r12,4), %rax
movq %rax, 0x80(%rsp)
movq 0xe0(%rsp), %rax
movslq (%rax,%rcx,4), %r13
movl (%rax,%r12,4), %r14d
leal (%r14,%r13), %eax
movl %eax, 0x110(%rsp)
movslq %eax, %rbx
shlq $0x3, %rbx
movq %rbx, %rdi
movq %r15, %rbp
leaq 0x200b7(%rip), %r15     # 0xb1a7b
movq %r15, %rsi
movl $0x34, %edx
callq 0x3a0e1
movq %rax, 0x120(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
movq %rbp, %r15
movl $0x35, %edx
callq 0x3a0e1
movq %rax, 0x118(%rsp)
testq %r13, %r13
movq 0xf0(%rsp), %rdi
jle 0x91a33
movq 0xa8(%rsp), %rax
leaq (%rdi,%rax,8), %rax
xorl %ecx, %ecx
movq (%rax,%rcx,8), %rdx
movq 0x120(%rsp), %rsi
movq %rdx, (%rsi,%rcx,8)
movq 0x118(%rsp), %rdx
movq %r15, (%rdx,%rcx,8)
incq %rcx
cmpq %rcx, %r13
jne 0x91a0f
testl %r14d, %r14d
leaq 0x1d0(%rsp), %rsi
movabsq $-0x4010000000000000, %r8 # imm = 0xBFF0000000000000
jle 0x91a83
movq 0x80(%rsp), %rax
leaq (%rdi,%rax,8), %rax
movq %r14, %rcx
movq %r13, %rdx
movq (%rax), %r9
movq 0x120(%rsp), %rdi
movq %r9, (%rdi,%rdx,8)
movq 0x118(%rsp), %rdi
movq %r8, (%rdi,%rdx,8)
addq $0x8, %rax
incq %rdx
decq %rcx
jne 0x91a5c
cmpl $0x0, 0xc8(%rsp)
movq 0xf8(%rsp), %rbp
movq 0x98(%rsp), %rbx
je 0x91b0f
movsd 0x30(%rsi), %xmm1
movq 0x38(%rsi), %rax
movsd (%rax,%rbx,8), %xmm0
mulsd %xmm1, %xmm0
mulsd (%rax,%r12,8), %xmm1
leaq (,%rbp,8), %rax
movq 0xb0(%rsp), %rcx
movq 0xa0(%rcx), %rdx
addq %rax, %rdx
addq 0xa8(%rcx), %rax
leaq 0x20(%rsp), %rdi
movl $0xb, %ecx
rep  movsq (%rsi), %es:(%rdi)
movups 0x110(%rsp), %xmm2
movups 0x120(%rsp), %xmm3
movups %xmm3, 0x10(%rsp)
movups %xmm2, (%rsp)
movq %rdx, %rdi
movq %rax, %rsi
callq 0x92154
leaq 0x1d0(%rsp), %rsi
movsd 0x30(%rsi), %xmm1
movq 0x38(%rsi), %rax
movsd (%rax,%rbx,8), %xmm0
mulsd %xmm1, %xmm0
mulsd (%rax,%r12,8), %xmm1
leaq 0x20(%rsp), %rdi
movl $0xb, %ecx
rep  movsq (%rsi), %es:(%rdi)
movups 0x110(%rsp), %xmm2
movups 0x120(%rsp), %xmm3
movups %xmm3, 0x10(%rsp)
movups %xmm2, (%rsp)
leaq 0x160(%rsp), %rdi
callq 0x9119a
leaq (,%rbp,2), %rcx
addq %rbp, %rcx
movq 0x88(%rsp), %rsi
leaq (%rsi,%rcx,8), %rax
movq 0x170(%rsp), %rdx
movq %rdx, 0x10(%rsi,%rcx,8)
movupd 0x160(%rsp), %xmm0
movupd %xmm0, (%rsi,%rcx,8)
testl %r13d, %r13d
movq 0x90(%rsp), %rdi
xorpd %xmm0, %xmm0
jle 0x91bca
movq 0xa8(%rsp), %rcx
leaq (%rdi,%rcx,4), %rcx
xorl %edx, %edx
cmpl $0x0, (%rcx,%rdx,4)
jne 0x91bc2
movq (%rax), %rsi
ucomisd (%rsi,%rdx,8), %xmm0
je 0x91bc2
movl $0x1, (%rcx,%rdx,4)
incq %rdx
cmpq %rdx, %r13
jne 0x91bab
testl %r14d, %r14d
jle 0x91c03
movq 0x80(%rsp), %rcx
leaq (%rdi,%rcx,4), %rcx
shlq $0x3, %r13
xorl %edx, %edx
cmpl $0x0, (%rcx,%rdx,4)
jne 0x91bfb
movq (%rax), %rsi
addq %r13, %rsi
ucomisd (%rsi,%rdx,8), %xmm0
je 0x91bfb
movl $0x1, (%rcx,%rdx,4)
incq %rdx
cmpq %rdx, %r14
jne 0x91be1
movq 0x120(%rsp), %rdi
callq 0x3a180
movq 0x118(%rsp), %rdi
callq 0x3a180
incq %rbp
incq %r12
cmpq 0xa0(%rsp), %r12
movq 0x98(%rsp), %rcx
jne 0x9196d
movq 0x140(%rsp), %r13
movq 0xd8(%rsp), %rax
movq 0xd0(%rsp), %r12
incq %r12
cmpq 0xa0(%rsp), %rax
jne 0x91943
movq 0xb0(%rsp), %rbp
movq 0xc0(%rsp), %rbx
movl %ebx, 0x58(%rbp)
movq 0x148(%rsp), %rdi
shlq $0x2, %rdi
movabsq $0x7ffffffffffffffc, %rax # imm = 0x7FFFFFFFFFFFFFFC
andq %rax, %rdi
leaq 0x1fde6(%rip), %rsi     # 0xb1a7b
movl $0x4c, %edx
callq 0x3a0e1
movq %rax, 0x70(%rbp)
movl 0xbc(%rsp), %edx
imull %ebx, %edx
movl %edx, %ecx
shrl $0x1f, %ecx
addl %edx, %ecx
sarl %ecx
movl %ecx, %esi
movl %edx, 0xd8(%rsp)
cmpl $0x2, %edx
jl 0x91ce7
movq 0x88(%rsp), %rcx
addq $0x8, %rcx
xorl %edx, %edx
movsd (%rcx), %xmm0
movsd %xmm0, (%rax,%rdx,8)
incq %rdx
addq $0x18, %rcx
cmpq %rdx, %rsi
jne 0x91cd2
movq %rsi, 0xe0(%rsp)
leaq (,%r13,4), %r15
leaq 0x1fd7d(%rip), %r12     # 0xb1a7b
movq %r15, %rdi
movq %r12, %rsi
movl $0x50, %edx
callq 0x3a0e1
movq %rax, %r14
movq %r15, %rdi
movq %r12, %rsi
movl $0x51, %edx
callq 0x3a0e1
movq %rax, 0x78(%rbp)
cmpl $0x0, 0xc0(%rsp)
jle 0x91d9d
movq 0x100(%rsp), %rdx
movq 0x108(%rsp), %rsi
xorl %edi, %edi
xorl %ecx, %ecx
movq 0x138(%rsp), %r12
movslq (%rdx,%rdi,4), %r8
testq %r8, %r8
jle 0x91d83
movslq (%rsi,%rdi,4), %r9
movq 0x90(%rsp), %r10
leaq (%r10,%r9,4), %r10
xorl %r11d, %r11d
xorl %r9d, %r9d
xorl %ebx, %ebx
cmpl $0x0, (%r10,%r11,4)
setne %bl
addl %ebx, %ecx
addl %ebx, %r9d
incq %r11
cmpq %r11, %r8
jne 0x91d6a
jmp 0x91d86
xorl %r9d, %r9d
movl %r9d, (%rax,%rdi,4)
movl %r9d, (%r14,%rdi,4)
incq %rdi
cmpq 0xa0(%rsp), %rdi
jne 0x91d4b
jmp 0x91da7
xorl %ecx, %ecx
movq 0x138(%rsp), %r12
movl %ecx, 0x5c(%rbp)
movslq %ecx, %rbx
shlq $0x3, %rbx
leaq 0x1fcc3(%rip), %rsi     # 0xb1a7b
movq %rbx, %rdi
movl $0x5f, %edx
callq 0x3a0e1
movq %rax, 0x60(%rbp)
movq 0x150(%rsp), %r10
testl %r10d, %r10d
movq 0xf0(%rsp), %r8
movq 0x90(%rsp), %r9
jle 0x91e0a
xorl %eax, %eax
xorl %ecx, %ecx
cmpl $0x0, (%r9,%rax,4)
je 0x91e02
movq (%r8,%rax,8), %rdx
movq 0x60(%rbp), %rsi
movslq %ecx, %rdi
incl %ecx
movq %rdx, (%rsi,%rdi,8)
incq %rax
cmpq %rax, %r10
jne 0x91dea
movq %rbx, 0x80(%rsp)
leaq 0x1fc62(%rip), %rsi     # 0xb1a7b
movq %r15, %rdi
movl $0x64, %edx
callq 0x3a0e1
movq %rax, %r15
movl $0x0, (%rax)
movq 0xc0(%rsp), %rbx
cmpl $0x1, %ebx
movq %r14, 0xd0(%rsp)
jle 0x91ee7
movq 0xa0(%rsp), %rax
decq %rax
xorl %ecx, %ecx
xorl %edx, %edx
addl (%r14,%rcx,4), %edx
movl %edx, 0x4(%r15,%rcx,4)
incq %rcx
cmpq %rcx, %rax
jne 0x91e57
movq 0x130(%rsp), %rdi
shlq $0x3, %rdi
leaq 0x1fc00(%rip), %rsi     # 0xb1a7b
movl $0x68, %edx
callq 0x3a0e1
addq $0x68, %r12
movq %rax, 0x68(%rbp)
cmpl $0x2, %ebx
jl 0x91f0c
movq %r15, 0x98(%rsp)
movl 0xbc(%rsp), %ebx
xorl %r14d, %r14d
movq %r12, %r15
movq 0x80(%rsp), %r12
movq %r12, %rdi
leaq 0x1fbc2(%rip), %rsi     # 0xb1a7b
movl $0x6a, %edx
callq 0x3a0e1
movq (%r15), %rcx
movq %rax, (%rcx,%r14,8)
incq %r14
cmpq %r14, %rbx
jne 0x91eaf
movq %r15, %r12
movq 0xc0(%rsp), %rbx
movq 0x98(%rsp), %r15
jmp 0x91f0c
movq 0x130(%rsp), %rdi
shlq $0x3, %rdi
leaq 0x1fb81(%rip), %rsi     # 0xb1a7b
movl $0x68, %edx
callq 0x3a0e1
addq $0x68, %r12
movq %rax, 0x68(%rbp)
movq 0x100(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0x108(%rsp), %rax
movq %rax, 0x80(%rsp)
testl %ebx, %ebx
jle 0x920b1
xorl %eax, %eax
movl $0x1, %r14d
xorl %edx, %edx
movq %r15, 0x98(%rsp)
movq %rax, %rsi
incq %rax
cmpq %r13, %rax
jge 0x920a0
movq %rax, 0xc8(%rsp)
movq 0x80(%rsp), %rax
movslq (%rax,%rsi,4), %rax
movq 0xa8(%rsp), %rcx
movl (%rcx,%rsi,4), %r8d
movl (%r15,%rsi,4), %ecx
movl %ecx, 0xf8(%rsp)
movslq %r8d, %r10
movslq %edx, %rdx
movq 0x90(%rsp), %rcx
leaq (%rcx,%rax,4), %r11
shlq $0x3, %r10
movq %r14, 0xe8(%rsp)
movq 0x80(%rsp), %rax
movslq (%rax,%r14,4), %rdi
movq 0xa8(%rsp), %rax
movl (%rax,%r14,4), %r13d
leaq (%rdx,%rdx,2), %rbx
testl %r8d, %r8d
jle 0x92009
movq 0x88(%rsp), %rax
leaq (%rax,%rbx,8), %rax
xorl %r15d, %r15d
movl 0xf8(%rsp), %r9d
cmpl $0x0, (%r11,%r15,4)
je 0x92001
movq (%rax), %rcx
movsd (%rcx,%r15,8), %xmm0
movq (%r12), %rcx
movq -0x8(%rcx,%r14,8), %rcx
movq %r12, %rbp
movslq %r9d, %r12
incl %r9d
movsd %xmm0, (%rcx,%r12,8)
movq %rbp, %r12
incq %r15
cmpq %r15, %r8
jne 0x91fd6
testl %r13d, %r13d
jle 0x92064
movq 0x98(%rsp), %rax
movl (%rax,%r14,4), %eax
movq 0x88(%rsp), %rcx
leaq (%rcx,%rbx,8), %rbx
movq 0x90(%rsp), %rcx
leaq (%rcx,%rdi,4), %rbp
xorl %r15d, %r15d
cmpl $0x0, (%rbp,%r15,4)
je 0x9205c
movq (%rbx), %rcx
addq %r10, %rcx
movsd (%rcx,%r15,8), %xmm0
movq (%r12), %rcx
movq (%rcx,%rsi,8), %rcx
movslq %eax, %r9
incl %eax
movsd %xmm0, (%rcx,%r9,8)
incq %r15
cmpq %r15, %r13
jne 0x92035
incq %rdx
incq %r14
cmpq 0xa0(%rsp), %r14
jne 0x91f9e
movq 0xb0(%rsp), %rbp
movq 0x140(%rsp), %r13
movq 0x98(%rsp), %r15
movq 0xc8(%rsp), %rax
movq 0xe8(%rsp), %r14
incq %r14
cmpq 0xa0(%rsp), %rax
jne 0x91f46
movq 0xa8(%rsp), %rdi
callq 0x3a180
movq 0x158(%rsp), %rdi
callq 0x3a180
movq 0x80(%rsp), %rdi
callq 0x3a180
movq 0xf0(%rsp), %rdi
callq 0x3a180
movq 0x90(%rsp), %rdi
callq 0x3a180
cmpl $0x2, 0xd8(%rsp)
movq 0xe0(%rsp), %r14
jl 0x9211d
movq 0x88(%rsp), %rbx
movq (%rbx), %rdi
callq 0x3a180
addq $0x18, %rbx
decq %r14
jne 0x9210c
movq 0x88(%rsp), %rdi
callq 0x3a180
movq 0xd0(%rsp), %rdi
callq 0x3a180
movq %r15, %rdi
callq 0x3a180
movq %rbp, %rax
addq $0x178, %rsp            # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq