// File: /workspace/github_c_makefile_star2_O0/nimble-code[P]Uno/Src/uno_generic.c
// Function: domatch
static int
domatch(treenode *n, int mark, int allow, int forbid, int which)	/* 1: match, 2: marked */
{	SymRef *s;
	SymList *r;
	int nonempty = 0;

	/* select names in dfstack that match selection in defuse */

	if (!n || (which != 2 && !n->hdr.defuse))
		return 0;

	if (debug)
	printf("domatch mark=%d, allow=%d, forbid=%d, which=%d\n",
		mark, allow, forbid, which);

	for (s = gen_stack->symrefs; s; s = s->nxt)
	{	if (debug)
		printf(">> stack: %s s_val=%d status=%d\n",
			s->sm->nme->str, s->s_val, s->status);

		if (s->s_val == mark
		&&  (s->status & allow)
		&& !(s->status & forbid))
		{	if (which == 2)	/* marked */
			{	if (s->s_val == mark
				&&  (s->status & allow)
				&& !(s->status & forbid))
				{	s->status |= SELECTED;
					if (debug) printf("	YES marked\n");
					nonempty = 1;
				}
			} else		/* match */
			{	for (r = n->hdr.defuse->other; r; r = r->nxt)
					if (r->selected
					&&  strcmp(r->sm->nme->str, s->sm->nme->str) == 0)
					{	s->status |= SELECTED;
						nonempty = 1;
						if (debug) printf("	YES matched\n");
						break;
		}	}		}
	}
	return nonempty;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movl %r8d, -0x20(%rbp)
movl $0x0, -0x34(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x322f8
cmpl $0x2, -0x20(%rbp)
je 0x32304
movq -0x10(%rbp), %rax
cmpq $0x0, 0x28(%rax)
jne 0x32304
movl $0x0, -0x4(%rbp)
jmp 0x324b4
cmpl $0x0, 0x648dd(%rip)     # 0x96be8
je 0x32328
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
movl -0x1c(%rbp), %ecx
movl -0x20(%rbp), %r8d
leaq 0x15170(%rip), %rdi     # 0x47491
movb $0x0, %al
callq 0x30f0
movq 0x648a9(%rip), %rax     # 0x96bd8
movq (%rax), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x324ae
cmpl $0x0, 0x648a0(%rip)     # 0x96be8
je 0x32375
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rsi
movq -0x28(%rbp), %rax
movl 0x14(%rax), %edx
movq -0x28(%rbp), %rax
movl 0x10(%rax), %ecx
leaq 0x15153(%rip), %rdi     # 0x474c1
movb $0x0, %al
callq 0x30f0
movq -0x28(%rbp), %rax
movl 0x14(%rax), %eax
cmpl -0x14(%rbp), %eax
jne 0x3249b
movq -0x28(%rbp), %rax
movl 0x10(%rax), %eax
andl -0x18(%rbp), %eax
cmpl $0x0, %eax
je 0x3249b
movq -0x28(%rbp), %rax
movl 0x10(%rax), %eax
andl -0x1c(%rbp), %eax
cmpl $0x0, %eax
jne 0x3249b
cmpl $0x2, -0x20(%rbp)
jne 0x3240e
movq -0x28(%rbp), %rax
movl 0x14(%rax), %eax
cmpl -0x14(%rbp), %eax
jne 0x32409
movq -0x28(%rbp), %rax
movl 0x10(%rax), %eax
andl -0x18(%rbp), %eax
cmpl $0x0, %eax
je 0x32409
movq -0x28(%rbp), %rax
movl 0x10(%rax), %eax
andl -0x1c(%rbp), %eax
cmpl $0x0, %eax
jne 0x32409
movq -0x28(%rbp), %rax
movl 0x10(%rax), %ecx
orl $0x1000000, %ecx        # imm = 0x1000000
movl %ecx, 0x10(%rax)
cmpl $0x0, 0x647f6(%rip)     # 0x96be8
je 0x32402
leaq 0x150e7(%rip), %rdi     # 0x474e2
movb $0x0, %al
callq 0x30f0
movl $0x1, -0x34(%rbp)
jmp 0x32499
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movq 0x18(%rax), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x32497
movq -0x30(%rbp), %rax
cmpl $0x0, (%rax)
je 0x32487
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rdi
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rsi
callq 0x3160
cmpl $0x0, %eax
jne 0x32487
movq -0x28(%rbp), %rax
movl 0x10(%rax), %ecx
orl $0x1000000, %ecx        # imm = 0x1000000
movl %ecx, 0x10(%rax)
movl $0x1, -0x34(%rbp)
cmpl $0x0, 0x64773(%rip)     # 0x96be8
je 0x32485
leaq 0x15071(%rip), %rdi     # 0x474ef
movb $0x0, %al
callq 0x30f0
jmp 0x32497
jmp 0x32489
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x30(%rbp)
jmp 0x3241e
jmp 0x32499
jmp 0x3249b
jmp 0x3249d
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x28(%rbp)
jmp 0x32336
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)