// File: /workspace/github_c_makefile_star2_O3/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 %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
testq %rsi, %rsi
je 0x278bd
movq %rsi, %r14
leaq 0x108ae(%rip), %r15     # 0x37fe4
movsbl 0x8(%r14), %esi
movq %rbx, %rdi
callq 0x2dd32
movslq (%r14), %rsi
movq %rbx, %rdi
callq 0x2dd70
movl 0x8(%r14), %eax
cmpq $0xd, %rax
ja 0x27ac2
movslq (%r15,%rax,4), %rax
addq %r15, %rax
jmpq *%rax
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x27717
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x27717
movl $0x28, %r12d
jmp 0x278b0
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x27717
movq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x27d89
movsbl 0x72(%r14), %esi
movq %rbx, %rdi
callq 0x2e042
movsbl 0x73(%r14), %esi
movq %rbx, %rdi
callq 0x2e042
movsbl 0x74(%r14), %esi
movq %rbx, %rdi
callq 0x2e042
movsbl 0x78(%r14), %esi
movq %rbx, %rdi
callq 0x2e042
movsbl 0x75(%r14), %esi
movq %rbx, %rdi
callq 0x2e042
jmp 0x278aa
movsbl 0x18(%r14), %esi
movq %rbx, %rdi
callq 0x2dd32
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x27d89
movq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x2dd70
movl 0x18(%r14), %eax
movl $0x30, %r12d
cmpl $0x5, %eax
je 0x278b0
jmp 0x278d0
movq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x27d89
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x27dce
movq 0x30(%r14), %rsi
movq %rbx, %rdi
callq 0x2dd70
movl $0x40, %r12d
cmpq $0x0, 0x30(%r14)
je 0x278b0
xorl %r13d, %r13d
movq 0x38(%r14), %rax
movq (%rax,%r13,8), %rsi
movq %rbx, %rdi
callq 0x27717
incq %r13
cmpq 0x30(%r14), %r13
jb 0x27857
jmp 0x278b0
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x27717
movl $0x20, %r12d
jmp 0x278b0
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x27717
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x27717
movq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x27717
movl $0x30, %r12d
movq (%r14,%r12), %r14
testq %r14, %r14
jne 0x27736
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2dd32
cmpl $0x6, %eax
ja 0x27ac2
movl %eax, %eax
leaq 0x1073a(%rip), %rcx     # 0x3801c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x30(%r14), %esi
jmp 0x27afc
movsbl 0x18(%r14), %esi
movq %rbx, %rdi
callq 0x2dd32
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x27d89
xorl %esi, %esi
cmpq $0x0, 0x28(%r14)
setne %sil
movq %rbx, %rdi
callq 0x2e042
movq 0x28(%r14), %rsi
testq %rsi, %rsi
je 0x27931
movq %rbx, %rdi
callq 0x27d89
movl 0x30(%r14), %esi
movq %rbx, %rdi
callq 0x2e042
movq 0x48(%r14), %rsi
movq %rbx, %rdi
callq 0x27717
movq 0x40(%r14), %rsi
movq %rbx, %rdi
callq 0x2dd70
cmpq $0x0, 0x40(%r14)
je 0x27ac2
xorl %r15d, %r15d
movq 0x50(%r14), %rax
movq (%rax,%r15,8), %rsi
movq %rbx, %rdi
callq 0x27717
incq %r15
cmpq 0x40(%r14), %r15
jb 0x27963
jmp 0x27ac2
movl 0x18(%r14), %esi
movq %rbx, %rdi
callq 0x2e042
jmp 0x279f7
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x27dce
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x2dd70
cmpq $0x0, 0x20(%r14)
je 0x27ac2
xorl %r15d, %r15d
movq 0x28(%r14), %rax
movq (%rax,%r15,8), %rsi
movq %rbx, %rdi
callq 0x27717
incq %r15
cmpq 0x20(%r14), %r15
jb 0x279b5
jmp 0x27ac2
xorl %esi, %esi
cmpq $0x0, 0x18(%r14)
setne %sil
movq %rbx, %rdi
callq 0x2e042
movq 0x18(%r14), %rsi
testq %rsi, %rsi
je 0x279f7
movq %rbx, %rdi
callq 0x2ddc9
movq 0x20(%r14), %rsi
jmp 0x27b11
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x27717
movq 0x20(%r14), %rax
movslq (%rax), %rsi
movq %rbx, %rdi
callq 0x2dd70
movq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x27d89
movq 0x40(%r14), %rsi
movq %rbx, %rdi
callq 0x2dd70
cmpq $0x0, 0x40(%r14)
je 0x27a56
xorl %r15d, %r15d
movq 0x30(%r14), %rax
movq (%rax,%r15,8), %rsi
movq %rbx, %rdi
callq 0x27d89
incq %r15
cmpq 0x40(%r14), %r15
jb 0x27a3d
movq 0x50(%r14), %rsi
movq %rbx, %rdi
callq 0x2dd70
cmpq $0x0, 0x50(%r14)
je 0x27ac2
xorl %r15d, %r15d
movq 0x48(%r14), %rax
movq (%rax,%r15,8), %rsi
movq %rbx, %rdi
callq 0x27b49
incq %r15
cmpq 0x50(%r14), %r15
jb 0x27a6c
jmp 0x27ac2
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x27717
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x2dd70
cmpq $0x0, 0x20(%r14)
je 0x27ac2
xorl %r15d, %r15d
movq 0x28(%r14), %rax
movq (%rax,%r15,8), %rsi
movq %rbx, %rdi
callq 0x27717
incq %r15
cmpq 0x20(%r14), %r15
jb 0x27aa9
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movl 0x30(%r14), %esi
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2e042
movsd 0x30(%r14), %xmm0
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2df6b
movq 0x30(%r14), %rsi
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2dd70
movq 0x30(%r14), %rsi
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2ddc9
movq 0x30(%r14), %rsi
movq 0x38(%r14), %rdx
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2dead
leaq 0xe83f(%rip), %rdi      # 0x36381
xorl %eax, %eax
callq 0x13844