// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/export.c
// Function: tagtype
static void
tagtype(Stab *st, Type *t, int ingeneric, int hidelocal)
{
	size_t i;

	if (!t || t->tagged)
		return;
	t->tagged = 1;
	t->vis = (t->vis == Visintern) ? Vishidden : t->vis;
	tagtype(st, t->seqaux, ingeneric, hidelocal);
	for (i = 0; i < t->nsub; i++)
		tagtype(st, t->sub[i], ingeneric, hidelocal);
	for (i = 0; i < t->nspec; i++) {
		tagtype(st, t->spec[i]->param, ingeneric, hidelocal);
		tagtype(st, t->spec[i]->aux, ingeneric, hidelocal);
	}
	switch (t->type) {
	case Tystruct:
		for (i = 0; i < t->nmemb; i++)
			tagtype(st, decltype(t->sdecls[i]), ingeneric, hidelocal);
		break;
	case Tyunion:
		for (i = 0; i < t->nmemb; i++)
			if (t->udecls[i]->etype)
				tagtype(st, t->udecls[i]->etype, ingeneric, hidelocal);
		break;
	case Tyname:
	case Tygeneric:
		tagreflect(t);
		for (i = 0; i < t->narg; i++)
			tagtype(st, t->arg[i], ingeneric, hidelocal);
		for (i = 0; i < t->ngparam; i++)
			tagtype(st, t->gparam[i], ingeneric, hidelocal);
		for (i = 0; i < t->narg; i++)
			tagtype(st, t->arg[i], ingeneric, hidelocal);
		break;
	case Typaram:
		if (t->trneed)
			for (i = 0; bsiter(t->trneed, &i); i++)
				tagtrait(st, traittab[i], ingeneric, hidelocal);
		break;
	default:
		break;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
testq %rdi, %rdi
je 0x128cd
movq %rdi, %r14
cmpb $0x0, 0x99(%rdi)
je 0x128da
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl %edx, %ebx
movl %esi, %ebp
movb $0x1, 0x99(%r14)
movl 0x10(%r14), %eax
testl %eax, %eax
pushq $0x2
popq %rcx
cmovnel %eax, %ecx
movl %ecx, 0x10(%r14)
movq 0x28(%r14), %rdi
callq 0x128b0
xorl %r15d, %r15d
cmpq 0x70(%r14), %r15
jae 0x1291e
movq 0x68(%r14), %rax
movq (%rax,%r15,8), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x128b0
incq %r15
jmp 0x12902
xorl %r15d, %r15d
cmpq 0x20(%r14), %r15
jae 0x12956
movq 0x18(%r14), %rax
movq (%rax,%r15,8), %rax
movq 0x10(%rax), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x128b0
movq 0x18(%r14), %rax
movq (%rax,%r15,8), %rax
movq 0x18(%rax), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x128b0
incq %r15
jmp 0x12921
movl (%r14), %eax
addl $-0x17, %eax
cmpl $0x6, %eax
ja 0x128cd
leaq 0x1c438(%rip), %rcx     # 0x2eda4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r14, %rdi
callq 0x12260
xorl %r15d, %r15d
cmpq 0x48(%r14), %r15
jae 0x1299c
movq 0x40(%r14), %rax
movq (%rax,%r15,8), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x128b0
incq %r15
jmp 0x12980
xorl %r15d, %r15d
cmpq 0x38(%r14), %r15
jae 0x129bb
movq 0x30(%r14), %rax
movq (%rax,%r15,8), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x128b0
incq %r15
jmp 0x1299f
xorl %r15d, %r15d
cmpq 0x48(%r14), %r15
jae 0x128cd
movq 0x40(%r14), %rax
movq (%rax,%r15,8), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x128b0
incq %r15
jmp 0x129be
movq 0x80(%r14), %rdi
testq %rdi, %rdi
je 0x128cd
xorl %eax, %eax
leaq 0x8(%rsp), %r15
leaq 0x4c7fc(%rip), %r12     # 0x5f1f8
movq %rax, 0x8(%rsp)
movq %r15, %rsi
callq 0x29e1a
testl %eax, %eax
je 0x128cd
movq (%r12), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x12a95
movq 0x8(%rsp), %rax
incq %rax
movq 0x80(%r14), %rdi
jmp 0x129fc
xorl %r15d, %r15d
cmpq 0x78(%r14), %r15
jae 0x128cd
movq 0x88(%r14), %rax
movq (%rax,%r15,8), %rdi
callq 0x1bf2d
movq %rax, %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x128b0
incq %r15
jmp 0x12a3b
xorl %r15d, %r15d
cmpq 0x78(%r14), %r15
jae 0x128cd
movq 0x88(%r14), %rax
movq (%rax,%r15,8), %rax
movq 0x28(%rax), %rdi
testq %rdi, %rdi
je 0x12a90
movl %ebp, %esi
movl %ebx, %edx
callq 0x128b0
incq %r15
jmp 0x12a69