// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/6/genp9.c
// Function: locprint
static void
locprint(FILE *fd, Loc *l, char spec)
{
	spec = tolower(spec);
	assert(l->mode);
	switch (l->type) {
	case Loclitl:
		assert(spec == 'i' || spec == 'x' || spec == 'u');
		fprintf(fd, "$%s", l->lbl);
		break;
	case Loclbl:
		assert(spec == 'm' || spec == 'v' || spec == 'x');
		fprintf(fd, "%s", l->lbl);
		break;
	case Locreg:
		assert((spec == 'r' && isintmode(l->mode)) ||
				(spec == 'f' && isfloatmode(l->mode)) ||
				spec == 'v' ||
				spec == 'x' ||
				spec == 'u');
		if (l->reg.colour == Rnone)
			fprintf(fd, "%%P.%llu%s", (uvlong)l->reg.id, modenames[l->mode]);
		else
			fprintf(fd, "%s", regnames[l->reg.colour]);
		break;
	case Locmem:
	case Locmeml:
		assert(spec == 'm' || spec == 'v' || spec == 'x');
		printmem(fd, l, spec);
		break;
	case Loclit:
		assert(spec == 'i' || spec == 'x' || spec == 'u');
		fprintf(fd, "$%ld", l->lit);
		break;
	case Locnone:
		die("Bad location in locprint()");
		break;
	}
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
callq 0x4380
movl 0x4(%r14), %edi
testl %edi, %edi
je 0x6dbe
movl (%r14), %ecx
cmpq $0x6, %rcx
ja 0x6d61
movq (%rax), %rax
movslq %ebp, %rdx
movl (%rax,%rdx,4), %eax
leaq 0x252d4(%rip), %rdx     # 0x2be88
movslq (%rdx,%rcx,4), %rsi
addq %rdx, %rsi
jmpq *%rsi
movzbl %al, %eax
addl $-0x6d, %eax
cmpl $0xb, %eax
ja 0x6de9
movl $0xa01, %edx            # imm = 0xA01
btl %eax, %edx
jae 0x6de9
cmpl $0x3, %ecx
jne 0x6cc0
movq 0x18(%r14), %rdx
testq %rdx, %rdx
je 0x6cd1
leaq 0x24c36(%rip), %rsi     # 0x2b82d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4240
jmp 0x6cd1
movzbl %al, %eax
leal -0x75(%rax), %ecx
cmpl $0x2, %ecx
jb 0x6d73
cmpl $0x66, %eax
je 0x6d66
cmpl $0x78, %eax
je 0x6d73
cmpl $0x72, %eax
jne 0x6e02
callq 0x9ca0
jmp 0x6d6b
movzbl %al, %eax
addl $-0x6d, %eax
cmpl $0xb, %eax
ja 0x6e1b
movl $0xa01, %ecx            # imm = 0xA01
btl %eax, %ecx
jae 0x6e1b
movq 0x10(%r14), %rdi
jmp 0x6d8a
movzbl %al, %eax
addl $-0x69, %eax
cmpl $0xf, %eax
ja 0x6e34
movl $0x9001, %ecx           # imm = 0x9001
btl %eax, %ecx
jae 0x6e34
movq 0x10(%r14), %rdx
leaq 0x2ac65(%rip), %rsi     # 0x318ed
jmp 0x6cb2
movzbl %al, %eax
addl $-0x69, %eax
cmpl $0xf, %eax
ja 0x6e4d
movl $0x9001, %ecx           # imm = 0x9001
btl %eax, %ecx
jae 0x6e4d
movq 0x10(%r14), %rdx
leaq 0x24b7a(%rip), %rsi     # 0x2b82c
movq %rbx, %rdi
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x4240
movq 0x10(%r14), %rdi
testq %rdi, %rdi
je 0x6cd1
movq %rbx, %rsi
callq 0x4190
movq 0x28(%r14), %rax
testq %rax, %rax
je 0x6ce0
cmpl $0x65, 0x18(%rax)
jne 0x6cf7
leaq 0x259ca(%rip), %rdi     # 0x2c6b1
pushq $0x6
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x4330
jmp 0x6d1c
pushq $0x28
popq %rdi
movq %rbx, %rsi
callq 0x41f0
movq 0x28(%r14), %rsi
pushq $0x72
popq %rdx
movq %rbx, %rdi
callq 0x6b7a
pushq $0x29
popq %rdi
movq %rbx, %rsi
callq 0x41f0
cmpq $0x0, 0x30(%r14)
je 0x6d61
pushq $0x28
popq %rdi
movq %rbx, %rsi
callq 0x41f0
movq 0x30(%r14), %rsi
pushq $0x72
popq %rdx
movq %rbx, %rdi
callq 0x6b7a
movl 0x20(%r14), %edx
leaq 0x25970(%rip), %rsi     # 0x2c6b8
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4240
pushq $0x29
popq %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x41f0
popq %rbx
popq %r14
popq %rbp
retq
callq 0x9cab
testl %eax, %eax
je 0x6e02
movl 0x18(%r14), %eax
testq %rax, %rax
je 0x6d96
leaq 0x25231(%rip), %rcx     # 0x2bfb4
movslq (%rcx,%rax,4), %rdi
addq %rcx, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x4190
movq 0x10(%r14), %rdx
movl 0x4(%r14), %eax
leaq 0x3985b(%rip), %rcx     # 0x40600
movq (%rcx,%rax,8), %rcx
leaq 0x25857(%rip), %rsi     # 0x2c607
movq %rbx, %rdi
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x4240
leaq 0x24964(%rip), %rdi     # 0x2b729
leaq 0x25380(%rip), %rsi     # 0x2c14c
leaq 0x2495e(%rip), %rcx     # 0x2b731
pushq $0x48
popq %rdx
callq 0x4180
leaq 0x24a4f(%rip), %rdi     # 0x2b831
xorl %eax, %eax
callq 0x1205c
leaq 0x2498e(%rip), %rdi     # 0x2b77e
leaq 0x25355(%rip), %rsi     # 0x2c14c
leaq 0x24933(%rip), %rcx     # 0x2b731
pushq $0x5f
jmp 0x6dd5
leaq 0x2499f(%rip), %rdi     # 0x2b7a8
leaq 0x2533c(%rip), %rsi     # 0x2c14c
leaq 0x2491a(%rip), %rcx     # 0x2b731
pushq $0x57
jmp 0x6dd5
leaq 0x2495c(%rip), %rdi     # 0x2b77e
leaq 0x25323(%rip), %rsi     # 0x2c14c
leaq 0x24901(%rip), %rcx     # 0x2b731
pushq $0x4f
jmp 0x6dd5
leaq 0x24919(%rip), %rdi     # 0x2b754
leaq 0x2530a(%rip), %rsi     # 0x2c14c
leaq 0x248e8(%rip), %rcx     # 0x2b731
pushq $0x4b
jmp 0x6dd5
leaq 0x24900(%rip), %rdi     # 0x2b754
leaq 0x252f1(%rip), %rsi     # 0x2c14c
leaq 0x248cf(%rip), %rcx     # 0x2b731
pushq $0x63
jmp 0x6dd5
nopl (%rax)