LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/type.c
// Function: mktrait
Trait *
mktrait(Srcloc loc, Node *name, Type *param,
	Type **aux, size_t naux,
	Node **proto, size_t nproto,
	int isproto)
{
	Trait *t;
	size_t i;

	t = zalloc(sizeof(Trait));
	t->uid = ntraittab++;
	t->loc = loc;
	if (t->uid < Ntraits)
		t->vis = Visbuiltin;
	t->vis = Visintern;
	t->name = name;
	t->param = param;
	t->proto = proto;
	t->nproto = nproto;
	t->aux = aux;
	t->env = mkenv();
	t->naux = naux;
	t->isproto = isproto;

	bindtype(t->env, param);
	for (i = 0; i < naux; i++)
		bindtype(t->env, aux[i]);

	for (i = 0; i < nproto; i++)
		if (proto[i]->decl.env)
			proto[i]->decl.env->super = t->env;


	traittab = xrealloc(traittab, ntraittab * sizeof(Trait *));
	traittab[t->uid] = t;
	return t;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %r14
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, 0x10(%rsp)
movq %rdi, 0x8(%rsp)
movq 0x50(%rsp), %rbp
pushq $0x50
popq %rdi
callq 0x29a78
movq %rax, %rbx
movq 0x3f274(%rip), %rax     # 0x5f1f0
leaq 0x1(%rax), %rcx
movq %rcx, 0x3f269(%rip)     # 0x5f1f0
movl %eax, (%rbx)
movq 0x8(%rsp), %rax
movq %rax, 0x4(%rbx)
andl $0x0, 0xc(%rbx)
movq 0x10(%rsp), %rax
movq %rax, 0x10(%rbx)
movq %r13, 0x18(%rbx)
movq %r14, 0x30(%rbx)
movq %rbp, 0x38(%rbx)
movq %r12, 0x20(%rbx)
callq 0x1d928
movq %rax, 0x40(%rbx)
movq %r15, 0x28(%rbx)
movb 0x58(%rsp), %cl
movb %cl, 0x48(%rbx)
movq %rax, %rdi
movq %r13, %rsi
callq 0x1e6ec
xorl %r13d, %r13d
cmpq %r13, %r15
je 0x1ffe8
movq 0x40(%rbx), %rdi
movq (%r12,%r13,8), %rsi
callq 0x1e6ec
incq %r13
jmp 0x1ffd1
xorl %eax, %eax
cmpq %rax, %rbp
je 0x20008
movq (%r14,%rax,8), %rcx
movq 0x38(%rcx), %rcx
testq %rcx, %rcx
je 0x20003
movq 0x40(%rbx), %rdx
movq %rdx, (%rcx)
incq %rax
jmp 0x1ffea
movq 0x3f1e9(%rip), %rdi     # 0x5f1f8
movq 0x3f1da(%rip), %rsi     # 0x5f1f0
shlq $0x3, %rsi
callq 0x29b04
movq %rax, 0x3f1d2(%rip)     # 0x5f1f8
movslq (%rbx), %rcx
movq %rbx, (%rax,%rcx,8)
movq %rbx, %rax
addq $0x18, %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/type.c
// Function: mktyunres
Type *
mktyunres(Srcloc loc, Node *name, Type **arg, size_t narg)
{
	size_t i;
	Type *t;

	/* resolve it in the type inference stage */
	t = mktype(loc, Tyunres);
	t->name = name;
	t->arg = arg;
	t->narg = narg;
	t->env = mkenv();
	for (i = 0; i < narg; i++)
		bindtype(t->env, arg[i]);
	return t;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r12
pushq $0x1b
popq %rsi
callq 0x1fdc2
movq %rax, %r15
movq %r12, 0x88(%rax)
movq %r14, 0x40(%rax)
movq %rbx, 0x48(%rax)
callq 0x1d928
movq %rax, 0x60(%r15)
xorl %r12d, %r12d
cmpq %r12, %rbx
je 0x200c1
movq 0x60(%r15), %rdi
movq (%r14,%r12,8), %rsi
callq 0x1e6ec
incq %r12
jmp 0x200aa
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/type.c
// Function: mktygeneric
Type *
mktygeneric(Srcloc loc, Node *name, Type **param, size_t nparam, Type *base)
{
	Type *t;
	int i;

	t = mktype(loc, Tygeneric);
	t->name = name;
	t->nsub = 1;
	t->sub = xalloc(sizeof(Type *));
	t->sub[0] = base;
	t->gparam = param;
	t->ngparam = nparam;
	t->env = mkenv();
	for (i = 0; i < nparam; i++)
		bindtype(t->env, param[i]);
	if (!base->env)
		base->env = t->env;
	return t;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r13
pushq $0x1d
popq %rsi
callq 0x1fdc2
movq %rax, %r12
movq %r13, 0x88(%rax)
movq $0x1, 0x70(%rax)
pushq $0x8
popq %rdi
callq 0x29aa7
movq %rax, 0x68(%r12)
movq %rbx, (%rax)
movq %r15, 0x30(%r12)
movq %r14, 0x38(%r12)
callq 0x1d928
movq %rax, 0x60(%r12)
xorl %r13d, %r13d
cmpq %r13, %r14
je 0x2013e
movq 0x60(%r12), %rdi
movq (%r15,%r13,8), %rsi
callq 0x1e6ec
incq %r13
jmp 0x20126
cmpq $0x0, 0x60(%rbx)
jne 0x2014e
movq 0x60(%r12), %rax
movq %rax, 0x60(%rbx)
movq %r12, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/type.c
// Function: mktyname
Type *
mktyname(Srcloc loc, Node *name, Type *base)
{
	Type *t;

	t = mktype(loc, Tyname);
	t->name = name;
	t->nsub = 1;
	t->sub = xalloc(sizeof(Type *));
	t->sub[0] = base;
	return t;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
pushq $0x1c
popq %rsi
callq 0x1fdc2
movq %rax, %r15
movq %r14, 0x88(%rax)
movq $0x1, 0x70(%rax)
pushq $0x8
popq %rdi
callq 0x29aa7
movq %rax, 0x68(%r15)
movq %rbx, (%rax)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/type.c
// Function: mktyarray
Type *
mktyarray(Srcloc loc, Type *base, Node *sz)
{
	Type *t;

	t = mktype(loc, Tyarray);
	t->nsub = 1;
	t->nmemb = 1; /* the size is a "member" */
	t->sub = xalloc(sizeof(Type *));
	t->sub[0] = base;
	t->asize = sz;

	return t;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
pushq $0x15
popq %rsi
callq 0x1fdc2
movq %rax, %r15
pushq $0x1
popq %rax
movq %rax, 0x70(%r15)
movq %rax, 0x78(%r15)
pushq $0x8
popq %rdi
callq 0x29aa7
movq %rax, 0x68(%r15)
movq %r14, (%rax)
movq %rbx, 0x88(%r15)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/type.c
// Function: mktyslice
Type *
mktyslice(Srcloc loc, Type *base)
{
	Type *t;

	t = mktype(loc, Tyslice);
	t->nsub = 1;
	t->sub = xalloc(sizeof(Type *));
	t->sub[0] = base;
	return t;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
pushq $0x14
popq %rsi
callq 0x1fdc2
movq %rax, %r14
movq $0x1, 0x70(%rax)
pushq $0x8
popq %rdi
callq 0x29aa7
movq %rax, 0x68(%r14)
movq %rbx, (%rax)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/type.c
// Function: mktyptr
Type *
mktyptr(Srcloc loc, Type *base)
{
	Type *t;

	t = mktype(loc, Typtr);
	t->nsub = 1;
	t->sub = xalloc(sizeof(Type *));
	t->sub[0] = base;
	return t;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
pushq $0x12
popq %rsi
callq 0x1fdc2
movq %rax, %r14
movq $0x1, 0x70(%rax)
pushq $0x8
popq %rdi
callq 0x29aa7
movq %rax, 0x68(%r14)
movq %rbx, (%rax)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/type.c
// Function: mktytuple
Type *
mktytuple(Srcloc loc, Type **sub, size_t nsub)
{
	Type *t;
	size_t i;

	t = mktype(loc, Tytuple);
	t->nsub = nsub;
	t->sub = xalloc(nsub * sizeof(Type *));
	for (i = 0; i < nsub; i++)
		t->sub[i] = sub[i];
	return t;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
pushq $0x16
popq %rsi
callq 0x1fdc2
movq %rax, %r15
movq %rbx, 0x70(%rax)
leaq (,%rbx,8), %rdi
callq 0x29aa7
movq %rax, 0x68(%r15)
xorl %eax, %eax
cmpq %rax, %rbx
je 0x20283
movq (%r14,%rax,8), %rcx
movq 0x68(%r15), %rdx
movq %rcx, (%rdx,%rax,8)
incq %rax
jmp 0x2026d
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/type.c
// Function: mktyfunc
Type *
mktyfunc(Srcloc loc, Node **args, size_t nargs, Type *ret)
{
	Type *t;
	size_t i;

	t = mktype(loc, Tyfunc);
	t->nsub = nargs + 1;
	t->sub = xalloc((1 + nargs) * sizeof(Type *));
	t->sub[0] = ret;
	t->env = mkenv();
	for (i = 0; i < nargs; i++)
		t->sub[i + 1] = nodetype(args[i]);
	for (i = 0; i < t->nsub; i++)
		bindtype(t->env, t->sub[i]);
	return t;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r12
movq %rdx, %r14
movq %rsi, %r15
pushq $0x13
popq %rsi
callq 0x1fdc2
movq %rax, %rbx
leaq 0x1(%r14), %rax
movq %rax, 0x70(%rbx)
leaq 0x8(,%r14,8), %rdi
callq 0x29aa7
movq %rax, 0x68(%rbx)
movq %r12, (%rax)
callq 0x1d928
movq %rax, 0x60(%rbx)
xorl %r12d, %r12d
cmpq %r12, %r14
je 0x202ec
movq (%r15,%r12,8), %rdi
callq 0x1bf57
movq 0x68(%rbx), %rcx
movq %rax, 0x8(%rcx,%r12,8)
incq %r12
jmp 0x202d0
xorl %r14d, %r14d
cmpq 0x70(%rbx), %r14
jae 0x2030b
movq 0x60(%rbx), %rdi
movq 0x68(%rbx), %rax
movq (%rax,%r14,8), %rsi
callq 0x1e6ec
incq %r14
jmp 0x202ef
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/parse/type.c
// Function: mktystruct
Type *
mktystruct(Srcloc loc, Node **decls, size_t ndecls)
{
	Type *t;
	Htab *ht;
	int i;
	char *s;

	t = mktype(loc, Tystruct);
	t->nsub = 0;
	t->nmemb = ndecls;

	ht = mkht(strhash, streq);
	for (i = 0; i < ndecls; i++) {
		s = declname(decls[i]);
		if (hthas(ht, s))
			fatal(decls[i], "duplicate struct member %s\n", declname(decls[i]));
		htput(ht, s, s);
	}
	htfree(ht);

	t->sdecls = memdup(decls, ndecls * sizeof(Node *));
	return t;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
pushq $0x17
popq %rsi
callq 0x1fdc2
movq %rax, %r15
andq $0x0, 0x70(%rax)
movq %rbx, 0x78(%rax)
leaq 0xa23d(%rip), %rdi      # 0x2a583
leaq 0xa2d9(%rip), %rsi      # 0x2a626
callq 0x2a188
movq %rax, %r12
xorl %ebp, %ebp
cmpq %rbp, %rbx
je 0x2038a
movq (%r14,%rbp,8), %rdi
callq 0x1befe
movq %rax, %r13
movq %r12, %rdi
movq %rax, %rsi
callq 0x2a517
testl %eax, %eax
jne 0x203ba
movq %r12, %rdi
movq %r13, %rsi
movq %r13, %rdx
callq 0x2a22a
incq %rbp
jmp 0x20357
movq %r12, %rdi
callq 0x2a1f3
shlq $0x3, %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x29d0d
movq %rax, 0x88(%r15)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%r14,%rbp,8), %rbx
movq %rbx, %rdi
callq 0x1befe
leaq 0x139b9(%rip), %rsi     # 0x33d86
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x120fd
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/type.c
// Function: mktyunion
Type *
mktyunion(Srcloc loc, Ucon **decls, size_t ndecls)
{
	Type *t;

	t = mktype(loc, Tyunion);
	t->nmemb = ndecls;
	t->udecls = decls;
	return t;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
pushq $0x18
popq %rsi
callq 0x1fdc2
movq %rbx, 0x78(%rax)
movq %r14, 0x88(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/type.c
// Function: finducon
Ucon *
finducon(Type *ty, Node *name)
{
	size_t i;

	ty = tybase(ty);
	for (i = 0; i < ty->nmemb; i++)
		if (!strcmp(namestr(ty->udecls[i]->name), namestr(name)))
			return ty->udecls[i];
	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
callq 0x1fcd8
movq %rax, %r15
xorl %ebx, %ebx
xorl %r13d, %r13d
cmpq 0x78(%r15), %r13
jae 0x2045c
movq 0x88(%r15), %rax
movq (%rax,%r13,8), %rax
movq 0x18(%rax), %rdi
callq 0x1c0c8
movq %rax, %r12
movq %r14, %rdi
callq 0x1c0c8
movq %r12, %rdi
movq %rax, %rsi
callq 0x4230
testl %eax, %eax
je 0x20451
incq %r13
jmp 0x20418
movq 0x88(%r15), %rax
movq (%rax,%r13,8), %rbx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/type.c
// Function: hasparamsrec
int
hasparamsrec(Type *t, Bitset *visited)
{
	size_t i;

	if (bshas(visited, t->tid))
		return 0;
	bsput(visited, t->tid);
	switch (t->type) {
	case Typaram:	return 1;
	case Tygeneric: return 1;
	case Tyname:
		for (i = 0; i < t->narg; i++)
			if (hasparamsrec(t->arg[i], visited))
				return 1;
		return hasparamsrec(t->sub[0], visited);
	case Tyunres:
		for (i = 0; i < t->narg; i++)
			if (hasparamsrec(t->arg[i], visited))
				return 1;
		break;
	case Tystruct:
		for (i = 0; i < t->nmemb; i++)
			if (hasparamsrec(t->sdecls[i]->decl.type, visited))
				return 1;
		break;
	case Tyunion:
		for (i = 0; i < t->nmemb; i++)
			if (t->udecls[i]->etype && hasparamsrec(t->udecls[i]->etype, visited))
				return 1;
		break;
	default:
		for (i = 0; i < t->nsub; i++)
			if (hasparamsrec(t->sub[i], visited))
				return 1;
		break;
	}
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
pushq $0x1
popq %rbp
leaq 0x136d0(%rip), %r13     # 0x33be0
xorl %ebx, %ebx
movl 0x4(%r15), %r12d
movq %r14, %rdi
movq %r12, %rsi
callq 0x20633
testl %eax, %eax
jne 0x20622
movq %r14, %rdi
movq %r12, %rsi
callq 0x29ed5
movl (%r15), %eax
addl $-0x17, %eax
cmpl $0x6, %eax
ja 0x205fe
movslq (%r13,%rax,4), %rax
addq %r13, %rax
jmpq *%rax
xorl %r12d, %r12d
cmpq 0x48(%r15), %r12
jae 0x20572
movq 0x40(%r15), %rax
movq (%rax,%r12,8), %rdi
movq %r14, %rsi
callq 0x204f5
incq %r12
testl %eax, %eax
je 0x20550
jmp 0x20620
movq 0x68(%r15), %rax
movq (%rax), %r15
jmp 0x20512
xorl %ebx, %ebx
xorl %r12d, %r12d
cmpq 0x78(%r15), %r12
jae 0x20622
movq 0x88(%r15), %rax
movq (%rax,%r12,8), %rax
movq 0x28(%rax), %rdi
testq %rdi, %rdi
je 0x205aa
movq %r14, %rsi
callq 0x204f5
testl %eax, %eax
jne 0x20620
incq %r12
jmp 0x20580
xorl %ebx, %ebx
xorl %r12d, %r12d
cmpq 0x78(%r15), %r12
jae 0x20622
movq 0x88(%r15), %rax
movq (%rax,%r12,8), %rax
movq 0x28(%rax), %rdi
movq %r14, %rsi
callq 0x204f5
incq %r12
testl %eax, %eax
je 0x205b4
jmp 0x20620
xorl %ebx, %ebx
xorl %r12d, %r12d
cmpq 0x48(%r15), %r12
jae 0x20622
movq 0x40(%r15), %rax
movq (%rax,%r12,8), %rdi
movq %r14, %rsi
callq 0x204f5
incq %r12
testl %eax, %eax
je 0x205df
jmp 0x20620
xorl %ebx, %ebx
xorl %r12d, %r12d
cmpq 0x70(%r15), %r12
jae 0x20622
movq 0x68(%r15), %rax
movq (%rax,%r12,8), %rdi
movq %r14, %rsi
callq 0x204f5
incq %r12
testl %eax, %eax
je 0x20603
movl %ebp, %ebx
movl %ebx, %eax
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/type.c
// Function: hasparams
int
hasparams(Type *t)
{
	Bitset *visited;

	if (t->hasparams)
		return 1;
	visited = mkbs();
	t->hasparams = hasparamsrec(t, visited);
	bsfree(visited);
	return t->hasparams;
}

// Assembly:
cmpb $0x0, 0x90(%rdi)
je 0x20667
pushq $0x1
popq %rax
retq
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x29d3c
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x204f5
movb %al, 0x90(%rbx)
movq %r14, %rdi
callq 0x29d60
movsbl 0x90(%rbx), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/type.c
// Function: traitfmt
int
traitfmt(char *buf, size_t len, Type *t)
{
	size_t i;
	char *p;
	char *end;
	char *sep;

	if (!t->trneed || !bscount(t->trneed))
		return 0;

	p = buf;
	end = p + len;

	p += bprintf(p, end - p, " :: ");
	sep = "";
	for (i = 0; bsiter(t->trneed, &i); i++) {
		p += bprintf(p, end - p, "%s%s", sep, namestr(traittab[i]->name));
		sep = ",";
	}
	return p - buf;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x80(%rdx), %rdi
xorl %r15d, %r15d
testq %rdi, %rdi
je 0x20771
movq %rdx, %r14
movq %rsi, %r12
callq 0x29dea
testq %rax, %rax
je 0x20771
leaq (%rbx,%r12), %r13
leaq 0x136e0(%rip), %rdx     # 0x33dc1
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x2a9bf
movq %rax, %r15
movq %rbx, 0x10(%rsp)
addq %rbx, %r15
leaq 0xd74a(%rip), %rbp      # 0x2de4a
leaq 0x8(%rsp), %r12
xorl %eax, %eax
movq %rax, 0x8(%rsp)
movq 0x80(%r14), %rdi
movq %r12, %rsi
callq 0x29e1a
testl %eax, %eax
je 0x2076c
movq %r13, %rbx
subq %r15, %rbx
movq 0x3eacc(%rip), %rax     # 0x5f1f8
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x10(%rax), %rdi
callq 0x1c0c8
movq %r15, %rdi
movq %rbx, %rsi
leaq 0xd3f8(%rip), %rdx      # 0x2db43
movq %rbp, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x2a9bf
addq %rax, %r15
movq 0x8(%rsp), %rax
incq %rax
leaq 0x14602(%rip), %rbp     # 0x34d6c
jmp 0x20707
subl 0x10(%rsp), %r15d
movl %r15d, %eax
addq $0x18, %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/type.c
// Function: tyfmt
char *
tyfmt(char *buf, size_t len, Type *t)
{
	Bitset *bs;

	bs = mkbs();
	tybfmt(buf, len, bs, t);
	bsfree(bs);
	return buf;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x29d3c
movq %rax, %r12
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
movq %rbx, %rcx
callq 0x207c4
movq %r12, %rdi
callq 0x29d60
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/type.c
// Function: tyhash
ulong
tyhash(void *ty)
{
	size_t i;
	Type *t;
	ulong hash;

	t = (Type *)ty;
	switch (t->type) {
	case Tyvar:	hash = inthash(t->tid);	break;
	case Tyunion:	hash = inthash(t->type);	break;
	case Tystruct:	hash = inthash(t->type);	break;
	case Tyname:	hash = namehash(t->name);	break;
	case Typaram:	hash = strhash(t->pname);	break;
	default: hash = inthash(t->type); break;
	}

	for (i = 0; i < t->narg; i++)
		hash ^= tyhash(t->arg[i]);
	return hash;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl (%rdi), %edi
leal -0x17(%rdi), %eax
cmpl $0x5, %eax
ja 0x21063
leaq 0x12c2e(%rip), %rcx     # 0x33c7c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
pushq $0x17
jmp 0x21062
movl 0x4(%rbx), %edi
jmp 0x21063
pushq $0x18
popq %rdi
callq 0x2a6b0
movq %rax, %r14
xorl %r15d, %r15d
cmpq 0x48(%rbx), %r15
jae 0x21089
movq 0x40(%rbx), %rax
movq (%rax,%r15,8), %rdi
callq 0x21035
xorq %rax, %r14
incq %r15
jmp 0x2106e
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
movq 0x88(%rbx), %rdi
callq 0x2a583
jmp 0x21068
movq 0x88(%rbx), %rdi
callq 0x1c09d
jmp 0x21068
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/type.c
// Function: tystricteq
int
tystricteq(void *a, void *b)
{
	Bitset *avisited, *bvisited;
	int eq;

	if (a == b)
		return 1;
	avisited = mkbs();
	bvisited = mkbs();
	eq = tyeq_rec(a, b, avisited, bvisited, 0);
	bsfree(avisited);
	bsfree(bvisited);
	return eq;
}

// Assembly:
cmpq %rsi, %rdi
je 0x215f1
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x29d3c
movq %rax, %r15
callq 0x29d3c
movq %rax, %r12
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0x210ae
movl %eax, %ebx
movq %r15, %rdi
callq 0x29d60
movq %r12, %rdi
callq 0x29d60
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
pushq $0x1
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/type.c
// Function: tyeq
int
tyeq(void *a, void *b)
{
	Bitset *avisited, *bvisited;
	int eq;

	if (a == b)
		return 1;
	avisited = mkbs();
	bvisited = mkbs();
	eq = tyeq_rec(a, b, avisited, bvisited, 1);
	bsfree(avisited);
	bsfree(bvisited);
	return eq;
}

// Assembly:
cmpq %rsi, %rdi
je 0x2164d
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x29d3c
movq %rax, %r15
callq 0x29d3c
movq %rax, %r12
pushq $0x1
popq %r8
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %rax, %rcx
callq 0x210ae
movl %eax, %ebx
movq %r15, %rdi
callq 0x29d60
movq %r12, %rdi
callq 0x29d60
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
pushq $0x1
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/type.c
// Function: disposableinit
void
disposableinit(Stab *st, Trait *tr)
{
	Node *func, *arg, **args;
	Type *ty;
	size_t nargs;

	tr->param = mktyparam(Zloc, "a");
	tr->naux = 0;

	/* __dispose__ : (val : @a -> void) */
	args = NULL;
	nargs = 0;
	arg = mkdecl(Zloc, mkname(Zloc, "val"), mktyparam(Zloc, "a"));
	lappend(&args, &nargs, arg);
	ty = mktyfunc(Zloc, args, nargs, mktype(Zloc, Tyvoid));

	func = mkdecl(Zloc, mkname(Zloc, "__dispose__"), ty);
	func->decl.trait = tr;
	func->decl.impls = mkht(tyhash, tyeq);
	func->decl.isgeneric = 1;
	func->decl.isconst = 1;
	func->decl.isglobl = 1;
	func->decl.isextern = 1;

	lappend(&tr->proto, &tr->nproto, func);
	putdcl(st, func);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xf8bd(%rip), %r15      # 0x315e2
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movq %r15, %rsi
callq 0x20047
movq %rax, 0x18(%r14)
andq $0x0, 0x28(%r14)
leaq 0x10(%rsp), %r12
andq $0x0, (%r12)
leaq 0x8(%rsp), %r13
andq $0x0, (%r13)
leaq 0x120d0(%rip), %rsi     # 0x33e26
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x1b7fd
movq %rax, %rbp
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movq %r15, %rsi
callq 0x20047
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movq %rbp, %rsi
movq %rax, %rdx
callq 0x1bd5f
movq %r12, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x29b2d
movq (%r12), %r15
movq (%r13), %r12
pushq $0x1
popq %rsi
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x1fdc2
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movq %r15, %rsi
movq %r12, %rdx
movq %rax, %rcx
callq 0x2028c
movq %rax, %r15
leaq 0x12076(%rip), %rsi     # 0x33e36
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x1b7fd
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movq %rax, %rsi
movq %r15, %rdx
callq 0x1bd5f
movq %rax, %r15
movq %r14, 0x40(%rax)
leaq -0xdb3(%rip), %rdi      # 0x21035
leaq -0x7fa(%rip), %rsi      # 0x215f5
callq 0x2a188
movq %rax, 0x48(%r15)
leaq 0x30(%r14), %rdi
addq $0x38, %r14
movl $0x1010101, 0x71(%r15)  # imm = 0x1010101
movq %r14, %rsi
movq %r15, %rdx
callq 0x29b2d
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1deda
addq $0x18, %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/type.c
// Function: fmtlist
static int
fmtlist(char *buf, size_t len, Bitset *visited, Type **arg, size_t narg)
{
	char *end, *p, *sep;
	size_t i;

	sep = "";
	p = buf;
	end = p + len;
	p += bprintf(p, end - p, "(");
	for (i = 0; i < narg; i++) {
		p += bprintf(p, end - p, "%s", sep);
		p += tybfmt(p, end - p, visited, arg[i]);
		sep = ", ";
	}
	p += bprintf(p, end - p, ")");
	return p - buf;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %r15
movq %rcx, 0x10(%rsp)
movq %rdx, %r13
movq %rdi, %rbx
leaq (%rdi,%rsi), %r14
leaq 0xee02(%rip), %rdx      # 0x313ca
xorl %eax, %eax
callq 0x2a9bf
movq %rax, %rbp
movq %rbx, 0x8(%rsp)
addq %rbx, %rbp
leaq 0xb869(%rip), %rcx      # 0x2de4a
xorl %r12d, %r12d
cmpq %r12, %r15
je 0x22632
movq %r14, %rsi
subq %rbp, %rsi
movq %rbp, %rdi
leaq 0x104a4(%rip), %rdx     # 0x32a9d
xorl %eax, %eax
callq 0x2a9bf
movq %rax, %rbx
addq %rbp, %rbx
movq %r14, %rsi
subq %rbx, %rsi
movq 0x10(%rsp), %rax
movq (%rax,%r12,8), %rcx
movq %rbx, %rdi
movq %r13, %rdx
callq 0x207c4
movslq %eax, %rbp
addq %rbx, %rbp
incq %r12
leaq 0xf958(%rip), %rcx      # 0x31f88
jmp 0x225e4
subq %rbp, %r14
leaq 0x10d87(%rip), %rdx     # 0x333c3
movq %rbp, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x2a9bf
addl %ebp, %eax
subl 0x8(%rsp), %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/use.c
// Function: traitunpickle
Trait *
traitunpickle(FILE *fd)
{
	Trait *tr;
	Node *proto;
	size_t i, n;
	intptr_t uid;

	/* create an empty trait */
	tr = mktrait(Zloc, NULL, NULL,
		NULL, 0,
		NULL, 0,
		0);
	uid = rdint(fd);
	if (rdint(fd) == Vishidden)
		tr->ishidden = 1;
	tr->name = unpickle(fd);
	tr->param = tyunpickle(fd);
	tr->naux = rdint(fd);
	tr->aux = zalloc(tr->naux * sizeof(Type*));
	tr->isimport = 1;
	for (i = 0; i < tr->naux; i++)
		rdtype(fd, &tr->aux[i]);
	n = rdint(fd);
	for (i = 0; i < n; i++) {
		proto = rdsym(fd, tr);
		proto->decl.impls = mkht(tyhash, tyeq);
		lappend(&tr->proto, &tr->nproto, proto);
	}
	htput(trmap, itop(uid), tr);
	return tr;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
andl $0x0, 0x8(%rsp)
andq $0x0, (%rsp)
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x1ff41
movq %rax, %r14
movq %rbx, %rdi
callq 0x2a844
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
callq 0x2a844
cmpq $0x2, %rax
jne 0x226f8
movb $0x1, 0x49(%r14)
movq %rbx, %rdi
callq 0x227cd
movq %rax, 0x10(%r14)
movq %rbx, %rdi
callq 0x22c9e
movq %rax, 0x18(%r14)
movq %rbx, %rdi
callq 0x2a844
movq %rax, 0x28(%r14)
leaq (,%rax,8), %rdi
callq 0x29a78
movq %rax, 0x20(%r14)
movb $0x1, 0x4a(%r14)
xorl %r15d, %r15d
xorl %r12d, %r12d
cmpq 0x28(%r14), %r12
jae 0x22756
movq 0x20(%r14), %rsi
addq %r15, %rsi
movq %rbx, %rdi
callq 0x23046
incq %r12
addq $0x8, %r15
jmp 0x22738
movq %rbx, %rdi
callq 0x2a844
movq %rax, %r12
leaq 0x30(%r14), %r13
movq %r14, %rbp
addq $0x38, %rbp
subq $0x1, %r12
jb 0x227a7
movq %rbx, %rdi
movq %r14, %rsi
callq 0x230c3
movq %rax, %r15
leaq -0x1752(%rip), %rdi     # 0x21035
leaq -0x1199(%rip), %rsi     # 0x215f5
callq 0x2a188
movq %rax, 0x48(%r15)
movq %r13, %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x29b2d
jmp 0x2276c
movq 0x3ca6a(%rip), %rdi     # 0x5f218
movq 0x10(%rsp), %rsi
movq %r14, %rdx
callq 0x2a22a
movq %r14, %rax
addq $0x18, %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/use.c
// Function: rdtype
static void
rdtype(FILE *fd, Type **dest)
{
	uintptr_t tid;

	tid = rdint(fd);
	if (tid == 0) {
		return;
	} else if (tid & Builtinmask) {
		*dest = mktype(Zloc, tid & ~Builtinmask);
	} else {
		typefix = xrealloc(typefix, (ntypefix + 1) * sizeof(typefix[0]));
		typefix[ntypefix++] = (Typefix){dest, tid};
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
callq 0x2a844
testq %rax, %rax
je 0x230bb
movq %rax, %r14
btl $0x1e, %r14d
jb 0x230a4
movq 0x3c1e0(%rip), %rdi     # 0x5f248
movq 0x3c1e1(%rip), %rsi     # 0x5f250
shlq $0x4, %rsi
addq $0x10, %rsi
callq 0x29b04
movq %rax, 0x3c1c5(%rip)     # 0x5f248
movq 0x3c1c6(%rip), %rcx     # 0x5f250
leaq 0x1(%rcx), %rdx
movq %rdx, 0x3c1bb(%rip)     # 0x5f250
shlq $0x4, %rcx
movq %rbx, (%rax,%rcx)
movq %r14, 0x8(%rax,%rcx)
jmp 0x230bb
andl $0xbfffffff, %r14d      # imm = 0xBFFFFFFF
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movl %r14d, %esi
callq 0x1fdc2
movq %rax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/use.c
// Function: rdsym
static Node *
rdsym(FILE *fd, Trait *ctx)
{
	int line;
	Node *name;
	Node *n;

	line = rdint(fd);
	name = unpickle(fd);
	n = mkdecl(Zloc, name, NULL);
	n->loc.line = line;
	n->loc.file = file.nfiles - 1;
	rdtype(fd, &n->decl.type);

	if (rdint(fd) == Vishidden)
		n->decl.ishidden = 1;
	n->decl.trait = ctx;
	n->decl.isconst = rdbool(fd);
	n->decl.isgeneric = rdbool(fd);
	n->decl.isextern = rdbool(fd);
	n->decl.ispkglocal = rdbool(fd);
	n->decl.isnoret = rdbool(fd);
	n->decl.isimport = 1;
	n->decl.isexportval = rdbool(fd);
	n->decl.isinit = rdbool(fd);
	n->decl.isfini = rdbool(fd);
	if (n->decl.isexportval)
		n->decl.init = unpickle(fd);
	return n;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
callq 0x2a844
movq %rax, %r12
movq %rbx, %rdi
callq 0x227cd
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movq %rax, %rsi
xorl %edx, %edx
callq 0x1bd5f
movq %rax, %r14
movl %r12d, (%rax)
leaq 0x3b17b(%rip), %rax     # 0x5e278
movl (%rax), %eax
decl %eax
movl %eax, 0x4(%r14)
leaq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x23046
movq %rbx, %rdi
callq 0x2a844
cmpq $0x2, %rax
jne 0x23124
movb $0x1, 0x76(%r14)
movq %r15, 0x40(%r14)
movq %rbx, %rdi
callq 0x2aa5c
movb %al, 0x72(%r14)
movq %rbx, %rdi
callq 0x2aa5c
movb %al, 0x73(%r14)
movq %rbx, %rdi
callq 0x2aa5c
movb %al, 0x74(%r14)
movq %rbx, %rdi
callq 0x2aa5c
movb %al, 0x75(%r14)
movq %rbx, %rdi
callq 0x2aa5c
movb %al, 0x78(%r14)
movb $0x1, 0x77(%r14)
movq %rbx, %rdi
callq 0x2aa5c
movb %al, 0x79(%r14)
movq %rbx, %rdi
callq 0x2aa5c
movb %al, 0x7a(%r14)
movq %rbx, %rdi
callq 0x2aa5c
movb %al, 0x7b(%r14)
cmpb $0x0, 0x79(%r14)
je 0x231a0
movq %rbx, %rdi
callq 0x227cd
movq %rax, 0x30(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/use.c
// Function: findstab
static Stab *
findstab(Stab *st, char *pkg)
{
	Stab *s;

	if (!pkg) {
		if (!st->name)
			return st;
		else
			return NULL;
	}

	s = getns(pkg);
	if (!s) {
		s = mkstab(0);
		s->name = strdup(pkg);
		putns(s);
	}
	return s;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x23ceb
movq %rsi, %r14
movq %rsi, %rdi
callq 0x1da38
movq %rax, %rbx
testq %rax, %rax
jne 0x23cf6
xorl %edi, %edi
callq 0x1d73b
movq %rax, %rbx
movq %r14, %rdi
callq 0x4340
movq %rax, 0x8(%rbx)
movq %rbx, %rdi
callq 0x1e6a8
jmp 0x23cf6
xorl %ebx, %ebx
cmpq $0x0, 0x8(%rdi)
cmoveq %rdi, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/use.c
// Function: wrsym
static void
wrsym(FILE *fd, Node *val)
{
	/* sym */
	wrint(fd, val->loc.line);
	pickle(fd, val->decl.name);
	wrtype(fd, val->decl.type);

	/* symflags */
	wrint(fd, val->decl.vis);
	wrbool(fd, val->decl.isconst);
	wrbool(fd, val->decl.isgeneric);
	wrbool(fd, val->decl.isextern);
	wrbool(fd, val->decl.ispkglocal);
	wrbool(fd, val->decl.isnoret);
	wrbool(fd, val->decl.isexportval);
	wrbyte(fd, val->decl.isinit);
	wrbyte(fd, val->decl.isfini);
	if (val->decl.isexportval)
		pickle(fd, val->decl.init);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movslq (%rsi), %rsi
callq 0x2a82d
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x2475a
movq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x24da7
movsbq 0x70(%r14), %rsi
movq %rbx, %rdi
callq 0x2a82d
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 0x75(%r14), %esi
movq %rbx, %rdi
callq 0x2aa53
movsbl 0x78(%r14), %esi
movq %rbx, %rdi
callq 0x2aa53
movsbl 0x79(%r14), %esi
movq %rbx, %rdi
callq 0x2aa53
movsbl 0x7a(%r14), %esi
movq %rbx, %rdi
callq 0x2a7ef
movsbl 0x7b(%r14), %esi
movq %rbx, %rdi
callq 0x2a7ef
cmpb $0x0, 0x79(%r14)
je 0x24c24
movq 0x30(%r14), %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2475a
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/use.c
// Function: rdtrait
static void
rdtrait(FILE *fd, Trait **dest, Type *ty)
{
	uintptr_t tid;

	tid = rdint(fd);
	if (tid & Builtinmask) {
		if (dest)
			*dest = traittab[tid & ~Builtinmask];
		if (ty) {
			if (!ty->trneed)
				ty->trneed = mkbs();
			bsput(ty->trneed, traittab[tid & ~Builtinmask]->uid);
		}
	} else {
		traitfix = xrealloc(traitfix, (ntraitfix + 1) * sizeof(traitfix[0]));
		traitfix[ntraitfix++] = (Traitfix){dest, ty, tid};
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
callq 0x2a844
movq %rax, %rbx
btl $0x1e, %ebx
jb 0x24c8d
movq 0x3a5e9(%rip), %rdi     # 0x5f238
imulq $0x18, 0x3a5e9(%rip), %rsi # 0x5f240
addq $0x18, %rsi
callq 0x29b04
movq %rax, 0x3a5d1(%rip)     # 0x5f238
movq 0x3a5d2(%rip), %rcx     # 0x5f240
leaq 0x1(%rcx), %rdx
movq %rdx, 0x3a5c7(%rip)     # 0x5f240
imulq $0x18, %rcx, %rcx
movq %r15, (%rax,%rcx)
movq %r14, 0x8(%rax,%rcx)
movq %rbx, 0x10(%rax,%rcx)
jmp 0x24cf7
movabsq $0x1fffffffbfffffff, %r12 # imm = 0x1FFFFFFFBFFFFFFF
testq %r15, %r15
je 0x24cb3
leaq 0x3a555(%rip), %rax     # 0x5f1f8
movq (%rax), %rax
movq %rbx, %rcx
andq %r12, %rcx
movq (%rax,%rcx,8), %rax
movq %rax, (%r15)
testq %r14, %r14
je 0x24cf7
movq 0x80(%r14), %rdi
testq %rdi, %rdi
jne 0x24cd3
callq 0x29d3c
movq %rax, %rdi
movq %rax, 0x80(%r14)
leaq 0x3a51e(%rip), %rax     # 0x5f1f8
movq (%rax), %rax
andq %r12, %rbx
movq (%rax,%rbx,8), %rax
movslq (%rax), %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x29ed5
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/use.c
// Function: rdstab
static Stab *
rdstab(FILE *fd, int isfunc)
{
	Stab *st;
	Type *ty;
	Node *nm;
	int n;
	int i;

	/* read dcls */
	st = mkstab(isfunc);
	st->name = rdstr(fd);
	n = rdint(fd);
	for (i = 0; i < n; i++)
		putdcl(st, rdsym(fd, NULL));

	/* read types */
	n = rdint(fd);
	for (i = 0; i < n; i++) {
		nm = unpickle(fd);
		rdtype(fd, &ty);
		puttype(st, nm, ty);
	}
	return st;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl %esi, %edi
callq 0x1d73b
movq %rax, %r14
movq %rbx, %rdi
callq 0x2a8d3
movq %rax, 0x8(%r14)
movq %rbx, %rdi
callq 0x2a844
movq %rax, %r15
xorl %eax, %eax
testl %r15d, %r15d
cmovlel %eax, %r15d
movq %rbx, %rdi
subl $0x1, %r15d
jb 0x24d59
xorl %esi, %esi
callq 0x230c3
movq %r14, %rdi
movq %rax, %rsi
callq 0x1deda
jmp 0x24d3c
callq 0x2a844
xorl %ebp, %ebp
testl %eax, %eax
cmovgl %eax, %ebp
leaq 0x8(%rsp), %r15
subl $0x1, %ebp
jb 0x24d97
movq %rbx, %rdi
callq 0x227cd
movq %rax, %r12
movq %rbx, %rdi
movq %r15, %rsi
callq 0x23046
movq 0x8(%rsp), %rdx
movq %r14, %rdi
movq %r12, %rsi
callq 0x1e2a4
jmp 0x24d6a
movq %r14, %rax
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/use.c
// Function: wrtype
static void
wrtype(FILE *fd, Type *ty)
{
	if (!ty) {
		wrint(fd, 0);
		return;
	}
	if (ty->tid >= Builtinmask)
		die("Type id %d for %s too big", ty->tid, tystr(ty));
	if (ty->vis == Visbuiltin)
		wrint(fd, ty->type | Builtinmask);
	else
		wrint(fd, ty->tid);
}

// Assembly:
pushq %rbx
testq %rsi, %rsi
je 0x24dc7
movl 0x4(%rsi), %ebx
cmpl $0x40000000, %ebx       # imm = 0x40000000
jae 0x24dd1
cmpl $0x3, 0x10(%rsi)
jne 0x24dc9
movl $0x40000000, %ebx       # imm = 0x40000000
orl (%rsi), %ebx
jmp 0x24dc9
xorl %ebx, %ebx
movl %ebx, %esi
popq %rbx
jmp 0x2a82d
movq %rsi, %rdi
callq 0x21009
leaq 0xf42d(%rip), %rdi      # 0x3420d
movl %ebx, %esi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1205c
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/use.c
// Function: wrstab
static void
wrstab(FILE *fd, Stab *val)
{
	size_t n, i;
	void **keys;

	wrstr(fd, val->name);

	/* write decls */
	keys = htkeys(val->dcl, &n);
	wrint(fd, n);
	for (i = 0; i < n; i++)
		wrsym(fd, getdcl(val, keys[i]));
	free(keys);

	/* write types */
	keys = htkeys(val->ty, &n);
	wrint(fd, n);
	for (i = 0; i < n; i++) {
		pickle(fd, keys[i]);			/* name */
		wrtype(fd, gettype(val, keys[i]));	/* type */
	}
	free(keys);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rsi), %rsi
callq 0x2a882
movq 0x18(%rbx), %rdi
movq %rsp, %r12
movq %r12, %rsi
callq 0x2a529
movq %rax, %r15
movq (%r12), %rsi
movq %r14, %rdi
callq 0x2a82d
xorl %r12d, %r12d
cmpq (%rsp), %r12
jae 0x24e46
movq (%r15,%r12,8), %rsi
movq %rbx, %rdi
callq 0x1dc67
movq %r14, %rdi
movq %rax, %rsi
callq 0x24b6b
incq %r12
jmp 0x24e24
movq %r15, %rdi
callq 0x4040
movq 0x28(%rbx), %rdi
movq %rsp, %r12
movq %r12, %rsi
callq 0x2a529
movq %rax, %r15
movq (%r12), %rsi
movq %r14, %rdi
callq 0x2a82d
xorl %r12d, %r12d
cmpq (%rsp), %r12
jae 0x24e9d
movq (%r15,%r12,8), %rsi
movq %r14, %rdi
callq 0x2475a
movq (%r15,%r12,8), %rsi
movq %rbx, %rdi
callq 0x1dda3
movq %r14, %rdi
movq %rax, %rsi
callq 0x24da7
incq %r12
jmp 0x24e6f
movq %r15, %rdi
callq 0x4040
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/mi/cfg.c
// Function: delete
void
delete(Cfg *cfg, Bb *bb)
{
	size_t i, j;

	if (bb == cfg->start || bb == cfg->end)
		return;
	for (i = 0; bsiter(bb->pred, &i); i++) {
		bsunion(cfg->bb[i]->succ, bb->succ);
		bsdel(cfg->bb[i]->succ, bb->id);
	}
	for (i = 0; bsiter(bb->succ, &i); i++) {
		bsunion(cfg->bb[i]->pred, bb->pred);
		bsdel(cfg->bb[i]->pred, bb->id);
		for (j = 0; j < bb->nlbls; j++)
			strlabel(cfg, bb->lbls[j], cfg->bb[i]);
	}
	cfg->bb[bb->id] = NULL;
}

// Assembly:
cmpq %rsi, 0x10(%rdi)
je 0x24fb9
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
cmpq %rsi, 0x18(%rdi)
je 0x24fae
xorl %eax, %eax
movq %rsp, %r15
movq %rax, (%rsp)
movq 0x28(%rbx), %rdi
movq %r15, %rsi
callq 0x29e1a
testl %eax, %eax
je 0x24f29
movq 0x8(%r14), %rax
movq (%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x30(%rax), %rdi
movq 0x30(%rbx), %rsi
callq 0x29f5f
movq 0x8(%r14), %rax
movq (%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x30(%rax), %rdi
movslq (%rbx), %rsi
callq 0x29f3e
movq (%rsp), %rax
incq %rax
jmp 0x24edb
xorl %eax, %eax
movq %rsp, %r15
movq %rax, (%rsp)
movq 0x30(%rbx), %rdi
movq %r15, %rsi
callq 0x29e1a
movq 0x8(%r14), %rcx
testl %eax, %eax
je 0x24fa6
movq (%rsp), %rax
movq (%rcx,%rax,8), %rax
movq 0x28(%rax), %rdi
movq 0x28(%rbx), %rsi
callq 0x29f5f
movq 0x8(%r14), %rax
movq (%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x28(%rax), %rdi
movslq (%rbx), %rsi
callq 0x29f3e
xorl %r12d, %r12d
cmpq 0x10(%rbx), %r12
jae 0x24f9d
movq 0x8(%rbx), %rax
movq (%rax,%r12,8), %rsi
movq 0x8(%r14), %rax
movq (%rsp), %rcx
movq (%rax,%rcx,8), %rdx
movq %r14, %rdi
callq 0x24fba
incq %r12
jmp 0x24f76
movq (%rsp), %rax
incq %rax
jmp 0x24f2e
movslq (%rbx), %rax
andq $0x0, (%rcx,%rax,8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/mi/cfg.c
// Function: noexit
void
noexit(Cfg *cfg, Bb *bb)
{
	size_t i;
	for (i = 0; bsiter(bb->succ, &i); i++)
		bsdel(cfg->bb[i]->pred, bb->id);
	bsclear(bb->succ);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
xorl %eax, %eax
leaq 0x8(%rsp), %r15
movq %rax, 0x8(%rsp)
movq 0x30(%rbx), %rdi
movq %r15, %rsi
callq 0x29e1a
testl %eax, %eax
je 0x25051
movq 0x8(%r14), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x28(%rax), %rdi
movslq (%rbx), %rsi
callq 0x29f3e
movq 0x8(%rsp), %rax
incq %rax
jmp 0x25019
movq 0x30(%rbx), %rdi
callq 0x29dc8
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/mi/cfg.c
// Function: trimdead
void
trimdead(Cfg *cfg, Bb *bb)
{
	size_t i;

	if (!bb)
		return;
	for (i = 0; i < bb->nnl; i++) {
		switch (exprop(bb->nl[i])) {
			/* if we're jumping, we can't keep going
			 * within this BB */
		case Ojmp:
		case Ocjmp:
		case Oret:
			bb->nnl = i + 1;
			return;
		case Odead:
			noexit(cfg, bb);
			bb->nnl = i + 1;
			return;
		case Ocall:
			if (isnonretcall(bb->nl[i]->expr.args[0])) {
				noexit(cfg, bb);
				bb->nnl = i + 1;
				return;
			}
			break;
		default:
			/* nothing */
			break;
		}
	}
}

// Assembly:
testq %rsi, %rsi
je 0x250d7
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
cmpq 0x20(%rbx), %r15
jae 0x250d2
movq 0x18(%rbx), %rax
movq (%rax,%r15,8), %rdi
callq 0x1b5e6
cmpl $0x2d, %eax
je 0x250a3
leal -0x2f(%rax), %ecx
cmpl $0x2, %ecx
jb 0x250cb
cmpl $0x3b, %eax
je 0x250c0
cmpl $0x3e, %eax
jne 0x250bb
jmp 0x250cb
movq 0x18(%rbx), %rax
movq (%rax,%r15,8), %rax
movq 0x50(%rax), %rax
movq (%rax), %rdi
callq 0x250d8
testl %eax, %eax
jne 0x250c0
incq %r15
jmp 0x25077
movq %r14, %rdi
movq %rbx, %rsi
callq 0x25003
incq %r15
movq %r15, 0x20(%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/mi/cfg.c
// Function: trim
void
trim(Cfg *cfg)
{
	Bb *bb;
	size_t i;
	int deleted;

	deleted = 1;
	while (deleted) {
		deleted = 0;
		for (i = 0; i < cfg->nbb; i++) {
			bb = cfg->bb[i];
			if (bb == cfg->start || bb == cfg->end)
				continue;
			trimdead(cfg, bb);
			if (bb && bsisempty(bb->pred)) {
				delete(cfg, bb);
				deleted = 1;
			}
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
pushq $0x1
popq %rbp
movl %ebp, %r12d
testl %r12d, %r12d
je 0x25168
xorl %r15d, %r15d
xorl %r12d, %r12d
cmpq 0x20(%rbx), %r15
jae 0x25113
movq 0x8(%rbx), %rax
movq (%rax,%r15,8), %r14
cmpq 0x10(%rbx), %r14
je 0x25163
cmpq 0x18(%rbx), %r14
je 0x25163
movq %rbx, %rdi
movq %r14, %rsi
callq 0x25064
testq %r14, %r14
je 0x25163
movq 0x28(%r14), %rdi
callq 0x2a121
testl %eax, %eax
je 0x25163
movq %rbx, %rdi
movq %r14, %rsi
callq 0x24eb4
movl %ebp, %r12d
incq %r15
jmp 0x2511e
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/mi/cfg.c
// Function: mkbb
static Bb *
mkbb(Cfg *cfg)
{
	Bb *bb;

	bb = zalloc(sizeof(Bb));
	bb->id = cfg->nextbbid++;
	bb->pred = mkbs();
	bb->succ = mkbs();
	lappend(&cfg->bb, &cfg->nbb, bb);
	return bb;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x38
popq %rdi
callq 0x29a78
movq %rax, %r14
movl 0x28(%rbx), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x28(%rbx)
movl %eax, (%r14)
callq 0x29d3c
movq %rax, 0x28(%r14)
callq 0x29d3c
movq %rax, 0x30(%r14)
leaq 0x8(%rbx), %rdi
addq $0x20, %rbx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x29b2d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/mi/cfg.c
// Function: addnode
static int
addnode(Cfg *cfg, Bb *bb, Node *n)
{
	switch (exprop(n)) {
	case Ojmp:
	case Ocjmp:
	case Oret:
		lappend(&bb->nl, &bb->nnl, n);
		lappend(&cfg->fixjmp, &cfg->nfixjmp, n);
		lappend(&cfg->fixblk, &cfg->nfixblk, bb);
		return 1;
	case Ocall:
		lappend(&bb->nl, &bb->nnl, n);
		return isnonretcall(n->expr.args[0]);
	case Odead:
		lappend(&bb->nl, &bb->nnl, n);
		return 1;
	default:
		lappend(&bb->nl, &bb->nnl, n);
		break;
	}
	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq %rdx, %rdi
callq 0x1b5e6
leal -0x2f(%rax), %ecx
cmpl $0x2, %ecx
jb 0x2557f
cmpl $0x2d, %eax
je 0x255cb
cmpl $0x3b, %eax
je 0x255af
cmpl $0x3e, %eax
jne 0x255ef
leaq 0x18(%rbx), %rdi
leaq 0x20(%rbx), %rsi
movq %r14, %rdx
callq 0x29b2d
leaq 0x38(%r15), %rdi
leaq 0x40(%r15), %rsi
movq %r14, %rdx
callq 0x29b2d
leaq 0x48(%r15), %rdi
addq $0x50, %r15
movq %r15, %rsi
movq %rbx, %rdx
jmp 0x255bd
leaq 0x18(%rbx), %rdi
addq $0x20, %rbx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x29b2d
pushq $0x1
popq %rax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x18(%rbx), %rdi
addq $0x20, %rbx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x29b2d
movq 0x50(%r14), %rax
movq (%rax), %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x250d8
leaq 0x18(%rbx), %rdi
addq $0x20, %rbx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x29b2d
xorl %eax, %eax
jmp 0x255c5
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/mi/cfg.c
// Function: dumpcfg
void
dumpcfg(Cfg *cfg, FILE *fd)
{
	size_t i;

	for (i = 0; i < cfg->nbb; i++) {
		if (!cfg->bb[i])
			continue;
		fprintf(fd, "\n");
		dumpbb(cfg->bb[i], fd);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
pushq $0xa
popq %rbp
cmpq 0x20(%r14), %r15
jae 0x25670
movq 0x8(%r14), %rax
cmpq $0x0, (%rax,%r15,8)
je 0x2566b
movl %ebp, %edi
movq %rbx, %rsi
callq 0x41f0
movq 0x8(%r14), %rax
movq (%rax,%r15,8), %rdi
movq %rbx, %rsi
callq 0x2567b
incq %r15
jmp 0x25640
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/mi/cfg.c
// Function: dumpbb
void
dumpbb(Bb *bb, FILE *fd)
{
	size_t i;
	char *sep;

	fprintf(fd, "Bb: %d labels=(", bb->id);
	sep = "";
	for (i = 0; i < bb->nlbls; i++) {;
		fprintf(fd, "%s%s", bb->lbls[i], sep);
		sep = ",";
	}
	fprintf(fd, ")\n");

	/* in edges */
	fprintf(fd, "Pred: ");
	sep = "";
	for (i = 0; i < bsmax(bb->pred); i++) {
		if (bshas(bb->pred, i)) {
			fprintf(fd, "%s%zd", sep, i);
			sep = ",";
		}
	}
	fprintf(fd, "\n");

	/* out edges */
	fprintf(fd, "Succ: ");
	sep = "";
	for (i = 0; i < bsmax(bb->succ); i++) {
		if (bshas(bb->succ, i)) {
			fprintf(fd, "%s%zd", sep, i);
			sep = ",";
		}
	}
	fprintf(fd, "\n");

	for (i = 0; i < bb->nnl; i++)
		dumpn(bb->nl[i], fd);
	fprintf(fd, "\n");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl (%rdi), %edx
leaq 0x87d2(%rip), %rsi      # 0x2de67
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4240
leaq 0x87a4(%rip), %rcx      # 0x2de4a
leaq 0x8496(%rip), %r15      # 0x2db43
leaq 0xf6b8(%rip), %r12      # 0x34d6c
xorl %r13d, %r13d
cmpq 0x10(%r14), %r13
jae 0x256da
movq 0x8(%r14), %rax
movq (%rax,%r13,8), %rdx
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4240
incq %r13
movq %r12, %rcx
jmp 0x256b7
leaq 0x94b9(%rip), %rdi      # 0x2eb9a
pushq $0x2
popq %rsi
pushq $0x1
popq %r15
movq %r15, %rdx
movq %rbx, %rcx
callq 0x4330
leaq 0x877d(%rip), %rdi      # 0x2de77
pushq $0x6
popq %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x4330
leaq 0x873b(%rip), %r13      # 0x2de4a
leaq 0x89a2(%rip), %r15      # 0x2e0b8
leaq 0xf64f(%rip), %rbp      # 0x34d6c
xorl %r12d, %r12d
movq 0x28(%r14), %rdi
callq 0x29ecd
cmpq %rax, %r12
jae 0x25759
movq 0x28(%r14), %rdi
movq %r12, %rsi
callq 0x2580c
testl %eax, %eax
je 0x25754
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0x4240
movq %rbp, %r13
incq %r12
jmp 0x25720
pushq $0xa
popq %rdi
movq %rbx, %rsi
callq 0x41f0
leaq 0x8713(%rip), %rdi      # 0x2de7e
pushq $0x6
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x4330
leaq 0x86ca(%rip), %r13      # 0x2de4a
leaq 0x8931(%rip), %r15      # 0x2e0b8
leaq 0xf5de(%rip), %rbp      # 0x34d6c
xorl %r12d, %r12d
movq 0x30(%r14), %rdi
callq 0x29ecd
cmpq %rax, %r12
jae 0x257ca
movq 0x30(%r14), %rdi
movq %r12, %rsi
callq 0x2580c
testl %eax, %eax
je 0x257c5
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0x4240
movq %rbp, %r13
incq %r12
jmp 0x25791
pushq $0xa
popq %rdi
movq %rbx, %rsi
callq 0x41f0
xorl %r15d, %r15d
cmpq 0x20(%r14), %r15
jae 0x257f3
movq 0x18(%r14), %rax
movq (%rax,%r15,8), %rdi
movq %rbx, %rsi
callq 0x1201b
incq %r15
jmp 0x257d8
pushq $0xa
popq %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x41f0
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/mi/flatten.c
// Function: flattenfn
Node *
flattenfn(Node *dcl)
{
	if (ismain(dcl))
		dcl->decl.vis = Vishidden;
	if (dcl->decl.isextern || dcl->decl.isgeneric)
		return dcl;
	if (isconstfn(dcl)) {
		dcl = flatteninit(dcl);
		//lappend(fn, nfn, f);
	}

	//lappend(fn, nfn, f);
	return dcl;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
movq 0x20(%rdi), %rax
cmpq $0x0, 0x18(%rax)
jne 0x25865
movq 0x20(%rax), %rdi
leaq 0x82cd(%rip), %rsi      # 0x2db25
callq 0x4230
testl %eax, %eax
jne 0x25865
movb $0x2, 0x70(%rbx)
cmpb $0x0, 0x74(%rbx)
jne 0x258f3
cmpb $0x0, 0x73(%rbx)
jne 0x258f3
movq %rbx, %rdi
callq 0x25902
testl %eax, %eax
je 0x258f3
xorps %xmm0, %xmm0
movq %rsp, %r14
movaps %xmm0, 0x50(%r14)
movaps %xmm0, 0x40(%r14)
movaps %xmm0, 0x30(%r14)
movaps %xmm0, 0x20(%r14)
movaps %xmm0, 0x10(%r14)
andq $0x0, 0x60(%r14)
movaps %xmm0, (%r14)
movq 0x30(%rbx), %rax
movq 0x50(%rax), %rax
movq (%rax), %rax
movq 0x30(%rax), %r12
movq 0x20(%r12), %rax
movq 0x40(%r12), %r15
movq %rax, 0x50(%r14)
movq %r14, %rdi
movq %r15, %rsi
callq 0x259b0
movq 0x18(%r15), %rsi
movq (%r12), %rdi
callq 0x1ba2f
movq 0x8(%r14), %rcx
movq %rcx, 0x28(%rax)
movq 0x10(%r14), %rcx
movq %rcx, 0x20(%rax)
movq %rax, 0x40(%r12)
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/mi/flatten.c
// Function: isconstfn
int
isconstfn(Node *n)
{
	Node *d, *e;
	Type *t;

	if (n->type == Nexpr) {
		if (exprop(n) != Ovar)
			return 0;
		d = decls[n->expr.did];
	} else {
		d = n;
	}
	t = tybase(decltype(d));
	if (!d || !d->decl.isconst || d->decl.isgeneric)
		return 0;
	if (!d->decl.isglobl && !d->decl.isextern)
		return 0;
	if (t->type != Tyfunc && t->type != Tycode)
		return 0;
	e = d->decl.init;
	if (e && (exprop(e) != Olit || e->expr.args[0]->lit.littype != Lfunc))
		return 0;
	if (!e && !d->decl.isextern && !d->decl.isimport)
		return 0;
	return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
cmpl $0x8, 0x8(%rdi)
jne 0x25931
movq %r14, %rdi
callq 0x1b5e6
xorl %ebx, %ebx
cmpl $0x33, %eax
jne 0x25956
leaq 0x39042(%rip), %rax     # 0x5e968
movq (%rax), %rax
movq 0x38(%r14), %rcx
movq (%rax,%rcx,8), %r14
movq %r14, %rdi
callq 0x1bf2d
movq %rax, %rdi
callq 0x1fcd8
xorl %ebx, %ebx
testq %r14, %r14
je 0x25956
cmpb $0x0, 0x72(%r14)
je 0x25956
cmpb $0x0, 0x73(%r14)
je 0x2595e
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
cmpb $0x0, 0x71(%r14)
jne 0x2596c
cmpb $0x0, 0x74(%r14)
je 0x25956
movl (%rax), %eax
cmpl $0x1e, %eax
je 0x25978
cmpl $0x13, %eax
jne 0x25956
movq 0x30(%r14), %r15
testq %r15, %r15
je 0x2599d
movq %r15, %rdi
callq 0x1b5e6
cmpl $0x35, %eax
jne 0x25956
movq 0x50(%r15), %rax
movq (%rax), %rax
cmpl $0x5, 0x18(%rax)
jne 0x25956
jmp 0x259ab
cmpb $0x0, 0x74(%r14)
jne 0x259ab
cmpb $0x0, 0x77(%r14)
je 0x25956
pushq $0x1
popq %rbx
jmp 0x25956