// File: /workspace/github_c_makefile_star2_O1/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:
testq %rdi, %rdi
je 0x18234
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
movslq 0x11753(%rip), %rax     # 0x29780
movq %rax, %rcx
shlq $0x4, %rcx
leaq 0x18005(%rip), %r9      # 0x30040
movq %rdi, 0x8(%rcx,%r9)
leaq 0x18011(%rip), %rsi     # 0x30058
xorl %r15d, %r15d
movabsq $0x100000000, %rdi      # imm = 0x100000000
xorl %edx, %edx
addq %rdi, %r15
incq %rdx
leaq 0x10(%rsi), %r8
cmpq %r14, (%rsi)
movq %r8, %rsi
jne 0x18056
cmpl %edx, %eax
jne 0x1807c
incl %eax
movl %eax, 0x1170c(%rip)     # 0x29780
movl $0x0, (%rcx,%r9)
sarq $0x1c, %r15
cmpl $0x0, (%r15,%r9)
jne 0x18226
addq %r9, %r15
cmpq $0x64, %rdx
movl $0x2, %eax
sbbq $0x0, %rax
xorl %ecx, %ecx
cmpq $0xa, %rdx
cmovbq %rcx, %rax
leaq 0x6216(%rip), %rcx      # 0x1e2c2
addq %rax, %rcx
movslq %ebx, %rax
leaq 0x116d7(%rip), %r8      # 0x29790
subq %rax, %r8
addq $0x2a, %r8
leaq 0x8e15(%rip), %rsi      # 0x20edc
movl %ebp, %edi
xorl %eax, %eax
callq 0x116f4
movl (%r14), %edi
callq 0x17c28
movq 0x8(%r14), %rcx
leaq 0x8e01(%rip), %rsi      # 0x20ee4
movl %ebp, %edi
movq %rax, %rdx
xorl %eax, %eax
callq 0x116f4
movl $0x1, (%r15)
leaq 0x17f5b(%rip), %r13     # 0x30058
leaq 0x61ce(%rip), %r15      # 0x1e2d2
xorl %r12d, %r12d
movq 0x10(%r14,%r12,8), %rsi
testq %rsi, %rsi
je 0x1815e
movslq 0x11668(%rip), %rax     # 0x29780
movq %rax, %rcx
shlq $0x4, %rcx
leaq 0x17f1a(%rip), %r9      # 0x30040
movq %rsi, 0x8(%rcx,%r9)
xorl %edx, %edx
movq %r13, %rdi
incl %edx
leaq 0x10(%rdi), %r8
cmpq %rsi, (%rdi)
movq %r8, %rdi
jne 0x18130
cmpl %edx, %eax
jne 0x18152
incl %eax
movl %eax, 0x11636(%rip)     # 0x29780
movl $0x0, (%rcx,%r9)
movl %ebp, %edi
movq %r15, %rsi
xorl %eax, %eax
callq 0x116f4
leaq 0x1(%r12), %rax
testq %r12, %r12
movq %rax, %r12
je 0x18107
movl (%r14), %eax
andl $-0x10, %eax
cmpl $0x10, %eax
je 0x181a9
cmpl $0x2b0, %eax            # imm = 0x2B0
jne 0x181c4
movq 0x28(%r14), %rsi
testq %rsi, %rsi
je 0x181a4
movq (%rsi), %rdx
movswl 0x14(%rsi), %ecx
movswl 0x16(%rsi), %r8d
leaq 0x8d51(%rip), %rsi      # 0x20eea
movl %ebp, %edi
xorl %eax, %eax
callq 0x116f4
jmp 0x181e1
cmpl $0x10, %eax
jne 0x181c4
movq 0x8(%r14), %rdi
movq 0x28(%r14), %rsi
callq 0x14e3f
leaq 0x96d8(%rip), %rsi      # 0x21895
movl %ebp, %edi
movq %rax, %rdx
jmp 0x181da
movq 0x28(%r14), %rax
testq %rax, %rax
je 0x181e1
movq 0x10(%rax), %rdx
leaq 0x96bd(%rip), %rsi      # 0x21895
movl %ebp, %edi
xorl %eax, %eax
callq 0x116f4
movq 0x20(%r14), %rdx
testq %rdx, %rdx
je 0x181fa
leaq 0x8d04(%rip), %rsi      # 0x20ef5
movl %ebp, %edi
xorl %eax, %eax
callq 0x116f4
leaq 0x7943(%rip), %rsi      # 0x1fb44
xorl %r15d, %r15d
movl %ebp, %edi
xorl %eax, %eax
callq 0x116f4
incl %ebx
movq 0x10(%r14,%r15,8), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x1800b
incq %r15
cmpq $0x1, %r15
je 0x1820f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)