// File: /workspace/github_c_makefile_star2_O3/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 0x1f042(%rip), %r9      # 0x31e4a
cmovneq %rax, %r9
leaq 0x1fd99(%rip), %rdx     # 0x32bac
movq %rsi, %rdi
movq %rcx, 0x8(%rsp)
movl %ecx, %esi
movq %r15, %rcx
xorl %eax, %eax
callq 0x2e308
movq 0x28(%r15), %rdi
movq %rsp, %rbx
movq %rbx, %rsi
callq 0x2da36
movq %rax, %r12
cmpq $0x0, (%rbx)
je 0x12ecd
movq 0x8(%rsp), %rax
incl %eax
movl %eax, 0x14(%rsp)
xorl %ebp, %ebp
movq %r14, %rdi
movl 0x14(%rsp), %esi
leaq 0x1fd6f(%rip), %rdx     # 0x32bcd
xorl %eax, %eax
callq 0x2e308
movq (%r12,%rbp,8), %rdi
movq %r14, %rsi
callq 0x1380d
movq (%r12,%rbp,8), %rsi
movq %r15, %rdi
callq 0x20396
movq %rax, %r13
cmpq $0x0, 0x70(%rax)
je 0x12e95
movq 0x68(%r13), %rax
movq (%rax), %rdi
callq 0x2398e
jmp 0x12ea1
leaq 0x23f41(%rip), %rdi     # 0x36ddd
callq 0x4340
movq %rax, %rbx
movl 0x4(%r13), %ecx
movq %r14, %rdi
leaq 0x1fd1e(%rip), %rsi     # 0x32bd0
movq %rax, %rdx
xorl %eax, %eax
callq 0x4240
movq %rbx, %rdi
callq 0x4040
incq %rbp
cmpq (%rsp), %rbp
jb 0x12e50
movq %r12, %rdi
callq 0x4040
movq 0x18(%r15), %rdi
movq %rsp, %r12
movq %r12, %rsi
callq 0x2da36
movq %rax, %rbx
cmpq $0x0, (%r12)
je 0x12f31
movq 0x8(%rsp), %rax
leal 0x1(%rax), %ebp
leaq 0x1fce3(%rip), %r12     # 0x32be0
xorl %r13d, %r13d
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
xorl %eax, %eax
callq 0x2e308
movq (%rbx,%r13,8), %rsi
movq %r15, %rdi
callq 0x20250
movq %rax, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x12d6c
incq %r13
cmpq (%rsp), %r13
jb 0x12f00
movq %rbx, %rdi
callq 0x4040
movq 0x20(%r15), %rdi
testq %rdi, %rdi
je 0x12fa1
movq %rsp, %r12
movq %r12, %rsi
callq 0x2da36
movq %rax, %rbx
cmpq $0x0, (%r12)
movq 0x8(%rsp), %rbp
je 0x12f99
incl %ebp
leaq 0x1fc7e(%rip), %r12     # 0x32be3
xorl %r13d, %r13d
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rdx
xorl %eax, %eax
callq 0x2e308
movq (%rbx,%r13,8), %rsi
movq %r15, %rdi
callq 0x20195
movq %rax, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x12d6c
incq %r13
cmpq (%rsp), %r13
jb 0x12f68
movq %rbx, %rdi
callq 0x4040
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq