// File: /workspace/github_c_makefile_star2_O1/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 0x76bb
movl (%r14), %ecx
cmpq $0x6, %rcx
ja 0x75fe
movq (%rax), %rax
movslq %ebp, %rdx
movl (%rax,%rdx,4), %ebp
leaq 0x28a4f(%rip), %rax     # 0x2fe88
movslq (%rax,%rcx,4), %rdx
addq %rax, %rdx
jmpq *%rdx
movzbl %bpl, %eax
addl $-0x6d, %eax
cmpl $0xb, %eax
ja 0x76e8
movl $0xa01, %edx            # imm = 0xA01
btl %eax, %edx
jae 0x76e8
cmpl $0x3, %ecx
jne 0x754d
movq 0x18(%r14), %rdx
testq %rdx, %rdx
je 0x755e
leaq 0x283b0(%rip), %rsi     # 0x2f82d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4240
jmp 0x755e
shll $0x18, %ebp
cmpl $0x74ffffff, %ebp       # imm = 0x74FFFFFF
jle 0x7603
cmpl $0x75000000, %ebp       # imm = 0x75000000
je 0x7670
cmpl $0x76000000, %ebp       # imm = 0x76000000
je 0x7670
cmpl $0x78000000, %ebp       # imm = 0x78000000
je 0x7670
jmp 0x7638
movzbl %bpl, %eax
addl $-0x6d, %eax
cmpl $0xb, %eax
ja 0x7707
movl $0xa01, %ecx            # imm = 0xA01
btl %eax, %ecx
jae 0x7707
movq 0x10(%r14), %rdi
jmp 0x7687
movzbl %bpl, %eax
addl $-0x69, %eax
cmpl $0xf, %eax
ja 0x7726
movl $0x9001, %ecx           # imm = 0x9001
btl %eax, %ecx
jae 0x7726
movq 0x10(%r14), %rdx
leaq 0x2e3f9(%rip), %rsi     # 0x3590d
jmp 0x753f
movzbl %bpl, %eax
addl $-0x69, %eax
cmpl $0xf, %eax
ja 0x7745
movl $0x9001, %ecx           # imm = 0x9001
btl %eax, %ecx
jae 0x7745
movq 0x10(%r14), %rdx
leaq 0x282ed(%rip), %rsi     # 0x2f82c
movq %rbx, %rdi
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x4240
movq 0x10(%r14), %rdi
testq %rdi, %rdi
je 0x755e
movq %rbx, %rsi
callq 0x4190
movq 0x28(%r14), %rax
testq %rax, %rax
je 0x756d
cmpl $0x65, 0x18(%rax)
jne 0x7588
leaq 0x2913d(%rip), %rdi     # 0x306b1
movl $0x6, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x4330
jmp 0x75b3
movl $0x28, %edi
movq %rbx, %rsi
callq 0x41f0
movq 0x28(%r14), %rsi
movq %rbx, %rdi
movl $0x72, %edx
callq 0x73ff
movl $0x29, %edi
movq %rbx, %rsi
callq 0x41f0
cmpq $0x0, 0x30(%r14)
je 0x75fe
movl $0x28, %edi
movq %rbx, %rsi
callq 0x41f0
movq 0x30(%r14), %rsi
movq %rbx, %rdi
movl $0x72, %edx
callq 0x73ff
movl 0x20(%r14), %edx
leaq 0x290d5(%rip), %rsi     # 0x306b8
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4240
movl $0x29, %edi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x41f0
popq %rbx
popq %r14
popq %rbp
retq
cmpl $0x66000000, %ebp       # imm = 0x66000000
je 0x7657
cmpl $0x72000000, %ebp       # imm = 0x72000000
jne 0x7638
callq 0xa8cc
testl %eax, %eax
jne 0x7670
cmpl $0x75ffffff, %ebp       # imm = 0x75FFFFFF
jg 0x74a7
cmpl $0x66000000, %ebp       # imm = 0x66000000
je 0x7657
cmpl $0x75000000, %ebp       # imm = 0x75000000
je 0x7670
leaq 0x28169(%rip), %rdi     # 0x2f7a8
leaq 0x28b06(%rip), %rsi     # 0x3014c
leaq 0x280e4(%rip), %rcx     # 0x2f731
movl $0x57, %edx
callq 0x4180
movl 0x4(%r14), %edi
callq 0xa8d7
testl %eax, %eax
jne 0x7670
cmpl $0x75000000, %ebp       # imm = 0x75000000
jne 0x74b3
movl 0x18(%r14), %eax
testq %rax, %rax
je 0x7693
leaq 0x28934(%rip), %rcx     # 0x2ffb4
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 0x3bf5e(%rip), %rcx     # 0x43600
movq (%rcx,%rax,8), %rcx
leaq 0x28f5a(%rip), %rsi     # 0x30607
movq %rbx, %rdi
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x4240
leaq 0x28067(%rip), %rdi     # 0x2f729
leaq 0x28a83(%rip), %rsi     # 0x3014c
leaq 0x28061(%rip), %rcx     # 0x2f731
movl $0x48, %edx
callq 0x4180
leaq 0x28150(%rip), %rdi     # 0x2f831
xorl %eax, %eax
callq 0x13a00
leaq 0x2808f(%rip), %rdi     # 0x2f77e
leaq 0x28a56(%rip), %rsi     # 0x3014c
leaq 0x28034(%rip), %rcx     # 0x2f731
movl $0x5f, %edx
callq 0x4180
leaq 0x28070(%rip), %rdi     # 0x2f77e
leaq 0x28a37(%rip), %rsi     # 0x3014c
leaq 0x28015(%rip), %rcx     # 0x2f731
movl $0x4f, %edx
callq 0x4180
leaq 0x28027(%rip), %rdi     # 0x2f754
leaq 0x28a18(%rip), %rsi     # 0x3014c
leaq 0x27ff6(%rip), %rcx     # 0x2f731
movl $0x4b, %edx
callq 0x4180
leaq 0x28008(%rip), %rdi     # 0x2f754
leaq 0x289f9(%rip), %rsi     # 0x3014c
leaq 0x27fd7(%rip), %rcx     # 0x2f731
movl $0x63, %edx
callq 0x4180