// File: /workspace/github_cpp_makefile_star2_O2/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 $0x278, %rsp            # imm = 0x278
movq %rsi, %r14
movq %rdi, %r13
movl (%rdi), %ebp
movl 0x4(%rdi), %r15d
movslq %r15d, %r12
movl $0xd0, %edi
callq 0x3320
movq %rax, %rbx
movsd 0x18(%r13), %xmm1
movsd %xmm1, 0x30(%rsp)
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
movl %r12d, %eax
adcl $-0x1, %eax
movl %eax, 0xb4(%rbx)
movl $0xb0, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x31c0
movsd 0x30(%rsp), %xmm0
movsd %xmm0, 0xc8(%rbx)
movl (%r14), %eax
addl $-0xb, %eax
cmpl $0x2, %eax
ja 0x7350
shlq $0x3, %r12
movq %r12, %rdi
callq 0x3320
movq %rax, 0xb8(%rbx)
movl $0x2, 0xb0(%rbx)
andq $0x0, 0xc0(%rbx)
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
movq %r13, %rdi
movq %r14, %rsi
movq %rax, %rdx
movq %rbx, %rcx
callq 0x921e
jmp 0x9096
movq %r12, 0x88(%rsp)
movq %r15, 0x80(%rsp)
movq %r14, 0x120(%rsp)
movq %rbx, 0xa8(%rsp)
movslq %ebp, %r14
leaq (,%r14,4), %r15
movq %r15, %rdi
callq 0x3320
movq %rax, 0x158(%rsp)
pushq $0x40
popq %r12
movq %r12, %rdi
callq 0x3320
movq %rax, %rbx
movq %r12, %rdi
callq 0x3320
movq %rax, 0x58(%rsp)
movq %r15, %rdi
callq 0x3320
movq %rbx, %rdi
movq %rax, 0x30(%rsp)
movl %ebp, %eax
xorl %ebp, %ebp
movq %r14, 0x10(%rsp)
testl %r14d, %r14d
movl $0x0, %esi
movl %eax, 0x18(%rsp)
cmovgl %eax, %esi
pushq $0x10
popq %r15
xorl %edx, %edx
movq %r13, %rbx
movq %rsi, 0x60(%rsp)
movq %r13, 0x50(%rsp)
movslq %edx, %r13
cmpq %rsi, %rbp
je 0x7491
movq 0x8(%rbx), %rax
cvttsd2si (%rax,%rbp,8), %r14d
testl %edx, %edx
movl $0x0, %eax
cmovgl %edx, %eax
xorl %ecx, %ecx
cmpq %rcx, %rax
je 0x741e
cmpl %r14d, (%rdi,%rcx,4)
je 0x7414
incq %rcx
jmp 0x7404
movq 0x58(%rsp), %rax
incl (%rax,%rcx,4)
movl %ecx, %eax
movq 0x30(%rsp), %rcx
movl %eax, (%rcx,%rbp,4)
cmpl %edx, %eax
jne 0x7489
cmpl %r15d, %edx
jne 0x7471
leal (%rdx,%rdx), %r15d
movslq %r15d, %r12
shlq $0x2, %r12
movq %r12, %rsi
movq %rdx, 0x78(%rsp)
callq 0x3410
movq %r13, %rbx
movq %rax, %r13
movq 0x58(%rsp), %rdi
movq %r12, %rsi
callq 0x3410
movq 0x60(%rsp), %rsi
movq 0x78(%rsp), %rdx
movq %r13, %rdi
movq %rbx, %r13
movq 0x50(%rsp), %rbx
jmp 0x7476
movq 0x58(%rsp), %rax
movl %r14d, (%rdi,%r13,4)
movq %rax, 0x58(%rsp)
movl $0x1, (%rax,%r13,4)
incl %edx
incq %rbp
jmp 0x73e2
movq %rdx, 0x78(%rsp)
movq %rdi, 0x118(%rsp)
leaq (,%r13,4), %r12
movq %r12, %rdi
callq 0x3320
movq %rax, 0x90(%rsp)
andl $0x0, (%rax)
pushq $0x1
popq %rax
xorl %ecx, %ecx
movq 0x158(%rsp), %rsi
movq 0x80(%rsp), %rbp
cmpq %r13, %rax
jge 0x74ec
movq 0x58(%rsp), %rdx
addl -0x4(%rdx,%rax,4), %ecx
movq 0x90(%rsp), %rdx
movl %ecx, (%rdx,%rax,4)
incq %rax
jmp 0x74ce
xorl %eax, %eax
movq 0x60(%rsp), %r8
movq 0x90(%rsp), %rdi
cmpq %rax, %r8
je 0x751a
movq 0x30(%rsp), %rcx
movslq (%rcx,%rax,4), %rcx
movslq (%rdi,%rcx,4), %rdx
movl %eax, (%rsi,%rdx,4)
incl %edx
movl %edx, (%rdi,%rcx,4)
incq %rax
jmp 0x74fb
movq 0x90(%rsp), %rax
andl $0x0, (%rax)
pushq $0x1
popq %rax
xorl %ecx, %ecx
cmpq %r13, %rax
jge 0x7548
movq 0x58(%rsp), %rdx
addl -0x4(%rdx,%rax,4), %ecx
movq 0x90(%rsp), %rdx
movl %ecx, (%rdx,%rax,4)
incq %rax
jmp 0x752a
movq 0x30(%rsp), %rdi
callq 0x32b0
movq 0xa8(%rsp), %r14
movq 0x78(%rsp), %r15
movl %r15d, 0xb0(%r14)
movq %r12, %rdi
callq 0x3320
movq %rax, 0xc0(%r14)
xorl %ecx, %ecx
testl %r15d, %r15d
movl $0x0, %edi
cmovgl %r15d, %edi
movq 0x118(%rsp), %rsi
movq 0x120(%rsp), %r12
cmpq %rcx, %rdi
je 0x75a3
movl (%rsi,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
incq %rcx
jmp 0x7593
leaq (,%r13,8), %r14
movq %rdi, 0x20(%rsp)
movq %r14, %rdi
callq 0x3320
movq 0x20(%rsp), %rdi
xorl %ecx, %ecx
cmpq %rcx, %rdi
je 0x75d8
movsd 0x88(%r12), %xmm0
movsd %xmm0, (%rax,%rcx,8)
incq %rcx
jmp 0x75bf
movq %r14, 0xd0(%rsp)
leaq 0xef9b(%rip), %r15      # 0x16582
xorl %r14d, %r14d
movq 0x118(%rsp), %rdx
movq %rax, 0xc8(%rsp)
movslq 0x90(%r12), %rcx
cmpq %rcx, %r14
jge 0x7682
xorl %esi, %esi
cmpq %rsi, %rdi
je 0x7624
movq 0x98(%r12), %rcx
movl (%rcx,%r14,4), %ecx
cmpl (%rdx,%rsi,4), %ecx
je 0x7626
incq %rsi
jmp 0x7609
movl %edi, %esi
cmpl 0x78(%rsp), %esi
je 0x764b
movq 0xa0(%r12), %rcx
movsd (%rcx,%r14,8), %xmm0
movl %esi, %ecx
mulsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
incq %r14
jmp 0x75fa
movq 0x12986(%rip), %rax     # 0x19fd8
movq (%rax), %rdi
movq 0x98(%r12), %rax
movl (%rax,%r14,4), %edx
movq %r15, %rsi
xorl %eax, %eax
callq 0x3370
movq 0x20(%rsp), %rdi
movq 0xc8(%rsp), %rax
movq 0x118(%rsp), %rdx
jmp 0x7646
movq 0x10(%rsp), %rax
leaq (,%rax,8), %r15
movq %r15, %rdi
callq 0x3320
xorl %edi, %edi
movq 0x158(%rsp), %rsi
movq 0x60(%rsp), %r8
movq 0x50(%rsp), %r9
cmpq %rdi, %r8
je 0x76c5
movq 0x10(%r9), %rcx
movslq (%rsi,%rdi,4), %rdx
movq (%rcx,%rdx,8), %rcx
movq %rcx, (%rax,%rdi,8)
incq %rdi
jmp 0x76ab
movl 0x18(%rsp), %ecx
movl %ecx, 0x138(%rsp)
movl %ebp, 0x13c(%rsp)
movq %rax, 0x188(%rsp)
movq %r15, %rdi
callq 0x3320
movq %rax, 0x148(%rsp)
movq %r15, %rdi
callq 0x3320
movq 0x60(%rsp), %rdi
movq 0x188(%rsp), %rsi
movq %rax, 0x140(%rsp)
xorl %eax, %eax
cmpq %rax, %rdi
je 0x7728
movq (%rsi,%rax,8), %rcx
movq 0x148(%rsp), %rdx
movq %rcx, (%rdx,%rax,8)
incq %rax
jmp 0x770e
movl (%r12), %eax
cmpl $0x33, %eax
je 0x77fe
cmpl $0x4, %eax
movq 0x78(%rsp), %rax
jne 0x7a10
imull %eax, %ebp
movslq %ebp, %rdi
shlq $0x3, %rdi
callq 0x3320
movq 0xa8(%rsp), %r8
movq %rax, 0xb8(%r8)
xorl %eax, %eax
movq 0x20(%rsp), %rdi
cmpq %rdi, %rax
je 0x77a5
movq 0x90(%rsp), %rcx
movslq (%rcx,%rax,4), %rcx
movq 0x58(%rsp), %rdx
movslq (%rdx,%rax,4), %rdx
addq %rcx, %rdx
cvtsi2sd %eax, %xmm0
movq 0x140(%rsp), %rsi
cmpq %rdx, %rcx
jge 0x77a0
movsd %xmm0, (%rsi,%rcx,8)
incq %rcx
jmp 0x7791
incq %rax
jmp 0x7768
movsd 0x80(%r12), %xmm0
leaq 0x228(%rsp), %rbx
leaq 0x138(%rsp), %rsi
movq %rbx, %rdi
movq 0x78(%rsp), %rdx
movq 0xc8(%rsp), %rcx
movq %r8, %r14
movl $0x186a0, %r8d          # imm = 0x186A0
callq 0x5e10
movq 0xb8(%r14), %rsi
movq %rbx, %rdi
callq 0x602a
leaq 0x228(%rsp), %rdi
callq 0x5e6a
jmp 0x9029
imull 0x78(%rsp), %ebp
movslq %ebp, %rdi
shlq $0x3, %rdi
callq 0x3320
movq 0xa8(%rsp), %r8
movq %rax, 0xb8(%r8)
xorl %eax, %eax
movq 0x20(%rsp), %rdi
cmpq %rdi, %rax
je 0x7862
movq 0x90(%rsp), %rcx
movslq (%rcx,%rax,4), %rcx
movq 0x58(%rsp), %rdx
movslq (%rdx,%rax,4), %rdx
addq %rcx, %rdx
cvtsi2sd %eax, %xmm0
movq 0x140(%rsp), %rsi
cmpq %rdx, %rcx
jge 0x785d
movsd %xmm0, (%rsi,%rcx,8)
incq %rcx
jmp 0x784e
incq %rax
jmp 0x7825
movq %r13, 0xe0(%rsp)
leaq 0x270(%rsp), %rsi
andq $0x0, (%rsi)
leaq 0x138(%rsp), %rdi
leaq 0x228(%rsp), %r14
movq %r14, %rdx
movq %r8, %rbx
callq 0x112d0
movq 0xb8(%rbx), %rax
movq %rax, 0x98(%rsp)
movq 0xc8(%rsp), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x128(%rsp)
movslq (%r14), %rbp
movslq 0x4(%r14), %rax
movq %rax, 0x30(%rsp)
movq 0x78(%rsp), %r15
imull %r15d, %eax
movl %eax, 0xa4(%rsp)
leaq (,%rbp,8), %rbx
testq %rbp, %rbp
movsd 0x80(%r12), %xmm0
movsd %xmm0, 0x1e0(%rsp)
pushq $-0x1
popq %r14
cmovnsq %rbx, %r14
movq %r14, %rdi
callq 0x3030
movq %rax, 0x10(%rsp)
movq %r14, %rdi
callq 0x3030
movq %rax, 0x80(%rsp)
movq %r14, %rdi
callq 0x3030
movq %rax, 0x18(%rsp)
movq %rbx, %rdi
callq 0x3320
movq %rax, 0x50(%rsp)
movq %rbx, %rdi
callq 0x3320
movq %rax, %r13
movq %rbx, %rdi
callq 0x3320
movq %rax, %r14
movl 0x4(%r12), %eax
movl %eax, 0xf8(%rsp)
movl 0x10(%r12), %eax
movl %eax, 0xb0(%rsp)
movsd 0x8(%r12), %xmm0
movaps %xmm0, 0x100(%rsp)
movsd 0x20(%r12), %xmm0
movsd %xmm0, 0x1b0(%rsp)
leaq 0x228(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x1d8(%rsp)
callq 0x3140
movq 0x28(%r12), %rdi
testq %rdi, %rdi
movq %r14, 0x88(%rsp)
movq %r13, 0x170(%rsp)
movq %rbp, 0x130(%rsp)
je 0x7e97
callq 0x11db0
testq %rax, %rax
je 0x91c3
movq 0x30(%rsp), %r12
cmpl %r12d, 0xb4(%rax)
jne 0x91e8
xorl %ecx, %ecx
movl 0xa4(%rsp), %esi
testl %esi, %esi
movl $0x0, %edx
cmovgl %esi, %edx
cmpq %rcx, %rdx
je 0x7a70
movq 0xb8(%rax), %rsi
movsd (%rsi,%rcx,8), %xmm0
movq 0x98(%rsp), %rsi
movsd %xmm0, (%rsi,%rcx,8)
incq %rcx
jmp 0x79ed
cmpl $0x2, %eax
jne 0x7d0a
movq 0x88(%rsp), %rdi
shlq $0x3, %rdi
callq 0x3320
movq 0xa8(%rsp), %rcx
movq %rax, 0xb8(%rcx)
movq 0x58(%rsp), %rdx
movl (%rdx), %edi
movq 0x140(%rsp), %rdx
xorl %esi, %esi
testl %edi, %edi
cmovlel %esi, %edi
movq 0x10(%rsp), %r8
movabsq $0x3ff0000000000000, %r9 # imm = 0x3FF0000000000000
cmpq %rsi, %rdi
je 0x7e41
movq %r9, (%rdx,%rsi,8)
incq %rsi
jmp 0x7a5e
xorl %eax, %eax
testl %ebp, %ebp
movl $0x0, %r15d
cmovgl %ebp, %r15d
cmpq %rax, %r15
je 0x7a8e
andq $0x0, (%r13,%rax,8)
incq %rax
jmp 0x7a7e
movl %r12d, %eax
shlq $0x3, %r12
xorl %ebx, %ebx
testl %eax, %eax
movl $0x0, %esi
cmovgl %eax, %esi
movq %rsi, 0xd0(%rsp)
cmpq %r15, %rbx
je 0x7ae6
movq %r12, %rdi
callq 0x3320
movq 0xd0(%rsp), %rsi
movabsq $0x3ff0000000000000, %rdx # imm = 0x3FF0000000000000
xorl %ecx, %ecx
cmpq %rcx, %rsi
je 0x7ad8
movq %rdx, (%rax,%rcx,8)
incq %rcx
jmp 0x7aca
movq 0x50(%rsp), %rcx
movq %rax, (%rcx,%rbx,8)
incq %rbx
jmp 0x7aa9
movq %r15, 0xe8(%rsp)
movq 0x238(%rsp), %rax
movq %rax, 0xb8(%rsp)
xorl %r12d, %r12d
movq 0x20(%rsp), %rdx
cmpq %rdx, %r12
je 0x7c7c
movq 0x90(%rsp), %rax
movslq (%rax,%r12,4), %rax
movq 0x58(%rsp), %rcx
movslq (%rcx,%r12,4), %rcx
addq %rax, %rcx
movq %rcx, 0x60(%rsp)
movq %r12, %rcx
imulq 0xe0(%rsp), %rcx
testl %eax, %eax
movl $0x0, %edi
cmovgl %eax, %edi
movq %rdi, 0xc0(%rsp)
movq 0x98(%rsp), %rax
leaq (%rax,%rcx,8), %rax
movq %rax, 0x30(%rsp)
xorl %ebp, %ebp
cmpq %rsi, %rbp
je 0x7c6c
movq 0xb8(%rsp), %rax
movq (%rax,%rbp,8), %r15
leaq 0x8(%r15), %r14
xorl %ebx, %ebx
movq 0xc0(%rsp), %r13
cmpq %rbx, %r13
je 0x7bbc
movsd 0x8(%r15), %xmm0
movq 0x30(%rsp), %rax
mulsd (%rax,%rbp,8), %xmm0
callq 0x3440
movq 0x50(%rsp), %rax
movq (%rax,%rbx,8), %rax
mulsd (%rax,%r12,8), %xmm0
movsd %xmm0, (%rax,%r12,8)
addq $0x10, %r15
incq %rbx
addq $0x10, %r14
jmp 0x7b80
movq 0x50(%rsp), %rbx
cmpq 0x60(%rsp), %r13
jge 0x7c3d
movsd 0x8(%r15), %xmm0
movq 0x30(%rsp), %rax
mulsd (%rax,%rbp,8), %xmm0
movq 0x170(%rsp), %rax
movsd (%rax,%r13,8), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%rax,%r13,8)
callq 0x3440
movq (%rbx,%r13,8), %rax
mulsd (%rax,%r12,8), %xmm0
movsd %xmm0, (%rax,%r12,8)
addq $0x10, %r15
incq %r13
addq $0x10, %r14
jmp 0x7bc1
movsd (%r14), %xmm0
movq 0x30(%rsp), %rax
mulsd (%rax,%rbp,8), %xmm0
callq 0x3440
movq (%rbx,%r13,8), %rax
mulsd (%rax,%r12,8), %xmm0
movsd %xmm0, (%rax,%r12,8)
incq %r13
addq $0x10, %r14
cmpq 0x130(%rsp), %r13
jl 0x7c12
incq %rbp
movq 0x88(%rsp), %r14
movq 0x170(%rsp), %r13
movq 0x20(%rsp), %rdx
movq 0xd0(%rsp), %rsi
jmp 0x7b5d
incq %r12
movq 0x130(%rsp), %rbp
jmp 0x7b06
xorl %ebx, %ebx
movq 0x120(%rsp), %r12
cmpq 0xe8(%rsp), %rbx
je 0x7f62
xorpd %xmm1, %xmm1
xorl %eax, %eax
movq 0x20(%rsp), %rdx
cmpq %rax, %rdx
je 0x7cbd
movq 0x50(%rsp), %rcx
movq (%rcx,%rbx,8), %rcx
addsd (%rcx,%rax,8), %xmm1
movsd %xmm1, (%r14,%rbx,8)
incq %rax
jmp 0x7c9f
movsd (%r13,%rbx,8), %xmm0
movsd %xmm0, 0x30(%rsp)
movsd %xmm1, 0x60(%rsp)
callq 0x3440
movsd 0x60(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, (%r14,%rbx,8)
movapd %xmm1, %xmm0
callq 0x31b0
movsd 0x30(%rsp), %xmm1
subsd %xmm0, %xmm1
movq 0x10(%rsp), %rax
movsd %xmm1, (%rax,%rbx,8)
incq %rbx
jmp 0x7c86
imull %ebp, %eax
movslq %eax, %rdi
shlq $0x3, %rdi
callq 0x3320
movq 0xa8(%rsp), %rbx
movq %rax, 0xb8(%rbx)
movq 0x88(%rsp), %rdi
shlq $0x3, %rdi
callq 0x3320
movq %rbx, %rcx
movq %rax, %rbx
xorl %r15d, %r15d
testl %ebp, %ebp
cmovlel %r15d, %ebp
movabsq $-0x4010000000000000, %r12 # imm = 0xBFF0000000000000
leaq 0x138(%rsp), %r14
movq 0x20(%rsp), %rdi
cmpq %rdi, %r15
movq 0x58(%rsp), %rax
je 0x7e61
movq 0x90(%rsp), %rdx
movslq (%rdx,%r15,4), %rdx
movslq (%rax,%r15,4), %r8
movq 0x140(%rsp), %rsi
testl %edx, %edx
movl $0x0, %eax
cmovgl %edx, %eax
xorl %edi, %edi
movabsq $0x3ff0000000000000, %r9 # imm = 0x3FF0000000000000
cmpq %rdi, %rax
je 0x7da9
movq %r12, (%rsi,%rdi,8)
incq %rdi
jmp 0x7d9b
addq %rdx, %r8
movq 0x140(%rsp), %rdx
movq 0xc8(%rsp), %rdi
cmpq %r8, %rax
jge 0x7dca
movq %r9, (%rdx,%rax,8)
incq %rax
jmp 0x7dbc
movslq 0x138(%rsp), %rsi
movq 0x140(%rsp), %rdx
cmpq %rsi, %rax
jge 0x7de8
movq %r12, (%rdx,%rax,8)
incq %rax
jmp 0x7dda
movsd (%rdi,%r15,8), %xmm0
movq 0x120(%rsp), %rsi
movsd 0x88(%rsi), %xmm1
movq %r14, %rdi
movq %rbx, %rdx
callq 0x921e
movq 0xa8(%rsp), %rcx
movq %r15, %rax
xorl %esi, %esi
movq 0x20(%rsp), %rdi
cmpq %rsi, %rbp
je 0x7e39
movsd (%rbx,%rsi,8), %xmm0
movq 0xb8(%rcx), %rdx
movsd %xmm0, (%rdx,%rax,8)
incq %rsi
addq %r13, %rax
jmp 0x7e1b
incq %r15
jmp 0x7d5f
movq 0x140(%rsp), %rdx
movabsq $-0x4010000000000000, %rsi # imm = 0xBFF0000000000000
cmpq %r8, %rdi
jge 0x7e6e
movq %rsi, (%rdx,%rdi,8)
incq %rdi
jmp 0x7e53
movq %rbx, %rdi
callq 0x32b0
jmp 0x9029
movq 0xc8(%rsp), %rdx
movsd (%rdx), %xmm0
movsd 0x8(%rdx), %xmm1
leaq 0x138(%rsp), %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x921e
jmp 0x9029
leal -0x1(%r15), %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x30(%rsp)
callq 0x31b0
xorpd 0xe27e(%rip), %xmm0     # 0x16130
movapd %xmm0, 0x60(%rsp)
xorl %ebx, %ebx
testl %ebp, %ebp
movl $0x0, %r14d
cmovgl %ebp, %r14d
movq 0xd0(%rsp), %r15
cmpq %r14, %rbx
je 0x7f30
movq 0x10(%rsp), %rax
movaps 0x60(%rsp), %xmm0
movsd %xmm0, (%rax,%rbx,8)
andq $0x0, (%r13,%rbx,8)
movq 0x88(%rsp), %rax
movsd 0x30(%rsp), %xmm0
movsd %xmm0, (%rax,%rbx,8)
movq %r15, %rdi
callq 0x3320
movabsq $0x3ff0000000000000, %rsi # imm = 0x3FF0000000000000
movq 0x20(%rsp), %rdx
xorl %ecx, %ecx
cmpq %rcx, %rdx
je 0x7f22
movq %rsi, (%rax,%rcx,8)
incq %rcx
jmp 0x7f14
movq 0x50(%rsp), %rcx
movq %rax, (%rcx,%rbx,8)
incq %rbx
jmp 0x7ece
xorl %eax, %eax
movl 0xa4(%rsp), %edx
testl %edx, %edx
movl $0x0, %ecx
cmovgl %edx, %ecx
movq 0x88(%rsp), %r14
movq 0x98(%rsp), %rdx
cmpq %rax, %rcx
je 0x7f62
andq $0x0, (%rdx,%rax,8)
incq %rax
jmp 0x7f53
cmpl $0x3, 0x40(%r12)
jl 0x7fc8
leaq 0xf0(%rsp), %rax
movq %rax, (%rsp)
leaq 0x228(%rsp), %rdi
leaq 0xfc(%rsp), %r8
movq %r12, %rsi
movq 0x98(%rsp), %rdx
movq 0x10(%rsp), %rcx
movsd 0x128(%rsp), %xmm0
movq 0x78(%rsp), %r9
callq 0x13210
movsd 0xf0(%rsp), %xmm1
movapd %xmm0, %xmm2
addsd %xmm1, %xmm2
leaq 0xe968(%rip), %rdi      # 0x16929
movb $0x3, %al
callq 0x3050
movl 0xf8(%rsp), %ebx
movl %ebx, %eax
movq %rax, 0x1a0(%rsp)
movabsq $0x4000000000000000, %rax # imm = 0x4000000000000000
cmpl $0x0, 0xb0(%rsp)
sete 0xf(%rsp)
je 0x90ab
cmpl $0x5, %ebx
jne 0x8021
xorl %ecx, %ecx
testl %ebp, %ebp
movl $0x0, %edx
cmovgl %ebp, %edx
movq %rdx, 0x28(%rsp)
movq 0x18(%rsp), %rdx
cmpq %rcx, 0x28(%rsp)
je 0x8057
movq %rax, (%rdx,%rcx,8)
incq %rcx
jmp 0x8011
movl %ebx, %ecx
xorl $0x1, %ecx
movl 0xb0(%rsp), %edx
xorl $0x1, %edx
xorl %esi, %esi
testl %ebp, %ebp
cmovgl %ebp, %esi
movq %rsi, 0x28(%rsp)
orl %ecx, %edx
jne 0x805c
xorl %ecx, %ecx
movq 0x18(%rsp), %rdx
cmpq %rcx, 0x28(%rsp)
je 0x8057
movq %rax, (%rdx,%rcx,8)
incq %rcx
jmp 0x8047
movb $0x1, 0xf(%rsp)
cmpl $0x1, %ebx
sete %cl
movsd 0xe22e(%rip), %xmm2     # 0x16298
movapd %xmm2, %xmm0
movapd 0x100(%rsp), %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, 0x1a8(%rsp)
movapd %xmm2, %xmm0
divsd %xmm1, %xmm0
movapd %xmm0, 0x210(%rsp)
movapd %xmm1, %xmm0
addsd %xmm2, %xmm0
movapd %xmm0, 0x260(%rsp)
movapd %xmm1, %xmm0
addsd %xmm1, %xmm0
movapd %xmm2, %xmm3
divsd %xmm0, %xmm3
movapd %xmm3, 0x1c0(%rsp)
movl 0xb0(%rsp), %edx
cmpl $0x2, %edx
sete %al
andb %al, %cl
movb %cl, 0x4f(%rsp)
testl %ebx, %ebx
sete %cl
cmpl $0x1, %edx
sete %dl
movl %ecx, %esi
andb %dl, %sil
movb %sil, 0x4e(%rsp)
andb %al, %cl
movb %cl, 0x4d(%rsp)
cmpl $0x3, %ebx
sete %cl
movl %ecx, %esi
andb %dl, %sil
movb %sil, 0x4c(%rsp)
andb %al, %cl
movb %cl, 0x4b(%rsp)
cmpl $0x4, %ebx
sete %cl
movl %ecx, %esi
andb %dl, %sil
movb %sil, 0x4a(%rsp)
andb %al, %cl
movb %cl, 0x49(%rsp)
cmpl $0x2, %ebx
sete %cl
andb %cl, %dl
movb %dl, 0x48(%rsp)
andb %al, %cl
movb %cl, 0x47(%rsp)
movsd 0xdfcd(%rip), %xmm0     # 0x16100
mulsd %xmm1, %xmm0
movapd %xmm2, %xmm1
movsd %xmm0, 0x198(%rsp)
subsd %xmm0, %xmm1
movsd %xmm1, 0x190(%rsp)
movl 0xa4(%rsp), %eax
testl %eax, %eax
movl $0x0, %ecx
cmovgl %eax, %ecx
movq %rcx, 0x1f0(%rsp)
subsd 0x1b0(%rsp), %xmm2
movsd %xmm2, 0x1e8(%rsp)
leaq 0x228(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x1b8(%rsp)
cmpl $0x1, %ebx
jne 0x81df
xorl %eax, %eax
cmpq %rax, 0x28(%rsp)
je 0x8392
movq 0x10(%rsp), %rcx
movsd (%rcx,%rax,8), %xmm0
movsd 0xe0e4(%rip), %xmm2     # 0x16298
movapd %xmm2, %xmm1
subsd %xmm0, %xmm1
mulsd 0xe104(%rip), %xmm1     # 0x162c8
cmpltsd %xmm2, %xmm0
andpd %xmm1, %xmm0
movq 0x80(%rsp), %rcx
movlpd %xmm0, (%rcx,%rax,8)
incq %rax
jmp 0x8197
cmpl $0x4, %ebx
ja 0x8358
movq 0x1a0(%rsp), %rax
leaq 0xe13d(%rip), %rcx      # 0x16334
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
xorl %eax, %eax
cmpq %rax, 0x28(%rsp)
je 0x8392
movq 0x10(%rsp), %rcx
movsd (%rcx,%rax,8), %xmm0
cmpltsd 0xe078(%rip), %xmm0     # 0x16298
movsd 0xe078(%rip), %xmm1     # 0x162a0
andpd %xmm1, %xmm0
movq 0x80(%rsp), %rcx
movlpd %xmm0, (%rcx,%rax,8)
incq %rax
jmp 0x8202
xorl %eax, %eax
cmpq %rax, 0x28(%rsp)
je 0x8392
movq 0x10(%rsp), %rcx
movsd (%rcx,%rax,8), %xmm0
movsd 0x1a8(%rsp), %xmm1
ucomisd %xmm0, %xmm1
movsd 0xe036(%rip), %xmm1     # 0x162a0
ja 0x829d
xorpd %xmm1, %xmm1
movapd 0x260(%rsp), %xmm2
ucomisd %xmm0, %xmm2
jbe 0x829d
addsd 0xe019(%rip), %xmm0     # 0x162a0
subsd 0x100(%rsp), %xmm0
mulsd 0x1c0(%rsp), %xmm0
movapd %xmm0, %xmm1
movq 0x80(%rsp), %rcx
movsd %xmm1, (%rcx,%rax,8)
incq %rax
jmp 0x8240
xorl %ebx, %ebx
cmpq %rbx, 0x28(%rsp)
je 0x8392
movq 0x10(%rsp), %rax
movsd (%rax,%rbx,8), %xmm0
callq 0x3440
addsd 0xdfc5(%rip), %xmm0     # 0x16298
movsd 0xdfc5(%rip), %xmm1     # 0x162a0
divsd %xmm0, %xmm1
movq 0x80(%rsp), %rax
movsd %xmm1, (%rax,%rbx,8)
incq %rbx
jmp 0x82b1
xorl %eax, %eax
cmpq %rax, 0x28(%rsp)
je 0x8392
movq 0x10(%rsp), %rcx
movsd (%rcx,%rax,8), %xmm0
movsd 0x1a8(%rsp), %xmm1
ucomisd %xmm0, %xmm1
movsd 0xdf83(%rip), %xmm1     # 0x162a0
ja 0x8346
xorpd %xmm1, %xmm1
movsd 0xdf6d(%rip), %xmm2     # 0x16298
ucomisd %xmm0, %xmm2
jbe 0x8346
addsd 0xdf67(%rip), %xmm0     # 0x162a0
mulsd 0x210(%rsp), %xmm0
movapd %xmm0, %xmm1
movq 0x80(%rsp), %rcx
movsd %xmm1, (%rcx,%rax,8)
incq %rax
jmp 0x82f3
cmpl $0x5, %ebx
jne 0x8392
xorl %eax, %eax
cmpq %rax, 0x28(%rsp)
je 0x8392
movsd 0xdf2a(%rip), %xmm0     # 0x16298
movq 0x10(%rsp), %rcx
subsd (%rcx,%rax,8), %xmm0
mulsd 0xdf48(%rip), %xmm0     # 0x162c8
movq 0x80(%rsp), %rcx
movsd %xmm0, (%rcx,%rax,8)
incq %rax
jmp 0x835f
cmpb $0x0, 0xf(%rsp)
je 0x8b37
xorpd %xmm0, %xmm0
movsd %xmm0, 0x168(%rsp)
movb $0x1, %al
movsd %xmm0, 0x160(%rsp)
xorl %ebx, %ebx
testb $0x1, %al
je 0x8a6c
cmpq 0x1f0(%rsp), %rbx
je 0x8a2e
movq %rbx, 0x178(%rsp)
movl %ebx, %eax
cltd
idivl 0x78(%rsp)
movl %edx, %r12d
movq 0x90(%rsp), %rcx
movslq (%rcx,%r12,4), %rdx
movq 0x58(%rsp), %rcx
movslq (%rcx,%r12,4), %rcx
movq %rcx, 0xb0(%rsp)
movslq %eax, %rcx
movq 0x1b8(%rsp), %rax
movq %rcx, 0x1f8(%rsp)
movq (%rax,%rcx,8), %rbp
testl %edx, %edx
movl $0x0, %eax
movq %rdx, 0x208(%rsp)
cmovgl %edx, %eax
movq %rax, %rcx
shlq $0x4, %rcx
movq %rcx, 0x200(%rsp)
movq %rax, 0x180(%rsp)
leaq (,%rax,8), %r15
xorpd %xmm0, %xmm0
movapd %xmm0, 0x30(%rsp)
xorl %ebx, %ebx
movapd %xmm0, 0x60(%rsp)
cmpq %rbx, %r15
je 0x8575
movsd 0x8(%rbp,%rbx,2), %xmm1
movsd %xmm1, 0x20(%rsp)
movq 0x50(%rsp), %rax
movq (%rax,%rbx), %r14
movq 0x88(%rsp), %rax
movsd (%rax,%rbx), %xmm0
movsd %xmm0, 0xe8(%rsp)
movq 0x80(%rsp), %rax
movsd (%rax,%rbx), %xmm2
movsd %xmm2, 0xd0(%rsp)
movq 0x18(%rsp), %rax
movsd (%rax,%rbx), %xmm2
movsd %xmm2, 0xc0(%rsp)
movsd (%r13,%rbx), %xmm2
movsd %xmm2, 0xe0(%rsp)
movsd (%r14,%r12,8), %xmm2
mulsd %xmm1, %xmm2
movsd %xmm2, 0xb8(%rsp)
callq 0x31b0
movsd 0xe0(%rsp), %xmm2
subsd %xmm0, %xmm2
movq 0x10(%rsp), %rax
subsd (%rax,%rbx), %xmm2
movsd 0xc0(%rsp), %xmm1
mulsd %xmm1, %xmm2
addsd 0xd0(%rsp), %xmm2
movapd %xmm2, %xmm3
movsd 0xe8(%rsp), %xmm2
movsd 0xb8(%rsp), %xmm0
divsd %xmm2, %xmm0
mulsd %xmm3, %xmm0
movapd %xmm0, %xmm3
movapd 0x30(%rsp), %xmm0
subsd %xmm3, %xmm0
movapd %xmm0, 0x30(%rsp)
movsd 0x20(%rsp), %xmm0
mulsd %xmm0, %xmm1
mulsd %xmm0, %xmm1
movsd (%r14,%r12,8), %xmm0
mulsd %xmm0, %xmm1
mulsd %xmm0, %xmm1
movapd %xmm2, %xmm0
mulsd %xmm2, %xmm0
divsd %xmm0, %xmm1
movapd 0x60(%rsp), %xmm0
addsd %xmm1, %xmm0
addq $0x8, %rbx
jmp 0x8450
movq 0x200(%rsp), %rcx
leaq (%rcx,%rbp), %rbx
movq 0x208(%rsp), %rax
addq %rax, 0xb0(%rsp)
leaq (%rcx,%rbp), %r15
addq $0x8, %r15
movq 0x180(%rsp), %rbp
movq 0x88(%rsp), %r14
cmpq 0xb0(%rsp), %rbp
jge 0x878a
movsd 0x8(%rbx), %xmm0
movsd %xmm0, 0x20(%rsp)
movq 0x80(%rsp), %rax
movsd (%rax,%rbp,8), %xmm0
movsd %xmm0, 0xd0(%rsp)
movq 0x18(%rsp), %rax
movsd (%rax,%rbp,8), %xmm0
movsd %xmm0, 0xc0(%rsp)
movsd (%r13,%rbp,8), %xmm0
movsd %xmm0, 0xb8(%rsp)
movsd (%r14,%rbp,8), %xmm0
callq 0x31b0
movsd 0xb8(%rsp), %xmm3
subsd %xmm0, %xmm3
movq 0x10(%rsp), %rax
subsd (%rax,%rbp,8), %xmm3
movsd 0xc0(%rsp), %xmm2
mulsd %xmm2, %xmm3
addsd 0xd0(%rsp), %xmm3
movsd 0x20(%rsp), %xmm1
mulsd %xmm1, %xmm3
movapd 0x30(%rsp), %xmm0
addsd %xmm3, %xmm0
movapd %xmm0, 0x30(%rsp)
movapd %xmm2, %xmm0
mulsd %xmm1, %xmm0
mulsd %xmm1, %xmm0
movapd %xmm0, %xmm1
movapd 0x60(%rsp), %xmm0
addsd %xmm1, %xmm0
movapd %xmm0, 0x60(%rsp)
addq $0x10, %rbx
incq %rbp
addq $0x10, %r15
jmp 0x85a9
movsd (%r15), %xmm1
movsd %xmm1, 0x20(%rsp)
movq (%rax,%rbp,8), %rbx
movsd (%r14,%rbp,8), %xmm0
movsd %xmm0, 0xe8(%rsp)
movq 0x80(%rsp), %rax
movsd (%rax,%rbp,8), %xmm2
movsd %xmm2, 0xd0(%rsp)
movq 0x18(%rsp), %rax
movsd (%rax,%rbp,8), %xmm2
movsd %xmm2, 0xc0(%rsp)
movsd (%r13,%rbp,8), %xmm2
movsd %xmm2, 0xe0(%rsp)
movsd (%rbx,%r12,8), %xmm2
mulsd %xmm1, %xmm2
movsd %xmm2, 0xb8(%rsp)
callq 0x31b0
movsd 0xe0(%rsp), %xmm2
subsd %xmm0, %xmm2
movq 0x10(%rsp), %rax
subsd (%rax,%rbp,8), %xmm2
movsd 0xc0(%rsp), %xmm1
mulsd %xmm1, %xmm2
addsd 0xd0(%rsp), %xmm2
movapd %xmm2, %xmm3
movsd 0xe8(%rsp), %xmm2
movsd 0xb8(%rsp), %xmm0
divsd %xmm2, %xmm0
mulsd %xmm3, %xmm0
movapd %xmm0, %xmm3
movapd 0x30(%rsp), %xmm0
subsd %xmm3, %xmm0
movapd %xmm0, 0x30(%rsp)
movsd 0x20(%rsp), %xmm0
mulsd %xmm0, %xmm1
mulsd %xmm0, %xmm1
movsd (%rbx,%r12,8), %xmm0
mulsd %xmm0, %xmm1
mulsd %xmm0, %xmm1
movapd %xmm2, %xmm0
mulsd %xmm2, %xmm0
divsd %xmm0, %xmm1
movapd 0x60(%rsp), %xmm0
addsd %xmm1, %xmm0
movapd %xmm0, 0x60(%rsp)
incq %rbp
addq $0x10, %r15
cmpq 0x130(%rsp), %rbp
movq 0x50(%rsp), %rax
jl 0x867d
movsd 0x1b0(%rsp), %xmm1
ucomisd 0xc892(%rip), %xmm1     # 0x15040
movsd 0x128(%rsp), %xmm0
movapd 0x30(%rsp), %xmm2
mulsd %xmm0, %xmm2
movapd 0x60(%rsp), %xmm4
mulsd %xmm0, %xmm4
jbe 0x87f0
movq 0x98(%rsp), %rax
movq 0x178(%rsp), %rbx
movsd (%rax,%rbx,8), %xmm0
mulsd %xmm1, %xmm0
addsd %xmm0, %xmm2
addsd %xmm1, %xmm4
jmp 0x87f8
movq 0x178(%rsp), %rbx
xorpd 0xd930(%rip), %xmm2     # 0x16130
divsd %xmm4, %xmm2
movapd %xmm2, %xmm3
movapd %xmm2, %xmm0
andpd 0xd90c(%rip), %xmm0     # 0x16120
movsd 0xd8f4(%rip), %xmm2     # 0x16110
ucomisd %xmm0, %xmm2
ja 0x8a26
movsd 0xda6a(%rip), %xmm0     # 0x16298
ucomisd %xmm1, %xmm0
movq 0x98(%rsp), %rax
movsd (%rax,%rbx,8), %xmm2
addsd %xmm2, %xmm3
movapd %xmm3, %xmm0
jbe 0x8867
movsd 0x1e8(%rsp), %xmm1
divsd %xmm4, %xmm1
movsd %xmm2, 0x30(%rsp)
callq 0x131d1
movsd 0x30(%rsp), %xmm2
movapd %xmm0, %xmm1
subsd %xmm2, %xmm1
movq 0x98(%rsp), %rax
movsd %xmm0, (%rax,%rbx,8)
movapd %xmm1, 0x60(%rsp)
movapd %xmm1, %xmm2
movapd %xmm0, %xmm1
movapd 0xd88e(%rip), %xmm0     # 0x16120
andpd %xmm0, %xmm2
movapd %xmm2, 0xd0(%rsp)
andpd %xmm0, %xmm1
movapd %xmm1, 0x30(%rsp)
movq 0x1b8(%rsp), %rax
movq 0x1f8(%rsp), %rcx
movq (%rax,%rcx,8), %rbp
leaq 0x8(%rbp), %r15
xorl %ebx, %ebx
cmpq %rbx, 0x180(%rsp)
je 0x8927
movq 0x50(%rsp), %rax
movq (%rax,%rbx,8), %r14
movq 0x88(%rsp), %r13
movsd (%r13,%rbx,8), %xmm0
subsd (%r14,%r12,8), %xmm0
movsd %xmm0, 0x20(%rsp)
movsd 0x8(%rbp), %xmm0
mulsd 0x60(%rsp), %xmm0
callq 0x3440
mulsd (%r14,%r12,8), %xmm0
movsd %xmm0, (%r14,%r12,8)
addsd 0x20(%rsp), %xmm0
movsd %xmm0, (%r13,%rbx,8)
addq $0x10, %rbp
incq %rbx
addq $0x10, %r15
jmp 0x88c3
movq 0x170(%rsp), %r13
movq 0x50(%rsp), %rbx
movq 0x180(%rsp), %r14
cmpq 0xb0(%rsp), %r14
jge 0x89d9
movsd 0x8(%rbp), %xmm0
mulsd 0x60(%rsp), %xmm0
addsd (%r13,%r14,8), %xmm0
movsd %xmm0, (%r13,%r14,8)
callq 0x3440
movq (%rbx,%r14,8), %rax
movsd %xmm0, (%rax,%r12,8)
addq $0x10, %rbp
incq %r14
addq $0x10, %r15
jmp 0x893c
movq 0x50(%rsp), %rax
movq (%rax,%r14,8), %rbx
movq %r13, %rbp
movq 0x88(%rsp), %r13
movsd (%r13,%r14,8), %xmm0
subsd (%rbx,%r12,8), %xmm0
movsd %xmm0, 0x20(%rsp)
movsd (%r15), %xmm0
mulsd 0x60(%rsp), %xmm0
callq 0x3440
mulsd (%rbx,%r12,8), %xmm0
movsd %xmm0, (%rbx,%r12,8)
addsd 0x20(%rsp), %xmm0
movsd %xmm0, (%r13,%r14,8)
movq %rbp, %r13
incq %r14
addq $0x10, %r15
cmpq 0x130(%rsp), %r14
jl 0x897f
movsd 0x168(%rsp), %xmm0
maxsd 0xd0(%rsp), %xmm0
movsd %xmm0, 0x168(%rsp)
movsd 0x160(%rsp), %xmm0
maxsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x160(%rsp)
movq 0x178(%rsp), %rbx
movq 0x88(%rsp), %r14
incq %rbx
jmp 0x83bf
xorl %eax, %eax
movq 0x120(%rsp), %r12
jmp 0x83b5
movsd (%r13,%rbx,8), %xmm0
movsd %xmm0, 0x30(%rsp)
movsd (%r14,%rbx,8), %xmm0
callq 0x31b0
movsd 0x30(%rsp), %xmm1
subsd %xmm0, %xmm1
movq 0x10(%rsp), %rax
movsd %xmm1, (%rax,%rbx,8)
incq %rbx
cmpq %rbx, 0x28(%rsp)
jne 0x8a3d
movsd 0x160(%rsp), %xmm0
mulsd 0x1e0(%rsp), %xmm0
ucomisd 0x168(%rsp), %xmm0
jae 0x8f40
movl 0x40(%r12), %eax
testl %eax, %eax
jne 0x8ab0
leaq 0xdeea(%rip), %rdi      # 0x1698e
xorl %eax, %eax
callq 0x6a9e
movl 0x40(%r12), %eax
testl %eax, %eax
movl 0xf8(%rsp), %ebx
jle 0x8190
callq 0x3140
cmpl $0x3, 0x40(%r12)
jl 0x8b2a
leaq 0xf0(%rsp), %rax
movq %rax, (%rsp)
leaq 0x228(%rsp), %rdi
movq %r12, %rsi
movq 0x98(%rsp), %rdx
movq 0x10(%rsp), %rcx
movsd 0x128(%rsp), %xmm0
leaq 0xfc(%rsp), %r8
movq 0x78(%rsp), %r9
callq 0x13210
movsd 0xf0(%rsp), %xmm1
movapd %xmm0, %xmm2
addsd %xmm1, %xmm2
leaq 0xde06(%rip), %rdi      # 0x16929
movb $0x3, %al
callq 0x3050
pushq $0xa
popq %rdi
callq 0x3340
jmp 0x8190
cmpb $0x0, 0x4f(%rsp)
je 0x8b8c
movsd 0x18(%r12), %xmm0
xorl %eax, %eax
cmpq %rax, 0x28(%rsp)
je 0x839d
movq 0x10(%rsp), %rcx
movsd (%rcx,%rax,8), %xmm1
cmpltsd 0xd733(%rip), %xmm1     # 0x16298
movapd %xmm1, %xmm2
movsd 0xd75f(%rip), %xmm3     # 0x162d0
andpd %xmm3, %xmm2
andnpd %xmm0, %xmm1
orpd %xmm2, %xmm1
movq 0x18(%rsp), %rcx
movlpd %xmm1, (%rcx,%rax,8)
incq %rax
jmp 0x8b47
cmpb $0x0, 0x4e(%rsp)
je 0x8c0b
xorl %eax, %eax
cmpq %rax, 0x28(%rsp)
je 0x839d
movq 0x10(%rsp), %rcx
movsd (%rcx,%rax,8), %xmm0
movsd 0xd6e6(%rip), %xmm4     # 0x16298
movapd %xmm4, %xmm1
subsd %xmm0, %xmm1
addsd 0xd6de(%rip), %xmm0     # 0x162a0
movapd 0xd556(%rip), %xmm2     # 0x16120
andpd %xmm2, %xmm0
andpd %xmm2, %xmm1
movapd 0x100(%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
movq 0x18(%rsp), %rcx
movsd %xmm1, (%rcx,%rax,8)
incq %rax
jmp 0x8b95
cmpb $0x0, 0x4d(%rsp)
je 0x8c6e
movsd 0x18(%r12), %xmm0
xorl %eax, %eax
cmpq %rax, 0x28(%rsp)
je 0x839d
movq 0x10(%rsp), %rcx
movsd (%rcx,%rax,8), %xmm1
addsd 0xd668(%rip), %xmm1     # 0x162a0
andpd 0xd4e0(%rip), %xmm1     # 0x16120
cmpltsd 0x100(%rsp), %xmm1
movapd %xmm1, %xmm2
andpd 0x1c0(%rsp), %xmm2
andnpd %xmm0, %xmm1
orpd %xmm2, %xmm1
movq 0x18(%rsp), %rcx
movlpd %xmm1, (%rcx,%rax,8)
incq %rax
jmp 0x8c1b
cmpb $0x0, 0x4c(%rsp)
je 0x8ced
xorl %eax, %eax
cmpq %rax, 0x28(%rsp)
je 0x839d
movq 0x10(%rsp), %rcx
movsd (%rcx,%rax,8), %xmm0
movsd 0xd604(%rip), %xmm4     # 0x16298
movapd %xmm4, %xmm1
subsd %xmm0, %xmm1
addsd 0xd5fc(%rip), %xmm0     # 0x162a0
movapd 0xd474(%rip), %xmm2     # 0x16120
andpd %xmm2, %xmm0
andpd %xmm2, %xmm1
movapd 0x100(%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
movq 0x18(%rsp), %rcx
movsd %xmm1, (%rcx,%rax,8)
incq %rax
jmp 0x8c77
cmpb $0x0, 0x4b(%rsp)
je 0x8d50
movsd 0x18(%r12), %xmm0
xorl %eax, %eax
cmpq %rax, 0x28(%rsp)
je 0x839d
movq 0x10(%rsp), %rcx
movsd (%rcx,%rax,8), %xmm1
addsd 0xd586(%rip), %xmm1     # 0x162a0
andpd 0xd3fe(%rip), %xmm1     # 0x16120
cmpltsd 0x100(%rsp), %xmm1
movapd %xmm1, %xmm2
andpd 0x1c0(%rsp), %xmm2
andnpd %xmm0, %xmm1
orpd %xmm2, %xmm1
movq 0x18(%rsp), %rcx
movlpd %xmm1, (%rcx,%rax,8)
incq %rax
jmp 0x8cfd
cmpb $0x0, 0x4a(%rsp)
je 0x8dc1
xorl %eax, %eax
cmpq %rax, 0x28(%rsp)
je 0x839d
movsd 0x190(%rsp), %xmm0
movq 0x10(%rsp), %rcx
subsd (%rcx,%rax,8), %xmm0
andpd 0xd3a1(%rip), %xmm0     # 0x16120
movapd %xmm0, %xmm1
addsd %xmm0, %xmm1
cmpltsd 0x198(%rsp), %xmm0
movapd %xmm0, %xmm2
andnpd %xmm1, %xmm2
andpd 0x100(%rsp), %xmm0
orpd %xmm2, %xmm0
movsd 0xd4ea(%rip), %xmm1     # 0x16298
divsd %xmm0, %xmm1
movq 0x18(%rsp), %rcx
movsd %xmm1, (%rcx,%rax,8)
incq %rax
jmp 0x8d59
cmpb $0x0, 0x49(%rsp)
je 0x8e25
movsd 0x18(%r12), %xmm0
xorl %eax, %eax
cmpq %rax, 0x28(%rsp)
je 0x839d
movsd 0x190(%rsp), %xmm1
movq 0x10(%rsp), %rcx
subsd (%rcx,%rax,8), %xmm1
andpd 0xd329(%rip), %xmm1     # 0x16120
cmpltsd 0x198(%rsp), %xmm1
movapd %xmm1, %xmm2
andpd 0x210(%rsp), %xmm2
andnpd %xmm0, %xmm1
orpd %xmm2, %xmm1
movq 0x18(%rsp), %rcx
movlpd %xmm1, (%rcx,%rax,8)
incq %rax
jmp 0x8dd1
cmpb $0x0, 0x48(%rsp)
je 0x8ed2
xorl %ebx, %ebx
cmpq %rbx, 0x28(%rsp)
je 0x839d
movq 0x10(%rsp), %rax
movsd (%rax,%rbx,8), %xmm0
movaps %xmm0, 0x30(%rsp)
callq 0x3440
movsd %xmm0, 0x60(%rsp)
movapd 0x30(%rsp), %xmm0
xorpd 0xd2cb(%rip), %xmm0     # 0x16130
callq 0x3440
movsd 0x60(%rsp), %xmm4
movapd %xmm4, %xmm1
subsd %xmm0, %xmm1
movapd %xmm1, %xmm2
andpd 0xd29c(%rip), %xmm2     # 0x16120
movsd 0xd42c(%rip), %xmm3     # 0x162b8
ucomisd %xmm2, %xmm3
movsd 0xd250(%rip), %xmm2     # 0x160e8
ja 0x8ec0
divsd 0x30(%rsp), %xmm1
andpd 0xd278(%rip), %xmm1     # 0x16120
addsd 0xd420(%rip), %xmm4     # 0x162d0
addsd %xmm0, %xmm4
addsd %xmm4, %xmm4
divsd %xmm4, %xmm1
movapd %xmm1, %xmm2
movq 0x18(%rsp), %rax
movsd %xmm2, (%rax,%rbx,8)
incq %rbx
jmp 0x8e32
cmpb $0x0, 0x47(%rsp)
je 0x91fd
xorl %ebx, %ebx
cmpq %rbx, 0x28(%rsp)
je 0x839d
movq 0x10(%rsp), %rax
movsd (%rax,%rbx,8), %xmm0
movaps %xmm0, 0x60(%rsp)
callq 0x3440
movsd %xmm0, 0x30(%rsp)
movapd 0x60(%rsp), %xmm0
xorpd 0xd21e(%rip), %xmm0     # 0x16130
callq 0x3440
addsd 0x30(%rsp), %xmm0
addsd 0xd3ab(%rip), %xmm0     # 0x162d0
movsd 0xd36b(%rip), %xmm1     # 0x16298
divsd %xmm0, %xmm1
movq 0x18(%rsp), %rax
movsd %xmm1, (%rax,%rbx,8)
incq %rbx
jmp 0x8edf
leaq 0xd573(%rip), %rdi      # 0x164ba
xorl %esi, %esi
xorl %eax, %eax
callq 0x6a9e
leaq 0xf0(%rsp), %rax
movq %rax, (%rsp)
leaq 0x228(%rsp), %rdi
movq %r12, %rsi
leaq 0xfc(%rsp), %r12
movq 0x98(%rsp), %rdx
movq 0x10(%rsp), %rcx
movsd 0x128(%rsp), %xmm0
movq %r12, %r8
movq 0x78(%rsp), %r9
callq 0x13210
movsd 0xf0(%rsp), %xmm1
movapd %xmm0, %xmm2
addsd %xmm1, %xmm2
leaq 0xd97f(%rip), %rdi      # 0x16929
movb $0x3, %al
callq 0x6a9e
movl (%r12), %esi
leaq 0xd757(%rip), %rdi      # 0x16713
movl 0xa4(%rsp), %edx
xorl %eax, %eax
callq 0x6a9e
movq 0x1d8(%rsp), %rdi
testq %rdi, %rdi
movq 0x50(%rsp), %rbx
je 0x8fe1
callq 0x32f0
movq 0x10(%rsp), %rdi
callq 0x32f0
movq 0x80(%rsp), %rdi
callq 0x32f0
movq 0x18(%rsp), %rdi
callq 0x32f0
testq %rbx, %rbx
je 0x900f
movq %rbx, %rdi
callq 0x32f0
testq %r13, %r13
je 0x901c
movq %r13, %rdi
callq 0x32f0
testq %r14, %r14
je 0x9029
movq %r14, %rdi
callq 0x32f0
movq 0x188(%rsp), %rdi
callq 0x32b0
movq 0x118(%rsp), %rdi
callq 0x32b0
movq 0x90(%rsp), %rdi
callq 0x32b0
movq 0x58(%rsp), %rdi
callq 0x32b0
movq 0x158(%rsp), %rdi
callq 0x32b0
movq 0x148(%rsp), %rdi
callq 0x32b0
movq 0x140(%rsp), %rdi
callq 0x32b0
movq 0xc8(%rsp), %rdi
callq 0x32b0
movq 0xa8(%rsp), %rbx
movq %rbx, %rax
addq $0x278, %rsp            # imm = 0x278
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x4, %ebx
ja 0x7ff6
leaq 0xd265(%rip), %rcx      # 0x16320
movq 0x1a0(%rsp), %rdx
movslq (%rcx,%rdx,4), %rdx
addq %rcx, %rdx
jmpq *%rdx
movsd 0xd1c4(%rip), %xmm0     # 0x16298
divsd 0x100(%rsp), %xmm0
xorl %ecx, %ecx
testl %ebp, %ebp
movl $0x0, %edx
cmovgl %ebp, %edx
movq 0x18(%rsp), %rsi
cmpq %rcx, %rdx
je 0x7ff6
movsd %xmm0, (%rsi,%rcx,8)
incq %rcx
jmp 0x90ee
movsd 0xd18f(%rip), %xmm0     # 0x16298
divsd 0x100(%rsp), %xmm0
xorl %ecx, %ecx
testl %ebp, %ebp
movl $0x0, %edx
cmovgl %ebp, %edx
movq 0x18(%rsp), %rsi
cmpq %rcx, %rdx
je 0x7ff6
movsd %xmm0, (%rsi,%rcx,8)
incq %rcx
jmp 0x9123
xorl %ecx, %ecx
testl %ebp, %ebp
movl $0x0, %edx
cmovgl %ebp, %edx
movq 0x18(%rsp), %rsi
cmpq %rcx, %rdx
je 0x7ff6
movq %rax, (%rsi,%rcx,8)
incq %rcx
jmp 0x9147
xorl %ecx, %ecx
testl %ebp, %ebp
movl $0x0, %edx
cmovgl %ebp, %edx
movabsq $0x3fd0000000000000, %rsi # imm = 0x3FD0000000000000
movq 0x18(%rsp), %rdi
cmpq %rcx, %rdx
je 0x7ff6
movq %rsi, (%rdi,%rcx,8)
incq %rcx
jmp 0x9174
movapd 0x100(%rsp), %xmm1
addsd %xmm1, %xmm1
movsd 0xd0fd(%rip), %xmm0     # 0x16298
divsd %xmm1, %xmm0
xorl %ecx, %ecx
testl %ebp, %ebp
movl $0x0, %edx
cmovgl %ebp, %edx
movq 0x18(%rsp), %rsi
cmpq %rcx, %rdx
je 0x7ff6
movsd %xmm0, (%rsi,%rcx,8)
incq %rcx
jmp 0x91b0
movq 0x10e0e(%rip), %rax     # 0x19fd8
movq (%rax), %rdi
movq 0x28(%r12), %rdx
leaq 0xd605(%rip), %rsi      # 0x167de
xorl %eax, %eax
callq 0x3370
pushq $0x1
popq %rdi
callq 0x32c0
leaq 0xd609(%rip), %rdi      # 0x167f8
xorl %eax, %eax
callq 0x6a9e
xorl %edi, %edi
callq 0x32c0
leaq 0xd631(%rip), %rdi      # 0x16835
jmp 0x91ef
movq %rax, %rbx
leaq 0x228(%rsp), %rdi
callq 0x5e6a
movq %rbx, %rdi
callq 0x3430