// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x1a0, %rsp            # imm = 0x1A0
leaq 0x30(%rbp), %rax
movq %rax, -0xf8(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x100(%rbp)
movl %edi, -0x4(%rbp)
movl $0x0, -0x3c(%rbp)
movl $0xb0, %edi
leaq 0x26e24(%rip), %rsi     # 0xee09b
movl $0x6, %edx
callq 0x52d70
movq -0x100(%rbp), %rcx
movq -0xf8(%rbp), %rsi
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movq (%rcx), %rdx
movq %rdx, 0x80(%rax)
movq 0x8(%rcx), %rdx
movq %rdx, 0x88(%rax)
movq 0x10(%rcx), %rdx
movq %rdx, 0x90(%rax)
movq 0x18(%rcx), %rcx
movq %rcx, 0x98(%rax)
movq -0x98(%rbp), %rdi
movl $0x58, %edx
callq 0x42b0
movq -0xf8(%rbp), %rax
movl (%rax), %edi
movl $0x3, %ecx
movl $0x2, %edx
movl $0x4, %r8d
movl %ecx, %esi
movb $0x0, %al
callq 0x53e40
cmpl $0x0, %eax
je 0xc7545
movq -0x98(%rbp), %rax
movl $0x2, 0x58(%rax)
movq -0x98(%rbp), %rax
movq $0x0, 0xa0(%rax)
movq -0x98(%rbp), %rax
movq $0x0, 0xa8(%rax)
movq -0x98(%rbp), %rax
movq $0x0, 0x78(%rax)
movl $0x8, %edi
leaq 0x26d4a(%rip), %rsi     # 0xee09b
movl $0xc, %edx
callq 0x52d70
movq -0xf8(%rbp), %rdx
movq -0x100(%rbp), %rcx
movq %rax, %rsi
movq -0x98(%rbp), %rax
movq %rsi, 0x68(%rax)
movq 0x50(%rdx), %rsi
movq %rsp, %rax
movq %rax, -0x108(%rbp)
movq %rsi, 0x70(%rax)
movups 0x40(%rdx), %xmm0
movups %xmm0, 0x60(%rax)
movups (%rdx), %xmm0
movups 0x10(%rdx), %xmm1
movups 0x20(%rdx), %xmm2
movups 0x30(%rdx), %xmm3
movups %xmm3, 0x50(%rax)
movups %xmm2, 0x40(%rax)
movups %xmm1, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups (%rcx), %xmm0
movups 0x10(%rcx), %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
leaq -0xd8(%rbp), %rdi
xorps %xmm1, %xmm1
movaps %xmm1, %xmm0
callq 0xc6c70
movq -0xd8(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x78(%rbp)
movl $0x8, %edi
leaq 0x26c9b(%rip), %rsi     # 0xee09b
movl $0xe, %edx
callq 0x52d70
movq %rax, %rcx
movq -0x98(%rbp), %rax
movq %rcx, 0x70(%rax)
movsd -0x80(%rbp), %xmm0
movq -0x98(%rbp), %rax
movq 0x70(%rax), %rax
movsd %xmm0, (%rax)
movl -0x78(%rbp), %ecx
movq -0x98(%rbp), %rax
movl %ecx, 0x5c(%rax)
movslq -0x78(%rbp), %rdi
shlq $0x3, %rdi
leaq 0x26c53(%rip), %rsi     # 0xee09b
movl $0x11, %edx
callq 0x52d70
movq %rax, %rcx
movq -0x98(%rbp), %rax
movq %rcx, 0x60(%rax)
movslq -0x78(%rbp), %rdi
shlq $0x3, %rdi
leaq 0x26c2c(%rip), %rsi     # 0xee09b
movl $0x12, %edx
callq 0x52d70
movq %rax, %rcx
movq -0x98(%rbp), %rax
movq 0x68(%rax), %rax
movq %rcx, (%rax)
movl $0x0, -0xc(%rbp)
movl $0x0, -0x8(%rbp)
movq -0x100(%rbp), %rcx
movl -0x8(%rbp), %eax
cmpl (%rcx), %eax
jge 0xc7534
movq -0x88(%rbp), %rax
movslq -0x8(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movaps 0x1b99f(%rip), %xmm1    # 0xe2e60
pand %xmm1, %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0xc7524
movq -0x100(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x8(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -0x98(%rbp), %rax
movq 0x60(%rax), %rax
movslq -0xc(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x88(%rbp), %rax
movslq -0x8(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x98(%rbp), %rax
movq 0x68(%rax), %rax
movq (%rax), %rax
movslq -0xc(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xc7526
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0xc7498
movq -0x88(%rbp), %rdi
callq 0x52e80
jmp 0xc808c
movq -0x100(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x14(%rbp)
movq $0x0, -0x20(%rbp)
movq $0x0, -0x28(%rbp)
movslq -0x14(%rbp), %rdi
shlq $0x2, %rdi
leaq 0x26b2b(%rip), %rsi     # 0xee09b
movl $0x22, %edx
callq 0x52d70
movq %rax, %rcx
movq -0x100(%rbp), %rax
movq %rcx, -0x30(%rbp)
movq -0x30(%rbp), %rdx
leaq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rsi
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rcx
movq %rcx, 0x10(%rsp)
movq 0x18(%rax), %rax
movq %rax, 0x18(%rsp)
callq 0xc6fe0
movl %eax, -0x18(%rbp)
movslq -0x14(%rbp), %rdi
shlq $0x3, %rdi
leaq 0x26ace(%rip), %rsi     # 0xee09b
movl $0x25, %edx
callq 0x52d70
movq %rax, -0xa0(%rbp)
movl $0x0, -0x8(%rbp)
movl -0x8(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0xc7622
movq -0x100(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x30(%rbp), %rcx
movslq -0x8(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movq (%rax,%rcx,8), %rdx
movq -0xa0(%rbp), %rax
movslq -0x8(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0xc75e5
movslq -0x14(%rbp), %rdi
shlq $0x2, %rdi
leaq 0x26a6a(%rip), %rsi     # 0xee09b
movl $0x28, %edx
callq 0x52d70
movq %rax, -0x38(%rbp)
movl $0x0, -0x8(%rbp)
movl -0x8(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0xc7668
movq -0x38(%rbp), %rax
movslq -0x8(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0xc7646
movslq -0x18(%rbp), %rax
imulq $0x18, %rax, %rdi
movl -0x18(%rbp), %eax
subl $0x1, %eax
cltq
imulq %rax, %rdi
shrq %rdi
leaq 0x26a15(%rip), %rsi     # 0xee09b
movl $0x2b, %edx
callq 0x52d70
movq %rax, -0x90(%rbp)
cmpl $0x0, -0x4(%rbp)
je 0xc7711
movslq -0x18(%rbp), %rdi
shlq $0x3, %rdi
movl -0x18(%rbp), %eax
subl $0x1, %eax
cltq
imulq %rax, %rdi
shrq %rdi
leaq 0x269e0(%rip), %rsi     # 0xee09b
movl $0x2c, %edx
callq 0x52d70
movq %rax, %rcx
movq -0x98(%rbp), %rax
movq %rcx, 0xa0(%rax)
movslq -0x18(%rbp), %rdi
shlq $0x3, %rdi
movl -0x18(%rbp), %eax
subl $0x1, %eax
cltq
imulq %rax, %rdi
shrq %rdi
leaq 0x269a7(%rip), %rsi     # 0xee09b
movl $0x2c, %edx
callq 0x52d70
movq %rax, %rcx
movq -0x98(%rbp), %rax
movq %rcx, 0xa8(%rax)
jmp 0xc7735
movq -0x98(%rbp), %rax
movq $0x0, 0xa0(%rax)
movq -0x98(%rbp), %rax
movq $0x0, 0xa8(%rax)
movl $0x0, -0x8(%rbp)
movl -0x8(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0xc7b48
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
movl -0xc(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0xc7b38
movq -0x20(%rbp), %rax
movslq -0x8(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x40(%rbp)
movq -0x20(%rbp), %rax
movslq -0xc(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x44(%rbp)
movq -0x28(%rbp), %rax
movslq -0x8(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x48(%rbp)
movq -0x28(%rbp), %rax
movslq -0xc(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x4c(%rbp)
movl -0x48(%rbp), %eax
addl -0x4c(%rbp), %eax
movl %eax, -0xc0(%rbp)
movslq -0xc0(%rbp), %rdi
shlq $0x3, %rdi
leaq 0x268e8(%rip), %rsi     # 0xee09b
movl $0x34, %edx
callq 0x52d70
movq %rax, -0xb0(%rbp)
movslq -0xc0(%rbp), %rdi
shlq $0x3, %rdi
leaq 0x268c5(%rip), %rsi     # 0xee09b
movl $0x35, %edx
callq 0x52d70
movq %rax, -0xb8(%rbp)
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
cmpl -0x48(%rbp), %eax
jge 0xc783c
movq -0xa0(%rbp), %rax
movl -0x40(%rbp), %ecx
addl -0x10(%rbp), %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdx
movq -0xb0(%rbp), %rax
movslq -0x10(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0xb8(%rbp), %rax
movslq -0x10(%rbp), %rcx
movsd 0x1a7ec(%rip), %xmm0    # 0xe2018
movsd %xmm0, (%rax,%rcx,8)
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0xc77ee
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
cmpl -0x4c(%rbp), %eax
jge 0xc789b
movq -0xa0(%rbp), %rax
movl -0x44(%rbp), %ecx
addl -0x10(%rbp), %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdx
movq -0xb0(%rbp), %rax
movl -0x48(%rbp), %ecx
addl -0x10(%rbp), %ecx
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
movq -0xb8(%rbp), %rax
movl -0x48(%rbp), %ecx
addl -0x10(%rbp), %ecx
movslq %ecx, %rcx
movsd 0x1b1bd(%rip), %xmm0    # 0xe2a48
movsd %xmm0, (%rax,%rcx,8)
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0xc7843
cmpl $0x0, -0x4(%rbp)
je 0xc7955
movq -0xf8(%rbp), %rcx
movsd 0x30(%rcx), %xmm0
movq 0x38(%rcx), %rax
movslq -0x8(%rbp), %rdx
mulsd (%rax,%rdx,8), %xmm0
movsd 0x30(%rcx), %xmm1
movq 0x38(%rcx), %rax
movslq -0xc(%rbp), %rdx
mulsd (%rax,%rdx,8), %xmm1
movq -0x98(%rbp), %rax
movq 0xa0(%rax), %rdi
movslq -0x3c(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdi
movq -0x98(%rbp), %rax
movq 0xa8(%rax), %rsi
movslq -0x3c(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq 0x50(%rcx), %rdx
movq %rsp, %rax
movq %rax, -0x110(%rbp)
movq %rdx, 0x70(%rax)
movups 0x40(%rcx), %xmm2
movups %xmm2, 0x60(%rax)
movups (%rcx), %xmm2
movups 0x10(%rcx), %xmm3
movups 0x20(%rcx), %xmm4
movups 0x30(%rcx), %xmm5
movups %xmm5, 0x50(%rax)
movups %xmm4, 0x40(%rax)
movups %xmm3, 0x30(%rax)
movups %xmm2, 0x20(%rax)
movups -0xc0(%rbp), %xmm2
movups -0xb0(%rbp), %xmm3
movups %xmm3, 0x10(%rax)
movups %xmm2, (%rax)
callq 0xc80a0
movq -0xf8(%rbp), %rcx
movq -0x90(%rbp), %rax
movslq -0x3c(%rbp), %rdx
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movq %rax, -0x118(%rbp)
movsd 0x30(%rcx), %xmm0
movq 0x38(%rcx), %rax
movslq -0x8(%rbp), %rdx
mulsd (%rax,%rdx,8), %xmm0
movsd 0x30(%rcx), %xmm1
movq 0x38(%rcx), %rax
movslq -0xc(%rbp), %rdx
mulsd (%rax,%rdx,8), %xmm1
movq 0x50(%rcx), %rdx
movq %rsp, %rax
movq %rax, -0x120(%rbp)
movq %rdx, 0x70(%rax)
movups 0x40(%rcx), %xmm2
movups %xmm2, 0x60(%rax)
movups (%rcx), %xmm2
movups 0x10(%rcx), %xmm3
movups 0x20(%rcx), %xmm4
movups 0x30(%rcx), %xmm5
movups %xmm5, 0x50(%rax)
movups %xmm4, 0x40(%rax)
movups %xmm3, 0x30(%rax)
movups %xmm2, 0x20(%rax)
movups -0xc0(%rbp), %xmm2
movups -0xb0(%rbp), %xmm3
movups %xmm3, 0x10(%rax)
movups %xmm2, (%rax)
leaq -0xf0(%rbp), %rdi
callq 0xc6c70
movq -0x118(%rbp), %rax
movq -0xf0(%rbp), %rcx
movq %rcx, (%rax)
movq -0xe8(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0xe0(%rbp), %rcx
movq %rcx, 0x10(%rax)
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
cmpl -0x48(%rbp), %eax
jge 0xc7a8f
movq -0x38(%rbp), %rax
movl -0x40(%rbp), %ecx
addl -0x10(%rbp), %ecx
movslq %ecx, %rcx
cmpl $0x0, (%rax,%rcx,4)
jne 0xc7a82
movq -0x90(%rbp), %rax
movslq -0x3c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movslq -0x10(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movaps 0x1b3ff(%rip), %xmm1    # 0xe2e60
pand %xmm1, %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0xc7a82
movq -0x38(%rbp), %rax
movl -0x40(%rbp), %ecx
addl -0x10(%rbp), %ecx
movslq %ecx, %rcx
movl $0x1, (%rax,%rcx,4)
jmp 0xc7a84
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0xc7a21
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
cmpl -0x4c(%rbp), %eax
jge 0xc7b09
movq -0x38(%rbp), %rax
movl -0x44(%rbp), %ecx
addl -0x10(%rbp), %ecx
movslq %ecx, %rcx
cmpl $0x0, (%rax,%rcx,4)
jne 0xc7afc
movq -0x90(%rbp), %rax
movslq -0x3c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movl -0x48(%rbp), %ecx
addl -0x10(%rbp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
movaps 0x1b385(%rip), %xmm1    # 0xe2e60
pand %xmm1, %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0xc7afc
movq -0x38(%rbp), %rax
movl -0x44(%rbp), %ecx
addl -0x10(%rbp), %ecx
movslq %ecx, %rcx
movl $0x1, (%rax,%rcx,4)
jmp 0xc7afe
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0xc7a96
movq -0xb0(%rbp), %rdi
callq 0x52e80
movq -0xb8(%rbp), %rdi
callq 0x52e80
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xc7751
jmp 0xc7b3a
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0xc773c
movl -0x18(%rbp), %ecx
movq -0x98(%rbp), %rax
movl %ecx, 0x58(%rax)
movslq -0x18(%rbp), %rdi
shlq $0x3, %rdi
movl -0x18(%rbp), %eax
subl $0x1, %eax
cltq
imulq %rax, %rdi
shrq %rdi
leaq 0x26528(%rip), %rsi     # 0xee09b
movl $0x4c, %edx
callq 0x52d70
movq %rax, %rcx
movq -0x98(%rbp), %rax
movq %rcx, 0x70(%rax)
movl $0x0, -0x8(%rbp)
movl -0x8(%rbp), %eax
movl %eax, -0x124(%rbp)
movl -0x18(%rbp), %eax
movl -0x18(%rbp), %ecx
subl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x124(%rbp), %eax
cmpl %ecx, %eax
jge 0xc7bf1
movq -0x90(%rbp), %rax
movslq -0x8(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movsd 0x8(%rax), %xmm0
movq -0x98(%rbp), %rax
movq 0x70(%rax), %rax
movslq -0x8(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0xc7b92
movl $0x0, -0x50(%rbp)
movslq -0x18(%rbp), %rdi
shlq $0x2, %rdi
leaq 0x26494(%rip), %rsi     # 0xee09b
movl $0x50, %edx
callq 0x52d70
movq %rax, -0x58(%rbp)
movslq -0x18(%rbp), %rdi
shlq $0x2, %rdi
leaq 0x26477(%rip), %rsi     # 0xee09b
movl $0x51, %edx
callq 0x52d70
movq %rax, %rcx
movq -0x98(%rbp), %rax
movq %rcx, 0x78(%rax)
movl $0x0, -0x8(%rbp)
movl -0x8(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0xc7cd8
movl $0x0, -0x5c(%rbp)
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
movq -0x28(%rbp), %rcx
movslq -0x8(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0xc7ca7
movq -0x38(%rbp), %rax
movq -0x20(%rbp), %rcx
movslq -0x8(%rbp), %rdx
movl (%rcx,%rdx,4), %ecx
addl -0xc(%rbp), %ecx
movslq %ecx, %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0xc7c9a
movl -0x5c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5c(%rbp)
movl -0x50(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x50(%rbp)
jmp 0xc7c9c
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xc7c5d
movl -0x5c(%rbp), %edx
movq -0x98(%rbp), %rax
movq 0x78(%rax), %rax
movslq -0x8(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x5c(%rbp), %edx
movq -0x58(%rbp), %rax
movslq -0x8(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0xc7c43
movl -0x50(%rbp), %ecx
movq -0x98(%rbp), %rax
movl %ecx, 0x5c(%rax)
movslq -0x50(%rbp), %rdi
shlq $0x3, %rdi
leaq 0x263a7(%rip), %rsi     # 0xee09b
movl $0x5f, %edx
callq 0x52d70
movq %rax, %rcx
movq -0x98(%rbp), %rax
movq %rcx, 0x60(%rax)
movl $0x0, -0x3c(%rbp)
movl $0x0, -0x8(%rbp)
movl -0x8(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0xc7d69
movq -0x38(%rbp), %rax
movslq -0x8(%rbp), %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0xc7d5c
movq -0xa0(%rbp), %rax
movslq -0x8(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -0x98(%rbp), %rax
movq 0x60(%rax), %rax
movl -0x3c(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x3c(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
jmp 0xc7d5e
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0xc7d1a
movslq -0x18(%rbp), %rdi
shlq $0x2, %rdi
leaq 0x26323(%rip), %rsi     # 0xee09b
movl $0x64, %edx
callq 0x52d70
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
movl $0x0, (%rax)
movl $0x1, -0x8(%rbp)
movl -0x8(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0xc7dd5
movq -0x68(%rbp), %rax
movl -0x8(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edx
movq -0x58(%rbp), %rax
movl -0x8(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
addl (%rax,%rcx,4), %edx
movq -0x68(%rbp), %rax
movslq -0x8(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0xc7d97
movl -0x18(%rbp), %eax
subl $0x1, %eax
movslq %eax, %rdi
shlq $0x3, %rdi
leaq 0x262b2(%rip), %rsi     # 0xee09b
movl $0x68, %edx
callq 0x52d70
movq %rax, %rcx
movq -0x98(%rbp), %rax
movq %rcx, 0x68(%rax)
movl $0x0, -0x8(%rbp)
movl -0x8(%rbp), %eax
movl -0x18(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0xc7e4f
movslq -0x50(%rbp), %rdi
shlq $0x3, %rdi
leaq 0x26277(%rip), %rsi     # 0xee09b
movl $0x6a, %edx
callq 0x52d70
movq %rax, %rdx
movq -0x98(%rbp), %rax
movq 0x68(%rax), %rax
movslq -0x8(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0xc7e08
movl $0x0, -0x3c(%rbp)
movl $0x0, -0x8(%rbp)
movl -0x8(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0xc7fe9
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
movl -0xc(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0xc7fd9
movq -0x20(%rbp), %rax
movslq -0x8(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x40(%rbp)
movq -0x20(%rbp), %rax
movslq -0xc(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x44(%rbp)
movq -0x28(%rbp), %rax
movslq -0x8(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x48(%rbp)
movq -0x28(%rbp), %rax
movslq -0xc(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x4c(%rbp)
movq -0x68(%rbp), %rax
movslq -0x8(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x6c(%rbp)
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
cmpl -0x48(%rbp), %eax
jge 0xc7f3c
movq -0x38(%rbp), %rax
movl -0x40(%rbp), %ecx
addl -0x10(%rbp), %ecx
movslq %ecx, %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0xc7f2f
movq -0x90(%rbp), %rax
movslq -0x3c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movslq -0x10(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x98(%rbp), %rax
movq 0x68(%rax), %rax
movl -0xc(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movl -0x6c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x6c(%rbp)
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
jmp 0xc7f31
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0xc7ecb
movq -0x68(%rbp), %rax
movslq -0xc(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x6c(%rbp)
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
cmpl -0x4c(%rbp), %eax
jge 0xc7fc2
movq -0x38(%rbp), %rax
movl -0x44(%rbp), %ecx
addl -0x10(%rbp), %ecx
movslq %ecx, %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0xc7fb5
movq -0x90(%rbp), %rax
movslq -0x3c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movl -0x48(%rbp), %ecx
addl -0x10(%rbp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x98(%rbp), %rax
movq 0x68(%rax), %rax
movslq -0x8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl -0x6c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x6c(%rbp)
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
jmp 0xc7fb7
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0xc7f51
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xc7e72
jmp 0xc7fdb
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0xc7e5d
movq -0x28(%rbp), %rdi
callq 0x52e80
movq -0x30(%rbp), %rdi
callq 0x52e80
movq -0x20(%rbp), %rdi
callq 0x52e80
movq -0xa0(%rbp), %rdi
callq 0x52e80
movq -0x38(%rbp), %rdi
callq 0x52e80
movl $0x0, -0x8(%rbp)
movl -0x8(%rbp), %eax
movl %eax, -0x128(%rbp)
movl -0x18(%rbp), %eax
movl -0x18(%rbp), %ecx
subl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x128(%rbp), %eax
cmpl %ecx, %eax
jge 0xc806e
movq -0x90(%rbp), %rax
movslq -0x8(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
callq 0x52e80
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0xc8020
movq -0x90(%rbp), %rdi
callq 0x52e80
movq -0x58(%rbp), %rdi
callq 0x52e80
movq -0x68(%rbp), %rdi
callq 0x52e80
movq -0x98(%rbp), %rax
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbp
retq
nopl (%rax)