// File: /workspace/github_c_makefile_star2_O2/nimble-code[P]Modex/Src/xtract.c
// Function: spitnames
void
spitnames(FILE *fid)
{	NameL *nl;
	FILE *fd;

	if (!namel) return;

	if (Warnings)
	{	fprintf(fid, "modex files created:\n");
		for (nl = namel; nl; nl = nl->nxt)
		{	fprintf(fid, "\t%s", nl->nm);
			if (globfilename
			&&  strcmp(nl->nm, globfilename) == 0)
				fprintf(fid, " (global header file)");
			fprintf(fid, "\n");
		}
		fprintf(fid, "\t_modex_.cln # cleanup script\n");
	}

	if ((fd = fopen("_modex_.cln", MFLAGS)) == NULL)
	{	fprintf(stderr, "%s: cannot create .cln file\n", progname);
		return;
	}
if (debug_io) fprintf(stderr, "open .cln -> %p\n", fd);
	for (nl = namel; nl; nl = nl->nxt)
		fprintf(fd, "%s %s\n", RM, nl->nm);

	fprintf(fd, "%s _modex_.cln\n", RM);
	fprintf(fd, "%s %s *.I\n", RM, tempfile_M);
	fprintf(fd, "%s pan.? pan pan.exe _spin_nvr.tmp\n", RM);
if (debug_io) fprintf(stderr, "close y %p\n", fd);
	Fclose(fd);

	namel = (NameL *) 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpq $0x0, 0x2e409(%rip)     # 0x3b5e8
je 0xd359
leaq 0x29894(%rip), %rax     # 0x36a80
cmpl $0x0, (%rax)
je 0xd28f
movq %rdi, %rbx
leaq 0x151be(%rip), %rdi     # 0x223bd
pushq $0x15
popq %rsi
pushq $0x1
popq %r15
movq %r15, %rdx
movq %rbx, %rcx
callq 0x42c0
leaq 0x2e3d0(%rip), %r14     # 0x3b5e8
leaq 0x151b4(%rip), %r12     # 0x223d3
pushq $0xa
popq %rbp
leaq 0x151ae(%rip), %r13     # 0x223d7
movq (%r14), %r14
testq %r14, %r14
je 0xd27a
movq (%r14), %rdx
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x41c0
movq 0x2e3a8(%rip), %rsi     # 0x3b5f0
testq %rsi, %rsi
je 0xd26a
movq (%r14), %rdi
callq 0x41b0
testl %eax, %eax
jne 0xd26a
movq %r13, %rdi
pushq $0x15
popq %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x42c0
movl %ebp, %edi
movq %rbx, %rsi
callq 0x4180
addq $0x10, %r14
jmp 0xd229
leaq 0x1516c(%rip), %rdi     # 0x223ed
pushq $0x1e
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x42c0
leaq 0x15176(%rip), %rdi     # 0x2240c
leaq 0x1a552(%rip), %rsi     # 0x277ef
callq 0x4270
testq %rax, %rax
je 0xd368
movq %rax, %rbx
leaq 0x29763(%rip), %r12     # 0x36a18
cmpl $0x0, (%r12)
jne 0xd398
leaq 0x2e321(%rip), %r13     # 0x3b5e8
leaq 0x14582(%rip), %r14     # 0x21850
leaq 0x1418e(%rip), %r15     # 0x21463
movq (%r13), %r13
testq %r13, %r13
je 0xd2f8
movq (%r13), %rcx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x41c0
addq $0x10, %r13
jmp 0xd2d5
leaq 0x15147(%rip), %rsi     # 0x22446
leaq 0x1415d(%rip), %r14     # 0x21463
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x41c0
leaq 0x1513c(%rip), %rsi     # 0x22456
leaq 0x2f36f(%rip), %rcx     # 0x3c690
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x41c0
leaq 0x1512c(%rip), %rsi     # 0x22461
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x41c0
cmpl $0x0, (%r12)
jne 0xd3b8
movq %rbx, %rdi
callq 0x59e0
andq $0x0, 0x2e28f(%rip)     # 0x3b5e8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x26c89(%rip), %rax     # 0x33ff8
movq (%rax), %rdi
leaq 0x26e27(%rip), %rax     # 0x341a0
movq (%rax), %rdx
leaq 0x15095(%rip), %rsi     # 0x22418
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x41c0
movq 0x26c59(%rip), %rax     # 0x33ff8
movq (%rax), %rdi
leaq 0x1508c(%rip), %rsi     # 0x22435
movq %rbx, %rdx
xorl %eax, %eax
callq 0x41c0
jmp 0xd2c0
movq 0x26c39(%rip), %rax     # 0x33ff8
movq (%rax), %rdi
leaq 0x150bc(%rip), %rsi     # 0x22485
movq %rbx, %rdx
xorl %eax, %eax
callq 0x41c0
jmp 0xd349