// File: /workspace/github_c_makefile_star2_O2/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 0x54da
movq %rsi, %r14
movl (%rsi), %eax
cmpq $0x6, %rax
ja 0x5474
leaq 0x25f5b(%rip), %rcx     # 0x2b2d8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movsbl %dl, %eax
addl $-0x6d, %eax
cmpl $0xb, %eax
ja 0x5505
movl $0xa01, %ecx            # imm = 0xA01
btl %eax, %ecx
jae 0x5505
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5288
movsbl %dl, %eax
leal -0x75(%rax), %ecx
cmpl $0x2, %ecx
jb 0x5489
cmpl $0x66, %eax
je 0x547c
cmpl $0x78, %eax
je 0x5489
cmpl $0x72, %eax
jne 0x551e
callq 0x9ca0
jmp 0x5481
movsbl %dl, %eax
addl $-0x6d, %eax
cmpl $0xb, %eax
ja 0x5537
movl $0xa01, %ecx            # imm = 0xA01
btl %eax, %ecx
jae 0x5537
movq 0x10(%r14), %rdi
jmp 0x54a0
movsbl %dl, %eax
addl $-0x69, %eax
cmpl $0xf, %eax
ja 0x5550
movl $0x9001, %ecx           # imm = 0x9001
btl %eax, %ecx
jae 0x5550
movq 0x10(%r14), %rdx
leaq 0x2c4b4(%rip), %rsi     # 0x318ed
jmp 0x5463
movsbl %dl, %eax
addl $-0x69, %eax
cmpl $0xf, %eax
ja 0x5569
movl $0x9001, %ecx           # imm = 0x9001
btl %eax, %ecx
jae 0x5569
movq 0x10(%r14), %rdx
leaq 0x263c9(%rip), %rsi     # 0x2b82c
movq %rbx, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4240
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x9cab
testl %eax, %eax
je 0x551e
movl 0x18(%r14), %eax
testq %rax, %rax
je 0x54af
leaq 0x25f8f(%rip), %rcx     # 0x2b428
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 0x3b102(%rip), %rcx     # 0x405c0
movq (%rcx,%rax,8), %rcx
leaq 0x26359(%rip), %rsi     # 0x2b822
movq %rbx, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4240
leaq 0x26248(%rip), %rdi     # 0x2b729
leaq 0x26129(%rip), %rsi     # 0x2b611
leaq 0x26242(%rip), %rcx     # 0x2b731
pushq $0x4a
popq %rdx
callq 0x4180
leaq 0x26333(%rip), %rdi     # 0x2b831
xorl %eax, %eax
callq 0x1205c
leaq 0x26272(%rip), %rdi     # 0x2b77e
leaq 0x260fe(%rip), %rsi     # 0x2b611
leaq 0x26217(%rip), %rcx     # 0x2b731
pushq $0x61
jmp 0x54f1
leaq 0x26283(%rip), %rdi     # 0x2b7a8
leaq 0x260e5(%rip), %rsi     # 0x2b611
leaq 0x261fe(%rip), %rcx     # 0x2b731
pushq $0x59
jmp 0x54f1
leaq 0x26240(%rip), %rdi     # 0x2b77e
leaq 0x260cc(%rip), %rsi     # 0x2b611
leaq 0x261e5(%rip), %rcx     # 0x2b731
pushq $0x51
jmp 0x54f1
leaq 0x261fd(%rip), %rdi     # 0x2b754
leaq 0x260b3(%rip), %rsi     # 0x2b611
leaq 0x261cc(%rip), %rcx     # 0x2b731
pushq $0x4d
jmp 0x54f1
leaq 0x261e4(%rip), %rdi     # 0x2b754
leaq 0x2609a(%rip), %rsi     # 0x2b611
leaq 0x261b3(%rip), %rcx     # 0x2b731
pushq $0x65
jmp 0x54f1