// File: /workspace/github_c_makefile_star2_O2/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
movslq 0xbce6(%rip), %rax      # 0x14af0
movq %rax, -0x48(%rbp)
incl %eax
movl %eax, -0x34(%rbp)
imull $0x28, %eax, %edi
callq 0x2a9b
movq %rax, %r12
leaq 0x269e(%rip), %rdi      # 0xb4c3
callq 0x2210
movq %rax, (%r12)
leaq 0x2c1b(%rip), %rdi      # 0xba50
callq 0x2210
movq %rax, 0x8(%r12)
leaq 0x2b79(%rip), %rdi      # 0xb9bf
callq 0x2210
movq %rax, 0x10(%r12)
leaq 0x2ab1(%rip), %rdi      # 0xb908
callq 0x2210
movq %rax, 0x18(%r12)
leaq 0x2bf1(%rip), %rdi      # 0xba59
callq 0x2210
movq %rax, 0x20(%r12)
cmpl $0x0, 0xcb8f(%rip)      # 0x15a08
je 0x8e7f
pushq $0x1
jmp 0x8e92
leaq 0x2bdc(%rip), %rdi      # 0xba62
callq 0x2210
movq %rax, 0x28(%r12)
pushq $0x2
popq %r14
leaq -0xc0(%rbp), %r15
xorl %r13d, %r13d
movq %r12, -0x40(%rbp)
movslq 0xcb57(%rip), %rax      # 0x15a00
cmpq %rax, %r13
jge 0x8f72
leaq 0xb867(%rip), %rax      # 0x14720
movslq (%rax,%r13,4), %rax
movq 0xb004(%rip), %rcx      # 0x13ec8
imulq $0x28, %rax, %rbx
leaq (%rcx,%rbx), %rax
addq $0x20, %rax
cmpq $0x0, 0x10(%rax)
je 0x8f4f
movq %r13, -0x50(%rbp)
movl 0xc(%rax), %r13d
testl %r13d, %r13d
movl $0x0, %eax
cmovlel %eax, %r13d
movq %r14, -0x30(%rbp)
movslq %r14d, %rax
imulq $0x28, %rax, %r14
addq %r12, %r14
xorl %r12d, %r12d
cmpq %r12, %r13
je 0x8f3e
movq 0xafc0(%rip), %rax      # 0x13ec8
movq 0x20(%rax,%rbx), %rcx
movq 0x30(%rax,%rbx), %rax
movq (%rax,%r12,8), %r8
movq %r15, %rdi
pushq $0x64
popq %rsi
leaq 0x2b49(%rip), %rdx      # 0xba6c
xorl %eax, %eax
callq 0x20e0
movq %r15, %rdi
callq 0x2210
movq %rax, (%r14)
incq %r12
addq $0x28, %r14
jmp 0x8efc
movq -0x30(%rbp), %r14
addl %r12d, %r14d
movq -0x40(%rbp), %r12
movq -0x50(%rbp), %r13
jmp 0x8f6a
movq (%rax), %rdi
callq 0x2210
leal (%r14,%r14,4), %ecx
movl %r14d, %edx
incl %edx
movslq %ecx, %rcx
movq %rax, (%r12,%rcx,8)
movl %edx, %r14d
incq %r13
jmp 0x8ea2
xorl %r15d, %r15d
movq -0x48(%rbp), %rax
testl %eax, %eax
movl $0x0, %ecx
cmovgl %eax, %ecx
movq %rcx, -0x30(%rbp)
movq %r12, %r13
addq $0x48, %r13
xorl %r14d, %r14d
cmpq %r15, -0x30(%rbp)
je 0x90bb
movq 0xcbfe(%rip), %rax      # 0x15ba0
cmpl $0x0, (%rax,%r15,4)
je 0x8fe5
leaq 0x28ed(%rip), %rbx      # 0xb89d
movq %rbx, %rdi
callq 0x2210
movq %rax, -0x18(%r13)
movq %rbx, %rdi
callq 0x2210
movq %rax, -0x10(%r13)
movq %rbx, %rdi
callq 0x2210
movq %rax, -0x8(%r13)
movq %rbx, %rdi
callq 0x2210
movq %rax, (%r13)
jmp 0x90af
movq 0xbad4(%rip), %rax      # 0x14ac0
movslq %r14d, %r14
movsd (%rax,%r14,8), %xmm0
leaq -0xc0(%rbp), %rbx
movq %rbx, %rdi
pushq $0x64
popq %rsi
movq %r14, %r12
leaq 0x235a(%rip), %r14      # 0xb366
movq %r14, %rdx
movb $0x1, %al
callq 0x20e0
movq %rbx, %rdi
callq 0x2210
movq %rax, -0x18(%r13)
movq 0xcb7f(%rip), %rax      # 0x15ba8
movsd (%rax,%r12,8), %xmm0
movq %rbx, %rdi
pushq $0x64
popq %rsi
movq %r14, %rdx
movq %r12, %r14
movb $0x1, %al
callq 0x20e0
movq %rbx, %rdi
callq 0x2210
movq %rax, -0x10(%r13)
movq 0xcb5b(%rip), %rax      # 0x15bb0
movsd (%rax,%r12,8), %xmm0
movq %rbx, %rdi
pushq $0x64
popq %r12
movq %r12, %rsi
leaq 0x22e8(%rip), %rdx      # 0xb354
movb $0x1, %al
callq 0x20e0
movq %rbx, %rdi
callq 0x2210
movq %rax, -0x8(%r13)
movq 0xcb32(%rip), %rax      # 0x15bb8
movsd (%rax,%r14,8), %xmm0
movq %rbx, %rdi
movq %r12, %rsi
leaq 0x22c7(%rip), %rdx      # 0xb360
movb $0x1, %al
callq 0x20e0
movq %rbx, %rdi
callq 0x2210
movq %rax, (%r13)
incl %r14d
addq $0x28, %r13
incq %r15
jmp 0x8f91
leaq -0xc0(%rbp), %rcx
movb $0x1, (%rcx)
andl $0x0, 0x1(%rcx)
pushq $0x5
popq %rdx
movq -0x40(%rbp), %r12
movq %r12, %rdi
movl -0x34(%rbp), %esi
callq 0x4491
xorl %ebx, %ebx
movq %r12, %r14
cmpq -0x48(%rbp), %rbx
jg 0x9106
xorl %r15d, %r15d
cmpq $0x5, %r15
je 0x90fd
movq (%r14,%r15,8), %rdi
callq 0x2040
incq %r15
jmp 0x90e9
incq %rbx
addq $0x28, %r14
jmp 0x90e0
movq %r12, %rdi
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2040