// File: /workspace/github_c_makefile_star2_O1/nimble-code[P]Modex/Src/xtract.c
// Function: trav_lut
void
trav_lut(FILE *lf, char *zz)
{	Cache *c, *x;
	char ubuf[64];
	int cntr, printline;

	cntr = 0;
	x = comms;

	if (FreshLut && nblanks == 0)
	{	fprintf(lf, "\n");
		nblanks++;
	}
	for (c = cache; c; c = c->nxt)
	{	if (c->level > 1)	/* 2 and up not visible */
			continue;

		while (x && cntr >= (int) x->hit)
		{	printline = 0;
			if (strlen(x->s) > 0)
				printline = 1;
			else if (nblanks++ == 0)
				printline = 1;

			if (printline)
				fprintf(lf, "%s\n", x->s); /* user-defined comments */

			x = x->nxt;
			cntr++;
		}
		if (c->printed == 0
		&& (!zz
		|| strlen(zz) == 0
		|| strncmp(c->s, zz, strlen(zz)) == 0))
		{	c->printed = 1;

			if (!c->udef
			&& !strncmp(c->s, "D: ", 3)
			&&  use_c_code
			&& !(Verbose&2))
				continue;	/* don't print declarations */

			if (!c->hit)
			{	if (!(Verbose&2))
					continue;
				fprintf(lf, "## ");
			}
			handle_special(lf, c->s, "\t");
			add_padding(lf, c->s);
			if (!c->udef)
				sprintf(ubuf, "	/* default-rule */\n");
			else
				sprintf(ubuf, "\n");
			handle_special(lf, c->t, ubuf);
			nblanks = 0;
		}
		cntr++;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x2e95f(%rip), %r15     # 0x3fab0
cmpb $0x1, 0x2e94c(%rip)     # 0x3faa4
jne 0x11176
cmpl $0x0, 0x2e957(%rip)     # 0x3fab8
jne 0x11176
movl $0xa, %edi
movq %r14, %rsi
callq 0x4190
incl 0x2e942(%rip)           # 0x3fab8
movq 0x2e92b(%rip), %r13     # 0x3faa8
testq %r13, %r13
je 0x112f5
leaq 0x141ef(%rip), %r12     # 0x2537c
xorl %ebp, %ebp
cmpl $0x1, 0x1c(%r13)
jg 0x112e8
testq %r15, %r15
je 0x111d7
cmpl 0x14(%r15), %ebp
jl 0x111d7
movq (%r15), %rdx
cmpb $0x0, (%rdx)
je 0x111bc
movq %r14, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x41c0
jmp 0x111cf
movl 0x2e8f6(%rip), %eax     # 0x3fab8
leal 0x1(%rax), %ecx
movl %ecx, 0x2e8ed(%rip)     # 0x3fab8
testl %eax, %eax
je 0x111ad
movq 0x20(%r15), %r15
incl %ebp
jmp 0x1119a
cmpl $0x0, 0x18(%r13)
jne 0x112e6
testq %rbx, %rbx
je 0x1120b
movq %rbx, %rdi
callq 0x4110
testq %rax, %rax
je 0x1120b
movq (%r13), %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x40a0
testl %eax, %eax
jne 0x112e6
movl $0x1, 0x18(%r13)
cmpl $0x0, 0x10(%r13)
je 0x11278
cmpl $0x0, 0x14(%r13)
jne 0x1124a
leaq 0x28844(%rip), %rax     # 0x39a6c
testb $0x2, (%rax)
je 0x112e8
movl $0x3, %esi
movl $0x1, %edx
leaq 0x1488a(%rip), %rdi     # 0x25acc
movq %r14, %rcx
callq 0x42b0
movq (%r13), %rsi
movq %r14, %rdi
leaq 0x15e3b(%rip), %rdx     # 0x27093
callq 0xc45d
movq (%r13), %rsi
movq %r14, %rdi
callq 0x110b6
cmpl $0x0, 0x10(%r13)
je 0x112b3
movw $0xa, (%rsp)
jmp 0x112cd
movq (%r13), %rdi
movl $0x3, %edx
leaq 0x15df4(%rip), %rsi     # 0x2707c
callq 0x40a0
testl %eax, %eax
jne 0x1121a
leaq 0x25f4c(%rip), %rax     # 0x371e4
cmpl $0x0, (%rax)
je 0x1121a
leaq 0x287c4(%rip), %rax     # 0x39a6c
testb $0x2, (%rax)
jne 0x1121a
jmp 0x112e8
movups 0x14816(%rip), %xmm0    # 0x25ad0
movaps %xmm0, (%rsp)
movabsq $0xa2f2a20656c75, %rax  # imm = 0xA2F2A20656C75
movq %rax, 0xd(%rsp)
movq 0x8(%r13), %rsi
movq %r14, %rdi
movq %rsp, %rdx
callq 0xc45d
movl $0x0, 0x2e7d2(%rip)     # 0x3fab8
incl %ebp
movq 0x20(%r13), %r13
testq %r13, %r13
jne 0x1118f
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq