// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/regression.c
// Function: train_quantizereg
void* train_quantizereg(Instanceptr* trdata, Instanceptr *cvdata, void* parameters)
{
	/*!Last Changed 21.12.2004*/
	Model_quantizeregptr model;
	Quantizereg_parameterptr param;
	int i, j, k, m, x, y, **countstwo, *countsone, found, totalcount;
	double maxx, maxy, xvalue, yvalue, total, *eigenvalues;
	Instanceptr tmp;
	matrix cov;
	Instance mean;
	model = safemalloc(sizeof(Model_quantizereg), "train_quantizereg", 6);
	param = (Quantizereg_parameterptr) parameters;
	model->partitioncount = param->partitioncount;
	if (current_dataset->featurecount > 2)
	 {
   mean = find_mean(*trdata);
  	cov = covariance(*trdata, mean);
	  safe_free(mean.values);
   eigenvalues = find_eigenvalues_eigenvectors_symmetric(&(model->eigenvectors), cov);
  	matrix_free(cov);
   safe_free(eigenvalues);
   dimension_reduce_with_pca(*trdata, 2, model->eigenvectors);
	  find_bounds_of_feature(current_dataset, *trdata, 0, &(model->minx), &maxx);
			model->binx = (maxx - model->minx) / param->partitioncount;
	  find_bounds_of_feature(current_dataset, *trdata, 1, &(model->miny), &maxy);
			model->biny = (maxy - model->miny) / param->partitioncount;
			countstwo = (int**) safecalloc_2d(sizeof(int *), sizeof(int), param->partitioncount, param->partitioncount, "train_quantizereg", 19);
			model->meanstwo = (double**) safecalloc_2d(sizeof(double *), sizeof(double), param->partitioncount, param->partitioncount, "train_quantizereg", 20);
			tmp = *trdata;
			while (tmp)
			 {
				 xvalue = real_feature(tmp, 0);
				 yvalue = real_feature(tmp, 1);
					x = (int) ((xvalue - model->minx) / model->binx);
					if (x == param->partitioncount)
						 x--;
					y = (int) ((yvalue - model->miny) / model->biny);
					if (y == param->partitioncount)
						 y--;
					model->meanstwo[x][y] += give_regressionvalue(tmp);
					(countstwo[x][y])++;
				 tmp = tmp->next;
			 }
			for (i = 0; i < param->partitioncount; i++)
				 for (j = 0; j < param->partitioncount; j++)
						 if (countstwo[i][j] != 0)
								 model->meanstwo[i][j] /= countstwo[i][j];
			for (i = 0; i < param->partitioncount; i++)
				 for (j = 0; j < param->partitioncount; j++)
						 if (countstwo[i][j] == 0)
							 {
								 found = 0;
								 k = 1;
									totalcount = 0;
									total = 0;
         while (!found)
									 {
										 for (m = j - k; m <= j + k; m++)
												 if (between(i - k, 0, param->partitioncount - 1) && between(m, 0, param->partitioncount - 1) && countstwo[i - k][m] != 0)
													 {
														 total += countstwo[i - k][m] * model->meanstwo[i - k][m];
															totalcount += countstwo[i - k][m];
														 found = 1;
													 }
										 for (m = j - k; m <= j + k; m++)
												 if (between(i + k, 0, param->partitioncount - 1) && between(m, 0, param->partitioncount - 1) && countstwo[i + k][m] != 0)
													 {
														 total += countstwo[i + k][m] * model->meanstwo[i + k][m];
															totalcount += countstwo[i + k][m];
														 found = 1;
													 }
											for (m = i - k; m <= i + k; m++)
												 if (between(j - k, 0, param->partitioncount - 1) && between(m, 0, param->partitioncount - 1) && countstwo[m][j - k] != 0)
													 {
														 total += countstwo[m][j - k] * model->meanstwo[m][j - k];
															totalcount += countstwo[m][j - k];
															found = 1;
													 }
											for (m = i - k; m <= i + k; m++)
												 if (between(j + k, 0, param->partitioncount - 1) && between(m, 0, param->partitioncount - 1) && countstwo[m][j + k] != 0)
													 {
														 total += countstwo[m][j + k] * model->meanstwo[m][j + k];
															totalcount += countstwo[m][j + k];
															found = 1;
													 }
											k++;
									 }
									model->meanstwo[i][j] = total / totalcount; 
							 } 
	 }
	else
	 {
	  find_bounds_of_feature(current_dataset, *trdata, 0, &(model->minx), &maxx);
			model->binx = (maxx - model->minx) / (param->partitioncount);
			model->meansone = safecalloc(param->partitioncount, sizeof(double), "train_quantizereg", 86);
			countsone = safecalloc(param->partitioncount, sizeof(int), "quantizereg", 87);
			tmp = *trdata;
			while (tmp)
			 {
				 xvalue = real_feature(tmp, 0);
					x = (int) ((xvalue - model->minx) / model->binx);
					if (x == param->partitioncount)
						 x--;
					model->meansone[x] += give_regressionvalue(tmp);
					(countsone[x])++;
				 tmp = tmp->next;
			 }
			for (i = 0; i < param->partitioncount; i++)
					if (countsone[i] != 0)
							model->meansone[i] /= countsone[i];
   for (i = 0; i < param->partitioncount; i++)
				 if (countsone[i] == 0)
					 {
						 found = 0;
							totalcount = 0;
							total = 0;
							k = 1;
							while (!found)
							 {
								 if (between(i - k, 0, param->partitioncount - 1) && countsone[i - k] != 0)
									 {
										 total += countsone[i - k] * model->meansone[i - k];
											totalcount += countsone[i - k];
											found = 1;
									 }
									if (between(i + k, 0, param->partitioncount - 1) && countsone[i + k] != 0)
									 {
										 total += countsone[i + k] * model->meansone[i + k];
											totalcount += countsone[i + k];
											found = 1;
									 }
								 k++;
							 }
							model->meansone[i] = total / totalcount;
					 }
	 }
	if (current_dataset->featurecount > 2)
			free_2d((void**)countstwo, param->partitioncount);
	else
			safe_free(countsone);
	return model;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rdx, %r14
movq %rdi, %r13
leaq 0x3c8a4(%rip), %rsi     # 0xafb0e
movl $0x48, %edi
movl $0x6, %edx
callq 0x3a0e1
movq %rax, %r12
movl (%r14), %eax
movl %eax, 0x40(%r12)
leaq 0x625e5(%rip), %rbp     # 0xd5870
movq (%rbp), %rdi
cmpl $0x3, 0x1bc(%rdi)
movq %r12, 0x70(%rsp)
jl 0x73932
movq (%r13), %rsi
leaq 0xf8(%rsp), %rbx
movq %rbx, %rdi
callq 0x1247b
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movaps %xmm2, 0xe0(%rsp)
movaps %xmm1, 0xd0(%rsp)
movaps %xmm0, 0xc0(%rsp)
movq (%r13), %rdi
movaps 0xc0(%rsp), %xmm0
movaps 0xd0(%rsp), %xmm1
movdqa 0xe0(%rsp), %xmm2
movdqu %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x11398
movq %rax, %rbx
movq %rdx, %r15
movq 0xc0(%rsp), %rdi
callq 0x3a180
leaq 0x30(%r12), %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x428e9
movq %rax, %r12
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3ed51
movq %r12, %rdi
movq 0x70(%rsp), %r12
callq 0x3a180
movq (%r13), %rdi
movq 0x30(%r12), %rdx
movq 0x38(%r12), %rcx
movl $0x2, %esi
callq 0x10970
movq (%rbp), %rdi
movq (%r13), %rsi
leaq 0xf8(%rsp), %rbx
xorl %edx, %edx
movq %r12, %rcx
movq %rbx, %r8
callq 0x10ecf
movsd (%rbx), %xmm0
subsd (%r12), %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl (%r14), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x8(%r12)
movq (%rbp), %rdi
movq (%r13), %rsi
movq %r12, %rcx
addq $0x10, %rcx
leaq 0xf0(%rsp), %rbx
movl $0x1, %edx
movq %rbx, %r8
callq 0x10ecf
movsd (%rbx), %xmm0
subsd 0x10(%r12), %xmm0
movl (%r14), %ecx
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x18(%r12)
leaq 0x3c72a(%rip), %rbx     # 0xafb0e
movl $0x8, %edi
movl $0x4, %esi
movl %ecx, %edx
movq %rbx, %r8
movl $0x13, %r9d
callq 0x3a231
movq %rax, %r15
movl (%r14), %ecx
movl $0x8, %edi
movl $0x8, %esi
movl %ecx, %edx
movq %rbx, %r8
movl $0x14, %r9d
callq 0x3a231
movq %rax, 0x28(%r12)
movq (%r13), %rbx
testq %rbx, %rbx
movq %r15, 0x40(%rsp)
je 0x734f3
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2ed6a
movapd %xmm0, 0x80(%rsp)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x2ed6a
unpcklpd 0x80(%rsp), %xmm0       # xmm0 = xmm0[0],mem[0]
movsd 0x10(%r12), %xmm1
movsd 0x18(%r12), %xmm2
movhpd (%r12), %xmm1           # xmm1 = xmm1[0],mem[0]
subpd %xmm1, %xmm0
movhpd 0x8(%r12), %xmm2        # xmm2 = xmm2[0],mem[0]
divpd %xmm2, %xmm0
cvttpd2dq %xmm0, %xmm0
movd (%r14), %xmm1
pshufd $0x50, %xmm0, %xmm2     # xmm2 = xmm0[0,0,1,1]
pshufd $0x0, %xmm1, %xmm1      # xmm1 = xmm1[0,0,0,0]
pcmpeqd %xmm2, %xmm1
movmskpd %xmm1, %eax
movl %eax, %ecx
shrb %cl
pshufd $0x55, %xmm0, %xmm1     # xmm1 = xmm0[1,1,1,1]
movd %xmm1, %ebp
movzbl %cl, %ecx
subl %ecx, %ebp
movd %xmm0, %r15d
andl $0x1, %eax
subl %eax, %r15d
movq %rbx, %rdi
callq 0x2f35e
movq 0x28(%r12), %rax
movslq %ebp, %rcx
movq (%rax,%rcx,8), %rdx
movslq %r15d, %rsi
movq 0x40(%rsp), %r15
addsd (%rdx,%rsi,8), %xmm0
movsd %xmm0, (%rdx,%rsi,8)
movq (%r15,%rcx,8), %rcx
incl (%rcx,%rsi,4)
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
jne 0x73435
movslq (%r14), %rsi
testq %rsi, %rsi
jle 0x73bc7
xorl %ecx, %ecx
movq (%r15,%rcx,8), %rdx
xorl %edi, %edi
movl (%rdx,%rdi,4), %r8d
testl %r8d, %r8d
je 0x7352c
xorps %xmm0, %xmm0
cvtsi2sd %r8d, %xmm0
movq (%rax,%rcx,8), %r8
movsd (%r8,%rdi,8), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%r8,%rdi,8)
incq %rdi
cmpq %rdi, %rsi
jne 0x73507
incq %rcx
cmpq %rsi, %rcx
jne 0x73501
testl %esi, %esi
leaq 0x6232b(%rip), %rax     # 0xd5870
jle 0x7392d
movl $0xffffffff, 0xa4(%rsp) # imm = 0xFFFFFFFF
xorl %ebx, %ebx
testl %esi, %esi
jle 0x73910
movq $-0x1, %rcx
xorl %ebp, %ebp
movq %rbx, 0x60(%rsp)
movq (%r15,%rbx,8), %rax
cmpl $0x0, (%rax,%rbp,4)
jne 0x738fe
movl $0x0, 0x78(%rsp)
xorpd %xmm0, %xmm0
movsd %xmm0, 0x38(%rsp)
movl $0x3, 0x80(%rsp)
movl 0xa4(%rsp), %eax
movq %rax, 0x48(%rsp)
movl $0x1, %eax
movq %rcx, 0xb0(%rsp)
movq %rcx, 0x98(%rsp)
movq %rbp, 0xa8(%rsp)
movq %rbp, %r13
subq %rax, %r13
leaq (%rax,%rbp), %rcx
movq %rcx, 0x50(%rsp)
cmpq %rcx, %r13
movq %rax, 0x68(%rsp)
jle 0x735e8
movl $0x0, 0x58(%rsp)
jmp 0x73689
movq %rbx, %rbp
subq %rax, %rbp
movl $0x0, 0x58(%rsp)
movl 0x80(%rsp), %r15d
movq 0x98(%rsp), %rbx
movl (%r14), %edx
decl %edx
movl %ebp, %edi
xorl %esi, %esi
callq 0x39a78
testl %eax, %eax
je 0x7366b
movl (%r14), %edx
decl %edx
movl %ebx, %edi
xorl %esi, %esi
callq 0x39a78
testl %eax, %eax
je 0x7366b
movq 0x40(%rsp), %rax
movq (%rax,%rbp,8), %rax
movl (%rax,%rbx,4), %eax
testl %eax, %eax
je 0x7366b
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movq 0x28(%r12), %rcx
movq (%rcx,%rbp,8), %rcx
mulsd (%rcx,%rbx,8), %xmm0
movsd 0x38(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x38(%rsp)
addl %eax, 0x78(%rsp)
movl $0x1, 0x58(%rsp)
incq %rbx
decl %r15d
jne 0x73606
cmpq 0x50(%rsp), %r13
jle 0x73692
movq 0x40(%rsp), %r15
movq 0x60(%rsp), %rbx
movq 0x68(%rsp), %rax
leaq (%rax,%rbx), %rbp
jmp 0x7372c
movq 0x60(%rsp), %rax
movq 0x68(%rsp), %rcx
leaq (%rcx,%rax), %rbp
movl 0x80(%rsp), %r15d
movq 0x98(%rsp), %rbx
movl (%r14), %edx
decl %edx
movl %ebp, %edi
xorl %esi, %esi
callq 0x39a78
testl %eax, %eax
je 0x73715
movl (%r14), %edx
decl %edx
movl %ebx, %edi
xorl %esi, %esi
callq 0x39a78
testl %eax, %eax
je 0x73715
movq 0x40(%rsp), %rax
movq (%rax,%rbp,8), %rax
movl (%rax,%rbx,4), %eax
testl %eax, %eax
je 0x73715
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movq 0x28(%r12), %rcx
movq (%rcx,%rbp,8), %rcx
mulsd (%rcx,%rbx,8), %xmm0
movsd 0x38(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x38(%rsp)
addl %eax, 0x78(%rsp)
movl $0x1, 0x58(%rsp)
incq %rbx
decl %r15d
jne 0x736b0
movq 0x40(%rsp), %r15
movq 0x60(%rsp), %rbx
movq 0x68(%rsp), %rax
movq %rbx, %rcx
subq %rax, %rcx
cmpq %rbp, %rcx
jg 0x737e9
movq %rcx, 0xb8(%rsp)
movslq 0x48(%rsp), %r12
xorl %r15d, %r15d
movq %r12, %rbx
movl (%r14), %edx
decl %edx
movl %r13d, %edi
xorl %esi, %esi
callq 0x39a78
testl %eax, %eax
je 0x737c1
movl (%r14), %edx
decl %edx
movq 0x48(%rsp), %rax
leal (%rax,%r15), %edi
xorl %esi, %esi
callq 0x39a78
testl %eax, %eax
je 0x737c1
movq 0x40(%rsp), %rax
movq (%rax,%rbx,8), %rax
movl (%rax,%r13,4), %eax
testl %eax, %eax
je 0x737c1
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movq 0x70(%rsp), %rcx
movq 0x28(%rcx), %rcx
movq (%rcx,%rbx,8), %rcx
mulsd (%rcx,%r13,8), %xmm0
movsd 0x38(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x38(%rsp)
addl %eax, 0x78(%rsp)
movl $0x1, 0x58(%rsp)
incq %rbx
incl %r15d
cmpl %r15d, 0x80(%rsp)
jne 0x7374e
cmpq %rbp, 0xb8(%rsp)
movq 0x40(%rsp), %r15
jle 0x737f6
movq 0x60(%rsp), %rbx
movq 0xa8(%rsp), %rbp
jmp 0x7389e
xorl %r13d, %r13d
movq 0x60(%rsp), %rbx
movq 0xa8(%rsp), %rbp
movq 0x50(%rsp), %rdi
movl (%r14), %edx
decl %edx
xorl %esi, %esi
callq 0x39a78
testl %eax, %eax
je 0x73885
movl (%r14), %edx
decl %edx
movq 0x48(%rsp), %rax
leal (%rax,%r13), %edi
xorl %esi, %esi
callq 0x39a78
testl %eax, %eax
je 0x73885
movq (%r15,%r12,8), %rax
movq 0x50(%rsp), %rdi
movl (%rax,%rdi,4), %eax
testl %eax, %eax
je 0x7388a
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movq 0x70(%rsp), %rcx
movq 0x28(%rcx), %rcx
movq (%rcx,%r12,8), %rcx
movq 0x50(%rsp), %rdx
mulsd (%rcx,%rdx,8), %xmm0
movq 0x50(%rsp), %rdi
movsd 0x38(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x38(%rsp)
addl %eax, 0x78(%rsp)
movl $0x1, 0x58(%rsp)
jmp 0x7388a
movq 0x50(%rsp), %rdi
incq %r12
incl %r13d
cmpl %r13d, 0x80(%rsp)
jne 0x7380b
movq 0x68(%rsp), %rax
incq %rax
decq 0x98(%rsp)
movq 0x48(%rsp), %rcx
decl %ecx
movq %rcx, 0x48(%rsp)
addl $0x2, 0x80(%rsp)
cmpl $0x0, 0x58(%rsp)
movq 0x70(%rsp), %r12
je 0x735c2
xorps %xmm0, %xmm0
cvtsi2sdl 0x78(%rsp), %xmm0
movsd 0x38(%rsp), %xmm1
divsd %xmm0, %xmm1
movq 0x28(%r12), %rax
movq (%rax,%rbx,8), %rax
movsd %xmm1, (%rax,%rbp,8)
movl (%r14), %esi
movq 0xb0(%rsp), %rcx
incq %rbp
movslq %esi, %rax
incq %rcx
cmpq %rax, %rbp
jl 0x7356e
incq %rbx
movslq %esi, %rax
incl 0xa4(%rsp)
cmpq %rax, %rbx
leaq 0x61f49(%rip), %rax     # 0xd5870
jl 0x73558
jmp 0x73bce
movq (%r13), %rsi
leaq 0xf8(%rsp), %rbx
xorl %edx, %edx
movq %r12, %rcx
movq %rbx, %r8
callq 0x10ecf
movsd (%rbx), %xmm0
subsd (%r12), %xmm0
movslq (%r14), %rdi
cvtsi2sd %edi, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x8(%r12)
leaq 0x3c1a0(%rip), %rdx     # 0xafb0e
movl $0x8, %esi
movl $0x56, %ecx
callq 0x3a1fc
movq %rax, 0x20(%r12)
movslq (%r14), %rdi
leaq 0x364ef(%rip), %rdx     # 0xa9e7b
movl $0x4, %esi
movl $0x57, %ecx
callq 0x3a1fc
movq %rax, %r15
movq (%r13), %rbx
testq %rbx, %rbx
je 0x739f0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2ed6a
subsd (%r12), %xmm0
divsd 0x8(%r12), %xmm0
cvttsd2si %xmm0, %ebp
xorl %eax, %eax
cmpl %ebp, (%r14)
sete %al
subl %eax, %ebp
movq %rbx, %rdi
callq 0x2f35e
movq 0x20(%r12), %rax
movslq %ebp, %rcx
addsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
incl (%r15,%rcx,4)
movq 0x10(%rbx), %rbx
jmp 0x739a2
movslq (%r14), %rsi
testq %rsi, %rsi
movq %r15, 0x68(%rsp)
jle 0x73bc5
xorl %eax, %eax
movl (%r15,%rax,4), %ecx
testl %ecx, %ecx
je 0x73a25
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
movq 0x20(%r12), %rcx
movsd (%rcx,%rax,8), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rcx,%rax,8)
incq %rax
cmpq %rax, %rsi
jne 0x73a03
testl %esi, %esi
jle 0x73bc5
leaq -0x4(%r15), %rax
movq %rax, 0x98(%rsp)
movq %r15, %rax
addq $0x4, %rax
movq %rax, 0x60(%rsp)
movq $-0x1, %rcx
movl $0x1, %ebp
movq $0x0, 0x38(%rsp)
xorl %edx, %edx
cmpl $0x0, (%r15,%rdx,4)
jne 0x73bab
movq %rdx, 0x78(%rsp)
movl $0x0, 0x40(%rsp)
xorpd %xmm0, %xmm0
movsd %xmm0, 0x48(%rsp)
movl $0x8, %ebx
movl %ebp, 0x50(%rsp)
movq 0x60(%rsp), %r13
movq %rcx, 0x58(%rsp)
movq %rcx, %r15
movq 0x98(%rsp), %r12
movl (%r14), %edx
decl %edx
movl %r15d, %edi
xorl %esi, %esi
callq 0x39a78
testl %eax, %eax
je 0x73afb
movq 0x38(%rsp), %rax
movl (%r12,%rax), %eax
testl %eax, %eax
je 0x73afb
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movq 0x70(%rsp), %rcx
movq 0x20(%rcx), %rcx
mulsd (%rcx,%r15,8), %xmm0
movsd 0x48(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x48(%rsp)
addl %eax, 0x40(%rsp)
movl $0x0, 0x80(%rsp)
jmp 0x73b04
movb $0x1, %al
movl %eax, 0x80(%rsp)
movl (%r14), %edx
decl %edx
movl %ebp, %edi
xorl %esi, %esi
callq 0x39a78
testl %eax, %eax
je 0x73b24
movq 0x38(%rsp), %rax
movl (%r13,%rax), %eax
testl %eax, %eax
jne 0x73b45
addq $-0x4, %r12
decq %r15
addq $0x8, %rbx
addq $0x4, %r13
incl %ebp
cmpb $0x0, 0x80(%rsp)
jne 0x73aa4
jmp 0x73b73
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movq 0x70(%rsp), %rcx
addq 0x20(%rcx), %rbx
movq 0x38(%rsp), %rcx
mulsd (%rbx,%rcx,2), %xmm0
movsd 0x48(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x48(%rsp)
addl %eax, 0x40(%rsp)
xorps %xmm0, %xmm0
cvtsi2sdl 0x40(%rsp), %xmm0
movsd 0x48(%rsp), %xmm1
divsd %xmm0, %xmm1
movq 0x70(%rsp), %r12
movq 0x20(%r12), %rax
movq 0x78(%rsp), %rdx
movsd %xmm1, (%rax,%rdx,8)
movl (%r14), %esi
movq 0x68(%rsp), %r15
movq 0x58(%rsp), %rcx
movl 0x50(%rsp), %ebp
incq %rdx
movslq %esi, %rax
addq $0x4, 0x38(%rsp)
incq %rcx
incl %ebp
cmpq %rax, %rdx
jl 0x73a64
jmp 0x73bc7
leaq 0x61ca2(%rip), %rax     # 0xd5870
movq (%rax), %rax
cmpl $0x3, 0x1bc(%rax)
jl 0x73be4
movq %r15, %rdi
callq 0x3a14b
jmp 0x73bee
movq 0x68(%rsp), %rdi
callq 0x3a180
movq %r12, %rax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq