LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/6/simp.c
// Function: lval
static Node *
lval(Simp *s, Node *n)
{
	Node *r;
	Node **args;

	args = n->expr.args;
	switch (exprop(n)) {
	case Ovar:	r = loadvar(s, n, NULL);	break;
	case Oidx:	r = loadidx(s, args[0], args[1]);	break;
	case Oderef:	r = deref(rval(s, args[0], NULL), NULL);	break;
	case Otupmemb:	r = rval(s, n, NULL);	break;
	case Omemb:	r = rval(s, n, NULL);	break;
	case Ostruct:	r = rval(s, n, NULL);	break;
	case Oucon:	r = rval(s, n, NULL);	break;
	case Oarr:	r = rval(s, n, NULL);	break;

	/*
	  not expressible as lvalues in syntax, but
	  we take their address in matches
	 */
	case Oudata:    r = rval(s, n, NULL); break;
	case Outag:     r = rval(s, n, NULL); break;
	case Otupget:   r = rval(s, n, NULL); break;

	default:
			fatal(n, "%s cannot be an lvalue", opstr[exprop(n)]);
			break;
	}
	return r;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x50(%rsi), %r15
movq %rsi, %rdi
callq 0x1b5e6
leal -0x33(%rax), %ecx
cmpl $0x6, %ecx
jbe 0xfd67
cmpl $0x13, %eax
je 0xfd9b
cmpl $0x28, %eax
je 0xfdaa
cmpl $0x2a, %eax
je 0xfd77
cmpl $0x2b, %eax
je 0xfd77
cmpl $0x43, %eax
je 0xfd77
cmpl $0x44, %eax
je 0xfd77
cmpl $0x45, %eax
je 0xfd77
movq %rbx, %rdi
callq 0x1b5e6
movl %eax, %eax
leaq 0x4d64e(%rip), %rcx     # 0x5d3a0
movq (%rcx,%rax,8), %rdx
leaq 0x1e8a9(%rip), %rsi     # 0x2e606
movq %rbx, %rdi
xorl %eax, %eax
callq 0x120fd
leaq 0x1e52a(%rip), %rax     # 0x2e298
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
popq %rbx
popq %r14
popq %r15
jmp 0xe4f4
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
popq %rbx
popq %r14
popq %r15
jmp 0xd8ce
movq (%r15), %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0xe4f4
jmp 0xfdc9
movq (%r15), %rsi
movq 0x8(%r15), %rbx
movq %r14, %rdi
xorl %edx, %edx
callq 0xe4f4
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0xf81e
movq %rax, %rdi
xorl %esi, %esi
popq %rbx
popq %r14
popq %r15
jmp 0xe3fb
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/6/simp.c
// Function: visit
static Node *
visit(Simp *s, Node *n)
{
	size_t i;
	Node *r;

	for (i = 0; i < n->expr.nargs; i++)
		n->expr.args[i] = rval(s, n->expr.args[i], NULL);
	if (ispure(n)) {
		r = n;
	} else {
		if (exprtype(n)->type == Tyvoid) {
			r = NULL;
			append(s, n);
		} else {
			r = temp(s, n);
			append(s, set(r, n));
		}
	}
	return r;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
cmpq 0x40(%rbx), %r15
jae 0xfe0b
movq 0x50(%rbx), %rax
movq (%rax,%r15,8), %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0xe4f4
movq 0x50(%rbx), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
jmp 0xfde6
movq %rbx, %rdi
callq 0x1b5e6
movl %eax, %eax
leaq 0x4db84(%rip), %rcx     # 0x5d9a0
cmpl $0x0, (%rcx,%rax,4)
jne 0xfe65
movq %rbx, %rdi
callq 0x1bf90
cmpl $0x1, (%rax)
jne 0xfe3e
movq %r14, %rdi
movq %rbx, %rsi
callq 0xe461
xorl %ebx, %ebx
jmp 0xfe65
movq %r14, %rdi
movq %rbx, %rsi
callq 0xd96c
movq %rax, %r15
movq %rax, %rdi
movq %rbx, %rsi
callq 0xe34a
movq %r14, %rdi
movq %rax, %rsi
callq 0xe461
movq %r15, %rbx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/6/simp.c
// Function: slicebase
static Node *
slicebase(Simp *s, Node *n, Node *off)
{
	Node *u, *v;
	Type *ty;
	int sz;

	u = NULL;
	ty = tybase(exprtype(n));
	switch (ty->type) {
	case Typtr:	u = n;	break;
	case Tyslice:	u = load(addr(s, n, mktyptr(n->loc, base(exprtype(n)))));	break;
	case Tyarray:	u = addr(s, n, base(exprtype(n)));	break;
	default: die("Unslicable type %s", tystr(n->expr.type));
	}
	/* safe: all types we allow here have a sub[0] that we want to grab */
	if (off) {
		off = ptrsized(s, rval(s, off, NULL));
		sz = tysize(n->expr.type->sub[0]);
		v = mul(off, disp(n->loc, sz));
		return add(u, v);
	} else {
		return u;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq %rsi, %rdi
callq 0x1bf90
movq %rax, %rdi
callq 0x1fcd8
movl (%rax), %eax
movq %rbx, %r12
cmpl $0x12, %eax
je 0xfefb
cmpl $0x15, %eax
je 0xfeda
cmpl $0x14, %eax
jne 0xff62
movq %rbx, %rdi
callq 0x1bf90
movq %rax, %rdi
callq 0xe4c7
movq (%rbx), %rdi
movq %rax, %rsi
callq 0x2020c
movq %r15, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0xdab6
movq %rax, %rdi
callq 0xf792
jmp 0xfef8
movq %rbx, %rdi
callq 0x1bf90
movq %rax, %rdi
callq 0xe4c7
movq %r15, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0xdab6
movq %rax, %r12
testq %r14, %r14
je 0xff53
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xe4f4
movq %rax, %rdi
callq 0xff7c
movq %rax, %r14
movq 0x20(%rbx), %rax
movq 0x68(%rax), %rax
movq (%rax), %rdi
callq 0x10d64
movq (%rbx), %rdi
movl %eax, %esi
callq 0xe335
movq %r14, %rdi
movq %rax, %rsi
callq 0x100c1
movq %r12, %rdi
movq %rax, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xe2d4
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x20(%rbx), %rdi
callq 0x21009
leaq 0x1e5b1(%rip), %rdi     # 0x2e523
movq %rax, %rsi
xorl %eax, %eax
callq 0x1205c
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/6/simp.c
// Function: ptrsized
static Node *
ptrsized(Simp *s, Node *v)
{
	if (size(v) == Ptrsz)
		return v;
	else if (size(v) < Ptrsz)
		v = mkexpr(v->loc, Ozwiden, v, NULL);
	else if (size(v) > Ptrsz)
		v = mkexpr(v->loc, Otrunc, v, NULL);
	v->expr.type = tyintptr;
	return v;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x10f54
cmpq $0x8, %rax
je 0xffcb
movq %rbx, %rdi
callq 0x10f54
cmpq $0x8, %rax
jae 0xff9d
pushq $0x4a
jmp 0xffad
movq %rbx, %rdi
callq 0x10f54
cmpq $0x9, %rax
jb 0xffc0
pushq $0x49
popq %rsi
movq (%rbx), %rdi
movq %rbx, %rdx
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x1b718
movq %rax, %rbx
movq 0x4e361(%rip), %rax     # 0x5e328
movq %rax, 0x20(%rbx)
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/6/simp.c
// Function: checkidx
static void
checkidx(Simp *s, Op op, Node *len, Node *idx)
{
	Node *cmp, *die, *jmp;
	Node *ok, *fail;

	if (!len)
		return;
	/* create expressions */
	cmp = mkexpr(idx->loc, op, ptrsized(s, idx), ptrsized(s, len), NULL);
	cmp->expr.type = mktype(len->loc, Tybool);
	ok = genlbl(len->loc);
	fail = genlbl(len->loc);
	die = mkexpr(idx->loc, Ocall, abortoob, NULL);
	die->expr.type = mktype(len->loc, Tyvoid);

	/* insert them */
	jmp = mkexpr(idx->loc, Ocjmp, cmp, ok, fail, NULL);
	append(s, jmp);
	append(s, fail);
	append(s, die);
	append(s, ok);
}

// Assembly:
testq %rdx, %rdx
je 0x100c0
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
movq %rcx, %rdi
callq 0xff7c
movq %rax, %r12
movq %r15, %rdi
callq 0xff7c
movq (%r14), %rdi
movl %ebp, %esi
movq %r12, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x1b718
movq %rax, %r13
movq (%r15), %rdi
pushq $0x2
popq %rsi
callq 0x1fdc2
movq %rax, 0x20(%r13)
movq (%r15), %rdi
callq 0x1bc4f
movq %rax, (%rsp)
movq (%r15), %rdi
callq 0x1bc4f
movq %rax, %rbp
movq 0x4e2f9(%rip), %rdx     # 0x5e340
movq (%r14), %rdi
pushq $0x2d
popq %rsi
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x1b718
movq %rax, %r12
movq (%r15), %rdi
pushq $0x1
popq %rsi
callq 0x1fdc2
movq %rax, 0x20(%r12)
movq (%r14), %rdi
pushq $0x3e
popq %rsi
movq %r13, %rdx
movq (%rsp), %r14
movq %r14, %rcx
movq %rbp, %r8
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x1b718
movq %rbx, %rdi
movq %rax, %rsi
callq 0xe461
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xe461
movq %rbx, %rdi
movq %r12, %rsi
callq 0xe461
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe461
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/6/simp.c
// Function: intconvert
static Node *
intconvert(Simp *s, Node *from, Type *to, int issigned)
{
	Node *r;
	size_t fromsz, tosz;

	fromsz = size(from);
	tosz = tysize(to);
	r = rval(s, from, NULL);
	if (fromsz > tosz) {
		r = mkexpr(from->loc, Otrunc, r, NULL);
	} else if (tosz > fromsz) {
		if (issigned)
			r = mkexpr(from->loc, Oswiden, r, NULL);
		else
			r = mkexpr(from->loc, Ozwiden, r, NULL);
	}
	r->expr.type = to;
	return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, %rdi
callq 0x10f54
movq %rax, %r12
movq %rbx, %rdi
callq 0x10d64
movq %rax, %r13
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xe4f4
cmpq %r13, %r12
jbe 0x1015b
movq (%r14), %rdi
pushq $0x49
jmp 0x1016a
jae 0x10177
movq (%r14), %rdi
testl %ebp, %ebp
je 0x10168
pushq $0x4b
jmp 0x1016a
pushq $0x4a
popq %rsi
movq %rax, %rdx
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x1b718
movq %rbx, 0x20(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/6/simp.c
// Function: geninitdecl
static Node *
geninitdecl(Node *init, Type *ty, Node **dcl)
{
	Node *n, *d, *r;
	char lbl[128];

	n = mkname(init->loc, genlblstr(lbl, 128, ""));
	d = mkdecl(init->loc, n, ty);
	r = mkexpr(init->loc, Ovar, n, NULL);

	d->decl.init = init;
	d->decl.type = ty;
	d->decl.isconst = 1;
	d->decl.isglobl = 1;

	r->expr.did = d->decl.did;
	r->expr.type = ty;
	r->expr.isconst = 1;
	if (dcl)
		*dcl = d;
	return r;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x1dca0(%rip), %rdx     # 0x2de4a
movq %rsp, %rdi
movl $0x80, %esi
callq 0x1bbef
movq (%r15), %rdi
movq %rax, %rsi
callq 0x1b7fd
movq %rax, %r13
movq (%r15), %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x1bd5f
movq %rax, %r12
movq (%r15), %rdi
pushq $0x33
popq %rsi
movq %r13, %rdx
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x1b718
movq %r15, 0x30(%r12)
movq %r14, 0x28(%r12)
movw $0x101, 0x71(%r12)      # imm = 0x101
movq 0x18(%r12), %rcx
movq %rcx, 0x38(%rax)
movq %r14, 0x20(%rax)
movl $0x1, 0x30(%rax)
testq %rbx, %rbx
je 0x10216
movq %r12, (%rbx)
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/6/simp.c
// Function: simpcode
static Node *
simpcode(Simp *s, Node *fn)
{
	Node *r, *d;

	r = geninitdecl(fn, codetype(exprtype(fn)), &d);
	r->decl.isconst = 1;
	r->decl.isglobl = 1;
	htput(s->globls, d, asmname(d));
	lappend(&file.stmts, &file.nstmts, d);
	return r;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x1bf90
movq %rax, %rdi
callq 0x4edb
movq %rsp, %r15
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x1018a
movq %rax, %rbx
movw $0x101, 0x71(%rax)      # imm = 0x101
movq 0x40(%r14), %r14
movq (%r15), %r12
movq %r12, %rdi
callq 0x4f1a
movq %r14, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x2a22a
movq (%r15), %rdx
leaq 0x4dff2(%rip), %rsi     # 0x5e278
leaq 0x40(%rsi), %rdi
addq $0x48, %rsi
callq 0x29b2d
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/6/simp.c
// Function: vatypeinfo
static Node *
vatypeinfo(Simp *s, Node *n)
{
	Node *ti, *tp, *td, *tn;
	Type *ft, *vt, **st;
	size_t nst, i;
	char buf[1024];

	st = NULL;
	nst = 0;
	ft = exprtype(n->expr.args[0]);
	/* The structure of ft->sub:
	 *   [return, normal, args, ...]
	 *
	 * The structure of n->expr.sub:
	 *    [fn, normal, args, , variadic, args]
	 *
	 * We want to start at variadic, so we want
	 * to count from ft->nsub - 1, up to n->expr.nsub.
	 */
	for (i = ft->nsub - 1; i < n->expr.nargs; i++) {
		lappend(&st, &nst, exprtype(n->expr.args[i]));
	}
	vt = mktytuple(n->loc, st, nst);
	tagreflect(vt);

	/* make the decl */
	tn = mkname(Zloc, tydescid(buf, sizeof buf, vt));
	td = mkdecl(Zloc, tn, mktype(n->loc, Tybyte));
	td->decl.isglobl = 1;
	td->decl.isconst = 1;
	td->decl.ishidden = 1;

	/* and the var */
	ti = mkexpr(Zloc, Ovar, tn, NULL);
	ti->expr.type = td->decl.type;
	ti->expr.did = td->decl.did;

	/* and the pointer */
	tp = mkexpr(Zloc, Oaddr, ti, NULL);
	tp->expr.type = mktyptr(n->loc, td->decl.type);

	htput(s->globls, td, asmname(td));
	return tp;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x410, %rsp            # imm = 0x410
leaq 0x8(%rsp), %r15
andq $0x0, (%r15)
movq %rsp, %r12
andq $0x0, (%r12)
movq %rsi, %r14
movq %rdi, %rbx
movq 0x50(%rsi), %rax
movq (%rax), %rdi
callq 0x1bf90
movq 0x70(%rax), %r13
decq %r13
cmpq 0x40(%r14), %r13
jae 0x1034e
movq 0x50(%r14), %rax
movq (%rax,%r13,8), %rdi
callq 0x1bf90
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x29b2d
incq %r13
jmp 0x10328
movq 0x8(%rsp), %rsi
movq (%rsp), %rdx
movq (%r14), %rdi
callq 0x20240
movq %rax, %r15
movq %rax, %rdi
callq 0x12260
leaq 0x10(%rsp), %rdi
movl $0x400, %esi            # imm = 0x400
movq %r15, %rdx
callq 0x5125
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movq %rax, %rsi
callq 0x1b7fd
movq %rax, %r12
movq (%r14), %rdi
pushq $0x9
popq %rsi
callq 0x1fdc2
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movq %r12, %rsi
movq %rax, %rdx
callq 0x1bd5f
movq %rax, %r15
movw $0x101, 0x71(%rax)      # imm = 0x101
movb $0x1, 0x76(%rax)
pushq $0x33
popq %rsi
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movq %r12, %rdx
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x1b718
movq 0x28(%r15), %rcx
movq %rcx, 0x20(%rax)
movq 0x18(%r15), %rcx
movq %rcx, 0x38(%rax)
pushq $0x12
popq %rsi
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movq %rax, %rdx
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x1b718
movq %rax, %r12
movq 0x28(%r15), %rsi
movq (%r14), %rdi
callq 0x2020c
movq %rax, 0x20(%r12)
movq 0x40(%rbx), %rbx
movq %r15, %rdi
callq 0x4f1a
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x2a22a
movq %r12, %rax
addq $0x410, %rsp            # imm = 0x410
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/6/simp.c
// Function: simp
static Node *
simp(Simp *s, Node *n)
{
	Node *r;

	if (!n)
		return NULL;
	r = NULL;
	switch (n->type) {
	case Nblock:	simpblk(s, n);	break;
	case Ndecl:     declarelocal(s, n);     break;
	case Nexpr:
		if (islbl(n))
			append(s, n);
		else
			r = rval(s, n, NULL);
		if (r)
			append(s, r);
		break;
	default:
		dumpn(n, stderr);
		die("bad node passsed to simp()");
		break;
	}
	return r;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rsi, %rsi
je 0x10548
movq %rsi, %r14
movq %rdi, %rbx
movl 0x8(%rsi), %eax
cmpl $0xb, %eax
je 0x10516
cmpl $0x8, %eax
je 0x104ee
cmpl $0x1, %eax
jne 0x1054e
xorl %r15d, %r15d
cmpq 0x20(%r14), %r15
jae 0x10548
movq 0x28(%r14), %rax
movq (%rax,%r15,8), %rdi
xorl %esi, %esi
callq 0x12bd3
movq 0x28(%r14), %rcx
movq %rax, (%rcx,%r15,8)
movq 0x28(%r14), %rax
movq (%rax,%r15,8), %rsi
movq %rbx, %rdi
callq 0x1048b
incq %r15
jmp 0x104b8
movq %r14, %rdi
callq 0x1b5e6
cmpl $0x35, %eax
jne 0x10526
movq 0x50(%r14), %rax
movq (%rax), %rax
cmpl $0x9, 0x8(%rax)
jne 0x10526
cmpl $0x6, 0x18(%rax)
jne 0x10526
movq %rbx, %rdi
movq %r14, %rsi
jmp 0x1053e
movq %rbx, %rdi
movq %r14, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0xe18a
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xe4f4
testq %rax, %rax
je 0x10548
movq %rbx, %rdi
movq %rax, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0xe461
popq %rbx
popq %r14
popq %r15
retq
movq 0x30a9b(%rip), %rax     # 0x40ff0
movq (%rax), %rsi
movq %r14, %rdi
callq 0x1201b
leaq 0x1e127(%rip), %rdi     # 0x2e68e
xorl %eax, %eax
callq 0x1205c
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/6/simp.c
// Function: extractsub
static void
extractsub(Simp *s, Node *e)
{
	size_t i;
	Node *sub;

	assert(e != NULL);
	switch (exprop(e)) {
	case Oslice:
		sub = e->expr.args[0];
		extractsub(s, sub);
		if (exprop(sub) == Oarr) {
			if (sub->expr.nargs > 0) {
				e->expr.args[0] = simpblob(s, e->expr.args[0]);
			} else  {
				e->expr.args[0] = mkintlit(e->loc, 0);
				e->expr.args[0]->expr.type = tyintptr;
			}
		}
		break;
	case Oarr:
	case Ostruct:
		for (i = 0; i < e->expr.nargs; i++)
			extractsub(s, e->expr.args[i]);
		break;
	case Oucon:
		if (e->expr.nargs == 2)
			extractsub(s, e->expr.args[1]);
		break;
	default:
		break;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
testq %rbx, %rbx
je 0x10636
movq %rbx, %rdi
callq 0x1b5e6
cmpl $0x36, %eax
jne 0x105a4
cmpq $0x2, 0x40(%rbx)
jne 0x10630
movq 0x50(%rbx), %rax
movq 0x8(%rax), %rbx
jmp 0x10579
leal -0x38(%rax), %ecx
cmpl $0x2, %ecx
jae 0x105ca
xorl %r15d, %r15d
cmpq 0x40(%rbx), %r15
jae 0x10630
movq 0x50(%rbx), %rax
movq (%rax,%r15,8), %rsi
movq %r14, %rdi
callq 0x1056e
incq %r15
jmp 0x105af
cmpl $0x29, %eax
jne 0x10630
movq 0x50(%rbx), %rax
movq (%rax), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x1056e
movq %r15, %rdi
callq 0x1b5e6
cmpl $0x39, %eax
jne 0x10630
cmpq $0x0, 0x40(%r15)
je 0x1060d
movq 0x50(%rbx), %rax
movq (%rax), %rsi
movq %r14, %rdi
callq 0xfb84
movq 0x50(%rbx), %rcx
movq %rax, (%rcx)
jmp 0x10630
movq (%rbx), %rdi
xorl %esi, %esi
callq 0x1b6fc
movq 0x50(%rbx), %rcx
movq %rax, (%rcx)
movq 0x4dd03(%rip), %rax     # 0x5e328
movq 0x50(%rbx), %rcx
movq (%rcx), %rcx
movq %rax, 0x20(%rcx)
popq %rbx
popq %r14
popq %r15
retq
leaq 0x1e0ac(%rip), %rdi     # 0x2e6e9
leaq 0x1dc70(%rip), %rsi     # 0x2e2b4
leaq 0x1e0a8(%rip), %rcx     # 0x2e6f3
movl $0x60c, %edx            # imm = 0x60C
callq 0x4180
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/6/typeinfo.c
// Function: blobsz
size_t
blobsz(Blob *b)
{
	size_t n;
	size_t i;

	switch (b->type) {
	case Bti8:	return 1;	break;
	case Bti16:	return 2;	break;
	case Bti32:	return 4;	break;
	case Bti64:	return 8;	break;
	case Btref:	return 8;	break;
	case Btbytes:	return b->bytes.len;	break;
	case Btimin:
		if (b->ival >= 1ULL << 56)
			die("packed int too big");

		for (i = 1; i < 8; i++)
			if (b->ival < 1ULL << (7*i))
				return i;
		die("impossible blob size");
		break;
	case Btseq:
		n = 0;
		for (i = 0; i < b->seq.nsub; i++)
			n += blobsz(b->seq.sub[i]);
		return n;
		break;
	default:
			die("unknown blob type");
	}
	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl (%rdi), %eax
cmpq $0x7, %rax
ja 0x106f5
movq %rdi, %r14
leaq 0x1e0a1(%rip), %rcx     # 0x2e714
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
pushq $0x8
jmp 0x106d7
pushq $0x4
jmp 0x106d7
xorl %ebx, %ebx
xorl %r15d, %r15d
cmpq 0x20(%r14), %r15
jae 0x106d8
movq 0x28(%r14), %rax
movq (%rax,%r15,8), %rdi
callq 0x10658
addq %rax, %rbx
incq %r15
jmp 0x10689
movq 0x20(%r14), %rax
movq %rax, %rcx
shrq $0x38, %rcx
jne 0x106fe
pushq $0x1
popq %rbx
pushq $0x7
popq %rcx
cmpq $0x8, %rbx
je 0x106e7
movq %rax, %rdx
shrq %cl, %rdx
testq %rdx, %rdx
je 0x106d8
incq %rbx
addq $0x7, %rcx
jmp 0x106b7
pushq $0x1
jmp 0x106d7
pushq $0x2
popq %rbx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq 0x20(%r14), %rbx
jmp 0x106d8
leaq 0x1e1ed(%rip), %rdi     # 0x2e8db
xorl %eax, %eax
callq 0x1205c
leaq 0x1e1f4(%rip), %rdi     # 0x2e8f0
jmp 0x106ee
leaq 0x1e1c3(%rip), %rdi     # 0x2e8c8
jmp 0x106ee
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/6/typeinfo.c
// Function: namevec
void
namevec(Blob ***sub, size_t *nsub, Node *n)
{
	char *buf;
	size_t len;

	if (n->name.ns) {
		len = strlen(n->name.name) + strlen(n->name.ns) + 1;
		buf = xalloc(len + 1);
		bprintf(buf, len + 1, "%s.%s", n->name.ns, n->name.name);
	} else {
		len = strlen(n->name.name);
		buf = xalloc(len + 1);
		bprintf(buf, len + 1, "%s", n->name.name);
	}
	lappend(sub, nsub, mkblobi(Btimin, len));
	lappend(sub, nsub, mkblobbytes(buf, len));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, %r14
movq 0x18(%rdx), %r15
movq 0x20(%rdx), %rdi
callq 0x4120
movq %rax, %rbp
testq %r15, %r15
je 0x1076f
movq %r15, %rdi
callq 0x4120
leaq (%rax,%rbp), %r12
incq %r12
addq %rax, %rbp
addq $0x2, %rbp
movq %rbp, %rdi
callq 0x29aa7
movq %rax, %r15
movq 0x18(%r13), %rcx
movq 0x20(%r13), %r8
leaq 0x21d27(%rip), %rdx     # 0x32487
movq %rax, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x2a9bf
jmp 0x1079b
movq %rbp, %r12
incq %r12
movq %r12, %rdi
callq 0x29aa7
movq %rax, %r15
movq 0x20(%r13), %rcx
leaq 0x22312(%rip), %rdx     # 0x32a9d
movq %rax, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x2a9bf
movq %rbp, %r12
pushq $0x4
popq %rdi
movq %r12, %rsi
callq 0x449c
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x29b2d
movq %r15, %rdi
movq %r12, %rsi
callq 0x44d1
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x29b2d
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/6/typeinfo.c
// Function: namedesc
Blob *
namedesc(Type *ty)
{
	Blob **sub;
	size_t nsub;

	sub = NULL;
	nsub = 0;
	lappend(&sub, &nsub, mkblobi(Bti8, Tyname));
	namevec(&sub, &nsub, ty->name);
	lappend(&sub, &nsub, tydescsub(ty->sub[0]));
	return mkblobseq(sub, nsub);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r15
leaq 0x8(%rsp), %rbx
andq $0x0, (%rbx)
movq %rsp, %r14
andq $0x0, (%r14)
pushq $0x1c
popq %rsi
xorl %edi, %edi
callq 0x449c
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x29b2d
movq 0x88(%r15), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x10707
movq 0x68(%r15), %rax
movq (%rax), %rdi
callq 0x107db
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x29b2d
movq (%rbx), %rdi
movq (%r14), %rsi
callq 0x44f9
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/6/typeinfo.c
// Function: tydescblob
Blob *
tydescblob(Type *ty)
{
	char buf[512];
	Blob *b, *sz, *sub;

	if (ty->type == Tyname && hasparams(ty))
		return NULL;

	if (ty->type == Tyname) {
		b = mkblobseq(NULL, 0);
		sz = mkblobi(Btimin, 0);
		sub = namedesc(ty);
		sz->ival = blobsz(sub);
		lappend(&b->seq.sub, &b->seq.nsub, sz);
		lappend(&b->seq.sub, &b->seq.nsub, sub);
		if (ty->vis != Visintern)
			b->isglobl = 1;
	} else {
		b = tydescsub(ty);
	}
	tydescid(buf, sizeof buf, ty);
	b->lbl = strdup(buf);
	return b;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rdi, %rbx
cmpl $0x1c, (%rdi)
jne 0x10d25
movq %rbx, %rdi
callq 0x2065a
testl %eax, %eax
je 0x10cbc
xorl %r14d, %r14d
jmp 0x10d4f
cmpl $0x1c, (%rbx)
jne 0x10d25
xorl %edi, %edi
xorl %esi, %esi
callq 0x44f9
movq %rax, %r14
pushq $0x4
popq %rdi
xorl %esi, %esi
callq 0x449c
movq %rax, %r15
movq %rbx, %rdi
callq 0x10c1a
movq %rax, %r12
movq %rax, %rdi
callq 0x10658
movq %rax, 0x20(%r15)
leaq 0x20(%r14), %r13
movq %r14, %rbp
addq $0x28, %rbp
movq %rbp, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x29b2d
movq %rbp, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x29b2d
cmpl $0x0, 0x10(%rbx)
je 0x10d30
movb $0x1, 0x18(%r14)
jmp 0x10d30
movq %rbx, %rdi
callq 0x107db
movq %rax, %r14
movq %rsp, %r15
movl $0x200, %esi            # imm = 0x200
movq %r15, %rdi
movq %rbx, %rdx
callq 0x5125
movq %r15, %rdi
callq 0x4340
movq %rax, 0x10(%r14)
movq %r14, %rax
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/6/typeinfo.c
// Function: tyalign
size_t
tyalign(Type *ty)
{
	size_t align, i;

	align = 1;
	ty = tybase(ty);
	switch (ty->type) {
	case Tyarray:
		align = tyalign(ty->sub[0]);
		break;
	case Tytuple:
		for (i = 0; i < ty->nsub; i++)
			align = max(align, tyalign(ty->sub[i]));
		break;
	case Tyunion:
		align = 4;
		for (i = 0; i < ty->nmemb; i++)
			if (ty->udecls[i]->etype)
				align = max(align, tyalign(ty->udecls[i]->etype));
		break;
	case Tystruct:
		for (i = 0; i < ty->nmemb; i++)
			align = max(align, tyalign(decltype(ty->sdecls[i])));
		break;
	case Tyslice:
		align = 8;
		break;
	default:
		align = max(align, tysize(ty));
	}
	return min(align, Ptrsz);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
callq 0x1fcd8
movq %rax, %rbx
movl (%rax), %eax
addl $-0x14, %eax
cmpl $0x4, %eax
ja 0x1104b
leaq 0x1d8ab(%rip), %rcx     # 0x2e834
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
pushq $0x8
popq %r14
jmp 0x11061
pushq $0x4
popq %r14
xorl %r15d, %r15d
cmpq 0x78(%rbx), %r15
jae 0x11061
movq 0x88(%rbx), %rax
movq (%rax,%r15,8), %rax
movq 0x28(%rax), %rdi
testq %rdi, %rdi
je 0x10fd3
callq 0x10f67
movq %r14, %rdi
movq %rax, %rsi
callq 0x2abfd
movq %rax, %r14
incq %r15
jmp 0x10fa2
pushq $0x1
popq %r14
xorl %r15d, %r15d
cmpq 0x70(%rbx), %r15
jae 0x11061
movq 0x68(%rbx), %rax
movq (%rax,%r15,8), %rdi
callq 0x10f67
movq %r14, %rdi
movq %rax, %rsi
callq 0x2abfd
movq %rax, %r14
incq %r15
jmp 0x10fdf
pushq $0x1
popq %r14
xorl %r15d, %r15d
cmpq 0x78(%rbx), %r15
jae 0x11061
movq 0x88(%rbx), %rax
movq (%rax,%r15,8), %rdi
callq 0x1bf2d
movq %rax, %rdi
callq 0x10f67
movq %r14, %rdi
movq %rax, %rsi
callq 0x2abfd
movq %rax, %r14
incq %r15
jmp 0x1100c
movq 0x68(%rbx), %rax
movq (%rax), %rdi
callq 0x10f67
jmp 0x1105e
movq %rbx, %rdi
callq 0x10d64
pushq $0x1
popq %rdi
movq %rax, %rsi
callq 0x2abfd
movq %rax, %r14
pushq $0x8
popq %rsi
movq %r14, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2ac08
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/6/typeinfo.c
// Function: tyoffset
ssize_t
tyoffset(Type *ty, Node *memb)
{
	size_t i;
	size_t off;

	ty = tybase(ty);
	if (ty->type == Typtr)
		ty = tybase(ty->sub[0]);

	switch (memb->type) {
	case Nname:
		assert(ty->type == Tystruct);
		off = 0;
		for (i = 0; i < ty->nmemb; i++) {
			off = alignto(off, decltype(ty->sdecls[i]));
			if (!strcmp(namestr(memb), declname(ty->sdecls[i])))
				return off;
			off += size(ty->sdecls[i]);
		}
		die("bad offset");
		return 0;
	case Nlit:
		assert(ty->type == Tytuple);
		assert(memb->lit.intval < ty->nsub);
		off = 0;
		for (i = 0; i < memb->lit.intval; i++) {
			off += tysize(ty->sub[i]);
			off = alignto(off, ty->sub[i+1]);
		}
		return off;
	default:
		die("bad offset node type");
		return 0;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
callq 0x1fcd8
movq %rax, %r14
cmpl $0x12, (%rax)
jne 0x11099
movq 0x68(%r14), %rax
movq (%rax), %rdi
callq 0x1fcd8
movq %rax, %r14
movl 0x8(%rbx), %eax
cmpl $0x9, %eax
je 0x1112b
cmpl $0xa, %eax
jne 0x11196
cmpl $0x17, (%r14)
jne 0x1119f
xorl %r13d, %r13d
xorl %r12d, %r12d
cmpq 0x78(%r14), %r13
jae 0x11188
movq 0x88(%r14), %rax
movq (%rax,%r13,8), %rdi
callq 0x1bf2d
movq %r12, %rdi
movq %rax, %rsi
callq 0xd890
movq %rax, %r15
movq %rbx, %rdi
callq 0x1c0c8
movq %rax, %r12
movq 0x88(%r14), %rax
movq (%rax,%r13,8), %rdi
callq 0x1befe
movq %r12, %rdi
movq %rax, %rsi
callq 0x4230
testl %eax, %eax
je 0x1117b
movq 0x88(%r14), %rax
movq (%rax,%r13,8), %rdi
callq 0x10f54
movq %rax, %r12
addq %r15, %r12
incq %r13
jmp 0x110be
cmpl $0x16, (%r14)
jne 0x111be
movq 0x30(%rbx), %rax
cmpq 0x70(%r14), %rax
jae 0x111dd
xorl %r12d, %r12d
xorl %r15d, %r15d
cmpq %rax, %r12
jae 0x1117b
movq 0x68(%r14), %rax
movq (%rax,%r12,8), %rdi
callq 0x10d64
addq %rax, %r15
movq 0x68(%r14), %rax
movq 0x8(%rax,%r12,8), %rsi
incq %r12
movq %r15, %rdi
callq 0xd890
movq %rax, %r15
movq 0x30(%rbx), %rax
jmp 0x11149
movq %r15, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x1d8ab(%rip), %rdi     # 0x2ea3a
xorl %eax, %eax
callq 0x1205c
leaq 0x1d8d8(%rip), %rdi     # 0x2ea75
jmp 0x1118f
leaq 0x1d85e(%rip), %rdi     # 0x2ea04
leaq 0x1d77f(%rip), %rsi     # 0x2e92c
leaq 0x1d865(%rip), %rcx     # 0x2ea19
movl $0x170, %edx            # imm = 0x170
callq 0x4180
leaq 0x1d880(%rip), %rdi     # 0x2ea45
leaq 0x1d760(%rip), %rsi     # 0x2e92c
leaq 0x1d846(%rip), %rcx     # 0x2ea19
movl $0x17b, %edx            # imm = 0x17B
callq 0x4180
leaq 0x1d875(%rip), %rdi     # 0x2ea59
leaq 0x1d741(%rip), %rsi     # 0x2e92c
leaq 0x1d827(%rip), %rcx     # 0x2ea19
movl $0x17c, %edx            # imm = 0x17C
callq 0x4180
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/6/typeinfo.c
// Function: countargs
size_t
countargs(Type *t)
{
	size_t nargs;

	t = tybase(t);
	nargs = t->nsub - 1;
	if (classify(t->sub[0]) == ArgBig)
		nargs++;
	/* valists are replaced with hidden type parameter,
	 * which we want on the stack for ease of ABI */
	if (tybase(t->sub[t->nsub - 1])->type == Tyvalist)
		nargs--;
	return nargs;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
callq 0x1fcd8
movq %rax, %r14
movq 0x68(%rax), %rax
movq 0x70(%r14), %rbx
movq (%rax), %rdi
callq 0x11260
xorl %ecx, %ecx
cmpl $0x8, %eax
setne %cl
subq %rcx, %rbx
movq 0x68(%r14), %rax
movq 0x70(%r14), %rcx
movq -0x8(%rax,%rcx,8), %rdi
callq 0x1fcd8
xorl %ecx, %ecx
cmpl $0x11, (%rax)
sete %cl
subq %rcx, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/6/typeinfo.c
// Function: classify
ArgType
classify(Type *t)
{
	size_t sz = tysize(t);
	size_t total_offset = 0;

	/* p must be of length exactly 2 */
	PassIn pi[2] = { PassInNoPref, PassInNoPref };

	if (tybase(t)->type == Tyvoid) {
		return ArgVoid;
	} else if (isstacktype(t)) {
		if (isaggregate(t) && sz <= 16) {
			classify_recursive(t, pi, &total_offset);
			if (pi[0] == PassInMemory || pi[1] == PassInMemory) {
				return ArgBig;
			}

			switch(pi[0]) {
			case PassInInt:
				if (sz <= 8) {
					return ArgAggrI;
				}
				switch(pi[1]) {
				case PassInInt: return ArgAggrII;
				case PassInSSE: return ArgAggrIF;
				default:
					die("Impossible return from classify_recursive");
					break;
				}
				break;
			case PassInSSE:
				if (sz <= 8) {
					return ArgAggrF;
				}
				switch(pi[1]) {
				case PassInInt: return ArgAggrFI;
				case PassInSSE: return ArgAggrFF;
				default:
					die("Impossible return from classify_recursive");
					break;
				}
				break;
			default:
				die("Impossible return from classify_recursive");
				break;
			}
		}

		return ArgBig;
	}

	return ArgReg;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
callq 0x10d64
andq $0x0, 0x10(%rsp)
movq %rax, %rbx
andq $0x0, 0x8(%rsp)
movq %r14, %rdi
callq 0x1fcd8
xorl %ebp, %ebp
cmpl $0x1, (%rax)
je 0x112ff
movq %r14, %rdi
callq 0x1fcb0
testl %eax, %eax
je 0x112fc
movq %r14, %rdi
callq 0x11348
testl %eax, %eax
setne %al
cmpq $0x11, %rbx
setb %cl
andb %al, %cl
pushq $0x8
popq %rbp
cmpb $0x1, %cl
jne 0x112ff
leaq 0x8(%rsp), %r15
leaq 0x10(%rsp), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x11379
movl (%r15), %ecx
movl 0x4(%r15), %eax
cmpl $0x3, %ecx
sete %dl
cmpl $0x3, %eax
sete %sil
orb %dl, %sil
jne 0x112ff
cmpl $0x1, %ecx
je 0x1130c
cmpl $0x2, %ecx
jne 0x1133a
cmpq $0x9, %rbx
jae 0x11324
pushq $0x2
jmp 0x112fe
pushq $0x1
popq %rbp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x9, %rbx
jae 0x11316
pushq $0x3
jmp 0x112fe
cmpl $0x2, %eax
je 0x11332
cmpl $0x1, %eax
jne 0x1133a
pushq $0x7
jmp 0x112fe
cmpl $0x2, %eax
je 0x11336
cmpl $0x1, %eax
jne 0x1133a
pushq $0x6
jmp 0x112fe
pushq $0x5
jmp 0x112fe
pushq $0x4
jmp 0x112fe
leaq 0x1d749(%rip), %rdi     # 0x2ea8a
xorl %eax, %eax
callq 0x1205c
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/dump.c
// Function: dumpfilestabs
void
dumpfilestabs(int depth, FILE *fd)
{
	size_t nk, i;
	void **k;

	k = htkeys(file.ns, &nk);
	for (i = 0; i < nk; i++)
		outstab(htget(file.ns, k[i]), fd, depth);
	free(k);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x4c9eb(%rip), %r15     # 0x5e278
movq 0xa0(%r15), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2a529
movq %rax, %r14
xorl %r12d, %r12d
cmpq 0x8(%rsp), %r12
jae 0x118cd
movq 0xa0(%r15), %rdi
movq (%r14,%r12,8), %rsi
callq 0x2a3e8
movq %rax, %rdi
movq %rbx, %rsi
movl %ebp, %edx
callq 0x11639
incq %r12
jmp 0x118a4
movq %r14, %rdi
callq 0x4040
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/dump.c
// Function: dump
void
dump(FILE *fd)
{
	size_t i;

	fprintf(fd, "(name = %s)\n", file.files[0]);
	dumpfilestabs(1, fd);
	for (i = 0; i < file.nuses; i++)
		outnode(file.uses[i], fd, 1);
	for (i = 0; i < file.nstmts; i++)
		outnode(file.stmts[i], fd, 1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x4c985(%rip), %r14     # 0x5e278
movq 0x8(%r14), %rax
movq (%rax), %rdx
leaq 0x1d257(%rip), %rsi     # 0x2eb58
xorl %r15d, %r15d
xorl %eax, %eax
callq 0x4240
pushq $0x1
popq %rbp
movl %ebp, %edi
movq %rbx, %rsi
callq 0x11875
cmpq 0x18(%r14), %r15
jae 0x11935
movq 0x10(%r14), %rax
movq (%rax,%r15,8), %rdi
movq %rbx, %rsi
movl %ebp, %edx
callq 0x11963
incq %r15
jmp 0x11918
xorl %r15d, %r15d
pushq $0x1
popq %rbp
cmpq 0x48(%r14), %r15
jae 0x11958
movq 0x40(%r14), %rax
movq (%rax,%r15,8), %rdi
movq %rbx, %rsi
movl %ebp, %edx
callq 0x11963
incq %r15
jmp 0x1193b
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/err.c
// Function: die
void
die(char *msg, ...)
{
	va_list ap;

	va_start(ap, msg);
	vfprintf(stderr, msg, ap);
	fprintf(stderr, "\n");
	va_end(ap);
	abort();
}

// Assembly:
pushq %rbx
subq $0xd0, %rsp
movq %rdi, %r10
leaq 0x20(%rsp), %rdi
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x120bb
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %rdx
movq %rdi, 0x10(%rdx)
leaq 0xe0(%rsp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rdx)
movq 0x2ef0e(%rip), %rbx     # 0x40ff0
movq (%rbx), %rdi
movq %r10, %rsi
callq 0x4300
movq (%rbx), %rsi
pushq $0xa
popq %rdi
callq 0x41f0
callq 0x4060
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/err.c
// Function: lfatalv
void
lfatalv(Srcloc l, char *msg, va_list ap)
{
	fprintf(stdout, "%s:%d: ", fname(l), lnum(l));
	vfprintf(stdout, msg, ap);
	fprintf(stdout, "\n");
	exit(1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x2ee39(%rip), %rbp     # 0x40fd0
movq (%rbp), %r12
callq 0x1b4f4
movq %rax, %r13
movq %r15, %rdi
callq 0x1b508
leaq 0x1cbb2(%rip), %rsi     # 0x2ed64
movq %r12, %rdi
movq %r13, %rdx
movl %eax, %ecx
xorl %eax, %eax
callq 0x4240
movq (%rbp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x4300
movq (%rbp), %rsi
pushq $0xa
popq %rdi
callq 0x41f0
pushq $0x1
popq %rdi
callq 0x4320
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/export.c
// Function: tagreflect
void
tagreflect(Type *t)
{
	size_t i;

	if (hasparams(t) || t->isreflect)
		return;

	t->isreflect = 1;
	for (i = 0; i < t->nsub; i++)
		tagreflect(t->sub[i]);
	switch (t->type) {
	case Tystruct:
		for (i = 0; i < t->nmemb; i++)
			tagreflect(decltype(t->sdecls[i]));
		break;
	case Tyunion:
		for (i = 0; i < t->nmemb; i++)
			if (t->udecls[i]->etype)
				tagreflect(t->udecls[i]->etype);
		break;
	case Tyname:
		for (i = 0; i < t->narg; i++)
			tagreflect(t->arg[i]);
	default:
		break;
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x2065a
testl %eax, %eax
jne 0x12279
cmpb $0x0, 0x95(%rbx)
je 0x12281
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movb $0x1, 0x95(%rbx)
xorl %r14d, %r14d
cmpq 0x70(%rbx), %r14
jae 0x122a3
movq 0x68(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x12260
incq %r14
jmp 0x1228b
movl (%rbx), %eax
cmpl $0x17, %eax
je 0x122f6
cmpl $0x18, %eax
je 0x122cf
cmpl $0x1c, %eax
jne 0x12279
xorl %r14d, %r14d
cmpq 0x48(%rbx), %r14
jae 0x12279
movq 0x40(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x12260
incq %r14
jmp 0x122b7
xorl %r14d, %r14d
cmpq 0x78(%rbx), %r14
jae 0x12279
movq 0x88(%rbx), %rax
movq (%rax,%r14,8), %rax
movq 0x28(%rax), %rdi
testq %rdi, %rdi
je 0x122f1
callq 0x12260
incq %r14
jmp 0x122d2
xorl %r14d, %r14d
cmpq 0x78(%rbx), %r14
jae 0x12279
movq 0x88(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x1bf2d
movq %rax, %rdi
callq 0x12260
incq %r14
jmp 0x122f9
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/export.c
// Function: tagtrait
static void
tagtrait(Stab *st, Trait *tr, int ingeneric, int hidelocal)
{
	size_t i;

	if (!tr)
		return;
	if (tr->vis != Visintern)
		return;

	tr->vis = Vishidden;
	if (tr->param)
		tagtype(st, tr->param, ingeneric, hidelocal);
	for (i = 0; i < tr->naux; i++)
		tagtype(st, tr->aux[i], ingeneric, hidelocal);
	for (i = 0; i < tr->nproto; i++)
		tagnode(st, tr->proto[i], ingeneric, hidelocal);
}

// Assembly:
testq %rdi, %rdi
je 0x12ab4
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
cmpl $0x0, 0xc(%rdi)
je 0x12ab5
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl %edx, %ebx
movl %esi, %ebp
movl $0x2, 0xc(%r14)
movq 0x18(%r14), %rdi
testq %rdi, %rdi
je 0x12ad3
movl %ebp, %esi
movl %ebx, %edx
callq 0x128b0
xorl %r15d, %r15d
cmpq 0x28(%r14), %r15
jae 0x12af2
movq 0x20(%r14), %rax
movq (%rax,%r15,8), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x128b0
incq %r15
jmp 0x12ad6
xorl %r15d, %r15d
cmpq 0x38(%r14), %r15
jae 0x12aaa
movq 0x30(%r14), %rax
movq (%rax,%r15,8), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x1262d
incq %r15
jmp 0x12af5
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/fold.c
// Function: getintlit
int
getintlit(Node *n, vlong *v)
{
	Node *l;

	if (exprop(n) != Olit)
		return 0;
	l = n->expr.args[0];
	/* It's up to type checking to make sure this is ok */
	if (l->lit.littype == Lint)
		*v = l->lit.intval;
	else if (l->lit.littype == Lchr)
		*v = l->lit.chrval;
	else
		return 0;
	return 1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x1b5e6
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x35, %ecx
jne 0x12b4e
movq 0x50(%r14), %rcx
movq (%rcx), %rcx
movl 0x18(%rcx), %edx
testl %edx, %edx
je 0x12b45
cmpl $0x2, %edx
jne 0x12b4e
movq 0x30(%rcx), %rax
jmp 0x12b48
movl 0x30(%rcx), %eax
movq %rax, (%rbx)
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/fold.c
// Function: idxcmp
int
idxcmp(const void *pa, const void *pb)
{
	Node *a, *b;
	vlong av, bv;

	a = *(Node **)pa;
	b = *(Node **)pb;

	assert(getintlit(a->expr.idx, &av));
	assert(getintlit(b->expr.idx, &bv));

	/* don't trust overflow with int64 */
	if (av < bv)
		return -1;
	else if (av == bv)
		return 0;
	else
		return 1;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq (%rdi), %rax
movq (%rsi), %rbx
movq 0x48(%rax), %rdi
leaq 0x8(%rsp), %rsi
callq 0x12b14
testl %eax, %eax
je 0x12b9d
movq 0x48(%rbx), %rdi
movq %rsp, %rsi
callq 0x12b14
testl %eax, %eax
je 0x12bb6
movq 0x8(%rsp), %rax
xorl %ecx, %ecx
cmpq (%rsp), %rax
setne %cl
pushq $-0x1
popq %rax
cmovgel %ecx, %eax
addq $0x10, %rsp
popq %rbx
retq
leaq 0x1c290(%rip), %rdi     # 0x2ee34
leaq 0x1c2a5(%rip), %rsi     # 0x2ee50
leaq 0x1c2a5(%rip), %rcx     # 0x2ee57
pushq $0x77
jmp 0x12bcd
leaq 0x1c2c1(%rip), %rdi     # 0x2ee7e
leaq 0x1c28c(%rip), %rsi     # 0x2ee50
leaq 0x1c28c(%rip), %rcx     # 0x2ee57
pushq $0x78
popq %rdx
callq 0x4180
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/fold.c
// Function: val
static Node *
val(Srcloc loc, vlong val, Type *t)
{
	Node *l, *n;

	l = mkint(loc, val);
	n = mkexpr(loc, Olit, l, NULL);
	l->lit.type = t;
	n->expr.type = t;
	return n;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rdi, %r14
callq 0x1bccd
movq %rax, %r15
pushq $0x35
popq %rsi
movq %r14, %rdi
movq %rax, %rdx
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x1b718
movq %rbx, 0x20(%r15)
movq %rbx, 0x20(%rax)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/gram.c
// Function: yy_stack_print
static void
yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop)
{
  YYFPRINTF (stderr, "Stack now");
  for (; yybottom <= yytop; yybottom++)
    {
      int yybot = *yybottom;
      YYFPRINTF (stderr, " %d", yybot);
    }
  YYFPRINTF (stderr, "\n");
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x2bc2f(%rip), %r12     # 0x40ff0
movq (%r12), %rcx
leaq 0x1bfee(%rip), %rdi     # 0x313ba
pushq $0x9
popq %rsi
pushq $0x1
popq %rdx
callq 0x4330
leaq 0x17712(%rip), %r15     # 0x2caf0
cmpq %rbx, %r14
ja 0x153fb
movswl (%r14), %edx
movq (%r12), %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4240
addq $0x2, %r14
jmp 0x153de
movq (%r12), %rsi
pushq $0xa
popq %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x41f0
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/gram.c
// Function: yy_symbol_print
static void
yy_symbol_print (FILE *yyo,
                 yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep)
{
  YYFPRINTF (yyo, "%s %s (",
             yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind));

  yy_symbol_value_print (yyo, yykind, yyvaluep);
  YYFPRINTF (yyo, ")");
}

// Assembly:
pushq %rbx
cmpl $0x54, %esi
leaq 0x1bfaf(%rip), %rax     # 0x313cc
leaq 0x1bfae(%rip), %rdx     # 0x313d2
cmovlq %rax, %rdx
movq %rdi, %rbx
movslq %esi, %rax
leaq 0x2b22b(%rip), %rcx     # 0x40660
movq (%rcx,%rax,8), %rcx
leaq 0x1bf84(%rip), %rsi     # 0x313c4
xorl %eax, %eax
callq 0x4240
pushq $0x29
popq %rdi
movq %rbx, %rsi
popq %rbx
jmp 0x41f0
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/infer.c
// Function: tryconstrain
static int
tryconstrain(Type *base, Trait *tr, int update)
{
	Traitmap *tm;
	Bitset *bs;
	Type *ty;
	size_t i;

	while(1) {
		ty = base;
		tm = traitmap->sub[ty->type];
		while (1) {
			if (ty->type == Typaram)
				if (ty->trneed && bshas(ty->trneed, tr->uid))
					return 1;
			if (ty->type == Tyvar) {
				if (!ty->trneed)
					ty->trneed = mkbs();
				if (update)
					bsput(ty->trneed, tr->uid);
				return 1;
			}
			if (bshas(tm->traits, tr->uid))
				return 1;
			if (tm->name && ty->type == Tyname) {
				bs = htget(tm->name, ty->name);
				if (bs && bshas(bs, tr->uid))
					return 1;
			}
			for (i = 0; i < tm->nfilter; i++) {
				if (tm->filtertr[i]->uid != tr->uid)
					continue;
				if (tymatchrank(tm->filter[i], ty) >= 0)
					return 1;
			}
			if (!ty->sub || ty->nsub != 1)
				break;
			ty = ty->sub[0];
			tm = tm->sub[ty->type];
			if (!tm)
				break;
		}
		if (base->type != Tyname)
			break;
		base = base->sub[0];
	}
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, 0x4(%rsp)
movq %rsi, %r14
movq %rdi, %r15
movq 0x48bf6(%rip), %rax     # 0x5e7b0
movl (%r15), %ebp
movq 0x8(%rax,%rbp,8), %r13
movq %r15, %r12
cmpl $0x1a, %ebp
je 0x15bd8
cmpl $0x19, %ebp
je 0x15cb4
movl (%r14), %ebx
jmp 0x15bf8
movq 0x80(%r12), %rdi
movl (%r14), %ebx
testq %rdi, %rdi
je 0x15bf8
movslq %ebx, %rsi
callq 0x17d72
testl %eax, %eax
jne 0x15ce0
movq (%r13), %rdi
movslq %ebx, %rsi
callq 0x17d72
testl %eax, %eax
jne 0x15ce0
cmpl $0x1c, %ebp
jne 0x15c42
movq 0x100(%r13), %rdi
testq %rdi, %rdi
je 0x15c42
movq 0x88(%r12), %rsi
callq 0x2a3e8
testq %rax, %rax
je 0x15c42
movslq (%r14), %rsi
movq %rax, %rdi
callq 0x17d72
testl %eax, %eax
jne 0x15ce0
xorl %ebp, %ebp
cmpq 0x110(%r13), %rbp
jae 0x15c7b
movq 0x118(%r13), %rax
movq (%rax,%rbp,8), %rax
movl (%rax), %eax
cmpl (%r14), %eax
jne 0x15c76
movq 0x108(%r13), %rax
movq (%rax,%rbp,8), %rdi
movq %r12, %rsi
callq 0x158be
testl %eax, %eax
jns 0x15ce0
incq %rbp
jmp 0x15c44
movq 0x68(%r12), %rax
testq %rax, %rax
je 0x15ca2
cmpq $0x1, 0x70(%r12)
jne 0x15ca2
movq (%rax), %r12
movl (%r12), %ebp
movq 0x8(%r13,%rbp,8), %r13
testq %r13, %r13
jne 0x15bc5
cmpl $0x1c, (%r15)
jne 0x15cf2
movq 0x68(%r15), %rax
movq (%rax), %r15
jmp 0x15bb3
movq 0x80(%r12), %rdi
testq %rdi, %rdi
jne 0x15cd1
callq 0x29d3c
movq %rax, %rdi
movq %rax, 0x80(%r12)
cmpl $0x0, 0x4(%rsp)
je 0x15ce0
movslq (%r14), %rsi
callq 0x29ed5
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
jmp 0x15ce3
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/infer.c
// Function: addbindings
void
addbindings(Node *n, Node **bind, size_t nbind)
{
	size_t i;

	/* order of binding shouldn't matter, so push them into the block
	 * in reverse order. */
	for (i = 0; i < nbind; i++) {
		putdcl(n->block.scope, bind[i]);
		linsert(&n->block.stmts, &n->block.nstmts, 0, bind[i]);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x28(%rdi), %r12
leaq 0x20(%rdi), %r13
xorl %ebp, %ebp
cmpq %rbp, %rbx
je 0x15d3c
movq 0x18(%r15), %rdi
movq (%r14,%rbp,8), %rsi
callq 0x1deda
movq (%r14,%rbp,8), %rcx
movq %r12, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x29b98
incq %rbp
jmp 0x15d14
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/infer.c
// Function: inferstab
static void
inferstab(Stab *s)
{
	void **k;
	size_t n, i;
	Node *dcl;
	Type *t;
	void *se;

	k = htkeys(s->dcl, &n);
	se = curenv();
	for (i = 0; i < n; i++) {
		dcl = htget(s->dcl, k[i]);
		pushenv(dcl->decl.env);
		tf(type(dcl));
		popenv(dcl->decl.env);
		assert(se == curenv());
	}
	free(k);

	k = htkeys(s->ty, &n);
	for (i = 0; i < n; i++) {
		t = gettype(s, k[i]);
		if (!t)
			fatal(k[i], "undefined type %s", namestr(k[i]));
		t = tysearch(t);
		setsuperenv(t->env, curenv());
		pushenv(t->env);
		tyresolve(t);
		popenv(t->env);
		updatetype(s, k[i], t);
	}
	free(k);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2a529
movq %rax, %r14
xorl %r13d, %r13d
callq 0x1d954
movq %rax, %r15
cmpq 0x8(%rsp), %r13
jae 0x16d58
movq 0x18(%rbx), %rdi
movq (%r14,%r13,8), %rsi
callq 0x2a3e8
movq %rax, %r12
movq 0x38(%rax), %rdi
callq 0x1d970
movq %r12, %rdi
callq 0x19ae5
movq %rax, %rdi
callq 0x17d99
movq 0x38(%r12), %rdi
callq 0x1d9bb
callq 0x1d954
incq %r13
cmpq %rax, %r15
je 0x16cf2
leaq 0x1b5b5(%rip), %rdi     # 0x322f5
leaq 0x1b541(%rip), %rsi     # 0x32288
leaq 0x1b5b6(%rip), %rcx     # 0x32304
movl $0x80a, %edx            # imm = 0x80A
callq 0x4180
movq %r14, %rdi
callq 0x4040
movq 0x28(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2a529
movq %rax, %r14
xorl %r12d, %r12d
cmpq 0x8(%rsp), %r12
jae 0x16dd7
movq (%r14,%r12,8), %rsi
movq %rbx, %rdi
callq 0x1dda3
testq %rax, %rax
je 0x16ded
movq %rax, %rdi
callq 0x1589c
movq %rax, %r15
movq 0x60(%rax), %r13
callq 0x1d954
testq %r13, %r13
je 0x16da9
movq %rax, (%r13)
movq 0x60(%r15), %rdi
callq 0x1d970
movq %r15, %rdi
callq 0x192e3
movq 0x60(%r15), %rdi
callq 0x1d9bb
movq (%r14,%r12,8), %rsi
movq %rbx, %rdi
movq %r15, %rdx
callq 0x1e1ea
incq %r12
jmp 0x16d74
movq %r14, %rdi
callq 0x4040
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq (%r14,%r12,8), %rbx
movq %rbx, %rdi
callq 0x1c0c8
leaq 0x1b51b(%rip), %rsi     # 0x3231b
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x120fd