// File: /workspace/github_c_makefile_star2_O3/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 0xa93c
incq %r14
cmpq $0x66, %r14
jne 0x68a7
xorl %eax, %eax
movq %rax, 0x18(%rsp)
movq %rax, 0x10(%rsp)
movq %rax, 0x20(%rsp)
movq %rax, 0x8(%rsp)
leaq 0x17d79(%rip), %rdi     # 0x1e64e
leaq 0x17de1(%rip), %rsi     # 0x1e6bd
callq 0x2d678
movq %rax, %r15
movq %rax, %rdi
callq 0x5629
leaq 0x5a985(%rip), %r14     # 0x61278
movq 0x90(%r14), %rdi
movq %r15, %rsi
callq 0x5404
movq 0x90(%r14), %rdi
callq 0x1fe30
movq 0x48(%r14), %rax
testq %rax, %rax
je 0x6973
movq 0x40(%r14), %rcx
xorl %r12d, %r12d
leaq 0x20(%rsp), %r13
leaq 0x8(%rsp), %rbp
movq (%rcx,%r12,8), %rdi
movl 0x8(%rdi), %edx
cmpq $0x7, %rdx
je 0x696b
cmpl $0xd, %edx
je 0x696b
cmpl $0xb, %edx
jne 0x6cfd
callq 0x288c4
movq %rax, %rdi
movq %r15, %rsi
leaq 0x18(%rsp), %rdx
leaq 0x10(%rsp), %rcx
movq %r13, %r8
movq %rbp, %r9
callq 0xf011
movq 0x40(%r14), %rcx
movq 0x48(%r14), %rax
incq %r12
cmpq %rax, %r12
jb 0x6928
callq 0x1fe76
leaq 0x271ed(%rip), %rdi     # 0x2db6c
leaq 0x271fd(%rip), %rsi     # 0x2db83
callq 0x2d678
movq %rax, %r14
cmpq $0x0, 0x8(%rsp)
je 0x6a1d
xorl %r12d, %r12d
movq 0x20(%rsp), %rax
movq (%rax,%r12,8), %rbp
cmpl $0xb, 0x8(%rbp)
jne 0x6cde
movq %r15, %rdi
movq %rbp, %rsi
callq 0x2d8fa
movq %rax, %r13
movq %rbp, %rdi
callq 0x12664
movq %rbx, %rdi
leaq 0x29784(%rip), %rsi     # 0x30154
movq %r13, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x4240
movq 0x30(%rbp), %rdx
testq %rdx, %rdx
je 0x69f3
movq %r15, %rdi
movq %r14, %rsi
callq 0x4a55
jmp 0x6a03
movq %rbp, %rdi
callq 0x12664
movq %rax, %rdi
callq 0x493b
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
movq %r13, %rcx
callq 0x6d16
incq %r12
cmpq 0x8(%rsp), %r12
jb 0x699d
cmpq $0x0, 0x10(%rsp)
je 0x6b07
xorl %ebp, %ebp
leaq 0x40(%rsp), %r12
movq 0x18(%rsp), %rax
movq (%rax,%rbp,8), %r13
movl $0x4c8, %edx            # imm = 0x4C8
leaq 0x48(%rsp), %rdi
xorl %esi, %esi
callq 0x41a0
leaq 0x17bfd(%rip), %rdi     # 0x1e64e
leaq 0x17c65(%rip), %rsi     # 0x1e6bd
callq 0x2d678
movq %rax, 0x88(%rsp)
movq (%r13), %rax
movq %rax, 0x40(%rsp)
movups 0x28(%r13), %xmm0
movups %xmm0, 0x90(%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 0x6ab6
movl $0x4, %edi
callq 0xa8da
movq %rax, 0xa8(%rsp)
movq %r12, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x99ae
leaq 0x5a712(%rip), %rax     # 0x611e0
cmpb $0x0, 0x69(%rax)
je 0x6aea
movq 0x3d4f5(%rip), %rax     # 0x43fd0
movq (%rax), %rdi
movq (%r13), %rdx
movq %r12, %rsi
callq 0x70a4
movq (%r13), %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x70a4
incq %rbp
cmpq 0x10(%rsp), %rbp
jb 0x6a30
leaq 0x5b6da(%rip), %r15     # 0x621e8
cmpq $0x20, (%r15)
jb 0x6c32
movl $0x1f, %r12d
leaq 0x5b6b3(%rip), %rbp     # 0x621d8
movq (%rbp), %rax
movq (%rax,%r12,8), %rdi
cmpb $0x0, 0x95(%rdi)
je 0x6c26
callq 0x22851
cmpb $0x0, 0x96(%rax)
jne 0x6c26
cmpb $0x0, 0x94(%rax)
jne 0x6c26
movq %rax, %rdi
callq 0x22851
cmpl $0x19, (%rax)
je 0x6c26
cmpb $0x0, 0x96(%rax)
jne 0x6c26
movb $0x1, 0x96(%rax)
movq %rax, %rdi
callq 0x1234a
testq %rax, %rax
je 0x6c26
movq %rax, %r13
cmpb $0x0, 0x18(%rax)
leaq 0x29b23(%rip), %rcx     # 0x306c0
leaq 0x29b36(%rip), %rax     # 0x306da
cmoveq %rax, %rcx
movq %rcx, 0x28(%rsp)
movq 0x10(%r13), %rax
movq %rax, 0x30(%rsp)
leaq 0x2af86(%rip), %rcx     # 0x31b43
leaq 0x29b32(%rip), %rax     # 0x306f6
cmoveq %rax, %rcx
movq %rcx, 0x38(%rsp)
movq %r13, %rdi
callq 0x11cc4
movq %rbx, %rdi
movq 0x28(%rsp), %rsi
leaq 0x2b266(%rip), %rdx     # 0x31e4a
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 0x2b23d(%rip), %rcx     # 0x31e4a
xorl %eax, %eax
callq 0x2dfae
movq %rbx, %rdi
movq %r13, %rsi
xorl %edx, %edx
leaq 0x40(%rsp), %rcx
callq 0x6d16
incq %r12
cmpq (%r15), %r12
jb 0x6b25
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 0x2da36
cmpq $0x0, (%r12)
je 0x6cb7
movq %rax, %r15
xorl %r12d, %r12d
movq (%r15,%r12,8), %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x2d8fa
movq (%r13), %rcx
testq %rcx, %rcx
je 0x6cad
movq %rax, %rbp
movq %rbx, %rdi
leaq 0x29a6f(%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 0x6f7c
incq %r12
cmpq 0x40(%rsp), %r12
jb 0x6c69
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 0x2896c(%rip), %rdi     # 0x2f651
leaq 0x29460(%rip), %rsi     # 0x3014c
leaq 0x28972(%rip), %rcx     # 0x2f665
movl $0x19b, %edx            # imm = 0x19B
callq 0x4180
leaq 0x59f9c(%rip), %rax     # 0x60ca0
movq (%rax,%rdx,8), %rsi
leaq 0x289ca(%rip), %rdi     # 0x2f6d9
xorl %eax, %eax
callq 0x13844