// File: /workspace/github_c_makefile_star2_O0/nimble-code[P]Uno/Src/uno_bounds.c
// Function: find_size
static treenode *
find_size(symentry_t *s, treenode *nn)
{	ArSize *a, *r = (ArSize *) 0;
	int cnt = 0;

	if (!s) return ZT;

	for (a = arsize; a; a = a->nxt)
	{	if (a->s == s)
			return a->b;
		else
		if (strcmp(a->s->nme->str, s->nme->str) == 0
		&&       a->s->decl_level == s->decl_level)
		{	cnt++;
			r = a;
#if 0
			printf("same name %s, different symbol:\n", s->nme->str);
			printf("	level %d %d\n",
				a->s->decl_level,
				s->decl_level);
			printf("	line %d %d\n", a->s->ln, s->ln);
			printf("	scopetab %u %u\n", a->s->nes, s->nes);
			printf("	tree %u %u\n", a->s->node, s->node);
			printf("	tree ln %u %u\n",
				a->s->node->hdr.line, s->node->hdr.line);
#endif
		}
	}
	if (cnt == 1) return r->b;	/* uno can't tell that r is initialized here */

	for (a = arnosize; a; a = a->nxt)
		if (strcmp(a->s->nme->str, s->nme->str) == 0)
			break;	/* somehow the symentry's may differ */

	if (!a)
	{	a = getars();
		a->s = s;
		a->nxt = arnosize;
		arnosize = a;
		/* avoid reporting more than once */
		if (Verbose)
		printf("uno: %s:%d could not determine array bound for %s\n",
			nn->hdr.fnm,
			nn->hdr.line,
			s->nme->str);
		size_other++;
	}
	return ZT;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq $0x0, -0x28(%rbp)
movl $0x0, -0x2c(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x2d053
movq $0x0, -0x8(%rbp)
jmp 0x2d1ca
movq 0x69aee(%rip), %rax     # 0x96b48
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x2d0e9
movq -0x20(%rbp), %rax
movq (%rax), %rax
cmpq -0x10(%rbp), %rax
jne 0x2d087
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0x2d1ca
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rsi
callq 0x3160
cmpl $0x0, %eax
jne 0x2d0d4
movq -0x20(%rbp), %rax
movq (%rax), %rax
movswl 0x20(%rax), %eax
movq -0x10(%rbp), %rcx
movswl 0x20(%rcx), %ecx
cmpl %ecx, %eax
jne 0x2d0d4
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x2d0d6
jmp 0x2d0d8
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0x2d05e
cmpl $0x1, -0x2c(%rbp)
jne 0x2d100
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0x2d1ca
movq 0x69a49(%rip), %rax     # 0x96b50
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x2d149
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rsi
callq 0x3160
cmpl $0x0, %eax
jne 0x2d139
jmp 0x2d149
jmp 0x2d13b
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0x2d10b
cmpq $0x0, -0x20(%rbp)
jne 0x2d1c2
callq 0x2ceb0
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq 0x699e5(%rip), %rcx     # 0x96b50
movq -0x20(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x20(%rbp), %rax
movq %rax, 0x699d2(%rip)     # 0x96b50
leaq 0x211f3(%rip), %rax     # 0x4e378
cmpl $0x0, (%rax)
je 0x2d1b3
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rsi
movq -0x18(%rbp), %rax
movl 0x10(%rax), %edx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rcx
leaq 0x1971e(%rip), %rdi     # 0x468ca
movb $0x0, %al
callq 0x30f0
movl 0x6995f(%rip), %eax     # 0x96b18
addl $0x1, %eax
movl %eax, 0x69956(%rip)     # 0x96b18
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)