// File: /workspace/github_c_makefile_star2_O1/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 %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl 0x4(%rsi), %edi
testl %edi, %edi
je 0x5c45
movq %rsi, %r14
movl (%rsi), %eax
cmpq $0x6, %rax
ja 0x5ba9
leaq 0x29818(%rip), %rcx     # 0x2f2d8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movsbl %dl, %eax
addl $-0x6d, %eax
cmpl $0xb, %eax
ja 0x5c72
movl $0xa01, %ecx            # imm = 0xA01
btl %eax, %ecx
jae 0x5c72
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
popq %rbx
popq %r14
popq %r15
jmp 0x59c0
movsbl %dl, %r15d
cmpl $0x74, %r15d
jle 0x5baf
leal -0x75(%r15), %eax
cmpl $0x2, %eax
jb 0x5bf8
cmpl $0x78, %r15d
je 0x5bf8
jmp 0x5cee
movsbl %dl, %eax
addl $-0x6d, %eax
cmpl $0xb, %eax
ja 0x5c91
movl $0xa01, %ecx            # imm = 0xA01
btl %eax, %ecx
jae 0x5c91
movq 0x10(%r14), %rdi
jmp 0x5c0f
movsbl %dl, %eax
addl $-0x69, %eax
cmpl $0xf, %eax
ja 0x5cb0
movl $0x9001, %ecx           # imm = 0x9001
btl %eax, %ecx
jae 0x5cb0
movq 0x10(%r14), %rdx
leaq 0x2fd9d(%rip), %rsi     # 0x3590d
jmp 0x5b9a
movsbl %dl, %eax
addl $-0x69, %eax
cmpl $0xf, %eax
ja 0x5ccf
movl $0x9001, %ecx           # imm = 0x9001
btl %eax, %ecx
jae 0x5ccf
movq 0x10(%r14), %rdx
leaq 0x29c92(%rip), %rsi     # 0x2f82c
movq %rbx, %rdi
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x4240
popq %rbx
popq %r14
popq %r15
retq
cmpl $0x66, %r15d
je 0x5be1
cmpl $0x72, %r15d
jne 0x5cee
callq 0xa8cc
testl %eax, %eax
jne 0x5bf8
leal -0x75(%r15), %eax
cmpl $0x2, %eax
jb 0x5bf8
cmpl $0x78, %r15d
je 0x5bf8
cmpl $0x66, %r15d
jne 0x5cee
movl 0x4(%r14), %edi
callq 0xa8d7
testl %eax, %eax
jne 0x5bf8
cmpl $0x75, %r15d
jne 0x5b13
movl 0x18(%r14), %eax
testq %rax, %rax
je 0x5c1c
leaq 0x29820(%rip), %rcx     # 0x2f428
movslq (%rcx,%rax,4), %rdi
addq %rcx, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x4190
movq 0x10(%r14), %rdx
movl 0x4(%r14), %eax
leaq 0x3d995(%rip), %rcx     # 0x435c0
movq (%rcx,%rax,8), %rcx
leaq 0x29bec(%rip), %rsi     # 0x2f822
movq %rbx, %rdi
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x4240
leaq 0x29add(%rip), %rdi     # 0x2f729
leaq 0x299be(%rip), %rsi     # 0x2f611
leaq 0x29ad7(%rip), %rcx     # 0x2f731
movl $0x4a, %edx
callq 0x4180
leaq 0x29bc6(%rip), %rdi     # 0x2f831
xorl %eax, %eax
callq 0x13a00
leaq 0x29b05(%rip), %rdi     # 0x2f77e
leaq 0x29991(%rip), %rsi     # 0x2f611
leaq 0x29aaa(%rip), %rcx     # 0x2f731
movl $0x61, %edx
callq 0x4180
leaq 0x29ae6(%rip), %rdi     # 0x2f77e
leaq 0x29972(%rip), %rsi     # 0x2f611
leaq 0x29a8b(%rip), %rcx     # 0x2f731
movl $0x51, %edx
callq 0x4180
leaq 0x29a9d(%rip), %rdi     # 0x2f754
leaq 0x29953(%rip), %rsi     # 0x2f611
leaq 0x29a6c(%rip), %rcx     # 0x2f731
movl $0x4d, %edx
callq 0x4180
leaq 0x29a7e(%rip), %rdi     # 0x2f754
leaq 0x29934(%rip), %rsi     # 0x2f611
leaq 0x29a4d(%rip), %rcx     # 0x2f731
movl $0x65, %edx
callq 0x4180
leaq 0x29ab3(%rip), %rdi     # 0x2f7a8
leaq 0x29915(%rip), %rsi     # 0x2f611
leaq 0x29a2e(%rip), %rcx     # 0x2f731
movl $0x59, %edx
callq 0x4180