// File: /workspace/github_c_makefile_star2_O1/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 $0x18, %rsp
movl 0xd787(%rip), %eax      # 0x143e8
leal (%rax,%rax,2), %edi
shll $0x4, %edi
addl $0x30, %edi
callq 0x2bda
movq %rax, %rbx
leaq 0x4be1(%rip), %rdi      # 0xb85a
callq 0x2210
movq %rax, (%rbx)
leaq 0x4bd9(%rip), %rdi      # 0xb861
callq 0x2210
movq %rax, 0x8(%rbx)
leaq 0x4c2c(%rip), %rdi      # 0xb8c4
callq 0x2210
movq %rax, 0x10(%rbx)
leaq 0x4bcb(%rip), %rdi      # 0xb873
callq 0x2210
movq %rax, 0x18(%rbx)
leaq 0x4bc7(%rip), %rdi      # 0xb87f
callq 0x2210
movq %rax, 0x20(%rbx)
leaq 0x4bbf(%rip), %rdi      # 0xb887
callq 0x2210
movq %rax, 0x28(%rbx)
movl 0xd711(%rip), %esi      # 0x143e8
testl %esi, %esi
jle 0x6ebb
movq %rbx, -0x40(%rbp)
addq $0x58, %rbx
leaq 0xdfb2(%rip), %r14      # 0x14ca0
xorl %r12d, %r12d
xorl %r13d, %r13d
movq %r14, -0x38(%rbp)
leaq 0xda21(%rip), %rax      # 0x14720
movslq (%r12,%rax), %rax
movq 0xd1be(%rip), %rcx      # 0x13ec8
leaq (%rax,%rax,4), %rax
movq 0x20(%rcx,%rax,8), %rdi
callq 0x2210
movq %rax, -0x28(%rbx)
leaq 0xdddd(%rip), %r15      # 0x14b00
movl (%r12,%r15), %ecx
movl $0xfa0, %esi            # imm = 0xFA0
leaq 0xc18d(%rip), %r14      # 0x12ec0
movq %r14, %rdi
leaq 0x4717(%rip), %rdx      # 0xb454
xorl %eax, %eax
callq 0x20e0
movq %r14, %rdi
callq 0x2210
movq %rax, -0x20(%rbx)
cmpl $0x0, (%r12,%r15)
je 0x6e5e
movq %r14, %r15
movq -0x38(%rbp), %r14
movsd (%r14), %xmm0
movl $0xfa0, %esi            # imm = 0xFA0
movq %r15, %rdi
leaq 0x4632(%rip), %rdx      # 0xb3a8
movb $0x1, %al
callq 0x20e0
movq %r15, %rdi
callq 0x2210
movq %rax, -0x18(%rbx)
movsd (%r14), %xmm0
leaq 0xdd6b(%rip), %r15      # 0x14b00
xorps %xmm1, %xmm1
cvtsi2sdl (%r12,%r15), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x30(%rbp)
movl $0xfa0, %esi            # imm = 0xFA0
leaq 0xc10d(%rip), %r15      # 0x12ec0
movq %r15, %rdi
leaq 0x45eb(%rip), %rdx      # 0xb3a8
movb $0x1, %al
callq 0x20e0
movq %r15, %rdi
callq 0x2210
movq %rax, -0x10(%rbx)
movsd -0x30(%rbp), %xmm0
divsd 0xdc83(%rip), %xmm0     # 0x14a60
movsd %xmm0, -0x30(%rbp)
movl $0xfa0, %esi            # imm = 0xFA0
movq %r15, %rdi
leaq 0x4593(%rip), %rdx      # 0xb384
movb $0x1, %al
callq 0x20e0
movq %r15, %rdi
callq 0x2210
movq %rax, -0x8(%rbx)
leaq 0xdcf5(%rip), %rax      # 0x14b00
xorps %xmm1, %xmm1
cvtsi2sdl (%r12,%rax), %xmm1
movl 0xdc2a(%rip), %eax      # 0x14a44
subl 0xdc28(%rip), %eax      # 0x14a48
cvtsi2sd %eax, %xmm2
movsd -0x30(%rbp), %xmm0
callq 0x7339
movsd 0x44c2(%rip), %xmm1     # 0xb2f8
subsd %xmm0, %xmm1
movl $0xfa0, %esi            # imm = 0xFA0
movq %r15, %rdi
leaq 0x4547(%rip), %rdx      # 0xb390
movapd %xmm1, %xmm0
movb $0x1, %al
callq 0x20e0
movq %r15, %rdi
callq 0x2210
jmp 0x6e95
leaq 0x4a68(%rip), %r14      # 0xb8cd
movq %r14, %rdi
callq 0x2210
movq %rax, -0x18(%rbx)
movq %r14, %rdi
callq 0x2210
movq %rax, -0x10(%rbx)
movq %r14, %rdi
callq 0x2210
movq %rax, -0x8(%rbx)
movq %r14, %rdi
callq 0x2210
movq -0x38(%rbp), %r14
incq %r13
movq %rax, (%rbx)
movslq 0xd546(%rip), %rsi      # 0x143e8
addq $0x8, %r14
addq $0x4, %r12
addq $0x30, %rbx
cmpq %rsi, %r13
jl 0x6cf4
movq -0x40(%rbp), %rbx
movb $0x1, 0xbffe(%rip)      # 0x12ec0
leaq 0xbff7(%rip), %rcx      # 0x12ec0
incl %esi
movl $0x0, 0xbfec(%rip)      # 0x12ec1
movb $0x0, 0xbfe9(%rip)      # 0x12ec5
movq %rbx, %rdi
movl $0x6, %edx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4767