// File: /workspace/github_c_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x518, %rsp            # imm = 0x518
movq %rdi, %rbx
xorl %r14d, %r14d
movl %r14d, %edi
callq 0xaa70
incq %r14
cmpq $0x66, %r14
jne 0x696f
xorl %r12d, %r12d
movq %r12, 0x18(%rsp)
movq %r12, 0x10(%rsp)
movq %r12, 0x20(%rsp)
movq %r12, 0x8(%rsp)
leaq 0x17f00(%rip), %rdi     # 0x1e89e
leaq 0x17f68(%rip), %rsi     # 0x1e90d
callq 0x2db1c
movq %rax, %r15
movq %rax, %rdi
callq 0x56df
leaq 0x5a8bc(%rip), %r14     # 0x61278
movq 0x90(%r14), %rdi
movq %r15, %rsi
callq 0x54b0
movq 0x90(%r14), %rdi
callq 0x20070
cmpq %r12, 0x48(%r14)
je 0x6a32
xorl %r12d, %r12d
leaq 0x20(%rsp), %r13
leaq 0x8(%rsp), %rbp
movq 0x40(%r14), %rax
movq (%rax,%r12,8), %rdi
movl 0x8(%rdi), %eax
cmpq $0x7, %rax
je 0x6a29
cmpl $0xd, %eax
je 0x6a29
cmpl $0xb, %eax
jne 0x6dc3
callq 0x28db8
movq %rax, %rdi
movq %r15, %rsi
leaq 0x18(%rsp), %rdx
leaq 0x10(%rsp), %rcx
movq %r13, %r8
movq %rbp, %r9
callq 0xf21a
incq %r12
cmpq 0x48(%r14), %r12
jb 0x69ea
callq 0x200b6
leaq 0x275cd(%rip), %rdi     # 0x2e00b
leaq 0x275dd(%rip), %rsi     # 0x2e022
callq 0x2db1c
movq %rax, %r14
cmpq $0x0, 0x8(%rsp)
je 0x6adc
xorl %r12d, %r12d
movq 0x20(%rsp), %rax
movq (%rax,%r12,8), %rbp
cmpl $0xb, 0x8(%rbp)
jne 0x6da4
movq %r15, %rdi
movq %rbp, %rsi
callq 0x2dd9a
movq %rax, %r13
movq %rbp, %rdi
callq 0x1281a
movq %rbx, %rdi
leaq 0x296c5(%rip), %rsi     # 0x30154
movq %r13, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x4240
movq 0x30(%rbp), %rdx
testq %rdx, %rdx
je 0x6ab2
movq %r15, %rdi
movq %r14, %rsi
callq 0x4af5
jmp 0x6ac2
movq %rbp, %rdi
callq 0x1281a
movq %rax, %rdi
callq 0x49db
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
movq %r13, %rcx
callq 0x6ddc
incq %r12
cmpq 0x8(%rsp), %r12
jb 0x6a5c
cmpq $0x0, 0x10(%rsp)
je 0x6bcd
xorl %ebp, %ebp
leaq 0x40(%rsp), %r12
movq 0x18(%rsp), %rax
movq (%rax,%rbp,8), %r13
movl $0x4d0, %edx            # imm = 0x4D0
movq %r12, %rdi
xorl %esi, %esi
callq 0x41a0
leaq 0x17d90(%rip), %rdi     # 0x1e89e
leaq 0x17df8(%rip), %rsi     # 0x1e90d
callq 0x2db1c
movq %rax, 0x88(%rsp)
movq (%r13), %rax
movq %rax, 0x40(%rsp)
movq 0x28(%r13), %rax
movq %rax, 0x90(%rsp)
movq 0x30(%r13), %rax
movq %rax, 0x98(%rsp)
movq %r15, 0xa0(%rsp)
movq 0x40(%r13), %rax
movq %rax, 0x70(%rsp)
movl 0x48(%r13), %eax
movl %eax, 0x78(%rsp)
movq 0x50(%r13), %rax
movq %rax, 0x50(%rsp)
cmpb $0x0, 0x59(%r13)
je 0x6b7e
movl $0x4, %edi
callq 0xaa0e
movq %rax, 0xa8(%rsp)
movq %r12, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x9abf
leaq 0x5a64a(%rip), %rax     # 0x611e0
cmpb $0x0, 0x69(%rax)
je 0x6bb1
movq 0x3d42d(%rip), %rax     # 0x43fd0
movq (%rax), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x7163
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x7163
incq %rbp
cmpq 0x10(%rsp), %rbp
jb 0x6aef
leaq 0x5b614(%rip), %r15     # 0x621e8
cmpq $0x20, (%r15)
jb 0x6cf8
movl $0x1f, %r12d
leaq 0x5b5ed(%rip), %rbp     # 0x621d8
movq (%rbp), %rax
movq (%rax,%r12,8), %rdi
cmpb $0x0, 0x95(%rdi)
je 0x6cec
callq 0x22cec
cmpb $0x0, 0x96(%rax)
jne 0x6cec
cmpb $0x0, 0x94(%rax)
jne 0x6cec
movq %rax, %rdi
callq 0x22cec
cmpl $0x19, (%rax)
je 0x6cec
cmpb $0x0, 0x96(%rax)
jne 0x6cec
movb $0x1, 0x96(%rax)
movq %rax, %rdi
callq 0x12506
testq %rax, %rax
je 0x6cec
movq %rax, %r13
cmpb $0x0, 0x18(%rax)
leaq 0x29a5d(%rip), %rcx     # 0x306c0
leaq 0x29a70(%rip), %rax     # 0x306da
cmoveq %rax, %rcx
movq %rcx, 0x28(%rsp)
movq 0x10(%r13), %rax
movq %rax, 0x30(%rsp)
leaq 0x2aeb0(%rip), %rcx     # 0x31b33
leaq 0x29a6c(%rip), %rax     # 0x306f6
cmoveq %rax, %rcx
movq %rcx, 0x38(%rsp)
movq %r13, %rdi
callq 0x11e80
movq %rbx, %rdi
movq 0x28(%rsp), %rsi
leaq 0x2b190(%rip), %rdx     # 0x31e3a
movq 0x30(%rsp), %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x4240
movq 0x10(%r13), %r8
movl $0x400, %esi            # imm = 0x400
leaq 0x40(%rsp), %rdi
movq 0x38(%rsp), %rdx
leaq 0x2b167(%rip), %rcx     # 0x31e3a
xorl %eax, %eax
callq 0x2e42e
movq %rbx, %rdi
movq %r13, %rsi
xorl %edx, %edx
leaq 0x40(%rsp), %rcx
callq 0x6ddc
incq %r12
cmpq (%r15), %r12
jb 0x6beb
movl $0xa, %edi
movq %rbx, %rsi
callq 0x41f0
movl $0xa, %edi
movq %rbx, %rsi
callq 0x41f0
leaq 0x40(%rsp), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x2dedf
cmpq $0x0, (%r12)
je 0x6d7d
movq %rax, %r15
xorl %r12d, %r12d
movq (%r15,%r12,8), %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x2dd9a
movq (%r13), %rcx
testq %rcx, %rcx
je 0x6d73
movq %rax, %rbp
movq %rbx, %rdi
leaq 0x299a9(%rip), %rsi     # 0x306fd
movq %rax, %rdx
xorl %eax, %eax
callq 0x4240
movq (%r13), %r8
movq 0x8(%r13), %rcx
movq %rbx, %rdi
movq %rbp, %rsi
xorl %edx, %edx
callq 0x7046
incq %r12
cmpq 0x40(%rsp), %r12
jb 0x6d2f
movl $0xa, %edi
movq %rbx, %rsi
callq 0x41f0
movq %rbx, %rdi
callq 0x4110
addq $0x518, %rsp            # imm = 0x518
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x288a6(%rip), %rdi     # 0x2f651
leaq 0x2939a(%rip), %rsi     # 0x3014c
leaq 0x288ac(%rip), %rcx     # 0x2f665
movl $0x19b, %edx            # imm = 0x19B
callq 0x4180
leaq 0x59ed6(%rip), %rcx     # 0x60ca0
movq (%rcx,%rax,8), %rsi
leaq 0x28904(%rip), %rdi     # 0x2f6d9
xorl %eax, %eax
callq 0x13a00