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

	type = rdbyte(fd);
	if (type == Nnone)
		return NULL;
	n = mknode(Zloc, type);
	n->loc.line = rdint(fd);
	n->loc.file = file.nfiles - 1;
	switch (n->type) {
	case Nexpr:
		n->expr.op = rdbyte(fd);
		rdtype(fd, &n->expr.type);
		if (rdbool(fd))
			rdtype(fd, &n->expr.param);
		n->expr.isconst = rdbool(fd);
		n->expr.idx = unpickle(fd);
		n->expr.nargs = rdint(fd);
		n->expr.args = zalloc(sizeof(Node *) * n->expr.nargs);
		for (i = 0; i < n->expr.nargs; i++)
			n->expr.args[i] = unpickle(fd);
		break;
	case Nname:
		if (rdbool(fd))
			n->name.ns = rdstr(fd);
		n->name.name = rdstr(fd);
		break;
	case Nuse:
		n->use.islocal = rdbool(fd);
		n->use.name = rdstr(fd);
		break;
	case Nlit:
		n->lit.littype = rdbyte(fd);
		rdtype(fd, &n->lit.type);
		n->lit.nelt = rdint(fd);
		switch (n->lit.littype) {
		case Lvoid:	break;
		case Lchr:	n->lit.chrval = rdint(fd);	break;
		case Lint:	n->lit.intval = rdint(fd);	break;
		case Lflt:	n->lit.fltval = rdflt(fd);	break;
		case Lstr:	rdlenstr(fd, &n->lit.strval);	break;
		case Llbl:	n->lit.lblval = rdstr(fd);	break;
		case Lbool:	n->lit.boolval = rdbool(fd);	break;
		case Lfunc:	n->lit.fnval = unpickle(fd);	break;
		}
		break;
	case Nloopstmt:
		n->loopstmt.init = unpickle(fd);
		n->loopstmt.cond = unpickle(fd);
		n->loopstmt.step = unpickle(fd);
		n->loopstmt.body = unpickle(fd);
		break;
	case Niterstmt:
		n->iterstmt.elt = unpickle(fd);
		n->iterstmt.seq = unpickle(fd);
		n->iterstmt.body = unpickle(fd);
		break;
	case Nmatchstmt:
		n->matchstmt.val = unpickle(fd);
		n->matchstmt.nmatches = rdint(fd);
		n->matchstmt.matches = zalloc(sizeof(Node *) * n->matchstmt.nmatches);
		for (i = 0; i < n->matchstmt.nmatches; i++)
			n->matchstmt.matches[i] = unpickle(fd);
		break;
	case Nmatch:
		n->match.pat = unpickle(fd);
		n->match.block = unpickle(fd);
		break;
	case Nifstmt:
		n->ifstmt.cond = unpickle(fd);
		n->ifstmt.iftrue = unpickle(fd);
		n->ifstmt.iffalse = unpickle(fd);
		break;
	case Nblock:
		n->block.scope = rdstab(fd, 0);
		n->block.nstmts = rdint(fd);
		n->block.stmts = zalloc(sizeof(Node *) * n->block.nstmts);
		n->block.scope->super = curstab();
		pushstab(n->block.scope->super);
		for (i = 0; i < n->block.nstmts; i++)
			n->block.stmts[i] = unpickle(fd);
		popstab();
		break;
	case Ndecl:
		n->decl.did = ndecls; /* unique within file */
		/* sym */
		n->decl.name = unpickle(fd);
		rdtype(fd, &n->decl.type);

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

		/* init */
		n->decl.init = unpickle(fd);
		lappend(&decls, &ndecls, n);
		break;
	case Nfunc:
		rdtype(fd, &n->func.type);
		n->func.scope = rdstab(fd, 1);
		n->func.nargs = rdint(fd);
		n->func.args = zalloc(sizeof(Node *) * n->func.nargs);
		n->func.scope->super = curstab();
		pushstab(n->func.scope->super);
		for (i = 0; i < n->func.nargs; i++)
			n->func.args[i] = unpickle(fd);
		n->func.body = unpickle(fd);
		popstab();
		break;
	case Nimpl:
		n->impl.traitname = unpickle(fd);
		rdtrait(fd, &n->impl.trait, NULL);
		rdtype(fd, &n->impl.type);
		n->impl.naux = rdint(fd);
		n->impl.aux = zalloc(sizeof(Node *) * n->impl.naux);
		for (i = 0; i < n->impl.naux; i++)
			rdtype(fd, &n->impl.aux[i]);
		n->impl.ndecls = rdint(fd);
		n->impl.decls = zalloc(sizeof(Node *) * n->impl.ndecls);
		for (i = 0; i < n->impl.ndecls; i++)
			n->impl.decls[i] = rdsym(fd, n->impl.trait);
		lappend(&impltab, &nimpltab, n);
		lappend(&implfix, &nimplfix, n);
		break;
	case Nnone:
		die("Nnone should not be seen as node type!");
		break;
	}
	return n;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0x2e1d5
