// File: /workspace/github_c_makefile_star2_O2/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
imull $0x30, 0xdd4c(%rip), %edi # 0x143e8
addl $0x30, %edi
callq 0x2a9b
movq %rax, %r12
leaq 0x517c(%rip), %rdi      # 0xb82a
callq 0x2210
movq %rax, (%r12)
leaq 0x5173(%rip), %rdi      # 0xb831
callq 0x2210
movq %rax, 0x8(%r12)
leaq 0x51c5(%rip), %rdi      # 0xb894
callq 0x2210
movq %rax, 0x10(%r12)
leaq 0x5163(%rip), %rdi      # 0xb843
callq 0x2210
movq %rax, 0x18(%r12)
leaq 0x515e(%rip), %rdi      # 0xb84f
callq 0x2210
movq %rax, 0x20(%r12)
leaq 0x5155(%rip), %rdi      # 0xb857
callq 0x2210
movq %r12, -0x48(%rbp)
addq $0x50, %r12
leaq 0xe58a(%rip), %r15      # 0x14ca0
leaq 0xe3e3(%rip), %r14      # 0x14b00
leaq 0xc79c(%rip), %r13      # 0x12ec0
xorl %ebx, %ebx
xorl %ecx, %ecx
movq %rax, -0x28(%r12)
movslq 0xdcb4(%rip), %rsi      # 0x143e8
cmpq %rsi, %rcx
jge 0x68e6
movq %rcx, -0x58(%rbp)
leaq 0xdfd8(%rip), %rax      # 0x14720
movslq (%rbx,%rax), %rax
movq 0xd775(%rip), %rcx      # 0x13ec8
imulq $0x28, %rax, %rax
movq 0x20(%rcx,%rax), %rdi
callq 0x2210
movq %rax, -0x20(%r12)
movl (%rbx,%r14), %ecx
movl $0xfa0, %esi            # imm = 0xFA0
movq %r13, %rdi
leaq 0x4cab(%rip), %rdx      # 0xb424
xorl %eax, %eax
callq 0x20e0
movq %r13, %rdi
callq 0x2210
movq %rax, -0x18(%r12)
cmpl $0x0, (%rbx,%r14)
je 0x6878
movsd (%r15), %xmm0
movl $0xfa0, %esi            # imm = 0xFA0
movq %r13, %rdi
leaq 0x4bcc(%rip), %rdx      # 0xb378
movb $0x1, %al
callq 0x20e0
movq %r13, %rdi
callq 0x2210
movq %rax, -0x50(%rbp)
movsd (%r15), %xmm0
cvtsi2sdl (%rbx,%r14), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x30(%rbp)
movl $0xfa0, %esi            # imm = 0xFA0
movq %r13, %rdi
leaq 0x4b96(%rip), %rdx      # 0xb378
movb $0x1, %al
callq 0x20e0
movq %r13, %rdi
callq 0x2210
movq %rax, -0x40(%rbp)
movsd -0x30(%rbp), %xmm0
divsd 0xe25e(%rip), %xmm0     # 0x14a60
movsd %xmm0, -0x30(%rbp)
movl $0xfa0, %esi            # imm = 0xFA0
movq %r13, %rdi
leaq 0x4b3e(%rip), %rdx      # 0xb354
movb $0x1, %al
callq 0x20e0
movq %r13, %rdi
callq 0x2210
movq %rax, -0x38(%rbp)
cvtsi2sdl (%rbx,%r14), %xmm1
movl 0xe20f(%rip), %eax      # 0x14a44
subl 0xe20d(%rip), %eax      # 0x14a48
cvtsi2sd %eax, %xmm2
movsd -0x30(%rbp), %xmm0
callq 0x6cf2
movsd 0x4a77(%rip), %xmm1     # 0xb2c8
subsd %xmm0, %xmm1
movl $0xfa0, %esi            # imm = 0xFA0
movq %r13, %rdi
leaq 0x4afc(%rip), %rdx      # 0xb360
movapd %xmm1, %xmm0
movb $0x1, %al
callq 0x20e0
movq %r13, %rdi
movq -0x50(%rbp), %r13
jmp 0x68a5
leaq 0x501e(%rip), %r14      # 0xb89d
movq %r14, %rdi
callq 0x2210
movq %rax, %r13
movq %r14, %rdi
callq 0x2210
movq %rax, -0x40(%rbp)
movq %r14, %rdi
callq 0x2210
movq %rax, -0x38(%rbp)
movq %r14, %rdi
callq 0x2210
movq %r13, -0x10(%r12)
movq -0x40(%rbp), %rcx
movq %rcx, -0x8(%r12)
movq -0x38(%rbp), %rcx
movq %rcx, (%r12)
addq $0x30, %r12
addq $0x8, %r15
addq $0x4, %rbx
movq -0x58(%rbp), %rcx
incq %rcx
leaq 0xe226(%rip), %r14      # 0x14b00
leaq 0xc5df(%rip), %r13      # 0x12ec0
jmp 0x6728
movb $0x1, 0xc5d3(%rip)      # 0x12ec0
andl $0x0, 0xc5cd(%rip)      # 0x12ec1
leaq 0xc5c5(%rip), %rcx      # 0x12ec0
incl %esi
movb $0x0, 0xc5c1(%rip)      # 0x12ec5
pushq $0x6
popq %rdx
movq -0x48(%rbp), %rdi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4411