// File: /workspace/github_c_makefile_star2_O0/georgeweigt[P]sassafras/sassafras.c
// Function: run_proc_print
void
run_proc_print(void)
{
	int i, j, nobs, w, x;
	double d;
	char **a, *s;

	print_title();

	nobs = dataset->nobs;

	// print all variables if not specified with VAR

	if (nvar == 0) {
		nvar = dataset->nvar;
		for (i = 0; i < nvar; i++)
			var[i] = i;
	}

	// create array

	a = (char **) xmalloc((nobs + 1) * (nvar + 1) * sizeof (char *));

	// column names

	A(0, 0) = strdup("Obs");

	for (j = 0; j < nvar; j++) {
		x = var[j];
		A(0, j + 1) = strdup(dataset->spec[x].name);
	}

	// for each row

	for (i = 0; i < nobs; i++) {

		// observation number

		snprintf(bigbuf, BIGBUFLEN, "%d", i + 1);

		A(i + 1, 0) = strdup(bigbuf);

		// for each variable

		for (j = 0; j < nvar; j++) {

			x = var[j];

			d = dataset->spec[x].v[i];

			if (isnan(d))
				s = ".";
			else {
				if (dataset->spec[x].ltab == NULL) {
					w = dataset->spec[x].w;
					snprintf(bigbuf, BIGBUFLEN, fmt[w], d);
					s = bigbuf;
				} else
					s = dataset->spec[x].ltab[(int) d];
			}

			A(i + 1, j + 1) = strdup(s);
		}
	}

	s = (char *) xmalloc(nvar + 1);

	s[0] = 0; // observation numbers are right justified

	for (j = 0; j < nvar; j++) {
		x = var[j];
		if (dataset->spec[x].ltab == NULL)
			s[j + 1] = 0;
		else
			s[j + 1] = 1;
	}

	print_table(a, nobs + 1, nvar + 1, s);

	free(s);

	for (i = 0; i < nobs + 1; i++)
		for (j = 0; j < nvar + 1; j++)
			free(A(i, j));

	free(a);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
callq 0x57d0
movq 0xccb4(%rip), %rax      # 0x17eb8
movl 0x14(%rax), %eax
movl %eax, -0xc(%rbp)
cmpl $0x0, 0xd19f(%rip)      # 0x183b0
jne 0xb253
movq 0xcc9e(%rip), %rax      # 0x17eb8
movl 0x10(%rax), %eax
movl %eax, 0xd18d(%rip)      # 0x183b0
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
cmpl 0xd17d(%rip), %eax      # 0x183b0
jge 0xb251
movl -0x4(%rbp), %edx
movslq -0x4(%rbp), %rcx
leaq 0xcfdd(%rip), %rax      # 0x18220
movl %edx, (%rax,%rcx,4)
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0xb22a
jmp 0xb253
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl 0xd151(%rip), %ecx      # 0x183b0
addl $0x1, %ecx
imull %ecx, %eax
cltq
shlq $0x3, %rax
movl %eax, %edi
callq 0x2da0
movq %rax, -0x28(%rbp)
leaq 0x468f(%rip), %rdi      # 0xf90c
callq 0x21f0
movq %rax, %rdx
movq -0x28(%rbp), %rax
movl 0xd121(%rip), %ecx      # 0x183b0
addl $0x1, %ecx
imull $0x0, %ecx, %ecx
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
movl $0x0, -0x8(%rbp)
movl -0x8(%rbp), %eax
cmpl 0xd104(%rip), %eax      # 0x183b0
jge 0xb312
movslq -0x8(%rbp), %rcx
leaq 0xcf67(%rip), %rax      # 0x18220
movl (%rax,%rcx,4), %eax
movl %eax, -0x14(%rbp)
movq 0xcbf2(%rip), %rax      # 0x17eb8
addq $0x20, %rax
movslq -0x14(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
callq 0x21f0
movq %rax, %rdx
movq -0x28(%rbp), %rax
movl 0xd0c6(%rip), %ecx      # 0x183b0
addl $0x1, %ecx
imull $0x0, %ecx, %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movl -0x8(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0xb2a3
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0xb4d2
movl -0x4(%rbp), %ecx
addl $0x1, %ecx
leaq 0xbb7e(%rip), %rdi      # 0x16eb0
movl $0xfa0, %esi            # imm = 0xFA0
leaq 0x4002(%rip), %rdx      # 0xf340
movb $0x0, %al
callq 0x20c0
leaq 0xbb64(%rip), %rdi      # 0x16eb0
callq 0x21f0
movq %rax, %rdx
movq -0x28(%rbp), %rax
movl -0x4(%rbp), %ecx
addl $0x1, %ecx
movl 0xd04c(%rip), %esi      # 0x183b0
addl $0x1, %esi
imull %esi, %ecx
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
movl $0x0, -0x8(%rbp)
movl -0x8(%rbp), %eax
cmpl 0xd02f(%rip), %eax      # 0x183b0
jge 0xb4c2
movslq -0x8(%rbp), %rcx
leaq 0xce8e(%rip), %rax      # 0x18220
movl (%rax,%rcx,4), %eax
movl %eax, -0x14(%rbp)
movq 0xcb19(%rip), %rax      # 0x17eb8
addq $0x20, %rax
movslq -0x14(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq 0x20(%rax), %rax
movslq -0x4(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd %xmm0, -0x20(%rbp)
movsd -0x20(%rbp), %xmm0
ucomisd %xmm0, %xmm0
setp %al
testb $0x1, %al
jne 0xb3d2
jmp 0xb3e2
leaq 0x43ff(%rip), %rax      # 0xf7d8
movq %rax, -0x30(%rbp)
jmp 0xb47b
movq 0xcacf(%rip), %rax      # 0x17eb8
addq $0x20, %rax
movslq -0x14(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
cmpq $0x0, 0x10(%rax)
jne 0xb44f
movq 0xcab2(%rip), %rax      # 0x17eb8
addq $0x20, %rax
movslq -0x14(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movl 0x18(%rax), %eax
movl %eax, -0x10(%rbp)
movslq -0x10(%rbp), %rcx
leaq 0x7cfa(%rip), %rax      # 0x13120
movq (%rax,%rcx,8), %rdx
movsd -0x20(%rbp), %xmm0
leaq 0xba7a(%rip), %rdi      # 0x16eb0
movl $0xfa0, %esi            # imm = 0xFA0
movb $0x1, %al
callq 0x20c0
leaq 0xba67(%rip), %rax      # 0x16eb0
movq %rax, -0x30(%rbp)
jmp 0xb479
movq 0xca62(%rip), %rax      # 0x17eb8
addq $0x20, %rax
movslq -0x14(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
cvttsd2si -0x20(%rbp), %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x30(%rbp)
jmp 0xb47b
movq -0x30(%rbp), %rdi
callq 0x21f0
movq %rax, %rdx
movq -0x28(%rbp), %rax
movl -0x4(%rbp), %ecx
addl $0x1, %ecx
movl 0xcf19(%rip), %esi      # 0x183b0
addl $0x1, %esi
imull %esi, %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movl -0x8(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0xb378
jmp 0xb4c4
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0xb319
movl 0xced8(%rip), %edi      # 0x183b0
addl $0x1, %edi
callq 0x2da0
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movb $0x0, (%rax)
movl $0x0, -0x8(%rbp)
movl -0x8(%rbp), %eax
cmpl 0xceb5(%rip), %eax      # 0x183b0
jge 0xb55c
movslq -0x8(%rbp), %rcx
leaq 0xcd18(%rip), %rax      # 0x18220
movl (%rax,%rcx,4), %eax
movl %eax, -0x14(%rbp)
movq 0xc9a3(%rip), %rax      # 0x17eb8
addq $0x20, %rax
movslq -0x14(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
cmpq $0x0, 0x10(%rax)
jne 0xb53e
movq -0x30(%rbp), %rax
movl -0x8(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movb $0x0, (%rax,%rcx)
jmp 0xb54f
movq -0x30(%rbp), %rax
movl -0x8(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movb $0x1, (%rax,%rcx)
jmp 0xb551
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0xb4f2
movq -0x28(%rbp), %rdi
movl -0xc(%rbp), %esi
addl $0x1, %esi
movl 0xce44(%rip), %edx      # 0x183b0
addl $0x1, %edx
movq -0x30(%rbp), %rcx
callq 0x5480
movq -0x30(%rbp), %rdi
callq 0x2030
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
movl -0xc(%rbp), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
jge 0xb5ee
movl $0x0, -0x8(%rbp)
movl -0x8(%rbp), %eax
movl 0xce0b(%rip), %ecx      # 0x183b0
addl $0x1, %ecx
cmpl %ecx, %eax
jge 0xb5e1
movq -0x28(%rbp), %rax
movl -0x4(%rbp), %ecx
movl 0xcdf7(%rip), %edx      # 0x183b0
addl $0x1, %edx
imull %edx, %ecx
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movslq -0x8(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x2030
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0xb59c
jmp 0xb5e3
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0xb588
movq -0x28(%rbp), %rdi
callq 0x2030
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)