// File: /workspace/github_c_makefile_star2_O0/nimble-code[P]Uno/Src/uno_fcts.c
// Function: has_sel_match
static int
has_sel_match(Label *n, int match, int dont)
{	char *r, *s;
	int typ = 0;

	if (strlen((char *) n->label) <= 2
	||  n->label[1] != ' ')
		return 0;

	switch (n->label[0]) {
	case 'G':
		if (!(match & (DECL|DEF)) || (dont & (DECL|DEF))) return 0;
		typ = DECL|DEF;
		break;
	case 'D':
		if (!(match & DEF) || (dont & DEF)) return 0;
		typ = DEF;
		break;
	case 'U':
		if (!(match & USE) || (dont & USE)) return 0;
		typ = USE;
		break;
	case 'R':
		if (!(match & DEREF) || (dont & DEREF)) return 0;
		typ = DEREF;
		break;
	default:
		return 0;
	}

	r = (char *) &(n->label[2]);
	s = strchr(r+1, ' ');

	if (!(r && s && s > r)) fprintf(stderr, "bad label: '%s' -- %p %p\n", n->label, r, s);
	f2d_assert((int) (r && s && s > r), "bad sel match");
	*s = '\0';
	set_select(r, s+1, typ); /* r = name, s+1 = location */
	*s = ' ';	/* restore */

	return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movl $0x0, -0x2c(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x1060
cmpq $0x2, %rax
jbe 0x6d7b
movq -0x10(%rbp), %rax
movq (%rax), %rax
movzbl 0x1(%rax), %eax
cmpl $0x20, %eax
je 0x6d87
movl $0x0, -0x4(%rbp)
jmp 0x6f3d
movq -0x10(%rbp), %rax
movq (%rax), %rax
movzbl (%rax), %eax
addl $-0x44, %eax
movl %eax, %ecx
movq %rcx, -0x38(%rbp)
subl $0x11, %eax
ja 0x6e6a
movq -0x38(%rbp), %rax
leaq 0xa0e(%rip), %rcx       # 0x77bc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x14(%rbp), %eax
andl $0x401, %eax            # imm = 0x401
cmpl $0x0, %eax
je 0x6dd1
movl -0x18(%rbp), %eax
andl $0x401, %eax            # imm = 0x401
cmpl $0x0, %eax
je 0x6ddd
movl $0x0, -0x4(%rbp)
jmp 0x6f3d
movl $0x401, -0x2c(%rbp)     # imm = 0x401
jmp 0x6e76
movl -0x14(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x6dff
movl -0x18(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x6e0b
movl $0x0, -0x4(%rbp)
jmp 0x6f3d
movl $0x1, -0x2c(%rbp)
jmp 0x6e76
movl -0x14(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x6e2a
movl -0x18(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x6e36
movl $0x0, -0x4(%rbp)
jmp 0x6f3d
movl $0x4, -0x2c(%rbp)
jmp 0x6e76
movl -0x14(%rbp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x6e55
movl -0x18(%rbp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x6e61
movl $0x0, -0x4(%rbp)
jmp 0x6f3d
movl $0x40, -0x2c(%rbp)
jmp 0x6e76
movl $0x0, -0x4(%rbp)
jmp 0x6f3d
movq -0x10(%rbp), %rax
movq (%rax), %rax
addq $0x2, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
addq $0x1, %rdi
movl $0x20, %esi
callq 0x1070
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x6eb3
cmpq $0x0, -0x28(%rbp)
je 0x6eb3
movq -0x28(%rbp), %rax
cmpq -0x20(%rbp), %rax
ja 0x6eda
movq 0x413e(%rip), %rax      # 0xaff8
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %r8
leaq 0x126e(%rip), %rsi      # 0x8141
movb $0x0, %al
callq 0x10d0
xorl %eax, %eax
cmpq $0x0, -0x20(%rbp)
movb %al, -0x39(%rbp)
je 0x6f00
xorl %eax, %eax
cmpq $0x0, -0x28(%rbp)
movb %al, -0x39(%rbp)
je 0x6f00
movq -0x28(%rbp), %rax
cmpq -0x20(%rbp), %rax
seta %al
movb %al, -0x39(%rbp)
movb -0x39(%rbp), %al
andb $0x1, %al
movzbl %al, %edi
leaq 0x124c(%rip), %rsi      # 0x815b
callq 0x6500
movq -0x28(%rbp), %rax
movb $0x0, (%rax)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
addq $0x1, %rsi
movl -0x2c(%rbp), %edx
callq 0x36f0
movq -0x28(%rbp), %rax
movb $0x20, (%rax)
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq