// File: /workspace/github_c_makefile_star2_O0/oridb[P]mc/6/genp9.c
// Function: genp9
void
genp9(FILE *fd)
{
	Htab *globls, *strtab;
	Node *n, **blob;
	Func **fn;
	size_t nfn, nblob;
	size_t i;

	/* ensure that all physical registers have a loc created before any
	 * other locs, so that locmap[Physreg] maps to the Loc for the physreg
	 * in question */
	for (i = 0; i < Nreg; i++)
		locphysreg(i);

	fn = NULL;
	nfn = 0;
	blob = NULL;
	nblob = 0;
	globls = mkht(varhash, vareq);
	initconsts(globls);

	/* We need to define all global variables before use */
	fillglobls(file.globls, globls);

	pushstab(file.globls);
	for (i = 0; i < file.nstmts; i++) {
		n = file.stmts[i];
		switch (n->type) {
		case Nuse: /* nothing to do */
		case Nimpl:
			break;
		case Ndecl:
			n = flattenfn(n);
			simpglobl(n, globls, &fn, &nfn, &blob, &nblob);
			break;
		default:
			die("Bad node %s in toplevel", nodestr[n->type]);
			break;
		}
	}
	popstab();

	strtab = mkht(strlithash, strliteq);
	for (i = 0; i < nblob; i++)
		genblob(fd, blob[i], globls, strtab);
	for (i = 0; i < nfn; i++)
		genfunc(fd, fn[i], globls, strtab);
	gentypes(fd);
	fprintf(fd, "\n");

	genstrings(fd, strtab);
	fprintf(fd, "\n");

	fclose(fd);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq $0x0, -0x48(%rbp)
cmpq $0x66, -0x48(%rbp)
jae 0x9494
movq -0x48(%rbp), %rax
movl %eax, %edi
callq 0xffc0
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0x9474
movq $0x0, -0x30(%rbp)
movq $0x0, -0x38(%rbp)
movq $0x0, -0x28(%rbp)
movq $0x0, -0x40(%rbp)
leaq 0x27315(%rip), %rdi     # 0x307d0
leaq 0x273de(%rip), %rsi     # 0x308a0
callq 0x48fe0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x7870
leaq 0x738bd(%rip), %rax     # 0x7cd98
movq 0x90(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x74e0
leaq 0x738a6(%rip), %rax     # 0x7cd98
movq 0x90(%rax), %rdi
callq 0x32db0
movq $0x0, -0x48(%rbp)
movq -0x48(%rbp), %rax
leaq 0x73887(%rip), %rcx     # 0x7cd98
cmpq 0x48(%rcx), %rax
jae 0x95ba
leaq 0x73876(%rip), %rax     # 0x7cd98
movq 0x40(%rax), %rax
movq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x4c(%rbp)
subl $0x7, %eax
je 0x9557
jmp 0x9543
movl -0x4c(%rbp), %eax
subl $0xb, %eax
je 0x9559
jmp 0x954d
movl -0x4c(%rbp), %eax
subl $0xd, %eax
jne 0x9585
jmp 0x9557
jmp 0x95a7
movq -0x20(%rbp), %rdi
callq 0x40f30
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x30(%rbp), %rdx
leaq -0x38(%rbp), %rcx
leaq -0x28(%rbp), %r8
leaq -0x40(%rbp), %r9
callq 0x16ca0
jmp 0x95a7
movq -0x20(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, %ecx
leaq 0x7322b(%rip), %rax     # 0x7c7c0
movq (%rax,%rcx,8), %rsi
leaq 0x41e95(%rip), %rdi     # 0x4b435
movb $0x0, %al
callq 0x1df20
jmp 0x95a9
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0x9506
callq 0x32e20
leaq 0x4044a(%rip), %rdi     # 0x49a10
leaq 0x40493(%rip), %rsi     # 0x49a60
callq 0x48fe0
movq %rax, -0x18(%rbp)
movq $0x0, -0x48(%rbp)
movq -0x48(%rbp), %rax
cmpq -0x40(%rbp), %rax
jae 0x9613
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rax
movq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movq -0x10(%rbp), %rdx
movq -0x18(%rbp), %rcx
callq 0x96a0
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0x95de
movq $0x0, -0x48(%rbp)
movq -0x48(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0x9650
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rax
movq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movq -0x10(%rbp), %rdx
movq -0x18(%rbp), %rcx
callq 0x9780
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0x961b
movq -0x8(%rbp), %rdi
callq 0x98b0
movq -0x8(%rbp), %rdi
leaq 0x44552(%rip), %rsi     # 0x4dbb6
movb $0x0, %al
callq 0x6230
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x9970
movq -0x8(%rbp), %rdi
leaq 0x44533(%rip), %rsi     # 0x4dbb6
movb $0x0, %al
callq 0x6230
movq -0x8(%rbp), %rdi
callq 0x60f0
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)