// File: /workspace/github_c_makefile_star2_O1/oridb[P]mc/parse/dump.c
// Function: outstab
static void
outstab(Stab *st, FILE *fd, int depth)
{
	size_t i, n;
	char *name;
	void **k;
	char *ty;
	Type *t;

	name = "";
	if (st->name)
		name = st->name;
	findentf(fd, depth, "Stab %p (super = %p, name=\"%s\")\n", st, st->super, name);
	if (!st)
		return;

	/* print types */
	k = htkeys(st->ty, &n);
	for (i = 0; i < n; i++) {
		findentf(fd, depth + 1, "T ");
		/* already indented */
		outname(k[i], fd);
		t = gettype(st, k[i]);
		if (t->nsub)
			ty = tystr(t->sub[0]);
		else
			ty = strdup("none");
		fprintf(fd, " = %s [tid=%d]\n", ty, t->tid);
		free(ty);
	}
	free(k);

	/* dump declarations */
	k = htkeys(st->dcl, &n);
	for (i = 0; i < n; i++) {
		findentf(fd, depth + 1, "S ");
		/* already indented */
		outsym(getdcl(st, k[i]), fd, 0);
	}
	free(k);

	/* dump closure */
	if (st->env) {
		k = htkeys(st->env, &n);
		for (i = 0; i < n; i++) {
			findentf(fd, depth + 1, "U ");
			/* already indented */
			outsym(getclosed(st, k[i]), fd, 0);
		}
		free(k);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %ecx
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %r8
movq 0x8(%rdi), %rax
testq %rax, %rax
leaq 0x1ee6e(%rip), %r9      # 0x31e3a
cmovneq %rax, %r9
leaq 0x1fbc5(%rip), %rdx     # 0x32b9c
movq %rsi, %rdi
movq %rcx, 0x8(%rsp)
movl %ecx, %esi
movq %r15, %rcx
xorl %eax, %eax
callq 0x2e788
movq 0x28(%r15), %rdi
movq %rsp, %rbx
movq %rbx, %rsi
callq 0x2dedf
movq %rax, %r12
cmpq $0x0, (%rbx)
je 0x13091
movq 0x8(%rsp), %rax
incl %eax
movl %eax, 0x14(%rsp)
xorl %ebp, %ebp
movq %r14, %rdi
movl 0x14(%rsp), %esi
leaq 0x1fb9b(%rip), %rdx     # 0x32bbd
xorl %eax, %eax
callq 0x2e788
movq (%r12,%rbp,8), %rdi
movq %r14, %rsi
callq 0x139c8
movq (%r12,%rbp,8), %rsi
movq %r15, %rdi
callq 0x205d4
movq %rax, %r13
cmpq $0x0, 0x70(%rax)
je 0x13059
movq 0x68(%r13), %rax
movq (%rax), %rdi
callq 0x23e44
jmp 0x13065
leaq 0x23d6d(%rip), %rdi     # 0x36dcd
callq 0x4340
movq %rax, %rbx
movl 0x4(%r13), %ecx
movq %r14, %rdi
leaq 0x1fb4a(%rip), %rsi     # 0x32bc0
movq %rax, %rdx
xorl %eax, %eax
callq 0x4240
movq %rbx, %rdi
callq 0x4040
incq %rbp
cmpq (%rsp), %rbp
jb 0x13014
movq %r12, %rdi
callq 0x4040
movq 0x18(%r15), %rdi
movq %rsp, %r12
movq %r12, %rsi
callq 0x2dedf
movq %rax, %rbx
cmpq $0x0, (%r12)
je 0x130f5
movq 0x8(%rsp), %rax
leal 0x1(%rax), %ebp
leaq 0x1fb0f(%rip), %r12     # 0x32bd0
xorl %r13d, %r13d
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
xorl %eax, %eax
callq 0x2e788
movq (%rbx,%r13,8), %rsi
movq %r15, %rdi
callq 0x2048b
movq %rax, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x12f30
incq %r13
cmpq (%rsp), %r13
jb 0x130c4
movq %rbx, %rdi
callq 0x4040
movq 0x20(%r15), %rdi
testq %rdi, %rdi
je 0x13165
movq %rsp, %r12
movq %r12, %rsi
callq 0x2dedf
movq %rax, %rbx
cmpq $0x0, (%r12)
movq 0x8(%rsp), %rbp
je 0x1315d
incl %ebp
leaq 0x1faaa(%rip), %r12     # 0x32bd3
xorl %r13d, %r13d
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
xorl %eax, %eax
callq 0x2e788
movq (%rbx,%r13,8), %rsi
movq %r15, %rdi
callq 0x203d4
movq %rax, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x12f30
incq %r13
cmpq (%rsp), %r13
jb 0x1312c
movq %rbx, %rdi
callq 0x4040
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq