// File: /workspace/github_c_makefile_star2_O3/georgeweigt[P]sassafras/sassafras.c
// Function: proc_reg_print_parameter_estimates
void
proc_reg_print_parameter_estimates(void)
{
	int i, j, k, m, n, x;
	char buf[100];

	m = ncol + 1;

	char **a = xmalloc(m * 5 * sizeof (char *));

	A(0, 0) = strdup("");
	A(0, 1) = strdup("Estimate");
	A(0, 2) = strdup("Std Err");
	A(0, 3) = strdup("t Value");
	A(0, 4) = strdup("Pr > |t|");

	// variable names

	k = 1;

	if (noint == 0)
		A(k++, 0) = strdup("Intercept");

	for (i = 0; i < num_x; i++) {
		x = xtab[i];
		if (dataset->spec[x].ltab == NULL)
			A(k++, 0) = strdup(dataset->spec[x].name);
		else {
			n = dataset->spec[x].num_levels;
			for (j = 0; j < n; j++) {
				snprintf(buf, sizeof buf, "%s %s", dataset->spec[x].name, dataset->spec[x].ltab[j]);
				A(k++, 0) = strdup(buf);
			}
		}
	}

	k = 0;

	for (i = 1; i < m; i++) {

		if (Z[i - 1]) {
			A(i, 1) = strdup(".");
			A(i, 2) = strdup(".");
			A(i, 3) = strdup(".");
			A(i, 4) = strdup(".");
			continue;
		}

		snprintf(buf, sizeof buf, "%0.5f", B[k]);
		A(i, 1) = strdup(buf);

		snprintf(buf, sizeof buf, "%0.5f", SE[k]);
		A(i, 2) = strdup(buf);

		snprintf(buf, sizeof buf, "%0.2f", TVAL[k]);
		A(i, 3) = strdup(buf);

		snprintf(buf, sizeof buf, "%0.4f", PVAL[k]);
		A(i, 4) = strdup(buf);

		k++;
	}

	buf[0] = 1; // right justify
	buf[1] = 0;
	buf[2] = 0;
	buf[3] = 0;
	buf[4] = 0;

	print_table(a, m, 5, buf);

	for (i = 0; i < m; i++)
		for (j = 0; j < 5; j++)
			free(A(i, j));

	free(a);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movl 0xb4ec(%rip), %ebx      # 0x14b00
leal 0x8(,%rbx,8), %eax
leal (%rax,%rax,4), %edi
callq 0x2bd8
movq %rax, %r14
leaq 0x1e96(%rip), %rdi      # 0xb4c3
callq 0x2220
movq %rax, (%r14)
leaq 0x2414(%rip), %rdi      # 0xba50
callq 0x2220
movq %rax, 0x8(%r14)
leaq 0x2373(%rip), %rdi      # 0xb9bf
callq 0x2220
movq %rax, 0x10(%r14)
leaq 0x22ac(%rip), %rdi      # 0xb908
callq 0x2220
movq %rax, 0x18(%r14)
leaq 0x23ed(%rip), %rdi      # 0xba59
callq 0x2220
movq %rax, 0x20(%r14)
movl $0x1, %r13d
cmpl $0x0, 0xc396(%rip)      # 0x15a18
jne 0x969a
leaq 0x23d7(%rip), %rdi      # 0xba62
callq 0x2220
movq %rax, 0x28(%r14)
movl $0x2, %r13d
movq %rbx, -0x50(%rbp)
leal 0x1(%rbx), %eax
movl %eax, -0x2c(%rbp)
movl 0xc366(%rip), %edx      # 0x15a10
testl %edx, %edx
movq %r14, -0x48(%rbp)
jle 0x978e
leaq -0xc0(%rbp), %r15
xorl %ebx, %ebx
leaq 0xb06a(%rip), %rax      # 0x14730
movslq (%rax,%rbx,4), %rax
movq 0xa807(%rip), %rcx      # 0x13ed8
leaq (%rax,%rax,4), %r12
leaq (%rcx,%r12,8), %rax
addq $0x20, %rax
cmpq $0x0, 0x10(%rax)
je 0x975d
movq %rbx, -0x40(%rbp)
movslq 0xc(%rax), %rbx
testq %rbx, %rbx
jle 0x9757
movq %r13, -0x38(%rbp)
movslq %r13d, %rax
leaq (%rax,%rax,4), %rax
leaq (%r14,%rax,8), %r13
xorl %r14d, %r14d
movq 0xa7ce(%rip), %rax      # 0x13ed8
movq 0x20(%rax,%r12,8), %rcx
movq 0x30(%rax,%r12,8), %rax
movq (%rax,%r14,8), %r8
movl $0x64, %esi
movq %r15, %rdi
leaq 0x2345(%rip), %rdx      # 0xba6c
xorl %eax, %eax
callq 0x20e0
movq %r15, %rdi
callq 0x2220
movq %rax, (%r13)
incq %r14
addq $0x28, %r13
cmpq %r14, %rbx
jne 0x9703
movq -0x38(%rbp), %r13
addl %r14d, %r13d
movl 0xc2bd(%rip), %edx      # 0x15a10
movq -0x48(%rbp), %r14
movq -0x40(%rbp), %rbx
jmp 0x977f
movq (%rax), %rdi
movl %edx, %r12d
callq 0x2220
leal (%r13,%r13,4), %ecx
movl %r13d, %edx
incl %edx
movslq %ecx, %rcx
movq %rax, (%r14,%rcx,8)
movl %edx, %r13d
movl %r12d, %edx
incq %rbx
movslq %edx, %rax
cmpq %rax, %rbx
jl 0x96bf
movl -0x2c(%rbp), %eax
movq %rax, -0x38(%rbp)
cmpl $0x0, -0x50(%rbp)
jle 0x98e1
movq 0xc40a(%rip), %r13      # 0x15bb0
movq -0x48(%rbp), %rbx
addq $0x48, %rbx
movq -0x38(%rbp), %rax
decq %rax
movq %rax, -0x40(%rbp)
xorl %r14d, %r14d
xorl %r15d, %r15d
cmpl $0x0, (%r13,%r14,4)
je 0x9802
leaq 0x20cf(%rip), %r12      # 0xb89d
movq %r12, %rdi
callq 0x2220
movq %rax, -0x18(%rbx)
movq %r12, %rdi
callq 0x2220
movq %rax, -0x10(%rbx)
movq %r12, %rdi
callq 0x2220
movq %rax, -0x8(%rbx)
movq %r12, %rdi
callq 0x2220
movq %rax, (%rbx)
jmp 0x98d0
movq 0xb2c7(%rip), %rax      # 0x14ad0
movslq %r15d, %r15
movsd (%rax,%r15,8), %xmm0
movl $0x64, %esi
leaq -0xc0(%rbp), %r12
movq %r12, %rdi
leaq 0x1b3e(%rip), %r13      # 0xb366
movq %r13, %rdx
movb $0x1, %al
callq 0x20e0
movq %r12, %rdi
callq 0x2220
movq %rax, -0x18(%rbx)
movq 0xc373(%rip), %rax      # 0x15bb8
movsd (%rax,%r15,8), %xmm0
movl $0x64, %esi
movq %r12, %rdi
movq %r13, %rdx
movb $0x1, %al
callq 0x20e0
movq %r12, %rdi
callq 0x2220
movq %rax, -0x10(%rbx)
movq 0xc350(%rip), %rax      # 0x15bc0
movsd (%rax,%r15,8), %xmm0
movl $0x64, %esi
movq %r12, %rdi
leaq 0x1acf(%rip), %rdx      # 0xb354
movb $0x1, %al
callq 0x20e0
movq %r12, %rdi
callq 0x2220
movq %rax, -0x8(%rbx)
movq 0xc329(%rip), %rax      # 0x15bc8
movsd (%rax,%r15,8), %xmm0
movl $0x64, %esi
movq %r12, %rdi
leaq 0x1aac(%rip), %rdx      # 0xb360
movb $0x1, %al
callq 0x20e0
movq %r12, %rdi
callq 0x2220
movq %rax, (%rbx)
incl %r15d
movq 0xc2e0(%rip), %r13      # 0x15bb0
addq $0x28, %rbx
incq %r14
cmpq %r14, -0x40(%rbp)
jne 0x97bf
leaq -0xc0(%rbp), %rcx
movb $0x1, (%rcx)
movl $0x0, 0x1(%rcx)
movq -0x48(%rbp), %r12
movq %r12, %rdi
movl -0x2c(%rbp), %esi
movl $0x5, %edx
callq 0x4789
cmpl $0x0, -0x50(%rbp)
movq -0x38(%rbp), %r13
js 0x9936
xorl %ebx, %ebx
movq %r12, %r14
xorl %r15d, %r15d
movq (%r14,%r15,8), %rdi
callq 0x2040
incq %r15
cmpq $0x5, %r15
jne 0x9918
incq %rbx
addq $0x28, %r14
cmpq %r13, %rbx
jne 0x9915
movq %r12, %rdi
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2040