// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x262d1
movq -0x8(%rbp), %rdi
callq 0x261a0
movl %eax, %edi
movl %edi, -0x14(%rbp)
callq 0x26230
cmpl $0x0, (%rax)
je 0x262d6
jmp 0x264fb
movl -0xc(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x18(%rbp)
cmpl $0xa, -0x14(%rbp)
jge 0x262ef
xorl %eax, %eax
movl %eax, -0x20(%rbp)
jmp 0x26305
movl -0x14(%rbp), %edx
movl $0x2, %eax
movl $0x1, %ecx
cmpl $0x64, %edx
cmovll %ecx, %eax
movl %eax, -0x20(%rbp)
movl -0x18(%rbp), %edx
movl -0x1c(%rbp), %edi
movl -0x20(%rbp), %eax
cltq
leaq 0x8ee7(%rip), %rcx      # 0x2f1fe
addq %rax, %rcx
movslq -0x10(%rbp), %rsi
movl $0x2a, %eax
subq %rsi, %rax
leaq 0x15463(%rip), %r8      # 0x3b790
addq %rax, %r8
leaq 0xc07c(%rip), %rsi      # 0x323b3
movb $0x0, %al
callq 0x1a630
movl -0xc(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x8(%rbp), %rax
movl (%rax), %edi
callq 0x258b0
movl -0x24(%rbp), %edi
movq %rax, %rdx
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rcx
leaq 0xc057(%rip), %rsi      # 0x323bb
movb $0x0, %al
callq 0x1a630
movl -0x14(%rbp), %edi
callq 0x26230
movl $0x1, (%rax)
movl $0x0, -0x14(%rbp)
movslq -0x14(%rbp), %rax
cmpq $0x2, %rax
jae 0x263d2
movq -0x8(%rbp), %rax
movslq -0x14(%rbp), %rcx
cmpq $0x0, 0x10(%rax,%rcx,8)
je 0x263c5
movl -0xc(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq 0x10(%rax,%rcx,8), %rdi
callq 0x261a0
movl -0x28(%rbp), %edi
movl %eax, %edx
leaq 0x8e50(%rip), %rsi      # 0x2f20e
movb $0x0, %al
callq 0x1a630
jmp 0x263c7
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x26380
movq -0x8(%rbp), %rax
movl (%rax), %eax
andl $-0x10, %eax
cmpl $0x2b0, %eax            # imm = 0x2B0
jne 0x26424
movq -0x8(%rbp), %rax
cmpq $0x0, 0x28(%rax)
je 0x26424
movl -0xc(%rbp), %edi
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq (%rax), %rdx
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movswl 0x14(%rax), %ecx
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movswl 0x16(%rax), %r8d
leaq 0xbfa6(%rip), %rsi      # 0x323c1
movb $0x0, %al
callq 0x1a630
jmp 0x2648f
movq -0x8(%rbp), %rax
movl (%rax), %eax
andl $-0x10, %eax
cmpl $0x10, %eax
jne 0x26463
movl -0xc(%rbp), %eax
movl %eax, -0x2c(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rsi
callq 0x206a0
movl -0x2c(%rbp), %edi
movq %rax, %rdx
leaq 0xc913(%rip), %rsi      # 0x32d6d
movb $0x0, %al
callq 0x1a630
jmp 0x2648d
movq -0x8(%rbp), %rax
cmpq $0x0, 0x28(%rax)
je 0x2648b
movl -0xc(%rbp), %edi
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq 0x10(%rax), %rdx
leaq 0xc8e9(%rip), %rsi      # 0x32d6d
movb $0x0, %al
callq 0x1a630
jmp 0x2648d
jmp 0x2648f
movq -0x8(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x264b3
movl -0xc(%rbp), %edi
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rdx
leaq 0xbf20(%rip), %rsi      # 0x323cc
movb $0x0, %al
callq 0x1a630
movl -0xc(%rbp), %edi
leaq 0xa67f(%rip), %rsi      # 0x30b3c
movb $0x0, %al
callq 0x1a630
movl $0x0, -0x14(%rbp)
movslq -0x14(%rbp), %rax
cmpq $0x2, %rax
jae 0x264fb
movq -0x8(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq 0x10(%rax,%rcx,8), %rdi
movl -0xc(%rbp), %esi
movl -0x10(%rbp), %edx
addl $0x1, %edx
callq 0x262a0
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x264cb
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)