// File: /workspace/github_c_makefile_star2_O3/georgeweigt[P]sassafras/sassafras.c
// Function: print_anova_table_part3
void
print_anova_table_part3(void)
{
	int i, x;
	double msq, fval, pval;
	char **a;

	a = (char **) xmalloc(6 * (nx + 1) * sizeof (char *));

	A(0, 0) = strdup("Source");
	A(0, 1) = strdup("DF");
	A(0, 2) = strdup("Anova SS");
	A(0, 3) = strdup("Mean Square");
	A(0, 4) = strdup("F Value");
	A(0, 5) = strdup("Pr > F");

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

		x = xtab[i];

		// Source

		A(i + 1, 0) = strdup(dataset->spec[x].name);

		// DF

		snprintf(bigbuf, BIGBUFLEN, "%d", df[i]);
		A(i + 1, 1) = strdup(bigbuf);

		if (df[i] == 0) {
			A(i + 1, 2) = strdup(".");
			A(i + 1, 3) = strdup(".");
			A(i + 1, 4) = strdup(".");
			A(i + 1, 5) = strdup(".");
			continue;
		}

		// Anova SS

		snprintf(bigbuf, BIGBUFLEN, "%0.8f", ss[i]);
		A(i + 1, 2) = strdup(bigbuf);

		// Mean Square

		msq = ss[i] / df[i];

		snprintf(bigbuf, BIGBUFLEN, "%0.8f", msq);
		A(i + 1, 3) = strdup(bigbuf);

		// F Value

		fval = msq / mse;

		snprintf(bigbuf, BIGBUFLEN, "%0.2f", fval);
		A(i + 1, 4) = strdup(bigbuf);

		// Pr > F

		pval = 1 - fdist(fval, df[i], nobs - npar);

		snprintf(bigbuf, BIGBUFLEN, "%0.4f", pval);
		A(i + 1, 5) = strdup(bigbuf);
	}

	bigbuf[0] = 1; // left justify
	bigbuf[1] = 0;
	bigbuf[2] = 0;
	bigbuf[3] = 0;
	bigbuf[4] = 0;
	bigbuf[5] = 0;

	print_table_and_free(a, nx + 1, 6, bigbuf);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl 0xd7a5(%rip), %eax      # 0x143f8
