// File: /workspace/github_c_makefile_star2_O3/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 0x14167
movq %rdi, %r14
cmpb $0x0, 0x99(%rdi)
je 0x14174
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 0x1414a
cmpq $0x0, 0x70(%r14)
je 0x141bf
xorl %r15d, %r15d
movq 0x68(%r14), %rax
movq (%rax,%r15,8), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x1414a
incq %r15
cmpq 0x70(%r14), %r15
jb 0x141a5
cmpq $0x0, 0x20(%r14)
je 0x141fc
xorl %r15d, %r15d
movq 0x18(%r14), %rax
movq (%rax,%r15,8), %rax
movq 0x10(%rax), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x1414a
movq 0x18(%r14), %rax
movq (%rax,%r15,8), %rax
movq 0x18(%rax), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x1414a
incq %r15
cmpq 0x20(%r14), %r15
jb 0x141c9
movl (%r14), %eax
addl $-0x17, %eax
cmpl $0x6, %eax
ja 0x14167
leaq 0x1ebc2(%rip), %rcx     # 0x32dd4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r14, %rdi
callq 0x13a50
cmpq $0x0, 0x48(%r14)
je 0x14331
xorl %r15d, %r15d
movq 0x40(%r14), %rax
movq (%rax,%r15,8), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x1414a
incq %r15
movq 0x48(%r14), %rax
cmpq %rax, %r15
jb 0x14231
jmp 0x14333
movq 0x80(%r14), %rdi
testq %rdi, %rdi
je 0x14167
leaq 0x8(%rsp), %rsi
movq $0x0, (%rsi)
callq 0x2d2a6
testl %eax, %eax
je 0x14167
leaq 0x4df75(%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 0x14386
incq 0x8(%rsp)
movq 0x80(%r14), %rdi
movq %r15, %rsi
callq 0x2d2a6
testl %eax, %eax
jne 0x14288
jmp 0x14167
cmpq $0x0, 0x78(%r14)
je 0x14167
xorl %r15d, %r15d
movq 0x88(%r14), %rax
movq (%rax,%r15,8), %rdi
callq 0x1e31c
movq %rax, %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x1414a
incq %r15
cmpq 0x78(%r14), %r15
jb 0x142c9
jmp 0x14167
movq 0x78(%r14), %rax
testq %rax, %rax
je 0x14167
xorl %r15d, %r15d
movq 0x88(%r14), %rcx
movq (%rcx,%r15,8), %rcx
movq 0x28(%rcx), %rdi
testq %rdi, %rdi
je 0x14324
movl %ebp, %esi
movl %ebx, %edx
callq 0x1414a
movq 0x78(%r14), %rax
incq %r15
cmpq %rax, %r15
jb 0x14303
jmp 0x14167
xorl %eax, %eax
cmpq $0x0, 0x38(%r14)
je 0x1435b
xorl %r15d, %r15d
movq 0x30(%r14), %rax
movq (%rax,%r15,8), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x1414a
incq %r15
cmpq 0x38(%r14), %r15
jb 0x1433d
movq 0x48(%r14), %rax
testq %rax, %rax
je 0x14167
xorl %r15d, %r15d
movq 0x40(%r14), %rax
movq (%rax,%r15,8), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x1414a
incq %r15
cmpq 0x48(%r14), %r15
jb 0x14367
jmp 0x14167