// File: /workspace/github_cpp_makefile_star2_O1/qmmlib[P]QmmLibrary/linear.cpp
// Function: train
model* train(const problem *prob, const parameter *param)
{
	int i,j;
	int l = prob->l;
	int n = prob->n;
	int w_size = prob->n;
	model *model_ = Malloc(model,1);

	if(prob->bias>=0)
		model_->nr_feature=n-1;
	else
		model_->nr_feature=n;
	model_->param = *param;
	model_->bias = prob->bias;

	if(param->solver_type == L2R_L2LOSS_SVR ||
	   param->solver_type == L2R_L1LOSS_SVR_DUAL ||
	   param->solver_type == L2R_L2LOSS_SVR_DUAL)
	{
		model_->w = Malloc(double, w_size);
		model_->nr_class = 2;
		model_->label = NULL;
		train_one(prob, param, &model_->w[0], 0, 0, model_);
	}
	else
	{
		int nr_class;
		int *label = NULL;
		int *start = NULL;
		int *count = NULL;
		int *perm = Malloc(int,l);

		// group training data of the same class
		group_classes(prob,&nr_class,&label,&start,&count,perm);

		model_->nr_class=nr_class;
		model_->label = Malloc(int,nr_class);
		for(i=0;i<nr_class;i++)
			model_->label[i] = label[i];

		// calculate weighted C
		double *weighted_C = Malloc(double, nr_class);
		for(i=0;i<nr_class;i++)
			weighted_C[i] = param->C;
		for(i=0;i<param->nr_weight;i++)
		{
			for(j=0;j<nr_class;j++)
				if(param->weight_label[i] == label[j])
					break;
			if(j == nr_class)
				fprintf(stderr,"WARNING: class label %d specified in weight is not found\n", param->weight_label[i]);
			else
				weighted_C[j] *= param->weight[i];
		}

		// constructing the subproblem
		feature_node **x = Malloc(feature_node *,l);
		for(i=0;i<l;i++)
			x[i] = prob->x[perm[i]];

		int k;
		problem sub_prob;
		sub_prob.l = l;
		sub_prob.n = n;
		sub_prob.x = Malloc(feature_node *,sub_prob.l);
		sub_prob.y = Malloc(double,sub_prob.l);

		for(k=0; k<sub_prob.l; k++)
			sub_prob.x[k] = x[k];

		// multi-class svm by Crammer and Singer
		if(param->solver_type == MCSVM_CS)
		{
			model_->w=Malloc(double, n*nr_class);
			for(i=0;i<nr_class;i++)
				for(j=start[i];j<start[i]+count[i];j++)
					sub_prob.y[j] = i;
			Solver_MCSVM_CS Solver(&sub_prob, nr_class, weighted_C, param->eps);
			Solver.Solve(model_->w);
		}
		else if(param->solver_type == MMCD_SM)
		{
			model_->w=Malloc(double, n*nr_class);
			for(i=0;i<nr_class;i++)
				for(j=start[i];j<start[i]+count[i];j++)
					sub_prob.y[j] = i;

			problem prob_col;
			feature_node *x_space = NULL;
			transpose(&sub_prob, &x_space ,&prob_col);
		
			solve_mmcd_sm(&prob_col, param,model_->w, weighted_C[0],start,count,nr_class);
			
			//delete [] prob_col.y;
			//delete [] prob_col.x;
			//delete [] x_space;
		}
		else
		{
			if(nr_class == 2)
			{
				model_->w=Malloc(double, w_size);

				int e0 = start[0]+count[0];
				k=0;
				for(; k<e0; k++)
					sub_prob.y[k] = +1;
				for(; k<sub_prob.l; k++)
					sub_prob.y[k] = -1;

				train_one(&sub_prob, param, &model_->w[0], weighted_C[0], weighted_C[1],model_);
			}
			else
			{
				model_->w=Malloc(double, w_size*nr_class);
				double *w=Malloc(double, w_size);
				for(i=0;i<nr_class;i++)
				{
					int si = start[i];
					int ei = si+count[i];

					k=0;
					for(; k<si; k++)
						sub_prob.y[k] = -1;
					for(; k<ei; k++)
						sub_prob.y[k] = +1;
					for(; k<sub_prob.l; k++)
						sub_prob.y[k] = -1;

					train_one(&sub_prob, param, w, weighted_C[i], param->C,model_);

					for(int j=0;j<w_size;j++)
						model_->w[j*nr_class+i] = w[j];
				}
				free(w);
			}

		}

		free(x);
		free(label);
		free(start);
		free(count);
		free(perm);
		free(sub_prob.x);
		free(sub_prob.y);
		free(weighted_C);
	}
	return model_;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movq %rsi, %rbx
movq %rdi, %r12
movl (%rdi), %r15d
movl 0x4(%rdi), %eax
movq %rax, 0xa0(%rsp)
movslq %eax, %rbp
movl $0xd0, %edi
callq 0x32e0
movq %rax, %r14
movsd 0x18(%r12), %xmm1
movsd %xmm1, 0x30(%rsp)
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
movl %ebp, %eax
adcl $-0x1, %eax
movl %eax, 0xb4(%r14)
movl $0xb0, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x31a0
movsd 0x30(%rsp), %xmm0
movsd %xmm0, 0xc8(%r14)
movl (%rbx), %eax
addl $-0xb, %eax
cmpl $0x2, %eax
ja 0x7a85
shlq $0x3, %rbp
movq %rbp, %rdi
callq 0x32e0
movq %rax, 0xb8(%r14)
movl $0x2, 0xb0(%r14)
movq $0x0, 0xc0(%r14)
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
movq %r12, %rdi
movq %rbx, %rsi
movq %rax, %rdx
movq %r14, %rcx
callq 0x9bce
jmp 0x9ac3
movq %r12, 0x60(%rsp)
movq %rbx, 0xf0(%rsp)
movq %r14, 0xd8(%rsp)
movslq %r15d, %rbx
leaq (,%rbx,4), %r12
movq %r12, %rdi
callq 0x32e0
movq %rax, 0x178(%rsp)
movl $0x40, %edi
callq 0x32e0
movq %rax, %r13
movl $0x40, %edi
callq 0x32e0
movq %rax, 0x28(%rsp)
movq %r12, %rdi
callq 0x32e0
movq %rax, %r12
movq %rbx, 0x90(%rsp)
testl %ebx, %ebx
movq %r15, 0x30(%rsp)
movq %rbp, 0x88(%rsp)
jle 0x7bbf
movq %r15, %rsi
xorl %r14d, %r14d
movl $0x10, %r15d
movq $0x0, 0x20(%rsp)
movq %r13, %rbx
movq 0x60(%rsp), %r13
movq 0x8(%r13), %rax
cvttsd2si (%rax,%r14,8), %ebp
movl $0x0, %eax
movq 0x20(%rsp), %rcx
testl %ecx, %ecx
jle 0x7b50
movl %ecx, %ecx
xorl %eax, %eax
cmpl %ebp, (%rbx,%rax,4)
je 0x7b43
incq %rax
cmpq %rax, %rcx
jne 0x7b32
movl %ecx, %eax
jmp 0x7b4b
movq 0x28(%rsp), %rcx
incl (%rcx,%rax,4)
movq 0x20(%rsp), %rcx
movl %eax, (%r12,%r14,4)
cmpl %ecx, %eax
jne 0x7bb1
cmpl %r15d, %ecx
jne 0x7b8e
addl %r15d, %r15d
movslq %r15d, %r13
shlq $0x2, %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x33c0
movq %rax, %rbx
movq 0x28(%rsp), %rdi
movq %r13, %rsi
movq 0x60(%rsp), %r13
callq 0x33c0
movq 0x30(%rsp), %rsi
jmp 0x7b93
movq 0x28(%rsp), %rax
movq 0x20(%rsp), %rdx
movslq %edx, %rcx
movl %ebp, (%rbx,%rcx,4)
movq %rax, 0x28(%rsp)
movl $0x1, (%rax,%rcx,4)
incl %edx
movq %rdx, 0x20(%rsp)
incq %r14
cmpq %rsi, %r14
jne 0x7b16
jmp 0x7bcb
movq $0x0, 0x20(%rsp)
movq %r13, %rbx
movq %rbx, 0x130(%rsp)
movq 0x20(%rsp), %rax
movl %eax, %ebx
movslq %eax, %r14
leaq (,%r14,4), %r13
movq %r13, %rdi
callq 0x32e0
movq %rbx, %r8
movq %rax, %rbp
movl $0x0, (%rax)
movq %r14, %r15
cmpl $0x2, %r14d
movq 0x28(%rsp), %rsi
jl 0x7c1f
movl (%rbp), %eax
leaq -0x1(%r8), %rcx
xorl %edx, %edx
addl (%rsi,%rdx,4), %eax
movl %eax, 0x4(%rbp,%rdx,4)
incq %rdx
cmpq %rdx, %rcx
jne 0x7c10
movq 0x30(%rsp), %rdi
testl %edi, %edi
movq 0xd8(%rsp), %r14
movq 0x178(%rsp), %rsi
jle 0x7c54
xorl %eax, %eax
movslq (%r12,%rax,4), %rcx
movslq (%rbp,%rcx,4), %rdx
movl %eax, (%rsi,%rdx,4)
incl %edx
movl %edx, (%rbp,%rcx,4)
incq %rax
cmpq %rax, %rdi
jne 0x7c3a
movl $0x0, (%rbp)
cmpl $0x2, 0x20(%rsp)
movq 0x28(%rsp), %rsi
jl 0x7c7f
movl (%rbp), %eax
leaq -0x1(%r8), %rcx
xorl %edx, %edx
addl (%rsi,%rdx,4), %eax
movl %eax, 0x4(%rbp,%rdx,4)
incq %rdx
cmpq %rdx, %rcx
jne 0x7c70
movq %r12, %rdi
movq %r8, 0x40(%rsp)
callq 0x3280
movq 0x20(%rsp), %rbx
movl %ebx, 0xb0(%r14)
movq %r13, %rdi
callq 0x32e0
movq 0x40(%rsp), %rdi
movq %rax, 0xc0(%r14)
testl %ebx, %ebx
movq 0x130(%rsp), %rsi
jle 0x7cc8
xorl %ecx, %ecx
movl (%rsi,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
incq %rcx
cmpq %rcx, %rdi
jne 0x7cba
movq %r15, %rdi
shlq $0x3, %rdi
movq %rdi, 0x98(%rsp)
callq 0x32e0
movq 0x40(%rsp), %rdi
testl %ebx, %ebx
movq 0xf0(%rsp), %r13
jle 0x7d05
movsd 0x88(%r13), %xmm0
xorl %ecx, %ecx
movsd %xmm0, (%rax,%rcx,8)
incq %rcx
cmpq %rcx, %rdi
jne 0x7cf8
cmpl $0x0, 0x90(%r13)
movq 0x130(%rsp), %rdx
movq %rax, 0xb8(%rsp)
movq 0x30(%rsp), %rbx
jle 0x7dc0
movq 0x132a1(%rip), %r14     # 0x1afd0
leaq 0xf80c(%rip), %r12      # 0x17542
xorl %r15d, %r15d
movl $0x0, %esi
cmpl $0x0, 0x20(%rsp)
jle 0x7d61
movq 0x98(%r13), %rcx
movl (%rcx,%r15,4), %ecx
xorl %esi, %esi
cmpl (%rdx,%rsi,4), %ecx
je 0x7d61
incq %rsi
cmpq %rsi, %rdi
jne 0x7d52
movl %edi, %esi
cmpl 0x20(%rsp), %esi
je 0x7d91
movq 0xa0(%r13), %rcx
movsd (%rcx,%r15,8), %xmm0
movl %esi, %ecx
mulsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
incq %r15
movslq 0x90(%r13), %rcx
cmpq %rcx, %r15
jl 0x7d39
jmp 0x7dc0
movq (%r14), %rdi
movq 0x98(%r13), %rax
movl (%rax,%r15,4), %edx
movq %r12, %rsi
xorl %eax, %eax
callq 0x3320
movq 0x40(%rsp), %rdi
movq 0xb8(%rsp), %rax
movq 0x130(%rsp), %rdx
jmp 0x7d80
movq 0x90(%rsp), %r14
shlq $0x3, %r14
movq %r14, %rdi
callq 0x32e0
testl %ebx, %ebx
movq 0x178(%rsp), %rsi
jle 0x7dff
movq 0x60(%rsp), %rcx
movq 0x10(%rcx), %rdi
xorl %ecx, %ecx
movslq (%rsi,%rcx,4), %rdx
movq (%rdi,%rdx,8), %rdx
movq %rdx, (%rax,%rcx,8)
incq %rcx
cmpq %rcx, %rbx
jne 0x7deb
movl %ebx, 0x158(%rsp)
movq 0xa0(%rsp), %rcx
movl %ecx, 0x15c(%rsp)
movq %rax, 0x198(%rsp)
movq %r14, %rdi
callq 0x32e0
movq %rax, 0x168(%rsp)
movq %r14, %rdi
callq 0x32e0
movq 0x198(%rsp), %rsi
movq %rax, 0x160(%rsp)
testl %ebx, %ebx
movq 0xd8(%rsp), %r14
movq 0x28(%rsp), %r15
jle 0x7e70
xorl %eax, %eax
movq (%rsi,%rax,8), %rcx
movq 0x168(%rsp), %rdx
movq %rcx, (%rdx,%rax,8)
incq %rax
cmpq %rax, %rbx
jne 0x7e58
movl (%r13), %eax
cmpl $0x33, %eax
movq %rbp, 0xc0(%rsp)
je 0x7fa6
cmpl $0x4, %eax
movq 0xa0(%rsp), %rcx
jne 0x8148
movq 0x20(%rsp), %rbx
movl %ebx, %eax
imull %ecx, %eax
movslq %eax, %rdi
shlq $0x3, %rdi
callq 0x32e0
movq %rax, %r12
movq %rax, 0xb8(%r14)
testl %ebx, %ebx
movq 0x40(%rsp), %rdi
movq 0x30(%rsp), %r8
jle 0x7f00
movq 0x160(%rsp), %rax
xorl %ecx, %ecx
movq 0x28(%rsp), %rdx
movslq (%rdx,%rcx,4), %rdx
testq %rdx, %rdx
jle 0x7ef8
movslq (%rbp,%rcx,4), %rsi
addq %rsi, %rdx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
movsd %xmm0, (%rax,%rsi,8)
incq %rsi
cmpq %rdx, %rsi
jl 0x7eeb
incq %rcx
cmpq %rdi, %rcx
jne 0x7ece
movsd 0x80(%r13), %xmm0
leaq 0x218(%rsp), %r14
movq 0xa0(%rsp), %rax
movl %eax, 0x18(%r14)
movl %r8d, 0x1c(%r14)
movq 0x20(%rsp), %rcx
movl %ecx, 0x20(%r14)
movsd %xmm0, 0x28(%r14)
movl $0x186a0, 0x24(%r14)    # imm = 0x186A0
leaq 0x158(%rsp), %rax
movq %rax, 0x30(%r14)
testl %ecx, %ecx
movq $-0x1, %rax
movq 0x98(%rsp), %rbx
cmovsq %rax, %rbx
movq %rbx, %rdi
callq 0x3030
movq %rax, (%r14)
movq %rbx, %rdi
callq 0x3030
movq %rax, 0x10(%r14)
movq 0xb8(%rsp), %rax
movq %rax, 0x8(%r14)
movq %r14, %rdi
movq %r12, %rsi
callq 0x669e
leaq 0x218(%rsp), %rdi
callq 0x64bc
movq 0xd8(%rsp), %r14
movq 0x28(%rsp), %r15
jmp 0x9a65
movq 0x20(%rsp), %rbx
movq 0xa0(%rsp), %rax
imull %ebx, %eax
movslq %eax, %rdi
shlq $0x3, %rdi
callq 0x32e0
movq %rax, 0xb8(%r14)
testl %ebx, %ebx
movq 0x40(%rsp), %rdi
movq %r15, 0x28(%rsp)
jle 0x800e
movq 0x160(%rsp), %rax
xorl %ecx, %ecx
movslq (%r15,%rcx,4), %rdx
testq %rdx, %rdx
jle 0x8006
movslq (%rbp,%rcx,4), %rsi
addq %rsi, %rdx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
movsd %xmm0, (%rax,%rsi,8)
incq %rsi
cmpq %rdx, %rsi
jl 0x7ff9
incq %rcx
cmpq %rdi, %rcx
jne 0x7fe1
leaq 0x260(%rsp), %rsi
movq $0x0, (%rsi)
leaq 0x158(%rsp), %rdi
leaq 0x218(%rsp), %r12
movq %r12, %rdx
callq 0x1246d
movq 0xb8(%r14), %rax
movq %rax, 0x80(%rsp)
movq 0xb8(%rsp), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x138(%rsp)
movslq (%r12), %r14
movslq 0x4(%r12), %rax
movq %rax, 0xd0(%rsp)
leaq (,%r14,8), %rbx
testq %r14, %r14
movsd 0x80(%r13), %xmm0
movsd %xmm0, 0x1e8(%rsp)
movq $-0x1, %r15
cmovnsq %rbx, %r15
movq %r15, %rdi
callq 0x3030
movq %rax, 0x58(%rsp)
movq %r15, %rdi
callq 0x3030
movq %rax, 0xe8(%rsp)
movq %r15, %rdi
callq 0x3030
movq %rax, 0x78(%rsp)
movq %rbx, %rdi
callq 0x32e0
movq %rax, 0x68(%rsp)
movq %rbx, %rdi
callq 0x32e0
movq %rax, 0x70(%rsp)
movq %rbx, %rdi
callq 0x32e0
movq %rax, 0xc8(%rsp)
movl 0x4(%r13), %ebx
movl 0x10(%r13), %eax
movl %eax, 0xf8(%rsp)
movsd 0x8(%r13), %xmm0
movaps %xmm0, 0x120(%rsp)
movsd 0x20(%r13), %xmm0
movsd %xmm0, 0x1b0(%rsp)
movq 0x8(%r12), %r15
callq 0x3120
movq 0x28(%r13), %rdi
testq %rdi, %rdi
je 0x832c
callq 0x1301f
testq %rax, %rax
movq 0x20(%rsp), %r12
jne 0x8333
addq $0x28, %r13
movq %r13, %rdi
callq 0x3631
movq %r15, %rbx
movq 0x20(%rsp), %r15
cmpl $0x2, %r15d
jne 0x81b0
movq 0x88(%rsp), %rdi
shlq $0x3, %rdi
callq 0x32e0
movq %rax, 0xb8(%r14)
movq %rbx, %r15
movl (%rbx), %ecx
addl (%rbp), %ecx
jle 0x9a10
movq 0x160(%rsp), %rdx
movl %ecx, %esi
xorl %ecx, %ecx
movabsq $0x3ff0000000000000, %rdi # imm = 0x3FF0000000000000
movq 0xb8(%rsp), %r8
movq 0x30(%rsp), %r9
movq %rdi, (%rdx,%rcx,8)
incq %rcx
cmpq %rcx, %rsi
jne 0x819f
jmp 0x9a1f
movl %r15d, %eax
imull %ecx, %eax
movslq %eax, %rdi
shlq $0x3, %rdi
callq 0x32e0
movq %rax, 0xb8(%r14)
movq 0x88(%rsp), %rdi
shlq $0x3, %rdi
callq 0x32e0
movq %rax, %rbx
testl %r15d, %r15d
movq 0xb8(%rsp), %rdi
movq 0x40(%rsp), %rax
jle 0x830a
leaq (,%rax,8), %r14
xorl %r13d, %r13d
movabsq $-0x4010000000000000, %rbp # imm = 0xBFF0000000000000
movabsq $0x3ff0000000000000, %r12 # imm = 0x3FF0000000000000
xorl %r15d, %r15d
movq 0xc0(%rsp), %rax
movslq (%rax,%r15,4), %rdx
movq 0x28(%rsp), %rax
movl (%rax,%r15,4), %ecx
addl %edx, %ecx
movl $0x0, %eax
testq %rdx, %rdx
jle 0x824c
movq 0x160(%rsp), %rsi
xorl %eax, %eax
movq %rbp, (%rsi,%rax,8)
incq %rax
cmpq %rax, %rdx
jne 0x8240
cmpl %ecx, %eax
jge 0x8268
movq 0x160(%rsp), %rdx
movl %eax, %eax
movl %ecx, %ecx
movq %r12, (%rdx,%rax,8)
incq %rax
cmpq %rax, %rcx
jne 0x825c
movl 0x158(%rsp), %ecx
cmpl %ecx, %eax
jge 0x828e
movl %eax, %edx
shlq $0x3, %rdx
addq 0x160(%rsp), %rdx
movq %rbp, (%rdx)
addq $0x8, %rdx
incl %eax
cmpl %eax, %ecx
jg 0x8281
movsd (%rdi,%r15,8), %xmm0
movq 0xf0(%rsp), %rsi
movsd 0x88(%rsi), %xmm1
leaq 0x158(%rsp), %rdi
movq %rbx, %rdx
movq 0xd8(%rsp), %rcx
callq 0x9bce
movq 0xa0(%rsp), %rdx
testl %edx, %edx
jle 0x82f0
movq 0xd8(%rsp), %rax
movq 0xb8(%rax), %rax
addq %r13, %rax
xorl %ecx, %ecx
movsd (%rbx,%rcx,8), %xmm0
movsd %xmm0, (%rax)
incq %rcx
addq %r14, %rax
cmpq %rcx, %rdx
jne 0x82dc
incq %r15
addq $0x8, %r13
cmpq 0x40(%rsp), %r15
movq 0xb8(%rsp), %rdi
jne 0x8215
movq %rbx, %rdi
callq 0x3280
movq 0xd8(%rsp), %r14
movq 0x28(%rsp), %r15
movq 0xc0(%rsp), %rbp
jmp 0x9a65
xorl %eax, %eax
movq 0x20(%rsp), %r12
movq 0xd0(%rsp), %rdx
movl %edx, %ecx
imull %r12d, %ecx
movl %r14d, %r14d
movl %ecx, 0xb4(%rsp)
movl %ecx, %ecx
movq %rcx, 0x180(%rsp)
testq %rax, %rax
movl %ebx, 0x114(%rsp)
movq %r14, 0x10(%rsp)
movq %r15, 0x1e0(%rsp)
je 0x86af
cmpl %edx, 0xb4(%rax)
jne 0x9b98
movq %rdx, %r13
cmpl $0x0, 0xb4(%rsp)
movq 0x80(%rsp), %rdx
movq 0x180(%rsp), %rsi
jle 0x83b6
movq 0xb8(%rax), %rax
xorl %ecx, %ecx
movsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rdx,%rcx,8)
incq %rcx
cmpq %rcx, %rsi
jne 0x83a4
cmpl $0x0, 0x10(%rsp)
jle 0x841b
movq 0x10(%rsp), %rax
leaq (,%rax,8), %rdx
xorl %ebx, %ebx
movq 0x70(%rsp), %rdi
xorl %esi, %esi
callq 0x3110
leaq (,%r13,8), %rbp
movl %r13d, %r14d
movabsq $0x3ff0000000000000, %r15 # imm = 0x3FF0000000000000
movq %rbp, %rdi
callq 0x32e0
testl %r13d, %r13d
jle 0x8408
xorl %ecx, %ecx
movq %r15, (%rax,%rcx,8)
incq %rcx
cmpq %rcx, %r14
jne 0x83fc
movq 0x68(%rsp), %rcx
movq %rax, (%rcx,%rbx,8)
incq %rbx
cmpq 0x10(%rsp), %rbx
jne 0x83ed
testl %r12d, %r12d
jle 0x85ef
movq 0x228(%rsp), %rax
movq %rax, 0x100(%rsp)
xorl %ebp, %ebp
testl %r13d, %r13d
jle 0x85e1
movq 0xc0(%rsp), %rax
movl (%rax,%rbp,4), %ecx
movq 0x28(%rsp), %rax
movl (%rax,%rbp,4), %eax
addl %ecx, %eax
movq %rbp, %rdx
imulq 0x40(%rsp), %rdx
movq %rdx, 0xe0(%rsp)
movl %eax, 0x88(%rsp)
movl %eax, %r12d
xorl %edx, %edx
movq %rcx, 0xa0(%rsp)
movq %r12, 0x90(%rsp)
movq 0xe0(%rsp), %rax
leaq (%rdx,%rax), %rsi
movq 0x100(%rsp), %rax
movq %rdx, 0x98(%rsp)
movq (%rax,%rdx,8), %r13
testl %ecx, %ecx
movq %rsi, 0x30(%rsp)
jle 0x84f9
xorl %r15d, %r15d
movq 0x68(%rsp), %r14
movq 0x80(%rsp), %r12
movsd 0x8(%r13), %xmm0
mulsd (%r12,%rsi,8), %xmm0
callq 0x33f0
movq 0x30(%rsp), %rsi
movq (%r14,%r15,8), %rax
mulsd (%rax,%rbp,8), %xmm0
movsd %xmm0, (%rax,%rbp,8)
addq $0x10, %r13
incq %r15
cmpq %r15, 0xa0(%rsp)
jne 0x84ba
movq 0x90(%rsp), %r12
jmp 0x84fc
xorl %r15d, %r15d
movq 0x70(%rsp), %r14
cmpl 0x88(%rsp), %r15d
jge 0x855a
movl %r15d, %r15d
movq 0x68(%rsp), %rbx
movsd 0x8(%r13), %xmm0
movq 0x80(%rsp), %rcx
mulsd (%rcx,%rsi,8), %xmm0
movsd (%r14,%r15,8), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%r14,%r15,8)
callq 0x33f0
movq 0x30(%rsp), %rsi
movq (%rbx,%r15,8), %rax
mulsd (%rax,%rbp,8), %xmm0
movsd %xmm0, (%rax,%rbp,8)
addq $0x10, %r13
incq %r15
cmpq %r15, %r12
jne 0x8513
movq 0x10(%rsp), %r12
cmpl %r12d, %r15d
movq 0x80(%rsp), %rbx
jge 0x85b5
movl %r15d, %eax
movq 0x68(%rsp), %rcx
leaq (%rcx,%rax,8), %rax
movq %rax, 0x60(%rsp)
xorl %r14d, %r14d
movsd 0x8(%r13,%r14,2), %xmm0
mulsd (%rbx,%rsi,8), %xmm0
callq 0x33f0
movq 0x30(%rsp), %rsi
movq 0x60(%rsp), %rax
movq (%rax,%r14), %rax
mulsd (%rax,%rbp,8), %xmm0
movsd %xmm0, (%rax,%rbp,8)
incl %r15d
addq $0x8, %r14
cmpl %r15d, %r12d
jg 0x8580
movq 0x98(%rsp), %rdx
incq %rdx
movq 0xd0(%rsp), %r13
cmpq %r13, %rdx
movq 0xa0(%rsp), %rcx
movq 0x90(%rsp), %r12
jne 0x8481
incq %rbp
cmpq 0x40(%rsp), %rbp
jne 0x8436
cmpl $0x0, 0x10(%rsp)
movq 0xf0(%rsp), %r13
movq 0xc0(%rsp), %rbp
movq 0x20(%rsp), %r9
movq 0xc8(%rsp), %r14
jle 0x8794
xorl %ebx, %ebx
movq 0x70(%rsp), %r15
movq $0x0, (%r14,%rbx,8)
movq %r9, %r12
testl %r9d, %r9d
movq 0x40(%rsp), %rdx
jle 0x8655
movq 0x68(%rsp), %rax
movq (%rax,%rbx,8), %rax
xorpd %xmm0, %xmm0
xorl %ecx, %ecx
addsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%r14,%rbx,8)
incq %rcx
cmpq %rcx, %rdx
jne 0x8642
movsd (%r15,%rbx,8), %xmm0
callq 0x33f0
movsd (%r14,%rbx,8), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, (%r14,%rbx,8)
movsd (%r15,%rbx,8), %xmm0
movsd %xmm0, 0x30(%rsp)
movapd %xmm1, %xmm0
callq 0x3190
movsd 0x30(%rsp), %xmm1
subsd %xmm0, %xmm1
movq 0x58(%rsp), %rax
movsd %xmm1, (%rax,%rbx,8)
incq %rbx
cmpq 0x10(%rsp), %rbx
movq %r12, %r9
jne 0x861e
jmp 0x8794
movq %r12, %r15
leal -0x1(%r12), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0xa0(%rsp)
callq 0x3190
movapd %xmm0, 0x30(%rsp)
testl %r14d, %r14d
jle 0x8765
movapd 0x30(%rsp), %xmm0
xorpd 0xea17(%rip), %xmm0     # 0x17100
movapd %xmm0, 0x30(%rsp)
xorl %ebx, %ebx
movabsq $0x3ff0000000000000, %r14 # imm = 0x3FF0000000000000
movq 0x58(%rsp), %rax
movaps 0x30(%rsp), %xmm0
movsd %xmm0, (%rax,%rbx,8)
movq 0x70(%rsp), %rax
movq $0x0, (%rax,%rbx,8)
movq 0xc8(%rsp), %rax
movsd 0xa0(%rsp), %xmm0
movsd %xmm0, (%rax,%rbx,8)
movq 0x98(%rsp), %rdi
callq 0x32e0
testl %r15d, %r15d
movq 0x40(%rsp), %rdx
jle 0x8752
xorl %ecx, %ecx
movq %r14, (%rax,%rcx,8)
incq %rcx
cmpq %rcx, %rdx
jne 0x8746
movq 0x68(%rsp), %rcx
movq %rax, (%rcx,%rbx,8)
incq %rbx
cmpq 0x10(%rsp), %rbx
jne 0x86fb
cmpl $0x0, 0xb4(%rsp)
movq %r15, %r9
jle 0x8794
movq 0x180(%rsp), %rax
leaq (,%rax,8), %rdx
movq 0x80(%rsp), %rdi
xorl %esi, %esi
callq 0x3110
movq %r15, %r9
cmpl $0x3, 0x40(%r13)
movq 0x58(%rsp), %r14
jl 0x87f7
leaq 0x108(%rsp), %rax
movq %rax, (%rsp)
leaq 0x218(%rsp), %rdi
leaq 0x11c(%rsp), %r8
movq %r13, %rsi
movq 0x80(%rsp), %rdx
movq %r14, %rcx
movsd 0x138(%rsp), %xmm0
callq 0x14480
movsd 0x108(%rsp), %xmm1
movapd %xmm0, %xmm2
addsd %xmm1, %xmm2
leaq 0xf0f9(%rip), %rdi      # 0x178e9
movb $0x3, %al
callq 0x3050
movl 0x114(%rsp), %ebx
movl %ebx, %eax
movq %rax, 0x1a0(%rsp)
movl 0xf8(%rsp), %edi
testl %edi, %edi
sete 0x1f(%rsp)
movq 0xe8(%rsp), %r15
movq 0x78(%rsp), %rdx
je 0x99bd
cmpl $0x5, %ebx
je 0x8867
movl %ebx, %eax
xorl $0x1, %eax
movl %edi, %ecx
xorl $0x1, %ecx
orl %eax, %ecx
jne 0x8890
movb $0x1, 0x1f(%rsp)
cmpl $0x0, 0x10(%rsp)
jle 0x8890
xorl %eax, %eax
movabsq $0x4000000000000000, %rcx # imm = 0x4000000000000000
movq 0x10(%rsp), %rsi
movq %rcx, (%rdx,%rax,8)
incq %rax
cmpq %rax, %rsi
jne 0x8859
jmp 0x8890
movb $0x1, 0x1f(%rsp)
cmpl $0x0, 0x10(%rsp)
jle 0x8890
xorl %eax, %eax
movabsq $0x4000000000000000, %rcx # imm = 0x4000000000000000
movq 0x10(%rsp), %rsi
movq %rcx, (%rdx,%rax,8)
incq %rax
cmpq %rax, %rsi
jne 0x8884
cmpl $0x5, %ebx
setne %al
cmpl $0x1, %ebx
sete %dl
movsd 0xe9c4(%rip), %xmm2     # 0x17268
movapd %xmm2, %xmm0
movapd 0x120(%rsp), %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, 0x1a8(%rsp)
movapd %xmm2, %xmm0
divsd %xmm1, %xmm0
movapd %xmm0, 0x200(%rsp)
movapd %xmm1, %xmm0
addsd %xmm2, %xmm0
movapd %xmm0, 0x250(%rsp)
movapd %xmm1, %xmm0
addsd %xmm1, %xmm0
movapd %xmm2, %xmm3
divsd %xmm0, %xmm3
movapd %xmm3, 0x1d0(%rsp)
cmpl $0x0, 0x10(%rsp)
setle %sil
cmpl $0x2, %edi
sete %cl
andb %cl, %dl
movb %dl, 0x57(%rsp)
testl %ebx, %ebx
sete %dl
cmpl $0x1, %edi
sete %dil
movl %edx, %r8d
andb %dil, %r8b
movb %r8b, 0x56(%rsp)
andb %cl, %dl
movb %dl, 0x55(%rsp)
cmpl $0x3, %ebx
sete %dl
movl %edx, %r8d
andb %dil, %r8b
movb %r8b, 0x53(%rsp)
andb %cl, %dl
movb %dl, 0x52(%rsp)
cmpl $0x4, %ebx
sete %dl
movl %edx, %r8d
andb %dil, %r8b
movb %r8b, 0x51(%rsp)
andb %cl, %dl
movb %dl, 0x50(%rsp)
cmpl $0x2, %ebx
sete %dl
andb %dl, %dil
movb %dil, 0x4f(%rsp)
andb %cl, %dl
movb %dl, 0x4e(%rsp)
movsd 0xe75b(%rip), %xmm0     # 0x170d0
mulsd %xmm1, %xmm0
movapd %xmm2, %xmm1
movsd %xmm0, 0x190(%rsp)
subsd %xmm0, %xmm1
movsd %xmm1, 0x188(%rsp)
subsd 0x1b0(%rsp), %xmm2
movsd %xmm2, 0x1f0(%rsp)
orb %al, %sil
movb %sil, 0x54(%rsp)
leaq 0x218(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x1c8(%rsp)
cmpl $0x1, %ebx
jne 0x8a7a
movq 0x10(%rsp), %rdx
testl %edx, %edx
movq 0x78(%rsp), %rcx
movsd 0xe88a(%rip), %xmm4     # 0x17268
movsd 0xe8ba(%rip), %xmm2     # 0x172a0
jle 0x8a13
xorl %eax, %eax
movsd (%r14,%rax,8), %xmm0
movapd %xmm4, %xmm1
subsd %xmm0, %xmm1
mulsd %xmm2, %xmm1
cmpltsd %xmm4, %xmm0
andpd %xmm1, %xmm0
movlpd %xmm0, (%r15,%rax,8)
incq %rax
cmpq %rax, %rdx
jne 0x89ea
cmpb $0x0, 0x1f(%rsp)
movq 0xf0(%rsp), %rax
jne 0x8fd1
cmpb $0x0, 0x57(%rsp)
je 0x8ae9
movq 0x10(%rsp), %rdx
testl %edx, %edx
jle 0x8fd1
movsd 0x18(%rax), %xmm0
xorl %eax, %eax
movsd (%r14,%rax,8), %xmm1
cmpltsd %xmm4, %xmm1
movapd %xmm1, %xmm2
movsd 0xe84c(%rip), %xmm3     # 0x172a8
andpd %xmm3, %xmm2
andnpd %xmm0, %xmm1
orpd %xmm2, %xmm1
movlpd %xmm1, (%rcx,%rax,8)
incq %rax
cmpq %rax, %rdx
jne 0x8a45
jmp 0x8fd1
cmpl $0x4, %ebx
movq 0x78(%rsp), %rcx
movsd 0xe7de(%rip), %xmm4     # 0x17268
movsd 0xe80e(%rip), %xmm1     # 0x172a0
ja 0x8ce0
movq 0x1a0(%rsp), %rax
leaq 0xe84d(%rip), %rdx      # 0x172f4
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
movq 0x10(%rsp), %rdx
testl %edx, %edx
jle 0x8a13
xorl %eax, %eax
movsd (%r14,%rax,8), %xmm0
cmpltsd %xmm4, %xmm0
movsd 0xe79e(%rip), %xmm1     # 0x17270
andpd %xmm1, %xmm0
movlpd %xmm0, (%r15,%rax,8)
incq %rax
cmpq %rax, %rdx
jne 0x8abf
jmp 0x8a13
cmpb $0x0, 0x56(%rsp)
je 0x8b61
movq 0x10(%rsp), %rdx
testl %edx, %edx
jle 0x8fd1
xorl %eax, %eax
movsd (%r14,%rax,8), %xmm0
movapd %xmm4, %xmm1
subsd %xmm0, %xmm1
addsd 0xe75b(%rip), %xmm0     # 0x17270
movapd 0xe5d3(%rip), %xmm2     # 0x170f0
andpd %xmm2, %xmm0
andpd %xmm2, %xmm1
movapd 0x120(%rsp), %xmm3
cmpltsd %xmm3, %xmm0
movapd %xmm0, %xmm2
andnpd %xmm1, %xmm2
andpd %xmm3, %xmm0
orpd %xmm2, %xmm0
addsd %xmm0, %xmm0
movapd %xmm4, %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rcx,%rax,8)
incq %rax
cmpq %rax, %rdx
jne 0x8aff
jmp 0x8fd1
cmpb $0x0, 0x55(%rsp)
je 0x8d13
movq 0x10(%rsp), %rdx
testl %edx, %edx
jle 0x8fd1
movsd 0x18(%rax), %xmm0
xorl %eax, %eax
movsd (%r14,%rax,8), %xmm1
addsd 0xe6e2(%rip), %xmm1     # 0x17270
andpd 0xe55a(%rip), %xmm1     # 0x170f0
cmpltsd 0x120(%rsp), %xmm1
movapd %xmm1, %xmm2
andpd 0x1d0(%rsp), %xmm2
andnpd %xmm0, %xmm1
orpd %xmm2, %xmm1
movlpd %xmm1, (%rcx,%rax,8)
incq %rax
cmpq %rax, %rdx
jne 0x8b80
jmp 0x8fd1
cmpl $0x0, 0x10(%rsp)
jle 0x8a13
xorl %eax, %eax
movsd (%r14,%rax,8), %xmm0
movsd 0x1a8(%rsp), %xmm1
ucomisd %xmm0, %xmm1
movsd 0xe681(%rip), %xmm1     # 0x17270
ja 0x8c22
xorpd %xmm1, %xmm1
movapd 0x250(%rsp), %xmm2
ucomisd %xmm0, %xmm2
jbe 0x8c22
addsd 0xe664(%rip), %xmm0     # 0x17270
subsd 0x120(%rsp), %xmm0
mulsd 0x1d0(%rsp), %xmm0
movapd %xmm0, %xmm1
movsd %xmm1, (%r15,%rax,8)
incq %rax
cmpq %rax, 0x10(%rsp)
jne 0x8bd4
jmp 0x8a13
movq 0x10(%rsp), %r12
testl %r12d, %r12d
jle 0x8a13
xorl %ebx, %ebx
movsd (%r14,%rbx,8), %xmm0
callq 0x33f0
movsd 0xe60e(%rip), %xmm4     # 0x17268
movq 0x78(%rsp), %rcx
addsd %xmm4, %xmm0
movsd 0xe605(%rip), %xmm1     # 0x17270
divsd %xmm0, %xmm1
movsd %xmm1, (%r15,%rbx,8)
incq %rbx
cmpq %rbx, %r12
jne 0x8c47
jmp 0x8a13
cmpl $0x0, 0x10(%rsp)
jle 0x8a13
xorl %eax, %eax
movsd (%r14,%rax,8), %xmm0
movsd 0x1a8(%rsp), %xmm1
ucomisd %xmm0, %xmm1
movsd 0xe5c6(%rip), %xmm1     # 0x17270
ja 0x8ccb
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm4
jbe 0x8ccb
addsd 0xe5b2(%rip), %xmm0     # 0x17270
mulsd 0x200(%rsp), %xmm0
movapd %xmm0, %xmm1
movsd %xmm1, (%r15,%rax,8)
incq %rax
cmpq %rax, 0x10(%rsp)
jne 0x8c8f
jmp 0x8a13
cmpb $0x0, 0x54(%rsp)
movq 0x10(%rsp), %rdx
jne 0x8a13
xorl %eax, %eax
movapd %xmm4, %xmm0
subsd (%r14,%rax,8), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, (%r15,%rax,8)
incq %rax
cmpq %rax, %rdx
jne 0x8cf2
jmp 0x8a13
cmpb $0x0, 0x53(%rsp)
je 0x8d8b
movq 0x10(%rsp), %rdx
testl %edx, %edx
jle 0x8fd1
xorl %eax, %eax
movsd (%r14,%rax,8), %xmm0
movapd %xmm4, %xmm1
subsd %xmm0, %xmm1
addsd 0xe531(%rip), %xmm0     # 0x17270
movapd 0xe3a9(%rip), %xmm2     # 0x170f0
andpd %xmm2, %xmm0
andpd %xmm2, %xmm1
movapd 0x120(%rsp), %xmm3
cmpltsd %xmm3, %xmm0
movapd %xmm0, %xmm2
andnpd %xmm1, %xmm2
andpd %xmm3, %xmm0
orpd %xmm2, %xmm0
addsd %xmm0, %xmm0
movapd %xmm4, %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rcx,%rax,8)
incq %rax
cmpq %rax, %rdx
jne 0x8d29
jmp 0x8fd1
cmpb $0x0, 0x52(%rsp)
je 0x8ded
movq 0x10(%rsp), %rdx
testl %edx, %edx
jle 0x8fd1
movsd 0x18(%rax), %xmm0
xorl %eax, %eax
movsd (%r14,%rax,8), %xmm1
addsd 0xe4bc(%rip), %xmm1     # 0x17270
andpd 0xe334(%rip), %xmm1     # 0x170f0
cmpltsd 0x120(%rsp), %xmm1
movapd %xmm1, %xmm2
andpd 0x1d0(%rsp), %xmm2
andnpd %xmm0, %xmm1
orpd %xmm2, %xmm1
movlpd %xmm1, (%rcx,%rax,8)
incq %rax
cmpq %rax, %rdx
jne 0x8da6
jmp 0x8fd1
cmpb $0x0, 0x51(%rsp)
je 0x8e5b
movq 0x10(%rsp), %rdx
testl %edx, %edx
jle 0x8fd1
xorl %eax, %eax
movsd 0x188(%rsp), %xmm0
subsd (%r14,%rax,8), %xmm0
andpd 0xe2d6(%rip), %xmm0     # 0x170f0
movapd %xmm0, %xmm1
addsd %xmm0, %xmm1
cmpltsd 0x190(%rsp), %xmm0
movapd %xmm0, %xmm2
andnpd %xmm1, %xmm2
andpd 0x120(%rsp), %xmm0
orpd %xmm2, %xmm0
movapd %xmm4, %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rcx,%rax,8)
incq %rax
cmpq %rax, %rdx
jne 0x8e03
jmp 0x8fd1
cmpb $0x0, 0x50(%rsp)
je 0x8ebe
movq 0x10(%rsp), %rdx
testl %edx, %edx
jle 0x8fd1
movsd 0x18(%rax), %xmm0
xorl %eax, %eax
movsd 0x188(%rsp), %xmm1
subsd (%r14,%rax,8), %xmm1
andpd 0xe263(%rip), %xmm1     # 0x170f0
cmpltsd 0x190(%rsp), %xmm1
movapd %xmm1, %xmm2
andpd 0x200(%rsp), %xmm2
andnpd %xmm0, %xmm1
orpd %xmm2, %xmm1
movlpd %xmm1, (%rcx,%rax,8)
incq %rax
cmpq %rax, %rdx
jne 0x8e76
jmp 0x8fd1
cmpb $0x0, 0x4f(%rsp)
je 0x8f6a
cmpl $0x0, 0x10(%rsp)
jle 0x8fd1
xorl %ebx, %ebx
movsd (%r14,%rbx,8), %xmm0
callq 0x33f0
movsd %xmm0, 0x30(%rsp)
movsd (%r14,%rbx,8), %xmm0
xorpd 0xe20b(%rip), %xmm0     # 0x17100
callq 0x33f0
movsd 0x30(%rsp), %xmm4
movapd %xmm4, %xmm1
subsd %xmm0, %xmm1
movapd %xmm1, %xmm2
andpd 0xe1dc(%rip), %xmm2     # 0x170f0
movsd 0xe374(%rip), %xmm3     # 0x17290
ucomisd %xmm2, %xmm3
movsd 0xe190(%rip), %xmm2     # 0x170b8
ja 0x8f50
divsd (%r14,%rbx,8), %xmm1
andpd 0xe1b8(%rip), %xmm1     # 0x170f0
addsd 0xe368(%rip), %xmm4     # 0x172a8
addsd %xmm0, %xmm4
addsd %xmm4, %xmm4
divsd %xmm4, %xmm1
movapd %xmm1, %xmm2
movq 0x78(%rsp), %rax
movsd %xmm2, (%rax,%rbx,8)
incq %rbx
cmpq %rbx, 0x10(%rsp)
jne 0x8ed6
jmp 0x8fd1
cmpb $0x0, 0x4e(%rsp)
je 0x9bad
movq 0x10(%rsp), %r15
testl %r15d, %r15d
jle 0x8fd1
xorl %ebx, %ebx
movsd (%r14,%rbx,8), %xmm0
callq 0x33f0
movsd %xmm0, 0x30(%rsp)
movsd (%r14,%rbx,8), %xmm0
xorpd 0xe160(%rip), %xmm0     # 0x17100
callq 0x33f0
addsd 0x30(%rsp), %xmm0
addsd 0xe2f5(%rip), %xmm0     # 0x172a8
movsd 0xe2ad(%rip), %xmm1     # 0x17268
divsd %xmm0, %xmm1
movq 0x78(%rsp), %rax
movsd %xmm1, (%rax,%rbx,8)
incq %rbx
cmpq %rbx, %r15
jne 0x8f81
cmpl $0x0, 0xb4(%rsp)
jle 0x977f
xorpd %xmm0, %xmm0
movsd %xmm0, 0x148(%rsp)
xorl %eax, %eax
movsd %xmm0, 0x140(%rsp)
movq 0x28(%rsp), %r15
movq %rax, 0x150(%rsp)
cltd
idivl 0x20(%rsp)
movslq (%rbp,%rdx,4), %rsi
movl (%r15,%rdx,4), %ecx
addl %esi, %ecx
movslq %eax, %rdi
movq 0x1c8(%rsp), %rax
movq %rdi, 0x1b8(%rsp)
movq (%rax,%rdi,8), %r13
testq %rsi, %rsi
movq %rdx, 0x60(%rsp)
movl %ecx, 0x118(%rsp)
movq %rsi, 0x1c0(%rsp)
jle 0x91c6
movq %rsi, %rax
shlq $0x4, %rax
movq %rax, 0xf8(%rsp)
leaq (,%rsi,8), %rax
movq %rax, 0x40(%rsp)
xorps %xmm5, %xmm5
xorl %r14d, %r14d
xorl %ebp, %ebp
xorpd %xmm4, %xmm4
movq 0xc8(%rsp), %r12
movq 0x68(%rsp), %r15
movq 0x58(%rsp), %rbx
movq 0x78(%rsp), %rsi
movsd %xmm5, 0xa0(%rsp)
movapd %xmm4, 0x30(%rsp)
movsd 0x8(%r13,%r14,2), %xmm1
movsd %xmm1, 0x88(%rsp)
movq (%r15,%r14), %rax
movsd (%r12,%r14), %xmm2
movsd %xmm2, 0xd0(%rsp)
movq 0xe8(%rsp), %rcx
movsd (%rcx,%r14), %xmm0
movsd %xmm0, 0x98(%rsp)
movsd (%rsi,%r14), %xmm0
movsd %xmm0, 0x90(%rsp)
movq 0x70(%rsp), %rcx
movsd (%rcx,%r14), %xmm0
movsd %xmm0, 0x100(%rsp)
movsd (%rax,%rdx,8), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, 0xe0(%rsp)
movapd %xmm2, %xmm0
callq 0x3190
movsd 0xa0(%rsp), %xmm5
movapd 0x30(%rsp), %xmm4
movq 0x60(%rsp), %rdx
movq 0x78(%rsp), %rsi
movsd 0x100(%rsp), %xmm1
subsd %xmm0, %xmm1
subsd (%rbx,%r14), %xmm1
movapd %xmm1, %xmm3
movsd 0xe0(%rsp), %xmm2
divsd 0xd0(%rsp), %xmm2
movsd (%rsi,%r14), %xmm0
mulsd 0x90(%rsp), %xmm3
movsd 0x88(%rsp), %xmm1
mulsd %xmm1, %xmm0
mulsd %xmm1, %xmm0
movq (%r15,%r14), %rax
addsd 0x98(%rsp), %xmm3
movsd (%rax,%rdx,8), %xmm1
mulsd %xmm1, %xmm0
mulsd %xmm1, %xmm0
mulsd %xmm3, %xmm2
movsd (%r12,%r14), %xmm1
mulsd %xmm1, %xmm1
divsd %xmm1, %xmm0
subsd %xmm2, %xmm4
addsd %xmm0, %xmm5
incl %ebp
addq $0x8, %r14
cmpq %r14, 0x40(%rsp)
jne 0x9087
addq 0xf8(%rsp), %r13
movl 0x118(%rsp), %ecx
jmp 0x91dd
xorl %ebp, %ebp
xorpd %xmm4, %xmm4
xorpd %xmm5, %xmm5
movq 0xc8(%rsp), %r12
movq 0x78(%rsp), %rsi
cmpl %ecx, %ebp
movq 0x70(%rsp), %rbx
jge 0x92ce
movl %ebp, %ebp
movl %ecx, %eax
movq %rax, 0xd0(%rsp)
movq 0x58(%rsp), %r15
movq 0xe8(%rsp), %r14
movsd %xmm5, 0xa0(%rsp)
movapd %xmm4, 0x30(%rsp)
movsd 0x8(%r13), %xmm0
movsd %xmm0, 0x98(%rsp)
movsd (%r14,%rbp,8), %xmm0
movsd %xmm0, 0x90(%rsp)
movsd (%rsi,%rbp,8), %xmm0
movsd %xmm0, 0x88(%rsp)
movsd (%rbx,%rbp,8), %xmm0
movsd %xmm0, 0xe0(%rsp)
movsd (%r12,%rbp,8), %xmm0
callq 0x3190
movsd 0xa0(%rsp), %xmm5
movapd 0x30(%rsp), %xmm4
movq 0x78(%rsp), %rsi
movsd 0xe0(%rsp), %xmm2
subsd %xmm0, %xmm2
subsd (%r15,%rbp,8), %xmm2
mulsd 0x88(%rsp), %xmm2
addsd 0x90(%rsp), %xmm2
movsd 0x98(%rsp), %xmm1
mulsd %xmm1, %xmm2
addsd %xmm2, %xmm4
movsd (%rsi,%rbp,8), %xmm0
mulsd %xmm1, %xmm0
mulsd %xmm1, %xmm0
addsd %xmm0, %xmm5
addq $0x10, %r13
incq %rbp
cmpq %rbp, 0xd0(%rsp)
jne 0x9203
movq 0x60(%rsp), %rdx
jmp 0x92d6
movq 0xe8(%rsp), %r14
cmpl 0x10(%rsp), %ebp
jge 0x944c
movl %ebp, %eax
movq 0x58(%rsp), %rcx
leaq (%rcx,%rax,8), %rcx
movq %rcx, 0x40(%rsp)
leaq (%rbx,%rax,8), %rcx
movq %rcx, 0xf8(%rsp)
leaq (%rsi,%rax,8), %rbx
leaq (%r14,%rax,8), %rcx
movq %rcx, 0x1f8(%rsp)
leaq (%r12,%rax,8), %r12
movq 0x68(%rsp), %rcx
leaq (%rcx,%rax,8), %r15
xorl %r14d, %r14d
movsd %xmm5, 0xa0(%rsp)
movapd %xmm4, 0x30(%rsp)
movsd 0x8(%r13,%r14,2), %xmm1
movsd %xmm1, 0x88(%rsp)
movq (%r15,%r14), %rax
movsd (%r12,%r14), %xmm2
movsd %xmm2, 0xd0(%rsp)
movq 0x1f8(%rsp), %rcx
movsd (%rcx,%r14), %xmm0
movsd %xmm0, 0x98(%rsp)
movsd (%rbx,%r14), %xmm0
movsd %xmm0, 0x90(%rsp)
movq 0xf8(%rsp), %rcx
movsd (%rcx,%r14), %xmm0
movsd %xmm0, 0x100(%rsp)
movsd (%rax,%rdx,8), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, 0xe0(%rsp)
movapd %xmm2, %xmm0
callq 0x3190
movsd 0xa0(%rsp), %xmm5
movapd 0x30(%rsp), %xmm4
movq 0x60(%rsp), %rdx
movsd 0x100(%rsp), %xmm1
subsd %xmm0, %xmm1
movq 0x40(%rsp), %rax
subsd (%rax,%r14), %xmm1
movapd %xmm1, %xmm3
movsd 0xe0(%rsp), %xmm2
divsd 0xd0(%rsp), %xmm2
movsd (%rbx,%r14), %xmm0
mulsd 0x90(%rsp), %xmm3
movsd 0x88(%rsp), %xmm1
mulsd %xmm1, %xmm0
mulsd %xmm1, %xmm0
movq (%r15,%r14), %rax
addsd 0x98(%rsp), %xmm3
movsd (%rax,%rdx,8), %xmm1
mulsd %xmm1, %xmm0
mulsd %xmm1, %xmm0
mulsd %xmm3, %xmm2
movsd (%r12,%r14), %xmm1
mulsd %xmm1, %xmm1
divsd %xmm1, %xmm0
subsd %xmm2, %xmm4
addsd %xmm0, %xmm5
incl %ebp
addq $0x8, %r14
cmpl %ebp, 0x10(%rsp)
jg 0x931c
movsd 0x1b0(%rsp), %xmm1
ucomisd 0xcbb3(%rip), %xmm1     # 0x16010
movsd 0x138(%rsp), %xmm0
mulsd %xmm0, %xmm4
mulsd %xmm0, %xmm5
movq 0x28(%rsp), %r15
jbe 0x94b2
movq 0x80(%rsp), %rcx
movq 0x150(%rsp), %rax
movsd (%rcx,%rax,8), %xmm0
mulsd %xmm1, %xmm0
addsd %xmm0, %xmm4
addsd %xmm1, %xmm5
movq 0xc0(%rsp), %rbp
movq 0x70(%rsp), %r14
movq 0x68(%rsp), %r12
movsd 0xddb8(%rip), %xmm2     # 0x17268
jmp 0x94dc
movq 0xc0(%rsp), %rbp
movq 0x70(%rsp), %r14
movq 0x68(%rsp), %r12
movq 0x80(%rsp), %rcx
movsd 0xdd94(%rip), %xmm2     # 0x17268
movq 0x150(%rsp), %rax
xorpd 0xdc1c(%rip), %xmm4     # 0x17100
divsd %xmm5, %xmm4
movapd %xmm4, %xmm0
andpd 0xdbfc(%rip), %xmm0     # 0x170f0
movsd 0xdbe4(%rip), %xmm3     # 0x170e0
ucomisd %xmm0, %xmm3
jbe 0x950c
movq 0x58(%rsp), %r14
jmp 0x9751
ucomisd %xmm1, %xmm2
movsd (%rcx,%rax,8), %xmm0
addsd %xmm0, %xmm4
jbe 0x956c
movsd 0x1f0(%rsp), %xmm1
divsd %xmm5, %xmm1
ucomisd %xmm4, %xmm1
movq 0x1c0(%rsp), %rsi
movq 0x1b8(%rsp), %rdi
jbe 0x9554
movapd %xmm1, %xmm2
xorpd 0xdbb6(%rip), %xmm2     # 0x17100
xorpd %xmm5, %xmm5
ucomisd %xmm2, %xmm4
ja 0x9580
xorpd %xmm2, %xmm2
ucomisd %xmm4, %xmm2
jbe 0x9764
addsd %xmm4, %xmm1
movapd %xmm1, %xmm5
jmp 0x9580
movapd %xmm4, %xmm5
movq 0x1c0(%rsp), %rsi
movq 0x1b8(%rsp), %rdi
movapd %xmm5, %xmm3
subsd %xmm0, %xmm3
movsd %xmm5, (%rcx,%rax,8)
movq 0x1c8(%rsp), %rax
movq (%rax,%rdi,8), %r13
testl %esi, %esi
movapd %xmm3, 0x30(%rsp)
movapd %xmm5, 0xa0(%rsp)
jle 0x961a
movq %rsi, %r15
xorl %ebp, %ebp
movq 0xc8(%rsp), %rbx
movq (%r12,%rbp,8), %rax
movsd (%rbx,%rbp,8), %xmm1
subsd (%rax,%rdx,8), %xmm1
movsd 0x8(%r13), %xmm0
mulsd %xmm3, %xmm0
movsd %xmm1, (%rbx,%rbp,8)
callq 0x33f0
movapd 0x30(%rsp), %xmm3
movq 0x60(%rsp), %rdx
movq (%r12,%rbp,8), %rax
mulsd (%rax,%rdx,8), %xmm0
movsd %xmm0, (%rax,%rdx,8)
addsd (%rbx,%rbp,8), %xmm0
movsd %xmm0, (%rbx,%rbp,8)
addq $0x10, %r13
incq %rbp
cmpq %rbp, %r15
jne 0x95b9
movq 0x28(%rsp), %r15
movapd 0xa0(%rsp), %xmm5
jmp 0x961c
xorl %ebp, %ebp
movl 0x118(%rsp), %eax
cmpl %eax, %ebp
jge 0x966f
movl %ebp, %ebp
movl %eax, %ebx
movsd 0x8(%r13), %xmm0
mulsd %xmm3, %xmm0
addsd (%r14,%rbp,8), %xmm0
movsd %xmm0, (%r14,%rbp,8)
callq 0x33f0
movapd 0x30(%rsp), %xmm3
movq 0x60(%rsp), %rdx
movq (%r12,%rbp,8), %rax
movsd %xmm0, (%rax,%rdx,8)
addq $0x10, %r13
incq %rbp
cmpq %rbp, %rbx
jne 0x962b
movapd 0xa0(%rsp), %xmm5
movapd %xmm3, %xmm0
movapd 0xda75(%rip), %xmm1     # 0x170f0
andpd %xmm1, %xmm0
movsd 0x140(%rsp), %xmm2
maxsd %xmm0, %xmm2
movsd %xmm2, 0x140(%rsp)
andpd %xmm1, %xmm5
movsd 0x148(%rsp), %xmm0
maxsd %xmm5, %xmm0
movsd %xmm0, 0x148(%rsp)
cmpl 0x10(%rsp), %ebp
jge 0x973c
movl %ebp, %eax
movq 0xc8(%rsp), %rcx
leaq (%rcx,%rax,8), %rbx
leaq (%r12,%rax,8), %r14
xorl %r15d, %r15d
movq 0x10(%rsp), %r12
movq (%r14,%r15), %rax
movsd (%rbx,%r15), %xmm1
subsd (%rax,%rdx,8), %xmm1
movsd 0x8(%r13,%r15,2), %xmm0
mulsd %xmm3, %xmm0
movsd %xmm1, (%rbx,%r15)
callq 0x33f0
movapd 0x30(%rsp), %xmm3
movq 0x60(%rsp), %rdx
movq (%r14,%r15), %rax
mulsd (%rax,%rdx,8), %xmm0
movsd %xmm0, (%rax,%rdx,8)
addsd (%rbx,%r15), %xmm0
movsd %xmm0, (%rbx,%r15)
incl %ebp
addq $0x8, %r15
cmpl %ebp, %r12d
jg 0x96d3
movq 0xc0(%rsp), %rbp
movq 0x58(%rsp), %r14
movq 0x28(%rsp), %r15
jmp 0x9749
movq 0xc0(%rsp), %rbp
movq 0x58(%rsp), %r14
movq 0x150(%rsp), %rax
incq %rax
cmpq 0x180(%rsp), %rax
jne 0x8ffc
jmp 0x9795
xorpd %xmm5, %xmm5
ucomisd %xmm5, %xmm4
jbe 0x9580
subsd %xmm1, %xmm4
movapd %xmm4, %xmm5
jmp 0x9580
xorpd %xmm0, %xmm0
movsd %xmm0, 0x140(%rsp)
movsd %xmm0, 0x148(%rsp)
movq 0x10(%rsp), %r12
testl %r12d, %r12d
movq %r14, %r13
movq 0xc8(%rsp), %r14
movq 0x70(%rsp), %r15
jle 0x97e1
xorl %ebx, %ebx
movsd (%r15,%rbx,8), %xmm0
movsd %xmm0, 0x30(%rsp)
movsd (%r14,%rbx,8), %xmm0
callq 0x3190
movsd 0x30(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, (%r13,%rbx,8)
incq %rbx
cmpq %rbx, %r12
jne 0x97b1
movsd 0x148(%rsp), %xmm0
mulsd 0x1e8(%rsp), %xmm0
ucomisd 0x140(%rsp), %xmm0
movq 0xf0(%rsp), %r13
jae 0x98b5
cmpl $0x0, 0x40(%r13)
movq 0xe8(%rsp), %r15
jne 0x9827
leaq 0xe12e(%rip), %rdi      # 0x1794e
xorl %eax, %eax
callq 0x7152
cmpl $0x0, 0x40(%r13)
movq 0x58(%rsp), %r14
movl 0x114(%rsp), %ebx
jle 0x89c1
callq 0x3120
cmpl $0x3, 0x40(%r13)
jl 0x98a6
leaq 0x108(%rsp), %rax
movq %rax, (%rsp)
leaq 0x218(%rsp), %rdi
movq %r13, %rsi
movq 0x80(%rsp), %rdx
movq %r14, %rcx
movsd 0x138(%rsp), %xmm0
leaq 0x11c(%rsp), %r8
movq 0x20(%rsp), %r9
callq 0x14480
movsd 0x108(%rsp), %xmm1
movapd %xmm0, %xmm2
addsd %xmm1, %xmm2
leaq 0xe04a(%rip), %rdi      # 0x178e9
movb $0x3, %al
callq 0x3050
movl $0xa, %edi
callq 0x32f0
jmp 0x89c1
leaq 0xdbbe(%rip), %rdi      # 0x1747a
xorl %esi, %esi
xorl %eax, %eax
callq 0x7152
leaq 0x108(%rsp), %rax
movq %rax, (%rsp)
leaq 0x218(%rsp), %rdi
leaq 0x11c(%rsp), %r14
movq %r13, %rsi
movq 0x80(%rsp), %rdx
movq 0x58(%rsp), %rcx
movsd 0x138(%rsp), %xmm0
movq %r14, %r8
movq 0x20(%rsp), %r9
callq 0x14480
movsd 0x108(%rsp), %xmm1
movapd %xmm0, %xmm2
addsd %xmm1, %xmm2
leaq 0xdfca(%rip), %rdi      # 0x178e9
movb $0x3, %al
callq 0x7152
movl (%r14), %esi
leaq 0xdda3(%rip), %rdi      # 0x176d3
movl 0xb4(%rsp), %edx
xorl %eax, %eax
callq 0x7152
movq 0x1e0(%rsp), %rdi
testq %rdi, %rdi
movq 0x68(%rsp), %rbx
movq 0xe8(%rsp), %r14
je 0x995d
callq 0x32c0
movq 0x58(%rsp), %rdi
callq 0x32c0
movq %r14, %rdi
callq 0x32c0
movq 0x78(%rsp), %rdi
callq 0x32c0
testq %rbx, %rbx
movq 0xd8(%rsp), %r14
movq 0x28(%rsp), %r15
je 0x9993
movq %rbx, %rdi
callq 0x32c0
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x99a2
callq 0x32c0
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x9a65
callq 0x32c0
jmp 0x9a65
cmpl $0x4, %ebx
ja 0x8829
leaq 0xd913(%rip), %rax      # 0x172e0
movq 0x1a0(%rsp), %rcx
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq 0x10(%rsp), %rcx
testl %ecx, %ecx
jle 0x8829
movsd 0xd875(%rip), %xmm0     # 0x17268
divsd 0x120(%rsp), %xmm0
xorl %eax, %eax
movsd %xmm0, (%rdx,%rax,8)
incq %rax
cmpq %rax, %rcx
jne 0x99fe
jmp 0x8829
xorl %ecx, %ecx
movq 0xb8(%rsp), %r8
movq 0x30(%rsp), %r9
cmpl %r9d, %ecx
jge 0x9a44
movq 0x160(%rsp), %rdx
movl %ecx, %ecx
movabsq $-0x4010000000000000, %rsi # imm = 0xBFF0000000000000
movq %rsi, (%rdx,%rcx,8)
incq %rcx
cmpq %rcx, %r9
jne 0x9a38
movsd (%r8), %xmm0
movsd 0x8(%r8), %xmm1
leaq 0x158(%rsp), %rdi
movq %r13, %rsi
movq %rax, %rdx
movq %r14, %rcx
callq 0x9bce
movq 0x198(%rsp), %rdi
callq 0x3280
movq 0x130(%rsp), %rdi
callq 0x3280
movq %rbp, %rdi
callq 0x3280
movq %r15, %rdi
callq 0x3280
movq 0x178(%rsp), %rdi
callq 0x3280
movq 0x168(%rsp), %rdi
callq 0x3280
movq 0x160(%rsp), %rdi
callq 0x3280
movq 0xb8(%rsp), %rdi
callq 0x3280
movq %r14, %rax
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%rsp), %rcx
testl %ecx, %ecx
jle 0x8829
movsd 0xd77b(%rip), %xmm0     # 0x17268
divsd 0x120(%rsp), %xmm0
xorl %eax, %eax
movsd %xmm0, (%rdx,%rax,8)
incq %rax
cmpq %rax, %rcx
jne 0x9af8
jmp 0x8829
movq 0x10(%rsp), %rsi
testl %esi, %esi
jle 0x8829
xorl %eax, %eax
movabsq $0x3fd0000000000000, %rcx # imm = 0x3FD0000000000000
movq %rcx, (%rdx,%rax,8)
incq %rax
cmpq %rax, %rsi
jne 0x9b23
jmp 0x8829
movq 0x10(%rsp), %rcx
testl %ecx, %ecx
jle 0x8829
movapd 0x120(%rsp), %xmm1
addsd %xmm1, %xmm1
movsd 0xd712(%rip), %xmm0     # 0x17268
divsd %xmm1, %xmm0
xorl %eax, %eax
movsd %xmm0, (%rdx,%rax,8)
incq %rax
cmpq %rax, %rcx
jne 0x9b5c
jmp 0x8829
movq 0x10(%rsp), %rsi
testl %esi, %esi
jle 0x8829
xorl %eax, %eax
movabsq $0x4000000000000000, %rcx # imm = 0x4000000000000000
movq %rcx, (%rdx,%rax,8)
incq %rax
cmpq %rax, %rsi
jne 0x9b87
jmp 0x8829
leaq 0xdc19(%rip), %rdi      # 0x177b8
xorl %eax, %eax
callq 0x7152
xorl %edi, %edi
callq 0x3290
leaq 0xdc41(%rip), %rdi      # 0x177f5
jmp 0x9b9f
movq %rax, %rbx
leaq 0x218(%rsp), %rdi
callq 0x64bc
movq %rbx, %rdi
callq 0x33e0