// File: /workspace/github_c_makefile_star2_O2/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, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %r8
movq 0x8(%rdi), %rax
testq %rax, %rax
leaq 0x1c7ea(%rip), %r9      # 0x2de4a
cmovneq %rax, %r9
leaq 0x1d511(%rip), %rdx     # 0x2eb7c
movq %rsi, %rdi
movl %ebp, %esi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x2ad06
movq %rbx, 0x8(%rsp)
movq 0x28(%rbx), %rdi
leaq 0x10(%rsp), %rsi
callq 0x2a529
movq %rax, %r12
incl %ebp
xorl %ebx, %ebx
cmpq 0x10(%rsp), %rbx
jae 0x11721
movq %r14, %rdi
movl %ebp, %r15d
movl %ebp, %esi
leaq 0x1d4ef(%rip), %rdx     # 0x2eb9d
xorl %eax, %eax
callq 0x2ad06
movq (%r12,%rbx,8), %rdi
movq %r14, %rsi
callq 0x12022
movq (%r12,%rbx,8), %rsi
movq 0x8(%rsp), %rdi
callq 0x1dda3
movq %rax, %r13
cmpq $0x0, 0x70(%rax)
je 0x116e7
movq 0x68(%r13), %rax
movq (%rax), %rdi
callq 0x21009
jmp 0x116f3
leaq 0x216bf(%rip), %rdi     # 0x32dad
callq 0x4340
movq %rax, %rbp
movl 0x4(%r13), %ecx
movq %r14, %rdi
leaq 0x1d49c(%rip), %rsi     # 0x2eba0
movq %rax, %rdx
xorl %eax, %eax
callq 0x4240
movq %rbp, %rdi
callq 0x4040
incq %rbx
movl %r15d, %ebp
jmp 0x11694
movq %r12, %rdi
callq 0x4040
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rdi
leaq 0x10(%rsp), %rsi
callq 0x2a529
movq %rax, %r12
leaq 0x1d46a(%rip), %r13     # 0x2ebb0
xorl %ebx, %ebx
cmpq 0x10(%rsp), %rbx
jae 0x1177e
movq %r14, %rdi
movl %ebp, %esi
movq %r13, %rdx
xorl %eax, %eax
callq 0x2ad06
movq (%r12,%rbx,8), %rsi
movq 0x8(%rsp), %rdi
callq 0x1dc67
movq %rax, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x115c4
incq %rbx
jmp 0x11748
movq %r12, %rdi
callq 0x4040
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rdi
testq %rdi, %rdi
je 0x117e8
leaq 0x10(%rsp), %rsi
callq 0x2a529
movq %rax, %r12
leaq 0x1d40b(%rip), %r13     # 0x2ebb3
xorl %ebx, %ebx
cmpq 0x10(%rsp), %rbx
jae 0x117e0
movq %r14, %rdi
movl %ebp, %esi
movq %r13, %rdx
xorl %eax, %eax
callq 0x2ad06
movq (%r12,%rbx,8), %rsi
movq 0x8(%rsp), %rdi
callq 0x1dbbf
movq %rax, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x115c4
incq %rbx
jmp 0x117aa
movq %r12, %rdi
callq 0x4040
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq