// File: /workspace/github_c_makefile_star2_O3/Oric4ever[P]lcc65/6502/build/../src/tree.c
// Function: printtree1
static void printtree1(p, fd, lev)int fd,lev; Tree p; {
	int i;
	static char blanks[] = "                                         ";

	if (p == 0 || *printed(i = nodeid(p)))
		return;
	fprint(fd, "#%d%s%s", i, &"   "[i < 10 ? 0 : i < 100 ? 1 : 2],
		 &blanks[sizeof blanks - lev]);
	fprint(fd, "%s %t", opname(p->op), p->type);
	*printed(i) = 1;
	for (i = 0; i < sizeof p->kids/sizeof p->kids[0]; i++)
		if (p->kids[i])
			fprint(fd, " #%d", nodeid(p->kids[i]));
	if (generic(p->op) == FIELD && p->u.field)
		fprint(fd, " %s %d..%d", p->u.field->name, p->u.field->from,
			p->u.field->to);
	else if (generic(p->op) == CNST)
		fprint(fd, " %s", vtoa(p->type, p->u.v));
	else if (p->u.sym)
		fprint(fd, " %s", p->u.sym->name);
	if (p->node)
		fprint(fd, " node=0x%x", p->node);
	fprint(fd, "\n");
	for (i = 0; i < sizeof p->kids/sizeof p->kids[0]; i++)
		printtree1(p->kids[i], fd, lev + 1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, 0x4(%rsp)
movl %esi, %ebp
movq %rdi, %r14
leaq 0x1918e(%rip), %r12     # 0x31040
leaq 0x1919f(%rip), %r13     # 0x31058
movabsq $0x100000000, %rbx      # imm = 0x100000000
testq %r14, %r14
je 0x180ae
movslq 0x128ad(%rip), %rax     # 0x2a780
movq %rax, %rcx
shlq $0x4, %rcx
movq %r14, 0x8(%rcx,%r12)
movq %r13, %rsi
xorl %r15d, %r15d
xorl %edx, %edx
addq %rbx, %r15
incq %rdx
leaq 0x10(%rsi), %rdi
cmpq %r14, (%rsi)
movq %rdi, %rsi
jne 0x17ee7
cmpl %edx, %eax
jne 0x17f0d
incl %eax
movl %eax, 0x1287b(%rip)     # 0x2a780
movl $0x0, (%rcx,%r12)
sarq $0x1c, %r15
cmpl $0x0, (%r15,%r12)
jne 0x180ae
addq %r12, %r15
cmpq $0x64, %rdx
movl $0x2, %ecx
sbbq $0x0, %rcx
cmpq $0xa, %rdx
movl $0x0, %eax
cmovbq %rax, %rcx
leaq 0x6382(%rip), %rax      # 0x1e2c2
addq %rax, %rcx
movslq 0x4(%rsp), %rax
leaq 0x12841(%rip), %r8      # 0x2a790
subq %rax, %r8
addq $0x2a, %r8
movl %ebp, %edi
leaq 0x8ffd(%rip), %rsi      # 0x20f5c
xorl %eax, %eax
callq 0x115a8
movl (%r14), %edi
callq 0x17aaf
movq 0x8(%r14), %rcx
movl %ebp, %edi
leaq 0x8fe9(%rip), %rsi      # 0x20f64
movq %rax, %rdx
xorl %eax, %eax
callq 0x115a8
movl $0x1, (%r15)
movb $0x1, %r15b
xorl %eax, %eax
movq 0x10(%r14,%rax,8), %rsi
testq %rsi, %rsi
je 0x17fe5
movslq 0x127de(%rip), %rax     # 0x2a780
movq %rax, %rcx
shlq $0x4, %rcx
movq %rsi, 0x8(%rcx,%r12)
xorl %edx, %edx
movq %r13, %rdi
incl %edx
leaq 0x10(%rdi), %r8
cmpq %rsi, (%rdi)
movq %r8, %rdi
jne 0x17fb3
cmpl %edx, %eax
jne 0x17fd5
incl %eax
movl %eax, 0x127b3(%rip)     # 0x2a780
movl $0x0, (%rcx,%r12)
movl %ebp, %edi
leaq 0x62f4(%rip), %rsi      # 0x1e2d2
xorl %eax, %eax
callq 0x115a8
movl $0x1, %eax
testb $0x1, %r15b
movl $0x0, %r15d
jne 0x17f91
movl (%r14), %eax
andl $-0x10, %eax
cmpl $0x10, %eax
je 0x1802f
cmpl $0x2b0, %eax            # imm = 0x2B0
jne 0x1804a
movq 0x28(%r14), %rax
testq %rax, %rax
je 0x18067
movq (%rax), %rdx
movswl 0x14(%rax), %ecx
movswl 0x16(%rax), %r8d
movl %ebp, %edi
leaq 0x8f44(%rip), %rsi      # 0x20f6a
xorl %eax, %eax
callq 0x115a8
jmp 0x18067
movq 0x8(%r14), %rdi
movq 0x28(%r14), %rsi
callq 0x14d05
movl %ebp, %edi
leaq 0x98d0(%rip), %rsi      # 0x21915
movq %rax, %rdx
jmp 0x18060
movq 0x28(%r14), %rax
testq %rax, %rax
je 0x18067
movq 0x10(%rax), %rdx
movl %ebp, %edi
leaq 0x98b5(%rip), %rsi      # 0x21915
xorl %eax, %eax
callq 0x115a8
movq 0x20(%r14), %rdx
testq %rdx, %rdx
je 0x18080
movl %ebp, %edi
leaq 0x8efc(%rip), %rsi      # 0x20f75
xorl %eax, %eax
callq 0x115a8
movl %ebp, %edi
leaq 0x7b0b(%rip), %rsi      # 0x1fb94
xorl %eax, %eax
callq 0x115a8
movl 0x4(%rsp), %edx
incl %edx
movq 0x10(%r14), %rdi
movl %ebp, %esi
movl %edx, 0x4(%rsp)
callq 0x17e97
movq 0x18(%r14), %r14
jmp 0x17ec3
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)