// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xf882(%rip), %r15      # 0x33ff4
pushq $0x28
popq %r12
pushq $0x30
popq %r13
testq %r14, %r14
je 0x248fc
movsbl 0x8(%r14), %esi
movq %rbx, %rdi
callq 0x2a7ef
movslq (%r14), %rsi
movq %rbx, %rdi
callq 0x2a82d
movl 0x8(%r14), %eax
cmpq $0xd, %rax
ja 0x24ac0
movslq (%r15,%rax,4), %rax
addq %r15, %rax
jmpq *%rax
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x2475a
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x2475a
movq %r12, %rax
jmp 0x248f3
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x2475a
movq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x24da7
movsbl 0x72(%r14), %esi
movq %rbx, %rdi
callq 0x2aa53
movsbl 0x73(%r14), %esi
movq %rbx, %rdi
callq 0x2aa53
movsbl 0x74(%r14), %esi
movq %rbx, %rdi
callq 0x2aa53
movsbl 0x78(%r14), %esi
movq %rbx, %rdi
callq 0x2aa53
movsbl 0x75(%r14), %esi
movq %rbx, %rdi
callq 0x2aa53
jmp 0x248f0
movsbl 0x18(%r14), %esi
movq %rbx, %rdi
callq 0x2a7ef
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x24da7
movq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x2a82d
movl 0x18(%r14), %eax
cmpq $0x6, %rax
ja 0x24ac0
leaq 0xf7c2(%rip), %rdx      # 0x3402c
movslq (%rdx,%rax,4), %rcx
addq %rdx, %rcx
movq %r13, %rax
jmpq *%rcx
movq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x24da7
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x24dec
movq 0x30(%r14), %rsi
movq %rbx, %rdi
callq 0x2a82d
xorl %ebp, %ebp
cmpq 0x30(%r14), %rbp
jae 0x248b7
movq 0x38(%r14), %rax
movq (%rax,%rbp,8), %rsi
movq %rbx, %rdi
callq 0x2475a
incq %rbp
jmp 0x2489c
pushq $0x40
jmp 0x248c9
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x2475a
pushq $0x20
popq %rax
jmp 0x248f3
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x2475a
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x2475a
movq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x2475a
movq %r13, %rax
movq (%r14,%rax), %r14
jmp 0x2477a
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2a7ef
movl 0x18(%r14), %esi
movq %rbx, %rdi
callq 0x2aa53
jmp 0x24a81
movsbl 0x18(%r14), %esi
movq %rbx, %rdi
callq 0x2a7ef
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x24da7
xorl %esi, %esi
cmpq $0x0, 0x28(%r14)
setne %sil
movq %rbx, %rdi
callq 0x2aa53
movq 0x28(%r14), %rsi
testq %rsi, %rsi
je 0x24962
movq %rbx, %rdi
callq 0x24da7
movl 0x30(%r14), %esi
movq %rbx, %rdi
callq 0x2aa53
movq 0x48(%r14), %rsi
movq %rbx, %rdi
callq 0x2475a
movq 0x40(%r14), %rsi
movq %rbx, %rdi
callq 0x2a82d
xorl %r15d, %r15d
cmpq 0x40(%r14), %r15
jae 0x24ac0
movq 0x50(%r14), %rax
movq (%rax,%r15,8), %rsi
movq %rbx, %rdi
callq 0x2475a
incq %r15
jmp 0x24989
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x2475a
movq 0x20(%r14), %rax
movslq (%rax), %rsi
movq %rbx, %rdi
callq 0x2a82d
movq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x24da7
movq 0x40(%r14), %rsi
movq %rbx, %rdi
callq 0x2a82d
xorl %r15d, %r15d
cmpq 0x40(%r14), %r15
jae 0x249f9
movq 0x30(%r14), %rax
movq (%rax,%r15,8), %rsi
movq %rbx, %rdi
callq 0x24da7
incq %r15
jmp 0x249de
movq 0x50(%r14), %rsi
movq %rbx, %rdi
callq 0x2a82d
xorl %r15d, %r15d
cmpq 0x50(%r14), %r15
jae 0x24ac0
movq 0x48(%r14), %rax
movq (%rax,%r15,8), %rsi
movq %rbx, %rdi
callq 0x24b6b
incq %r15
jmp 0x24a08
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x24dec
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x2a82d
xorl %r15d, %r15d
cmpq 0x20(%r14), %r15
jae 0x24ac0
movq 0x28(%r14), %rax
movq (%rax,%r15,8), %rsi
movq %rbx, %rdi
callq 0x2475a
incq %r15
jmp 0x24a42
xorl %esi, %esi
cmpq $0x0, 0x18(%r14)
setne %sil
movq %rbx, %rdi
callq 0x2aa53
movq 0x18(%r14), %rsi
testq %rsi, %rsi
je 0x24a81
movq %rbx, %rdi
callq 0x2a882
movq 0x20(%r14), %rsi
jmp 0x24b47
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x2475a
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x2a82d
xorl %r15d, %r15d
cmpq 0x20(%r14), %r15
jae 0x24ac0
movq 0x28(%r14), %rax
movq (%rax,%r15,8), %rsi
movq %rbx, %rdi
callq 0x2475a
incq %r15
jmp 0x24aa5
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movsd 0x30(%r14), %xmm0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2a97e
movl 0x30(%r14), %esi
jmp 0x24b2d
movl 0x30(%r14), %esi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2aa53
movq 0x30(%r14), %rsi
movq 0x38(%r14), %rdx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2a918
movq 0x30(%r14), %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2a82d
movq 0x30(%r14), %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2a882
leaq 0xd7ed(%rip), %rdi      # 0x32351
xorl %eax, %eax
callq 0x1205c