testb %al, %al
je 0x25b22
movsbl %al, %esi
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x1d69c
movq %rax, %rbx
movq %r14, %rdi
callq 0x2e209
movl %eax, (%rbx)
leaq 0x3b7a3(%rip), %rax     # 0x61278
movl (%rax), %eax
decl %eax
movl %eax, 0x4(%rbx)
movl 0x8(%rbx), %eax
cmpq $0xd, %rax
ja 0x25f44
leaq 0x1242c(%rip), %rcx     # 0x37f1c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r14, %rdi
callq 0x25aa0
movq %rax, 0x18(%rbx)
movq %r14, %rdi
callq 0x25aa0
movq %rax, 0x20(%rbx)
movq %r14, %rdi
callq 0x25aa0
movq %rax, 0x28(%rbx)
jmp 0x25f44
xorl %ebx, %ebx
jmp 0x25f44
movq %r14, %rdi
callq 0x2e4cb
movl %eax, 0x18(%rbx)
jmp 0x25eaa
movq %r14, %rdi
callq 0x25aa0
movq %rax, 0x18(%rbx)
leaq 0x20(%rbx), %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x28106
movq %rbx, %rsi
addq $0x28, %rsi
movq %r14, %rdi
callq 0x2637c
movq %r14, %rdi
callq 0x2e209
movq %rax, 0x40(%rbx)
leaq (,%rax,8), %rdi
callq 0x2d348
movq %rax, 0x30(%rbx)
cmpq $0x0, 0x40(%rbx)
je 0x25ba8
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x30(%rbx), %rsi
addq %r15, %rsi
movq %r14, %rdi
callq 0x2637c
incq %r12
addq $0x8, %r15
cmpq 0x40(%rbx), %r12
jb 0x25b8c
movq %r14, %rdi
callq 0x2e209
movq %rax, 0x50(%rbx)
leaq (,%rax,8), %rdi
callq 0x2d348
movq %rax, 0x48(%rbx)
cmpq $0x0, 0x50(%rbx)
je 0x25bec
xorl %r15d, %r15d
movq 0x20(%rbx), %rsi
movq %r14, %rdi
callq 0x263f9
movq 0x48(%rbx), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
cmpq 0x50(%rbx), %r15
jb 0x25bcf
leaq 0x3c615(%rip), %rdi     # 0x62208
leaq 0x3c616(%rip), %rsi     # 0x62210
movq %rbx, %rdx
callq 0x2d3ff
leaq 0x3c64f(%rip), %rdi     # 0x62258
leaq 0x3c650(%rip), %rsi     # 0x62260
jmp 0x25e85
movq %r14, %rdi
callq 0x25aa0
movq %rax, 0x18(%rbx)
movq %r14, %rdi
callq 0x25aa0
jmp 0x25eb2
movq %r14, %rdi
callq 0x2e1d5
movsbl %al, %eax
movl %eax, 0x18(%rbx)
leaq 0x20(%rbx), %rsi
movq %r14, %rdi
callq 0x2637c
movq %r14, %rdi
callq 0x2e209
movq %rax, 0x28(%rbx)
movl 0x18(%rbx), %eax
cmpq $0x6, %rax
ja 0x25f44
leaq 0x122ec(%rip), %rcx     # 0x37f54
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r14, %rdi
callq 0x2e209
movl %eax, 0x30(%rbx)
jmp 0x25f44
movq %r14, %rdi
callq 0x25aa0
movq %rax, 0x18(%rbx)
movq %r14, %rdi
callq 0x2e209
movq %rax, 0x20(%rbx)
leaq (,%rax,8), %rdi
callq 0x2d348
movq %rax, 0x28(%rbx)
cmpq $0x0, 0x20(%rbx)
je 0x25f44
xorl %r15d, %r15d
movq %r14, %rdi
callq 0x25aa0
movq 0x28(%rbx), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
cmpq 0x20(%rbx), %r15
jb 0x25cb8
jmp 0x25f44
movq %r14, %rdi
callq 0x25aa0
movq %rax, 0x18(%rbx)
movq %r14, %rdi
callq 0x25aa0
movq %rax, 0x20(%rbx)
movq %r14, %rdi
callq 0x25aa0
movq %rax, 0x28(%rbx)
movq %r14, %rdi
callq 0x25aa0
movq %rax, 0x30(%rbx)
jmp 0x25f44
movq %r14, %rdi
callq 0x2e1d5
movsbl %al, %eax
movl %eax, 0x18(%rbx)
leaq 0x20(%rbx), %rsi
movq %r14, %rdi
callq 0x2637c
movq %r14, %rdi
callq 0x2e4cb
testl %eax, %eax
je 0x25d40
movq %rbx, %rsi
addq $0x28, %rsi
movq %r14, %rdi
callq 0x2637c
movq %r14, %rdi
callq 0x2e4cb
movl %eax, 0x30(%rbx)
movq %r14, %rdi
callq 0x25aa0
movq %rax, 0x48(%rbx)
movq %r14, %rdi
callq 0x2e209
movq %rax, 0x40(%rbx)
leaq (,%rax,8), %rdi
callq 0x2d348
movq %rax, 0x50(%rbx)
cmpq $0x0, 0x40(%rbx)
je 0x25f44
xorl %r15d, %r15d
movq %r14, %rdi
callq 0x25aa0
movq 0x50(%rbx), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
cmpq 0x40(%rbx), %r15
jb 0x25d82
jmp 0x25f44
movq %r14, %rdi
xorl %esi, %esi
callq 0x281e7
movq %rax, 0x18(%rbx)
movq %r14, %rdi
callq 0x2e209
movq %rax, 0x20(%rbx)
leaq (,%rax,8), %rdi
callq 0x2d348
movq %rax, 0x28(%rbx)
callq 0x20037
movq 0x18(%rbx), %rcx
movq %rax, (%rcx)
movq 0x18(%rbx), %rax
movq (%rax), %rdi
callq 0x20070
cmpq $0x0, 0x20(%rbx)
je 0x25f3f
xorl %r15d, %r15d
movq %r14, %rdi
callq 0x25aa0
movq 0x28(%rbx), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
cmpq 0x20(%rbx), %r15
jb 0x25df1
jmp 0x25f3f
leaq 0x3bb4a(%rip), %r15     # 0x61960
movq (%r15), %rax
movq %rax, 0x18(%rbx)
movq %r14, %rdi
callq 0x25aa0
movq %rax, 0x20(%rbx)
movq %rbx, %rsi
addq $0x28, %rsi
movq %r14, %rdi
callq 0x2637c
movq %r14, %rdi
callq 0x2e4cb
movb %al, 0x72(%rbx)
movq %r14, %rdi
callq 0x2e4cb
movb %al, 0x73(%rbx)
movq %r14, %rdi
callq 0x2e4cb
movb %al, 0x74(%rbx)
movq %r14, %rdi
callq 0x2e4cb
movb %al, 0x78(%rbx)
movq %r14, %rdi
callq 0x2e4cb
movb %al, 0x75(%rbx)
movq %r14, %rdi
callq 0x25aa0
movq %rax, 0x30(%rbx)
leaq 0x3bae6(%rip), %rdi     # 0x61968
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2d3ff
jmp 0x25f44
movq %r14, %rdi
callq 0x2e4cb
testl %eax, %eax
je 0x25eaa
movq %r14, %rdi
callq 0x2e2b1
movq %rax, 0x18(%rbx)
movq %r14, %rdi
callq 0x2e2b1
movq %rax, 0x20(%rbx)
jmp 0x25f44
movq %rbx, %rsi
addq $0x28, %rsi
movq %r14, %rdi
callq 0x2637c
movq %r14, %rdi
movl $0x1, %esi
callq 0x281e7
movq %rax, 0x20(%rbx)
movq %r14, %rdi
callq 0x2e209
movq %rax, 0x30(%rbx)
leaq (,%rax,8), %rdi
callq 0x2d348
movq %rax, 0x38(%rbx)
callq 0x20037
movq 0x20(%rbx), %rcx
movq %rax, (%rcx)
movq 0x20(%rbx), %rax
movq (%rax), %rdi
callq 0x20070
cmpq $0x0, 0x30(%rbx)
je 0x25f33
xorl %r15d, %r15d
movq %r14, %rdi
callq 0x25aa0
movq 0x38(%rbx), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
cmpq 0x30(%rbx), %r15
jb 0x25f1a
movq %r14, %rdi
callq 0x25aa0
movq %rax, 0x40(%rbx)
callq 0x200b6
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %r14, %rdi
callq 0x2e406
movsd %xmm0, 0x30(%rbx)
jmp 0x25f44
movq %r14, %rdi
callq 0x2e4cb
movl %eax, 0x30(%rbx)
jmp 0x25f44
movq %r14, %rdi
callq 0x2e209
jmp 0x25d02
movq %rbx, %rsi
addq $0x30, %rsi
movq %r14, %rdi
callq 0x2e36c
jmp 0x25f44
movq %r14, %rdi
callq 0x2e2b1
jmp 0x25d02
leaq 0x103d0(%rip), %rdi     # 0x36371
xorl %eax, %eax
callq 0x13a00