// File: /workspace/github_c_makefile_star2_O2/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
cmpq $0x66, %r14
je 0x6176
movl %r14d, %edi
callq 0x9e02
incq %r14
jmp 0x6163
leaq 0x10(%rsp), %rax
andq $0x0, (%rax)
leaq 0x8(%rsp), %rax
andq $0x0, (%rax)
leaq 0x38(%rsp), %r13
andq $0x0, (%r13)
leaq 0x30(%rsp), %rbp
andq $0x0, (%rbp)
leaq 0x16034(%rip), %rdi     # 0x1c1d7
leaq 0x160a6(%rip), %rsi     # 0x1c250
callq 0x2a188
movq %rax, %r15
movq %rax, %rdi
callq 0x4fbd
leaq 0x580b7(%rip), %r14     # 0x5e278
movq 0x90(%r14), %rdi
movq %r15, %rsi
callq 0x4db0
movq 0x90(%r14), %rdi
callq 0x1d890
movq 0x48(%r14), %rax
xorl %r12d, %r12d
cmpq %rax, %r12
jae 0x6230
movq 0x40(%r14), %rcx
movq (%rcx,%r12,8), %rdi
movl 0x8(%rdi), %ecx
cmpq $0x7, %rcx
je 0x622b
cmpl $0xd, %ecx
je 0x622b
cmpl $0xb, %ecx
jne 0x6595
callq 0x25834
movq %rax, %rdi
movq %r15, %rsi
leaq 0x10(%rsp), %rdx
leaq 0x8(%rsp), %rcx
movq %r13, %r8
movq %rbp, %r9
callq 0xdc1f
movq 0x48(%r14), %rax
incq %r12
jmp 0x61e3
callq 0x1d8d4
leaq 0x24419(%rip), %rdi     # 0x2a655
leaq 0x24429(%rip), %rsi     # 0x2a66c
callq 0x2a188
movq %rax, %r14
xorl %r12d, %r12d
cmpq 0x30(%rsp), %r12
jae 0x62d3
movq 0x38(%rsp), %rax
movq (%rax,%r12,8), %rbp
cmpl $0xb, 0x8(%rbp)
jne 0x6576
movq %r15, %rdi
movq %rbp, %rsi
callq 0x2a3e8
movq %rax, %r13
movq %rbp, %rdi
callq 0x10f54
movq %rbx, %rdi
leaq 0x25ecc(%rip), %rsi     # 0x2c154
movq %r13, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x4240
movq 0x30(%rbp), %rdx
testq %rdx, %rdx
je 0x62ab
movq %r15, %rdi
movq %r14, %rsi
callq 0x45c4
jmp 0x62bb
movq %rbp, %rdi
callq 0x10f54
movq %rax, %rdi
callq 0x44b9
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
movq %r13, %rcx
callq 0x65ae
incq %r12
jmp 0x624e
xorl %ebp, %ebp
leaq 0x40(%rsp), %r12
cmpq 0x8(%rsp), %rbp
jae 0x63b2
movq 0x10(%rsp), %rax
movq (%rax,%rbp,8), %r13
movl $0x4c8, %edx            # imm = 0x4C8
leaq 0x48(%rsp), %rdi
xorl %esi, %esi
callq 0x41a0
leaq 0x15ed1(%rip), %rdi     # 0x1c1d7
leaq 0x15f43(%rip), %rsi     # 0x1c250
callq 0x2a188
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 0x6369
pushq $0x4
popq %rdi
callq 0x9da2
movq %rax, 0xa8(%rsp)
movq %r12, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x8fb4
leaq 0x57e5f(%rip), %rax     # 0x5e1e0
cmpb $0x0, 0x69(%rax)
je 0x639c
movq 0x3ac42(%rip), %rax     # 0x40fd0
movq (%rax), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x6907
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x6907
incq %rbp
jmp 0x62da
pushq $0x1f
popq %r15
leaq 0x58e2b(%rip), %r12     # 0x5f1e8
leaq 0x58e14(%rip), %rbp     # 0x5f1d8
cmpq (%r12), %r15
jae 0x64d7
movq (%rbp), %rax
movq (%rax,%r15,8), %rdi
cmpb $0x0, 0x95(%rdi)
je 0x64cf
callq 0x1fd76
cmpb $0x0, 0x96(%rax)
jne 0x64cf
cmpb $0x0, 0x94(%rax)
jne 0x64cf
movq %rax, %rdi
callq 0x1fd76
cmpl $0x19, (%rax)
je 0x64cf
cmpb $0x0, 0x96(%rax)
jne 0x64cf
movb $0x1, 0x96(%rax)
movq %rax, %rdi
callq 0x10c8f
testq %rax, %rax
je 0x64cf
movq %rax, %r13
cmpb $0x0, 0x18(%rax)
leaq 0x2627a(%rip), %rcx     # 0x2c6c0
leaq 0x2628d(%rip), %rax     # 0x2c6da
cmoveq %rax, %rcx
movq %rcx, 0x18(%rsp)
movq 0x10(%r13), %rax
movq %rax, 0x20(%rsp)
leaq 0x276dd(%rip), %rcx     # 0x2db43
leaq 0x26289(%rip), %rax     # 0x2c6f6
cmoveq %rax, %rcx
movq %rcx, 0x28(%rsp)
movq %r13, %rdi
callq 0x10658
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
leaq 0x279bd(%rip), %rdx     # 0x2de4a
movq 0x20(%rsp), %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x4240
movq 0x10(%r13), %r8
movl $0x400, %esi            # imm = 0x400
leaq 0x40(%rsp), %rdi
movq 0x28(%rsp), %rdx
leaq 0x27994(%rip), %rcx     # 0x2de4a
xorl %eax, %eax
callq 0x2a9bf
movq %rbx, %rdi
movq %r13, %rsi
xorl %edx, %edx
leaq 0x40(%rsp), %rcx
callq 0x65ae
incq %r15
jmp 0x63c4
pushq $0xa
popq %rbp
movl %ebp, %edi
movq %rbx, %rsi
callq 0x41f0
movl %ebp, %edi
movq %rbx, %rsi
callq 0x41f0
leaq 0x40(%rsp), %rsi
movq %r14, %rdi
callq 0x2a529
movq %rax, %r15
xorl %r12d, %r12d
cmpq 0x40(%rsp), %r12
jae 0x6551
movq (%r15,%r12,8), %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x2a3e8
movq (%r13), %rcx
testq %rcx, %rcx
je 0x654c
movq %rax, %rbp
movq %rbx, %rdi
leaq 0x261d0(%rip), %rsi     # 0x2c6fd
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 0x67cd
incq %r12
jmp 0x6501
pushq $0xa
popq %rdi
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 0x250d4(%rip), %rdi     # 0x2b651
leaq 0x25bc8(%rip), %rsi     # 0x2c14c
leaq 0x250da(%rip), %rcx     # 0x2b665
movl $0x19b, %edx            # imm = 0x19B
callq 0x4180
leaq 0x57704(%rip), %rax     # 0x5dca0
movq (%rax,%rcx,8), %rsi
leaq 0x25132(%rip), %rdi     # 0x2b6d9
xorl %eax, %eax
callq 0x1205c