// File: /workspace/github_c_makefile_star2_O1/oridb[P]mc/parse/use.c
// Function: pickle
static void
pickle(FILE *fd, Node *n)
{
	size_t i;

	if (!n) {
		wrbyte(fd, Nnone);
		return;
	}
	wrbyte(fd, n->type);
	wrint(fd, n->loc.line);
	switch (n->type) {
	case Nexpr:
		wrbyte(fd, n->expr.op);
		wrtype(fd, n->expr.type);
		wrbool(fd, n->expr.param != NULL);
		if (n->expr.param)
			wrtype(fd, n->expr.param);
		wrbool(fd, n->expr.isconst);
		pickle(fd, n->expr.idx);
		wrint(fd, n->expr.nargs);
		for (i = 0; i < n->expr.nargs; i++)
			pickle(fd, n->expr.args[i]);
		break;
	case Nname:
		wrbool(fd, n->name.ns != NULL);
		if (n->name.ns) {
			wrstr(fd, n->name.ns);
		}
		wrstr(fd, n->name.name);
		break;
	case Nuse:
		wrbool(fd, n->use.islocal);
		wrstr(fd, n->use.name);
		break;
	case Nlit:
		wrbyte(fd, n->lit.littype);
		wrtype(fd, n->lit.type);
		wrint(fd, n->lit.nelt);
		switch (n->lit.littype) {
		case Lvoid:	break;
		case Lchr:	wrint(fd, n->lit.chrval);	break;
		case Lint:	wrint(fd, n->lit.intval);	break;
		case Lflt:	wrflt(fd, n->lit.fltval);	break;
		case Lstr:	wrlenstr(fd, n->lit.strval);	break;
		case Llbl:	wrstr(fd, n->lit.lblval);	break;
		case Lbool:	wrbool(fd, n->lit.boolval);	break;
		case Lfunc:	pickle(fd, n->lit.fnval);	break;
		}
		break;
	case Nloopstmt:
		pickle(fd, n->loopstmt.init);
		pickle(fd, n->loopstmt.cond);
		pickle(fd, n->loopstmt.step);
		pickle(fd, n->loopstmt.body);
		break;
	case Niterstmt:
		pickle(fd, n->iterstmt.elt);
		pickle(fd, n->iterstmt.seq);
		pickle(fd, n->iterstmt.body);
		break;
	case Nmatchstmt:
		pickle(fd, n->matchstmt.val);
		wrint(fd, n->matchstmt.nmatches);
		for (i = 0; i < n->matchstmt.nmatches; i++)
			pickle(fd, n->matchstmt.matches[i]);
		break;
	case Nmatch:
		pickle(fd, n->match.pat);
		pickle(fd, n->match.block);
		break;
	case Nifstmt:
		pickle(fd, n->ifstmt.cond);
		pickle(fd, n->ifstmt.iftrue);
		pickle(fd, n->ifstmt.iffalse);
		break;
	case Nblock:
		wrstab(fd, n->block.scope);
		wrint(fd, n->block.nstmts);
		for (i = 0; i < n->block.nstmts; i++)
			pickle(fd, n->block.stmts[i]);
		break;
	case Ndecl:
		/* sym */
		pickle(fd, n->decl.name);
		wrtype(fd, n->decl.type);

		/* symflags */
		wrbool(fd, n->decl.isconst);
		wrbool(fd, n->decl.isgeneric);
		wrbool(fd, n->decl.isextern);
		wrbool(fd, n->decl.isnoret);
		wrbool(fd, n->decl.ispkglocal);

		/* init */
		pickle(fd, n->decl.init);
		break;
	case Nfunc:
		wrtype(fd, n->func.type);
		wrstab(fd, n->func.scope);
		wrint(fd, n->func.nargs);
		for (i = 0; i < n->func.nargs; i++)
			pickle(fd, n->func.args[i]);
		pickle(fd, n->func.body);
		break;
	case Nimpl:
		pickle(fd, n->impl.traitname);
		wrint(fd, n->impl.trait->uid);
		wrtype(fd, n->impl.type);
		wrint(fd, n->impl.naux);
		for (i = 0; i < n->impl.naux; i++)
			wrtype(fd, n->impl.aux[i]);
		wrint(fd, n->impl.ndecls);
		for (i = 0; i < n->impl.ndecls; i++)
			wrsym(fd, n->impl.decls[i]);
		break;
	case Nnone:	die("Nnone should not be seen as node type!");	break;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x103ed(%rip), %r15     # 0x38014
testq %r14, %r14
je 0x27da4
movsbl 0x8(%r14), %esi
movq %rbx, %rdi
callq 0x2e1b2
movslq (%r14), %rsi
movq %rbx, %rdi
callq 0x2e1f0
movl 0x8(%r14), %eax
cmpq $0xd, %rax
ja 0x27fb2
movslq (%r15,%rax,4), %rax
addq %r15, %rax
jmpq *%rax
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x27c12
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x27c12
movq 0x28(%r14), %r14
jmp 0x27c27
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x27c12
movq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x28288
movsbl 0x72(%r14), %esi
movq %rbx, %rdi
callq 0x2e4c2
movsbl 0x73(%r14), %esi
movq %rbx, %rdi
callq 0x2e4c2
movsbl 0x74(%r14), %esi
movq %rbx, %rdi
callq 0x2e4c2
movsbl 0x78(%r14), %esi
movq %rbx, %rdi
callq 0x2e4c2
movsbl 0x75(%r14), %esi
movq %rbx, %rdi
callq 0x2e4c2
jmp 0x27d9b
movsbl 0x18(%r14), %esi
movq %rbx, %rdi
callq 0x2e1b2
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x28288
movq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x2e1f0
movl 0x18(%r14), %eax
cmpl $0x5, %eax
je 0x27d9b
jmp 0x27db9
movq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x28288
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x282cd
movq 0x30(%r14), %rsi
movq %rbx, %rdi
callq 0x2e1f0
cmpq $0x0, 0x30(%r14)
je 0x27d59
xorl %r12d, %r12d
movq 0x38(%r14), %rax
movq (%rax,%r12,8), %rsi
movq %rbx, %rdi
callq 0x27c12
incq %r12
cmpq 0x30(%r14), %r12
jb 0x27d40
movq 0x40(%r14), %r14
jmp 0x27c27
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x27c12
movq 0x20(%r14), %r14
jmp 0x27c27
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x27c12
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x27c12
movq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x27c12
movq 0x30(%r14), %r14
jmp 0x27c27
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2e1b2
cmpl $0x6, %eax
ja 0x27fb2
movl %eax, %eax
leaq 0x10281(%rip), %rcx     # 0x3804c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x30(%r14), %esi
jmp 0x27ff2
movsbl 0x18(%r14), %esi
movq %rbx, %rdi
callq 0x2e1b2
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x28288
xorl %esi, %esi
cmpq $0x0, 0x28(%r14)
setne %sil
movq %rbx, %rdi
callq 0x2e4c2
movq 0x28(%r14), %rsi
testq %rsi, %rsi
je 0x27e1a
movq %rbx, %rdi
callq 0x28288
movl 0x30(%r14), %esi
movq %rbx, %rdi
callq 0x2e4c2
movq 0x48(%r14), %rsi
movq %rbx, %rdi
callq 0x27c12
movq 0x40(%r14), %rsi
movq %rbx, %rdi
callq 0x2e1f0
cmpq $0x0, 0x40(%r14)
je 0x27fb2
xorl %r15d, %r15d
movq 0x50(%r14), %rax
movq (%rax,%r15,8), %rsi
movq %rbx, %rdi
callq 0x27c12
incq %r15
cmpq 0x40(%r14), %r15
jb 0x27e4c
jmp 0x27fb2
movl 0x18(%r14), %esi
movq %rbx, %rdi
callq 0x2e4c2
jmp 0x27f6e
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x27c12
movq 0x20(%r14), %rax
movslq (%rax), %rsi
movq %rbx, %rdi
callq 0x2e1f0
movq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x28288
movq 0x40(%r14), %rsi
movq %rbx, %rdi
callq 0x2e1f0
cmpq $0x0, 0x40(%r14)
je 0x27ed1
xorl %r15d, %r15d
movq 0x30(%r14), %rax
movq (%rax,%r15,8), %rsi
movq %rbx, %rdi
callq 0x28288
incq %r15
cmpq 0x40(%r14), %r15
jb 0x27eb8
movq 0x50(%r14), %rsi
movq %rbx, %rdi
callq 0x2e1f0
cmpq $0x0, 0x50(%r14)
je 0x27fb2
xorl %r15d, %r15d
movq 0x48(%r14), %rax
movq (%rax,%r15,8), %rsi
movq %rbx, %rdi
callq 0x28045
incq %r15
cmpq 0x50(%r14), %r15
jb 0x27eeb
jmp 0x27fb2
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x282cd
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x2e1f0
cmpq $0x0, 0x20(%r14)
je 0x27fb2
xorl %r15d, %r15d
movq 0x28(%r14), %rax
movq (%rax,%r15,8), %rsi
movq %rbx, %rdi
callq 0x27c12
incq %r15
cmpq 0x20(%r14), %r15
jb 0x27f2f
jmp 0x27fb2
xorl %esi, %esi
cmpq $0x0, 0x18(%r14)
setne %sil
movq %rbx, %rdi
callq 0x2e4c2
movq 0x18(%r14), %rsi
testq %rsi, %rsi
je 0x27f6e
movq %rbx, %rdi
callq 0x2e249
movq 0x20(%r14), %rsi
jmp 0x28009
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x27c12
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x2e1f0
cmpq $0x0, 0x20(%r14)
je 0x27fb2
xorl %r15d, %r15d
movq 0x28(%r14), %rax
movq (%rax,%r15,8), %rsi
movq %rbx, %rdi
callq 0x27c12
incq %r15
cmpq 0x20(%r14), %r15
jb 0x27f99
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl 0x30(%r14), %esi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2e4c2
movsd 0x30(%r14), %xmm0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2e3eb
movq 0x30(%r14), %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2e1f0
movq 0x30(%r14), %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2e249
movq 0x30(%r14), %rsi
movq 0x38(%r14), %rdx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2e32d
leaq 0xe333(%rip), %rdi      # 0x36371
xorl %eax, %eax
callq 0x13a00