// File: /workspace/github_c_makefile_star2_O1/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 0x1431b
movq %rdi, %r14
cmpb $0x0, 0x99(%rdi)
je 0x14328
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
movl $0x2, %ecx
cmovnel %eax, %ecx
movl %ecx, 0x10(%r14)
movq 0x28(%r14), %rdi
callq 0x142fe
movq $0x0, 0x8(%rsp)
cmpq $0x0, 0x70(%r14)
je 0x14385
xorl %eax, %eax
movq 0x68(%r14), %rcx
movq (%rcx,%rax,8), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x142fe
movq 0x8(%rsp), %rax
incq %rax
movq %rax, 0x8(%rsp)
cmpq 0x70(%r14), %rax
jb 0x14361
movq $0x0, 0x8(%rsp)
cmpq $0x0, 0x20(%r14)
je 0x143d9
xorl %eax, %eax
movq 0x18(%r14), %rcx
movq (%rcx,%rax,8), %rax
movq 0x10(%rax), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x142fe
movq 0x18(%r14), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x18(%rax), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x142fe
movq 0x8(%rsp), %rax
incq %rax
movq %rax, 0x8(%rsp)
cmpq 0x20(%r14), %rax
jb 0x14397
movl (%r14), %eax
addl $-0x17, %eax
cmpl $0x6, %eax
ja 0x1431b
leaq 0x1e9d5(%rip), %rcx     # 0x32dc4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r14, %rdi
callq 0x13c0c
movq $0x0, 0x8(%rsp)
cmpq $0x0, 0x48(%r14)
je 0x14436
xorl %eax, %eax
movq 0x40(%r14), %rcx
movq (%rcx,%rax,8), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x142fe
movq 0x8(%rsp), %rax
incq %rax
movq %rax, 0x8(%rsp)
cmpq 0x48(%r14), %rax
jb 0x14412
movq $0x0, 0x8(%rsp)
cmpq $0x0, 0x38(%r14)
je 0x1446c
xorl %eax, %eax
movq 0x30(%r14), %rcx
movq (%rcx,%rax,8), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x142fe
movq 0x8(%rsp), %rax
incq %rax
movq %rax, 0x8(%rsp)
cmpq 0x38(%r14), %rax
jb 0x14448
movq $0x0, 0x8(%rsp)
cmpq $0x0, 0x48(%r14)
je 0x1431b
xorl %eax, %eax
movq 0x40(%r14), %rcx
movq (%rcx,%rax,8), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x142fe
movq 0x8(%rsp), %rax
incq %rax
movq %rax, 0x8(%rsp)
cmpq 0x48(%r14), %rax
jb 0x14482
jmp 0x1431b
cmpq $0x0, 0x80(%r14)
je 0x1431b
leaq 0x8(%rsp), %rsi
movq $0x0, (%rsi)
movq 0x80(%r14), %rdi
callq 0x2d753
testl %eax, %eax
je 0x1431b
leaq 0x4dd18(%rip), %r12     # 0x621f8
leaq 0x8(%rsp), %r15
movq (%r12), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x145ad
incq 0x8(%rsp)
movq 0x80(%r14), %rdi
movq %r15, %rsi
callq 0x2d753
testl %eax, %eax
jne 0x144e5
jmp 0x1431b
movq $0x0, 0x8(%rsp)
cmpq $0x0, 0x78(%r14)
je 0x1431b
xorl %eax, %eax
movq 0x88(%r14), %rcx
movq (%rcx,%rax,8), %rdi
callq 0x1e56c
movq %rax, %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x142fe
movq 0x8(%rsp), %rax
incq %rax
movq %rax, 0x8(%rsp)
cmpq 0x78(%r14), %rax
jb 0x1452e
jmp 0x1431b
movq $0x0, 0x8(%rsp)
cmpq $0x0, 0x78(%r14)
je 0x1431b
xorl %eax, %eax
movq 0x88(%r14), %rcx
movq (%rcx,%rax,8), %rax
movq 0x28(%rax), %rdi
testq %rdi, %rdi
je 0x14595
movl %ebp, %esi
movl %ebx, %edx
callq 0x142fe
movq 0x8(%rsp), %rax
incq %rax
movq %rax, 0x8(%rsp)
cmpq 0x78(%r14), %rax
jb 0x14578
jmp 0x1431b