// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %dl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movb %al, -0x11(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0x7f41
jmp 0x7f60
leaq 0x4353d(%rip), %rdi     # 0x4b485
leaq 0x4341e(%rip), %rsi     # 0x4b36d
movl $0x4a, %edx
leaq 0x43532(%rip), %rcx     # 0x4b48d
callq 0x6160
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq %rax, -0x20(%rbp)
subq $0x6, %rax
ja 0x81c8
movq -0x20(%rbp), %rax
leaq 0x4335d(%rip), %rcx     # 0x4b2dc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movsbl -0x11(%rbp), %eax
cmpl $0x69, %eax
je 0x7fa3
movsbl -0x11(%rbp), %eax
cmpl $0x78, %eax
je 0x7fa3
movsbl -0x11(%rbp), %eax
cmpl $0x75, %eax
jne 0x7fa5
jmp 0x7fc4
leaq 0x43504(%rip), %rdi     # 0x4b4b0
leaq 0x433ba(%rip), %rsi     # 0x4b36d
movl $0x4d, %edx
leaq 0x434ce(%rip), %rcx     # 0x4b48d
callq 0x6160
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdx
leaq 0x497fb(%rip), %rsi     # 0x517d2
movb $0x0, %al
callq 0x6230
jmp 0x81c8
movsbl -0x11(%rbp), %eax
cmpl $0x6d, %eax
je 0x7ffe
movsbl -0x11(%rbp), %eax
cmpl $0x76, %eax
je 0x7ffe
movsbl -0x11(%rbp), %eax
cmpl $0x78, %eax
jne 0x8000
jmp 0x801f
leaq 0x434d3(%rip), %rdi     # 0x4b4da
leaq 0x4335f(%rip), %rsi     # 0x4b36d
movl $0x51, %edx
leaq 0x43473(%rip), %rcx     # 0x4b48d
callq 0x6160
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdx
leaq 0x4aa69(%rip), %rsi     # 0x52a9b
movb $0x0, %al
callq 0x6230
jmp 0x81c8
movsbl -0x11(%rbp), %eax
cmpl $0x72, %eax
jne 0x8058
movq -0x10(%rbp), %rax
movl 0x4(%rax), %edi
callq 0xfd30
cmpl $0x0, %eax
jne 0x808d
movsbl -0x11(%rbp), %eax
cmpl $0x66, %eax
jne 0x8072
movq -0x10(%rbp), %rax
movl 0x4(%rax), %edi
callq 0xfd70
cmpl $0x0, %eax
jne 0x808d
movsbl -0x11(%rbp), %eax
cmpl $0x76, %eax
je 0x808d
movsbl -0x11(%rbp), %eax
cmpl $0x78, %eax
je 0x808d
movsbl -0x11(%rbp), %eax
cmpl $0x75, %eax
jne 0x808f
jmp 0x80ae
leaq 0x4346e(%rip), %rdi     # 0x4b504
leaq 0x432d0(%rip), %rsi     # 0x4b36d
movl $0x59, %edx
leaq 0x433e4(%rip), %rcx     # 0x4b48d
callq 0x6160
movq -0x10(%rbp), %rax
cmpl $0x0, 0x18(%rax)
jne 0x80e8
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdx
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, %ecx
leaq 0x5731c(%rip), %rax     # 0x5f3f0
movq (%rax,%rcx,8), %rcx
leaq 0x4349f(%rip), %rsi     # 0x4b57e
movb $0x0, %al
callq 0x6230
jmp 0x810e
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, %ecx
leaq 0x57334(%rip), %rax     # 0x5f430
movq (%rax,%rcx,8), %rdx
leaq 0x4a994(%rip), %rsi     # 0x52a9b
movb $0x0, %al
callq 0x6230
jmp 0x81c8
movsbl -0x11(%rbp), %eax
cmpl $0x6d, %eax
je 0x812e
movsbl -0x11(%rbp), %eax
cmpl $0x76, %eax
je 0x812e
movsbl -0x11(%rbp), %eax
cmpl $0x78, %eax
jne 0x8130
jmp 0x814f
leaq 0x433a3(%rip), %rdi     # 0x4b4da
leaq 0x4322f(%rip), %rsi     # 0x4b36d
movl $0x61, %edx
leaq 0x43343(%rip), %rcx     # 0x4b48d
callq 0x6160
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movsbl -0x11(%rbp), %edx
callq 0x7de0
jmp 0x81c8
movsbl -0x11(%rbp), %eax
cmpl $0x69, %eax
je 0x817d
movsbl -0x11(%rbp), %eax
cmpl $0x78, %eax
je 0x817d
movsbl -0x11(%rbp), %eax
cmpl $0x75, %eax
jne 0x817f
jmp 0x819e
leaq 0x4332a(%rip), %rdi     # 0x4b4b0
leaq 0x431e0(%rip), %rsi     # 0x4b36d
movl $0x65, %edx
leaq 0x432f4(%rip), %rcx     # 0x4b48d
callq 0x6160
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdx
leaq 0x433d7(%rip), %rsi     # 0x4b588
movb $0x0, %al
callq 0x6230
jmp 0x81c8
leaq 0x433cc(%rip), %rdi     # 0x4b58d
movb $0x0, %al
callq 0x1df20
addq $0x20, %rsp
popq %rbp
retq
nop