// File: /workspace/github_c_makefile_star2_O2/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 0x2d7ad(%rip), %r13     # 0x3cac0
cmpb $0x1, 0x2d79a(%rip)     # 0x3cab4
jne 0xf336
cmpl $0x0, 0x2d7a5(%rip)     # 0x3cac8
jne 0xf336
pushq $0xa
popq %rdi
movq %r14, %rsi
callq 0x4180
incl 0x2d792(%rip)           # 0x3cac8
leaq 0x2d77b(%rip), %rbp     # 0x3cab8
leaq 0x12f38(%rip), %r12     # 0x2227c
xorl %r15d, %r15d
movq (%rbp), %rbp
testq %rbp, %rbp
je 0xf49e
cmpl $0x1, 0x1c(%rbp)
jg 0xf495
testq %r13, %r13
je 0xf39d
cmpl 0x14(%r13), %r15d
jl 0xf39d
movq (%r13), %rdx
cmpb $0x0, (%rdx)
je 0xf381
movq %r14, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x41c0
jmp 0xf394
movl 0x2d741(%rip), %eax     # 0x3cac8
leal 0x1(%rax), %ecx
movl %ecx, 0x2d738(%rip)     # 0x3cac8
testl %eax, %eax
je 0xf372
movq 0x20(%r13), %r13
incl %r15d
jmp 0xf35e
cmpl $0x0, 0x18(%rbp)
jne 0xf492
testq %rbx, %rbx
je 0xf3d0
movq %rbx, %rdi
callq 0x4110
testq %rax, %rax
je 0xf3d0
movq (%rbp), %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x40a0
testl %eax, %eax
jne 0xf492
movl $0x1, 0x18(%rbp)
cmpl $0x0, 0x10(%rbp)
jne 0xf40e
movq (%rbp), %rax
cmpb $0x44, (%rax)
jne 0xf40e
cmpb $0x3a, 0x1(%rax)
jne 0xf40e
cmpb $0x20, 0x2(%rax)
jne 0xf40e
leaq 0x24dfb(%rip), %rax     # 0x341f4
cmpl $0x0, (%rax)
je 0xf40e
leaq 0x27677(%rip), %rax     # 0x36a7c
testb $0x2, (%rax)
je 0xf495
cmpl $0x0, 0x14(%rbp)
jne 0xf435
leaq 0x27661(%rip), %rax     # 0x36a7c
testb $0x2, (%rax)
je 0xf495
leaq 0x135a5(%rip), %rdi     # 0x229cc
pushq $0x3
popq %rsi
pushq $0x1
popq %rdx
movq %r14, %rcx
callq 0x42c0
movq (%rbp), %rsi
movq %r14, %rdi
leaq 0x14b4d(%rip), %rdx     # 0x23f90
callq 0xa695
movq (%rbp), %rsi
movq %r14, %rdi
callq 0xf282
cmpl $0x0, 0x10(%rbp)
je 0xf462
movw $0xa, (%rsp)
jmp 0xf47c
movups 0x13567(%rip), %xmm0    # 0x229d0
movaps %xmm0, (%rsp)
movabsq $0xa2f2a20656c75, %rax  # imm = 0xA2F2A20656C75
movq %rax, 0xd(%rsp)
movq 0x8(%rbp), %rsi
movq %r14, %rdi
movq %rsp, %rdx
callq 0xa695
andl $0x0, 0x2d636(%rip)     # 0x3cac8
incl %r15d
addq $0x20, %rbp
jmp 0xf347
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq