// File: /workspace/github_c_makefile_star2_O1/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 $0x88, %rsp
movl 0xb4eb(%rip), %eax      # 0x14af0
movq %rax, -0x40(%rbp)
leal 0x8(,%rax,8), %eax
leal (%rax,%rax,4), %edi
callq 0x2bda
movq %rax, %r14
leaq 0x1ed1(%rip), %rdi      # 0xb4f3
callq 0x2210
movq %rax, (%r14)
leaq 0x244f(%rip), %rdi      # 0xba80
callq 0x2210
movq %rax, 0x8(%r14)
leaq 0x23ae(%rip), %rdi      # 0xb9ef
callq 0x2210
movq %rax, 0x10(%r14)
leaq 0x22e7(%rip), %rdi      # 0xb938
callq 0x2210
movq %rax, 0x18(%r14)
leaq 0x2428(%rip), %rdi      # 0xba89
callq 0x2210
movq %rax, 0x20(%r14)
movl $0x1, %r13d
cmpl $0x0, 0xc391(%rip)      # 0x15a08
jne 0x968f
leaq 0x2412(%rip), %rdi      # 0xba92
callq 0x2210
movq %rax, 0x28(%r14)
movl $0x2, %r13d
cmpl $0x0, 0xc36a(%rip)      # 0x15a00
movq %r14, -0x38(%rbp)
jle 0x9770
leaq -0xb0(%rbp), %r15
xorl %ebx, %ebx
leaq 0xb070(%rip), %rax      # 0x14720
movslq (%rax,%rbx,4), %rax
movq 0xa80d(%rip), %rcx      # 0x13ec8
leaq (%rax,%rax,4), %r12
leaq (%rcx,%r12,8), %rax
addq $0x20, %rax
cmpq $0x0, 0x10(%rax)
je 0x9741
movq %rbx, -0x30(%rbp)
movslq 0xc(%rax), %rbx
testq %rbx, %rbx
jle 0x973b
movq %r13, -0x48(%rbp)
movslq %r13d, %rax
leaq (%rax,%rax,4), %rax
leaq (%r14,%rax,8), %r13
xorl %r14d, %r14d
movq 0xa7d4(%rip), %rax      # 0x13ec8
movq 0x20(%rax,%r12,8), %rcx
movq 0x30(%rax,%r12,8), %rax
movq (%rax,%r14,8), %r8
movl $0x64, %esi
movq %r15, %rdi
leaq 0x238b(%rip), %rdx      # 0xba9c
xorl %eax, %eax
callq 0x20e0
movq %r15, %rdi
callq 0x2210
movq %rax, (%r13)
incq %r14
addq $0x28, %r13
cmpq %r14, %rbx
jne 0x96ed
movq -0x48(%rbp), %r13
addl %r14d, %r13d
movq -0x38(%rbp), %r14
movq -0x30(%rbp), %rbx
jmp 0x975d
movq (%rax), %rdi
callq 0x2210
leal (%r13,%r13,4), %ecx
movl %r13d, %edx
incl %edx
movslq %ecx, %rcx
movq %rax, (%r14,%rcx,8)
movl %edx, %r13d
incq %rbx
movslq 0xc299(%rip), %rax      # 0x15a00
cmpq %rax, %rbx
jl 0x96a9
movq -0x40(%rbp), %rax
leal 0x1(%rax), %ecx
movl %ecx, -0x30(%rbp)
testl %eax, %eax
jle 0x98ab
movq -0x38(%rbp), %r14
addq $0x48, %r14
xorl %r15d, %r15d
leaq -0xb0(%rbp), %r12
xorl %ebx, %ebx
movq 0xc403(%rip), %rax      # 0x15ba0
cmpl $0x0, (%rax,%r15,4)
je 0x97df
leaq 0x2122(%rip), %r13      # 0xb8cd
movq %r13, %rdi
callq 0x2210
movq %rax, -0x18(%r14)
movq %r13, %rdi
callq 0x2210
movq %rax, -0x10(%r14)
movq %r13, %rdi
callq 0x2210
movq %rax, -0x8(%r14)
movq %r13, %rdi
callq 0x2210
movq %rax, (%r14)
jmp 0x989a
movq 0xb2da(%rip), %rax      # 0x14ac0
movslq %ebx, %rbx
movsd (%rax,%rbx,8), %xmm0
movl $0x64, %esi
movq %r12, %rdi
leaq 0x1b99(%rip), %r13      # 0xb396
movq %r13, %rdx
movb $0x1, %al
callq 0x20e0
movq %r12, %rdi
callq 0x2210
movq %rax, -0x18(%r14)
movq 0xc38e(%rip), %rax      # 0x15ba8
movsd (%rax,%rbx,8), %xmm0
movl $0x64, %esi
movq %r12, %rdi
movq %r13, %rdx
movb $0x1, %al
callq 0x20e0
movq %r12, %rdi
callq 0x2210
movq %rax, -0x10(%r14)
movq 0xc36c(%rip), %rax      # 0x15bb0
movsd (%rax,%rbx,8), %xmm0
movl $0x64, %esi
movq %r12, %rdi
leaq 0x1b2c(%rip), %rdx      # 0xb384
movb $0x1, %al
callq 0x20e0
movq %r12, %rdi
callq 0x2210
movq %rax, -0x8(%r14)
movq 0xc346(%rip), %rax      # 0x15bb8
movsd (%rax,%rbx,8), %xmm0
movl $0x64, %esi
movq %r12, %rdi
leaq 0x1b0a(%rip), %rdx      # 0xb390
movb $0x1, %al
callq 0x20e0
movq %r12, %rdi
callq 0x2210
movq %rax, (%r14)
incl %ebx
addq $0x28, %r14
incq %r15
cmpq %r15, -0x40(%rbp)
jne 0x9796
leaq -0xb0(%rbp), %rcx
movb $0x1, (%rcx)
movl $0x0, 0x1(%rcx)
movq -0x38(%rbp), %r13
movq %r13, %rdi
movl -0x30(%rbp), %esi
movl $0x5, %edx
callq 0x47e3
movq -0x40(%rbp), %r12
testl %r12d, %r12d
js 0x9902
incl %r12d
xorl %ebx, %ebx
movq %r13, %r14
xorl %r15d, %r15d
movq (%r14,%r15,8), %rdi
callq 0x2040
incq %r15
cmpq $0x5, %r15
jne 0x98e4
incq %rbx
addq $0x28, %r14
cmpq %r12, %rbx
jne 0x98e1
movq %r13, %rdi
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2040