// File: /workspace/github_c_makefile_star2_O0/georgeweigt[P]sassafras/sassafras.c
// Function: proc_reg_compute_mse
void
proc_reg_compute_mse(void)
{
	int i;
	double d;

	dfm = npar - 1;
	dfe = nrow - npar;
	dft = nrow - 1;

	ybar = 0;

	for (i = 0; i < nrow; i++)
		ybar += (Y[i] - ybar) / (i + 1);

	ssr = 0;
	sse = 0;
	sst = 0;

	for (i = 0; i < nrow; i++) {

		d = Yhat[i] - ybar;
		ssr += d * d;

		d = Y[i] - Yhat[i];
		sse += d * d;

		d = Y[i] - ybar;
		sst += d * d;
	}

	mse = sse / dfe;

	rootmse = sqrt(mse);

	msr = ssr / dfm;

	fval = msr / mse;

	pval = 1.0 - fdist(fval, dfm, dfe);

	rsquare = 1.0 - sse / sst;

	adjrsq = 1.0 - dft / dfe * sse / sst;

	cv = 100.0 * rootmse / ybar;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl 0xb4da(%rip), %eax      # 0x18a38
subl $0x1, %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0xc643(%rip)     # 0x19bb0
movl 0xc24d(%rip), %eax      # 0x197c0
subl 0xb4bf(%rip), %eax      # 0x18a38
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0xb4bb(%rip)     # 0x18a40
movl 0xc235(%rip), %eax      # 0x197c0
subl $0x1, %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0xc61e(%rip)     # 0x19bb8
xorps %xmm0, %xmm0
movsd %xmm0, 0xb4f3(%rip)     # 0x18a98
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
cmpl 0xc20b(%rip), %eax      # 0x197c0
jge 0xd5f8
movq 0xb512(%rip), %rax      # 0x18ad0
movslq -0x4(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
subsd 0xb4c9(%rip), %xmm0     # 0x18a98
movl -0x4(%rbp), %eax
addl $0x1, %eax
cvtsi2sd %eax, %xmm1
divsd %xmm1, %xmm0
addsd 0xb4b3(%rip), %xmm0     # 0x18a98
movsd %xmm0, 0xb4ab(%rip)     # 0x18a98
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0xd5ac
xorps %xmm0, %xmm0
movsd %xmm0, 0xb45d(%rip)     # 0x18a60
xorps %xmm0, %xmm0
movsd %xmm0, 0xb43a(%rip)     # 0x18a48
xorps %xmm0, %xmm0
movsd %xmm0, 0xc5a7(%rip)     # 0x19bc0
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
cmpl 0xc197(%rip), %eax      # 0x197c0
jge 0xd702
movq 0xb4a2(%rip), %rax      # 0x18ad8
movslq -0x4(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
subsd 0xb451(%rip), %xmm0     # 0x18a98
movsd %xmm0, -0x10(%rbp)
movsd -0x10(%rbp), %xmm0
movsd -0x10(%rbp), %xmm2
movsd 0xb402(%rip), %xmm1     # 0x18a60
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0xb3f2(%rip)     # 0x18a60
movq 0xb45b(%rip), %rax      # 0x18ad0
movslq -0x4(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0xb453(%rip), %rax      # 0x18ad8
movslq -0x4(%rbp), %rcx
subsd (%rax,%rcx,8), %xmm0
movsd %xmm0, -0x10(%rbp)
movsd -0x10(%rbp), %xmm0
movsd -0x10(%rbp), %xmm2
movsd 0xb3a3(%rip), %xmm1     # 0x18a48
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0xb393(%rip)     # 0x18a48
movq 0xb414(%rip), %rax      # 0x18ad0
movslq -0x4(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
subsd 0xb3cb(%rip), %xmm0     # 0x18a98
movsd %xmm0, -0x10(%rbp)
movsd -0x10(%rbp), %xmm0
movsd -0x10(%rbp), %xmm2
movsd 0xc4dc(%rip), %xmm1     # 0x19bc0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0xc4cc(%rip)     # 0x19bc0
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0xd620
movsd 0xb33e(%rip), %xmm0     # 0x18a48
divsd 0xb32e(%rip), %xmm0     # 0x18a40
movsd %xmm0, 0xb336(%rip)     # 0x18a50
movsd 0xb32e(%rip), %xmm0     # 0x18a50
callq 0x21e0
movsd %xmm0, 0xb329(%rip)     # 0x18a58
movsd 0xb329(%rip), %xmm0     # 0x18a60
divsd 0xc471(%rip), %xmm0     # 0x19bb0
movsd %xmm0, 0xb321(%rip)     # 0x18a68
movsd 0xb319(%rip), %xmm0     # 0x18a68
divsd 0xb2f9(%rip), %xmm0     # 0x18a50
movsd %xmm0, 0xb311(%rip)     # 0x18a70
movsd 0xb309(%rip), %xmm0     # 0x18a70
movsd 0xc441(%rip), %xmm1     # 0x19bb0
movsd 0xb2c9(%rip), %xmm2     # 0x18a40
callq 0x9070
movaps %xmm0, %xmm1
movsd 0x1a59(%rip), %xmm0     # 0xf1e0
subsd %xmm1, %xmm0
movsd %xmm0, 0xb2e5(%rip)     # 0x18a78
movsd 0xb2ad(%rip), %xmm1     # 0x18a48
divsd 0xc41d(%rip), %xmm1     # 0x19bc0
movsd 0x1a35(%rip), %xmm0     # 0xf1e0
subsd %xmm1, %xmm0
movsd %xmm0, 0xb2d1(%rip)     # 0x18a88
movsd 0xc3f9(%rip), %xmm1     # 0x19bb8
divsd 0xb279(%rip), %xmm1     # 0x18a40
mulsd 0xb279(%rip), %xmm1     # 0x18a48
divsd 0xc3e9(%rip), %xmm1     # 0x19bc0
movsd 0x1a01(%rip), %xmm0     # 0xf1e0
subsd %xmm1, %xmm0
movsd %xmm0, 0xb2a5(%rip)     # 0x18a90
movsd 0x1a1d(%rip), %xmm0     # 0xf210
mulsd 0xb25d(%rip), %xmm0     # 0x18a58
divsd 0xb295(%rip), %xmm0     # 0x18a98
movsd %xmm0, 0xb295(%rip)     # 0x18aa0
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)