// File: /workspace/github_c_makefile_star2_O0/nimble-code[P]Uno/Src/uno_generic.c
// Function: sym_update
static void
sym_update(treenode *m, int val, int unused2)
{	SymRef *s;
	SymList *r;
	treenode *n;

	n = (m && m->hdr.type == TN_IF) ? ((if_node *)m)->cond : m;

	/* if any items on the stack were selected
	 * then a match() operations was executed
	 * which voids the select bits in defuse
	 */
	for (s = gen_stack->symrefs; s; s = s->nxt)
		if (s->status & SELECTED)
			goto after;

	if (n && n->hdr.defuse)
	for (r = n->hdr.defuse->other; r; r = r->nxt)
		if (r->selected)
		{	s = uno_getref(r->sm);
			s->nxt = gen_stack->symrefs;
			s->status = r->mark | SELECTED;
			s->n = n;
			gen_stack->symrefs = s;
			if (debug)
			printf("\tadded %s (line %d)\n",
				s->sm->nme->str, s->n?s->n->hdr.line:-1);
		}

	for (s = gen_stack->symrefs; s; s = s->nxt)
		if (s->status & SELECTED)
		{	if (debug)
			printf("\tmarked %s = %d (line %d)\n",
				s->sm->nme->str, val, s->n?s->n->hdr.line:-1);
after:			s->s_val = val;
		}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x30f01
movq -0x8(%rbp), %rax
cmpl $0x1b, 0x1c(%rax)
jne 0x30f01
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rax
movq %rax, -0x30(%rbp)
jmp 0x30f09
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x28(%rbp)
movq 0x65cc0(%rip), %rax     # 0x96bd8
movq (%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x30f4c
movq -0x18(%rbp), %rax
movl 0x10(%rax), %eax
andl $0x1000000, %eax        # imm = 0x1000000
cmpl $0x0, %eax
je 0x30f3c
jmp 0x310d7
jmp 0x30f3e
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x30f1f
cmpq $0x0, -0x28(%rbp)
je 0x3104c
movq -0x28(%rbp), %rax
cmpq $0x0, 0x28(%rax)
je 0x3104c
movq -0x28(%rbp), %rax
movq 0x28(%rax), %rax
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x3104a
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x31037
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x20420
movq %rax, -0x18(%rbp)
movq 0x65c32(%rip), %rax     # 0x96bd8
movq (%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x20(%rbp), %rax
movl 0x4(%rax), %ecx
orl $0x1000000, %ecx        # imm = 0x1000000
movq -0x18(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x28(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rcx
movq 0x65bfc(%rip), %rax     # 0x96bd8
movq %rcx, (%rax)
cmpl $0x0, 0x65c02(%rip)     # 0x96be8
je 0x31035
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x31016
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movl 0x10(%rax), %eax
movl %eax, -0x3c(%rbp)
jmp 0x31020
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x3c(%rbp)
jmp 0x31020
movq -0x38(%rbp), %rsi
movl -0x3c(%rbp), %edx
leaq 0x15fd8(%rip), %rdi     # 0x47006
movb $0x0, %al
callq 0x30f0
jmp 0x31037
jmp 0x31039
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0x30f76
jmp 0x3104c
movq 0x65b85(%rip), %rax     # 0x96bd8
movq (%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x310f4
movq -0x18(%rbp), %rax
movl 0x10(%rax), %eax
andl $0x1000000, %eax        # imm = 0x1000000
cmpl $0x0, %eax
je 0x310e1
cmpl $0x0, 0x65b6b(%rip)     # 0x96be8
je 0x310d5
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, -0x48(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x40(%rbp)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x310b3
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movl 0x10(%rax), %eax
movl %eax, -0x4c(%rbp)
jmp 0x310bd
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x4c(%rbp)
jmp 0x310bd
movl -0x40(%rbp), %edx
movq -0x48(%rbp), %rsi
movl -0x4c(%rbp), %ecx
leaq 0x15fd6(%rip), %rdi     # 0x470a4
movb $0x0, %al
callq 0x30f0
jmp 0x310d7
movl -0xc(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x14(%rax)
jmp 0x310e3
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x3105a
addq $0x50, %rsp
popq %rbp
retq
nopw (%rax,%rax)