// File: /workspace/github_c_makefile_star2_O3/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:
cmpq $0x0, 0x2e9d5(%rip)     # 0x3d5e8
je 0xedac
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
leaq 0x29e57(%rip), %rax     # 0x38a80
cmpl $0x0, (%rax)
je 0xecd7
movq %rdi, %rbx
leaq 0x15881(%rip), %rdi     # 0x244bd
movl $0x15, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x42c0
movq 0x2e993(%rip), %r12     # 0x3d5e8
testq %r12, %r12
je 0xecbe
leaq 0x15872(%rip), %r14     # 0x244d3
leaq 0x1586f(%rip), %r15     # 0x244d7
movq (%r12), %rdx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x41d0
movq 0x2e970(%rip), %rsi     # 0x3d5f0
testq %rsi, %rsi
je 0xeca7
movq (%r12), %rdi
callq 0x41c0
testl %eax, %eax
jne 0xeca7
movl $0x15, %esi
movl $0x1, %edx
movq %r15, %rdi
movq %rbx, %rcx
callq 0x42c0
movl $0xa, %edi
movq %rbx, %rsi
callq 0x4190
movq 0x10(%r12), %r12
testq %r12, %r12
jne 0xec68
leaq 0x15828(%rip), %rdi     # 0x244ed
movl $0x1e, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x42c0
leaq 0x1582e(%rip), %rdi     # 0x2450c
leaq 0x1abfa(%rip), %rsi     # 0x298df
callq 0x4270
testq %rax, %rax
je 0xedad
movq %rax, %rbx
leaq 0x29d1b(%rip), %r12     # 0x38a18
cmpl $0x0, (%r12)
jne 0xedb4
movq 0x2e8d9(%rip), %r13     # 0x3d5e8
testq %r13, %r13
je 0xed3f
leaq 0x14b35(%rip), %r14     # 0x23850
leaq 0x14741(%rip), %r15     # 0x23463
movq (%r13), %rcx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x41d0
movq 0x10(%r13), %r13
testq %r13, %r13
jne 0xed22
leaq 0x15800(%rip), %rsi     # 0x24546
leaq 0x14716(%rip), %r14     # 0x23463
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x41d0
leaq 0x157f5(%rip), %rsi     # 0x24556
leaq 0x2f928(%rip), %rcx     # 0x3e690
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x41d0
leaq 0x157e5(%rip), %rsi     # 0x24561
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x41d0
cmpl $0x0, (%r12)
jne 0xedd4
movq %rbx, %rdi
callq 0x77d0
movq $0x0, 0x2e845(%rip) # 0x3d5e8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
callq 0x49d2
jmp 0xeda3
movq 0x2723d(%rip), %rax     # 0x35ff8
movq (%rax), %rdi
leaq 0x15770(%rip), %rsi     # 0x24535
movq %rbx, %rdx
xorl %eax, %eax
callq 0x41d0
jmp 0xed08
movq 0x2721d(%rip), %rax     # 0x35ff8
movq (%rax), %rdi
leaq 0x157a0(%rip), %rsi     # 0x24585
movq %rbx, %rdx
xorl %eax, %eax
callq 0x41d0
jmp 0xed90