// File: /workspace/github_c_makefile_star2_O0/nimble-code[P]Modex/Src/xtract.c
// Function: modex_tree
void
modex_tree(treenode *root, char *lut)
{	char t_file[512];

	modex_reset();
	get_lut(o_base, lut);
	get_defaults(lut);

	if (!globals_only
	&&  !show_deps
	&&  !new_lut)
	{	strcpy(t_file, o_base);
		strcat(t_file, ".pml");

		if (strlen(c_file) > 0
		&&  strcmp(c_file, t_file) == 0)	/* e.g. _modex_all.pml */
		{	fprintf(fp, "\n/* extracted from %s */\n\n", cur_in);
		} else
		{	strcpy(c_file, t_file);
			if (fp)
			{
if (debug_io) fprintf(stderr, "close ... %p\n", fp);
				Fclose(fp);
				fp = 0;
			}
	
			if ((fp = fopen(t_file, MFLAGS)) == NULL)
			{	fprintf(stderr, "%s: cannot create '%s'\n", progname, t_file);
				exit(1);
			}
if (debug_io) fprintf(stderr, "open %s -> %p\n", t_file, fp);
			fprintf(fp, "/* %s */\n", VERSION);
			fprintf(fp, "/* extracted from %s */\n\n", cur_in);
			fflush(fp);
			add_fnm(t_file);
		}
	} else
		suppress = 1;

	if (is_icall(want))
	{	extended = 1;
	}

	if (Verbose_cmds)
	printf("want %s, wanttype %s, lut %s\n", want, wanttype, lut);

	modex_any(root, 1);	/* want, wanttype, lut */

	if (new_lut)
	{	dump_lut();
	}

	if (!globals_only
	&&  !show_deps)
	{	if (!new_lut)
		{	doreturn(3);	/* local decls to fp */
		}
		if (redundancies)
		{	check_lut(stdout);
	}	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x210, %rsp            # imm = 0x210
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
callq 0x172e0
movq -0x10(%rbp), %rsi
leaq 0x306ad(%rip), %rdi     # 0x47c60
callq 0x12860
movq -0x10(%rbp), %rdi
callq 0x13ad0
leaq 0x308a4(%rip), %rax     # 0x47e6c
cmpl $0x0, (%rax)
jne 0x1779b
leaq 0x30668(%rip), %rax     # 0x47c40
cmpl $0x0, (%rax)
jne 0x1779b
leaq 0x30894(%rip), %rax     # 0x47e7c
cmpl $0x0, (%rax)
jne 0x1779b
leaq -0x210(%rbp), %rdi
leaq 0x30661(%rip), %rsi     # 0x47c60
callq 0x40a0
leaq -0x210(%rbp), %rdi
leaq 0x1e26c(%rip), %rsi     # 0x3587e
callq 0x4250
leaq 0x3cd82(%rip), %rdi     # 0x543a0
callq 0x40f0
cmpq $0x0, %rax
jbe 0x17662
leaq -0x210(%rbp), %rsi
leaq 0x3cd69(%rip), %rdi     # 0x543a0
callq 0x4180
cmpl $0x0, %eax
jne 0x17662
movq 0x30ef8(%rip), %rdi     # 0x48540
leaq 0x1ee6a(%rip), %rsi     # 0x364b9
leaq 0x30cca(%rip), %rdx     # 0x48320
movb $0x0, %al
callq 0x4190
jmp 0x17799
leaq -0x210(%rbp), %rsi
leaq 0x3cd30(%rip), %rdi     # 0x543a0
callq 0x40a0
cmpq $0x0, 0x30ec3(%rip)     # 0x48540
je 0x176c1
leaq 0x30562(%rip), %rax     # 0x47be8
cmpl $0x0, (%rax)
je 0x176aa
movq 0x2d966(%rip), %rax     # 0x44ff8
movq (%rax), %rdi
movq 0x30ea4(%rip), %rdx     # 0x48540
leaq 0x1ee31(%rip), %rsi     # 0x364d4
movb $0x0, %al
callq 0x4190
movq 0x30e8f(%rip), %rdi     # 0x48540
callq 0x6d20
movq $0x0, 0x30e7f(%rip) # 0x48540
leaq -0x210(%rbp), %rdi
leaq 0x236e0(%rip), %rsi     # 0x3adaf
callq 0x4230
movq %rax, 0x30e65(%rip)     # 0x48540
cmpq $0x0, %rax
jne 0x17714
movq 0x2d910(%rip), %rax     # 0x44ff8
movq (%rax), %rdi
leaq 0x2da7e(%rip), %rax     # 0x45170
movq (%rax), %rdx
leaq -0x210(%rbp), %rcx
leaq 0x1eddf(%rip), %rsi     # 0x364e2
movb $0x0, %al
callq 0x4190
movl $0x1, %edi
callq 0x4270
leaq 0x304cd(%rip), %rax     # 0x47be8
cmpl $0x0, (%rax)
je 0x17746
movq 0x2d8d1(%rip), %rax     # 0x44ff8
movq (%rax), %rdi
leaq -0x210(%rbp), %rdx
movq 0x30e08(%rip), %rcx     # 0x48540
leaq 0x1dfb1(%rip), %rsi     # 0x356f0
movb $0x0, %al
callq 0x4190
movq 0x30df3(%rip), %rdi     # 0x48540
leaq 0x2da0c(%rip), %rax     # 0x45160
movq (%rax), %rdx
leaq 0x1ed9c(%rip), %rsi     # 0x364fa
movb $0x0, %al
callq 0x4190
movq 0x30dd4(%rip), %rdi     # 0x48540
leaq 0x1ed47(%rip), %rsi     # 0x364ba
leaq 0x30ba6(%rip), %rdx     # 0x48320
movb $0x0, %al
callq 0x4190
movq 0x30db8(%rip), %rdi     # 0x48540
callq 0x41f0
leaq -0x210(%rbp), %rdi
callq 0x10500
jmp 0x177a8
leaq 0x306ee(%rip), %rax     # 0x47e90
movl $0x1, (%rax)
leaq 0x2d9c9(%rip), %rax     # 0x45178
movq (%rax), %rdi
callq 0x6ab0
cmpl $0x0, %eax
je 0x177c9
leaq 0x306a1(%rip), %rax     # 0x47e64
movl $0x1, (%rax)
leaq 0x3041c(%rip), %rax     # 0x47bec
cmpl $0x0, (%rax)
je 0x177fb
leaq 0x2d99c(%rip), %rax     # 0x45178
movq (%rax), %rsi
leaq 0x2d9a2(%rip), %rax     # 0x45188
movq (%rax), %rdx
movq -0x10(%rbp), %rcx
leaq 0x1ed10(%rip), %rdi     # 0x36504
movb $0x0, %al
callq 0x4120
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x15ad0
leaq 0x3066c(%rip), %rax     # 0x47e7c
cmpl $0x0, (%rax)
je 0x1781a
callq 0x13f40
leaq 0x3064b(%rip), %rax     # 0x47e6c
cmpl $0x0, (%rax)
jne 0x17865
leaq 0x30413(%rip), %rax     # 0x47c40
cmpl $0x0, (%rax)
jne 0x17865
leaq 0x30643(%rip), %rax     # 0x47e7c
cmpl $0x0, (%rax)
jne 0x17848
movl $0x3, %edi
callq 0x17090
leaq 0x3063d(%rip), %rax     # 0x47e8c
cmpl $0x0, (%rax)
je 0x17863
movq 0x2d775(%rip), %rax     # 0x44fd0
movq (%rax), %rdi
callq 0x140f0
jmp 0x17865
addq $0x210, %rsp            # imm = 0x210
popq %rbp
retq
nop