// File: /workspace/github_c_makefile_star2_O3/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 0x2d8a7(%rip), %r15     # 0x3eac0
cmpb $0x1, 0x2d894(%rip)     # 0x3eab4
jne 0x1123e
cmpl $0x0, 0x2d89f(%rip)     # 0x3eac8
jne 0x1123e
movl $0xa, %edi
movq %r14, %rsi
callq 0x4190
incl 0x2d88a(%rip)           # 0x3eac8
movq 0x2d873(%rip), %r12     # 0x3eab8
testq %r12, %r12
je 0x113bd
leaq 0x13127(%rip), %rbp     # 0x2437c
xorl %r13d, %r13d
cmpl $0x1, 0x1c(%r12)
jg 0x113af
testq %r15, %r15
je 0x112a2
cmpl 0x14(%r15), %r13d
jl 0x112a5
movq (%r15), %rdx
cmpb $0x0, (%rdx)
je 0x11286
movq %r14, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x41d0
jmp 0x11299
movl 0x2d83c(%rip), %eax     # 0x3eac8
leal 0x1(%rax), %ecx
movl %ecx, 0x2d833(%rip)     # 0x3eac8
testl %eax, %eax
je 0x11277
movq 0x20(%r15), %r15
incl %r13d
jmp 0x11264
xorl %r15d, %r15d
cmpl $0x0, 0x18(%r12)
jne 0x113ac
testq %rbx, %rbx
je 0x112da
movq %rbx, %rdi
callq 0x4110
testq %rax, %rax
je 0x112da
movq (%r12), %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x40a0
testl %eax, %eax
jne 0x113ac
movl $0x1, 0x18(%r12)
cmpl $0x0, 0x10(%r12)
jne 0x1131c
movq (%r12), %rax
cmpb $0x44, (%rax)
jne 0x1131c
cmpb $0x3a, 0x1(%rax)
jne 0x1131c
cmpb $0x20, 0x2(%rax)
jne 0x1131c
leaq 0x24eed(%rip), %rax     # 0x361f4
cmpl $0x0, (%rax)
je 0x1131c
leaq 0x27769(%rip), %rax     # 0x38a7c
testb $0x2, (%rax)
je 0x113af
cmpl $0x0, 0x14(%r12)
jne 0x11349
leaq 0x27751(%rip), %rax     # 0x38a7c
testb $0x2, (%rax)
je 0x113af
movl $0x3, %esi
movl $0x1, %edx
leaq 0x1378b(%rip), %rdi     # 0x24acc
movq %r14, %rcx
callq 0x42c0
movq (%r12), %rsi
movq %r14, %rdi
leaq 0x14d39(%rip), %rdx     # 0x26090
callq 0xc2de
movq (%r12), %rsi
movq %r14, %rdi
callq 0x1117e
cmpl $0x0, 0x10(%r12)
je 0x11378
movw $0xa, (%rsp)
jmp 0x11392
movups 0x13751(%rip), %xmm0    # 0x24ad0
movaps %xmm0, (%rsp)
movabsq $0xa2f2a20656c75, %rax  # imm = 0xA2F2A20656C75
movq %rax, 0xd(%rsp)
movq 0x8(%r12), %rsi
movq %r14, %rdi
movq %rsp, %rdx
callq 0xc2de
movl $0x0, 0x2d71c(%rip)     # 0x3eac8
incl %r13d
movq 0x20(%r12), %r12
testq %r12, %r12
jne 0x11258
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq