// File: /workspace/github_c_makefile_star2_O0/lucvoo[P]sparse-dev/show-parse.c
// Function: show_symbol
void show_symbol(struct symbol *sym)
{
	struct symbol *type;

	if (!sym)
		return;

	if (sym->ctype.alignment)
		printf(".align %ld\n", sym->ctype.alignment);

	show_type(sym);
	type = sym->ctype.base_type;
	if (!type) {
		printf("\n");
		return;
	}

	/*
	 * Show actual implementation information
	 */
	switch (type->type) {
		struct symbol *member;

	case SYM_STRUCT:
	case SYM_UNION:
		printf(" {\n");
		FOR_EACH_PTR(type->symbol_list, member) {
			show_struct_member(member);
		} END_FOR_EACH_PTR(member);
		printf("}\n");
		break;

	case SYM_FN: {
		struct statement *stmt = type->stmt;
		printf("\n");
		if (stmt) {
			int val;
			val = show_statement(stmt);
			if (val)
				printf("\tmov.%d\t\tretval,%d\n", stmt->ret->bit_size, val);
			printf("\tret\n");
		}
		break;
	}

	default:
		printf("\n");
		break;
	}

	if (sym->initializer) {
		printf(" = \n");
		show_expression(sym->initializer);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x32968
jmp 0x32b35
movq -0x8(%rbp), %rax
cmpq $0x0, 0x70(%rax)
je 0x32989
movq -0x8(%rbp), %rax
movq 0x70(%rax), %rsi
leaq 0x35681(%rip), %rdi     # 0x68003
movb $0x0, %al
callq 0x110f0
movq -0x8(%rbp), %rdi
callq 0x32ce0
movq -0x8(%rbp), %rax
movq 0x60(%rax), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x329b8
leaq 0x35687(%rip), %rdi     # 0x68033
movb $0x0, %al
callq 0x110f0
jmp 0x32b35
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
movl %eax, -0x48(%rbp)
subl $0x5, %eax
je 0x32a99
jmp 0x329cd
movl -0x48(%rbp), %eax
addl $-0x7, %eax
subl $0x1, %eax
ja 0x32afb
jmp 0x329de
leaq 0x3562a(%rip), %rdi     # 0x6800f
movb $0x0, %al
callq 0x110f0
movq -0x10(%rbp), %rax
movq 0x98(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x32a14
jmp 0x32a89
jmp 0x32a16
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq -0x28(%rbp), %rcx
movw (%rcx), %cx
shlw $0x8, %cx
sarw $0x8, %cx
movswl %cx, %ecx
cmpl %ecx, %eax
jge 0x32a75
movq -0x28(%rbp), %rax
movslq -0x34(%rbp), %rcx
movq 0x18(%rax,%rcx,8), %rax
movq %rax, -0x18(%rbp)
movq -0x28(%rbp), %rax
movw (%rax), %ax
sarw $0x8, %ax
cwtl
cmpl $0x0, %eax
je 0x32a61
cmpq $0x0, -0x18(%rbp)
jne 0x32a61
jmp 0x32a6a
movq -0x18(%rbp), %rdi
callq 0x33390
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x32a1d
jmp 0x32a77
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
cmpq -0x20(%rbp), %rax
jne 0x32a16
leaq 0x35583(%rip), %rdi     # 0x68013
movb $0x0, %al
callq 0x110f0
jmp 0x32b09
movq -0x10(%rbp), %rax
movq 0x90(%rax), %rax
movq %rax, -0x40(%rbp)
leaq 0x35584(%rip), %rdi     # 0x68033
movb $0x0, %al
callq 0x110f0
cmpq $0x0, -0x40(%rbp)
je 0x32af9
movq -0x40(%rbp), %rdi
callq 0x33400
movl %eax, -0x44(%rbp)
cmpl $0x0, -0x44(%rbp)
je 0x32aeb
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rax
movl 0x50(%rax), %esi
movl -0x44(%rbp), %edx
leaq 0x35532(%rip), %rdi     # 0x68016
movb $0x0, %al
callq 0x110f0
leaq 0x35538(%rip), %rdi     # 0x6802a
movb $0x0, %al
callq 0x110f0
jmp 0x32b09
leaq 0x35531(%rip), %rdi     # 0x68033
movb $0x0, %al
callq 0x110f0
movq -0x8(%rbp), %rax
cmpq $0x0, 0xb0(%rax)
je 0x32b35
leaq 0x35512(%rip), %rdi     # 0x68030
movb $0x0, %al
callq 0x110f0
movq -0x8(%rbp), %rax
movq 0xb0(%rax), %rdi
callq 0x33a40
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax,%rax)