leal (%rax,%rax,2), %edi
shll $0x4, %edi
addl $0x30, %edi
callq 0x2bd8
movq %rax, %r12
leaq 0x4bbf(%rip), %rdi      # 0xb82a
callq 0x2220
movq %rax, (%r12)
leaq 0x4bb6(%rip), %rdi      # 0xb831
callq 0x2220
movq %rax, 0x8(%r12)
leaq 0x4c08(%rip), %rdi      # 0xb894
callq 0x2220
movq %rax, 0x10(%r12)
leaq 0x4ba6(%rip), %rdi      # 0xb843
callq 0x2220
movq %rax, 0x18(%r12)
leaq 0x4ba1(%rip), %rdi      # 0xb84f
callq 0x2220
movq %rax, 0x20(%r12)
leaq 0x4b98(%rip), %rdi      # 0xb857
callq 0x2220
movq %rax, 0x28(%r12)
movl 0xd729(%rip), %esi      # 0x143f8
testl %esi, %esi
jle 0x6ed8
movq %r12, -0x50(%rbp)
addq $0x58, %r12
leaq 0xdfca(%rip), %rbx      # 0x14cb0
leaq 0xde23(%rip), %r13      # 0x14b10
xorl %r14d, %r14d
xorl %r15d, %r15d
movq %rbx, -0x48(%rbp)
leaq 0xda32(%rip), %rax      # 0x14730
movslq (%r14,%rax), %rax
movq 0xd1cf(%rip), %rcx      # 0x13ed8
leaq (%rax,%rax,4), %rax
movq 0x20(%rcx,%rax,8), %rdi
callq 0x2220
movq %rax, -0x28(%r12)
movl (%r14,%r13), %ecx
movl $0xfa0, %esi            # imm = 0xFA0
leaq 0xc1a4(%rip), %rbx      # 0x12ed0
movq %rbx, %rdi
leaq 0x46ee(%rip), %rdx      # 0xb424
xorl %eax, %eax
callq 0x20e0
movq %rbx, %rdi
callq 0x2220
movq %rax, -0x20(%r12)
cmpl $0x0, (%r14,%r13)
je 0x6e5d
movq %rbx, %rdi
movq -0x48(%rbp), %rbx
movsd (%rbx), %xmm0
movl $0xfa0, %esi            # imm = 0xFA0
leaq 0x460c(%rip), %rdx      # 0xb378
movb $0x1, %al
callq 0x20e0
leaq 0xc156(%rip), %rdi      # 0x12ed0
callq 0x2220
movq %rax, -0x40(%rbp)
movsd (%rbx), %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl (%r14,%r13), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x30(%rbp)
movl $0xfa0, %esi            # imm = 0xFA0
leaq 0xc12b(%rip), %rdi      # 0x12ed0
leaq 0x45cc(%rip), %rdx      # 0xb378
movb $0x1, %al
callq 0x20e0
leaq 0xc116(%rip), %rdi      # 0x12ed0
callq 0x2220
movq %rax, -0x38(%rbp)
movsd -0x30(%rbp), %xmm0
divsd 0xdca0(%rip), %xmm0     # 0x14a70
movsd %xmm0, -0x30(%rbp)
movl $0xfa0, %esi            # imm = 0xFA0
leaq 0xc0ef(%rip), %rdi      # 0x12ed0
leaq 0x456c(%rip), %rdx      # 0xb354
movb $0x1, %al
callq 0x20e0
leaq 0xc0da(%rip), %rdi      # 0x12ed0
callq 0x2220
movq %rax, -0x58(%rbp)
xorps %xmm1, %xmm1
cvtsi2sdl (%r14,%r13), %xmm1
movl 0xdc46(%rip), %eax      # 0x14a54
subl 0xdc44(%rip), %eax      # 0x14a58
cvtsi2sd %eax, %xmm2
movsd -0x30(%rbp), %xmm0
callq 0x7353
movsd 0x449e(%rip), %xmm1     # 0xb2c8
subsd %xmm0, %xmm1
movl $0xfa0, %esi            # imm = 0xFA0
leaq 0xc096(%rip), %r13      # 0x12ed0
movq %r13, %rdi
leaq 0x451c(%rip), %rdx      # 0xb360
movapd %xmm1, %xmm0
movb $0x1, %al
callq 0x20e0
movq %r13, %rdi
movq -0x58(%rbp), %r13
callq 0x2220
jmp 0x6e93
leaq 0x4a39(%rip), %rbx      # 0xb89d
movq %rbx, %rdi
callq 0x2220
movq %rax, -0x40(%rbp)
movq %rbx, %rdi
callq 0x2220
movq %rax, -0x38(%rbp)
movq %rbx, %rdi
callq 0x2220
movq %rax, %r13
movq %rbx, %rdi
callq 0x2220
movq -0x48(%rbp), %rbx
incq %r15
movq -0x40(%rbp), %rcx
movq %rcx, -0x18(%r12)
movq -0x38(%rbp), %rcx
movq %rcx, -0x10(%r12)
movq %r13, -0x8(%r12)
movq %rax, (%r12)
movslq 0xd540(%rip), %rsi      # 0x143f8
addq $0x8, %rbx
addq $0x4, %r14
addq $0x30, %r12
cmpq %rsi, %r15
leaq 0xdc42(%rip), %r13      # 0x14b10
jl 0x6cf3
movq -0x50(%rbp), %r12
movb $0x1, 0xbff1(%rip)      # 0x12ed0
leaq 0xbfea(%rip), %rcx      # 0x12ed0
incl %esi
movl $0x0, 0xbfdf(%rip)      # 0x12ed1
movb $0x0, 0xbfdc(%rip)      # 0x12ed5
movq %r12, %rdi
movl $0x6, %edx
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x470d