// File: /workspace/github_c_makefile_star2_O3/oridb[P]mc/6/gengas.c
// Function: locprint
static void
locprint(FILE *fd, Loc *l, char 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.%zd%s", 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 %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x4(%rsi), %edi
testl %edi, %edi
je 0x5b6b
movq %rsi, %r14
movl (%rsi), %eax
cmpq $0x6, %rax
ja 0x5af0
leaq 0x298d1(%rip), %rcx     # 0x2f2d8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movsbl %dl, %eax
addl $-0x6d, %eax
cmpl $0xb, %eax
ja 0x5b98
movl $0xa01, %ecx            # imm = 0xA01
btl %eax, %ecx
jae 0x5b98
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5908
movsbl %dl, %eax
cmpl $0x74, %eax
jle 0x5af8
leal -0x75(%rax), %ecx
cmpl $0x2, %ecx
jb 0x5b1a
cmpl $0x78, %eax
je 0x5b1a
jmp 0x5bb7
movsbl %dl, %eax
addl $-0x6d, %eax
cmpl $0xb, %eax
ja 0x5bd6
movl $0xa01, %ecx            # imm = 0xA01
btl %eax, %ecx
jae 0x5bd6
movq 0x10(%r14), %rdi
jmp 0x5b31
movsbl %dl, %eax
addl $-0x69, %eax
cmpl $0xf, %eax
ja 0x5bf5
movl $0x9001, %ecx           # imm = 0x9001
btl %eax, %ecx
jae 0x5bf5
movq 0x10(%r14), %rdx
leaq 0x2fe68(%rip), %rsi     # 0x3591d
jmp 0x5adf
movsbl %dl, %eax
addl $-0x69, %eax
cmpl $0xf, %eax
ja 0x5c14
movl $0x9001, %ecx           # imm = 0x9001
btl %eax, %ecx
jae 0x5c14
movq 0x10(%r14), %rdx
leaq 0x29d4d(%rip), %rsi     # 0x2f82c
movq %rbx, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4240
addq $0x8, %rsp
popq %rbx
popq %r14
retq
cmpl $0x66, %eax
je 0x5b0d
cmpl $0x72, %eax
jne 0x5bb7
callq 0xa798
jmp 0x5b12
callq 0xa7a3
testl %eax, %eax
je 0x5bb7
movl 0x18(%r14), %eax
testq %rax, %rax
je 0x5b40
leaq 0x298fe(%rip), %rcx     # 0x2f428
movslq (%rcx,%rax,4), %rdi
addq %rcx, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4190
movq 0x10(%r14), %rdx
movl 0x4(%r14), %eax
leaq 0x3da71(%rip), %rcx     # 0x435c0
movq (%rcx,%rax,8), %rcx
leaq 0x29cc8(%rip), %rsi     # 0x2f822
movq %rbx, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4240
leaq 0x29bb7(%rip), %rdi     # 0x2f729
leaq 0x29a98(%rip), %rsi     # 0x2f611
leaq 0x29bb1(%rip), %rcx     # 0x2f731
movl $0x4a, %edx
callq 0x4180
leaq 0x29ca0(%rip), %rdi     # 0x2f831
xorl %eax, %eax
callq 0x13844
leaq 0x29bdf(%rip), %rdi     # 0x2f77e
leaq 0x29a6b(%rip), %rsi     # 0x2f611
leaq 0x29b84(%rip), %rcx     # 0x2f731
movl $0x61, %edx
callq 0x4180
leaq 0x29bea(%rip), %rdi     # 0x2f7a8
leaq 0x29a4c(%rip), %rsi     # 0x2f611
leaq 0x29b65(%rip), %rcx     # 0x2f731
movl $0x59, %edx
callq 0x4180
leaq 0x29ba1(%rip), %rdi     # 0x2f77e
leaq 0x29a2d(%rip), %rsi     # 0x2f611
leaq 0x29b46(%rip), %rcx     # 0x2f731
movl $0x51, %edx
callq 0x4180
leaq 0x29b58(%rip), %rdi     # 0x2f754
leaq 0x29a0e(%rip), %rsi     # 0x2f611
leaq 0x29b27(%rip), %rcx     # 0x2f731
movl $0x4d, %edx
callq 0x4180
leaq 0x29b39(%rip), %rdi     # 0x2f754
leaq 0x299ef(%rip), %rsi     # 0x2f611
leaq 0x29b08(%rip), %rcx     # 0x2f731
movl $0x65, %edx
callq 0x4180