// File: /workspace/github_c_makefile_star2_O2/nimble-code[P]Uno/Src/uno_generic.c
// Function: match_args
static int
match_args(treenode *e, treenode *n, int which)	/* 1:match(mark,with,without) 2:marked(x,with,without) */
{	treenode *f, *g;
	int val1, val2, mark;

	/*	   TN_FUNC_CALL:e
		      /    \
		     /      \
		TN_IDENT  TN_EXPR_LIST:f
		   /          /         \
		match        /       TN_INT:val2
	           TN_EXPR_LIST:g
	                  /      \
		  TN_INT:mark    TN_INT:val1
	 */
		if (!e->rnode
		||   e->rnode->hdr.type != TN_EXPR_LIST)
			goto bad1;
	f = e->rnode;
		if (!f->lnode
		||   f->lnode->hdr.type != TN_EXPR_LIST)
			goto bad1;
	g = f->lnode;
		if (!g->lnode || !g->rnode)
			goto bad1;
	nogood = 0;
	val1 = eval_const_expr(g->rnode, n);
	val2 = eval_const_expr(f->rnode, n);
	mark = eval_const_expr(g->lnode, n);
	if (nogood)
	{
bad1:		err_path++;
		fprintf(stderr, "\t\t%s:%d: error match_args in '%s'\n",
			n?n->hdr.fnm:"--", n?n->hdr.line:0, x_stmnt(e));
		exit(1);
	}

	if (debug)
	{	err_path++;
		printf("%3d>>saw %s(%s,%d,%d)\n", depth, x_stmnt(e), user_name, val1, val2);
		err_path--;
	}
	return domatch(n, mark, val1, val2, which);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, 0xc(%rsp)
movq %rsi, (%rsp)
movq %rdi, 0x10(%rsp)
movq 0x48(%rdi), %rbx
testq %rbx, %rbx
je 0x1a90a
cmpl $0xa, 0x1c(%rbx)
jne 0x1a90a
movq 0x40(%rbx), %r12
testq %r12, %r12
je 0x1a90a
cmpl $0xa, 0x1c(%r12)
jne 0x1a90a
cmpq $0x0, 0x40(%r12)
je 0x1a90a
movq 0x48(%r12), %rdi
testq %rdi, %rdi
je 0x1a90a
leaq 0x6518f(%rip), %rbp     # 0x7f998
andl $0x0, (%rbp)
movq (%rsp), %r13
movq %r13, %rsi
callq 0x18519
movl %eax, %r14d
movq 0x48(%rbx), %rdi
movq %r13, %rsi
callq 0x18519
movl %eax, %r15d
movq 0x40(%r12), %rdi
movq %r13, %rsi
callq 0x18519
cmpl $0x0, (%rbp)
jne 0x1a90a
xorl %ecx, %ecx
cmpq $0x0, (%rsp)
je 0x1a8f9
movl %eax, %r12d
cmpl $0x2, 0xc(%rsp)
je 0x1a868
movq (%rsp), %rax
cmpq $0x0, 0x28(%rax)
je 0x1a8f9
movl $0x0, 0x10(%rsp)
movq 0x651f1(%rip), %rbp     # 0x7fa68
movq (%rbp), %rbp
testq %rbp, %rbp
je 0x1a8f5
cmpl %r12d, 0x14(%rbp)
jne 0x1a8ac
movl 0x10(%rbp), %ebx
testl %r14d, %ebx
je 0x1a8ac
movl %ebx, %eax
andl %r15d, %eax
jne 0x1a8ac
cmpl $0x2, 0xc(%rsp)
jne 0x1a8b2
orl $0x1000000, %ebx        # imm = 0x1000000
movl %ebx, 0x10(%rbp)
pushq $0x1
popq %rax
movl %eax, 0x10(%rsp)
addq $0x18, %rbp
jmp 0x1a877
movq (%rsp), %rax
movq 0x28(%rax), %r13
addq $0x18, %r13
movq (%r13), %r13
testq %r13, %r13
je 0x1a8ac
cmpl $0x0, (%r13)
je 0x1a8ef
movq 0x8(%r13), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rdi
movq (%rbp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rsi
callq 0x3190
testl %eax, %eax
je 0x1a89c
addq $0x10, %r13
jmp 0x1a8be
movl 0x10(%rsp), %ecx
movl %ecx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
incl 0x65160(%rip)           # 0x7fa70
movq 0x1c6e1(%rip), %rax     # 0x36ff8
movq (%rax), %r14
cmpq $0x0, (%rsp)
jne 0x1a92c
xorl %ebx, %ebx
leaq 0x38db(%rip), %r15      # 0x1e205
jmp 0x1a937
movq (%rsp), %rax
movq 0x8(%rax), %r15
movl 0x10(%rax), %ebx
movq 0x10(%rsp), %rdi
callq 0x4ac7
leaq 0x1481b(%rip), %rsi     # 0x2f163
movq %r14, %rdi
movq %r15, %rdx
movl %ebx, %ecx
movq %rax, %r8
xorl %eax, %eax
callq 0x31a0
pushq $0x1
popq %rdi
callq 0x3270