// File: /workspace/github_c_makefile_star2_O0/lucvoo[P]sparse-dev/compile-i386.c
// Function: x86_symbol
static void x86_symbol(struct symbol *sym)
{
	struct symbol *type;

	if (!sym)
		return;

	type = sym->ctype.base_type;
	if (!type)
		return;

	/*
	 * Show actual implementation information
	 */
	switch (type->type) {

	case SYM_ARRAY:
		if (sym->initializer)
			emit_array(sym);
		else
			emit_array_noinit(sym);
		break;

	case SYM_BASETYPE:
		if (sym->initializer) {
			emit_object_pre(show_ident(sym->ident),
					sym->ctype.modifiers,
				        sym->ctype.alignment,
					sym->bit_size / 8);
			emit_scalar(sym->initializer, sym->bit_size);
			stor_sym_init(sym);
		} else
			emit_scalar_noinit(sym);
		break;

	case SYM_STRUCT:
	case SYM_UNION: {
		struct symbol *member;

		printf(" {\n");
		FOR_EACH_PTR(type->symbol_list, member) {
			x86_struct_member(member);
		} END_FOR_EACH_PTR(member);
		printf("}\n");
		break;
	}

	case SYM_FN: {
		struct statement *stmt = type->stmt;
		if (stmt) {
			emit_func_pre(sym);
			x86_statement(stmt);
			emit_func_post(sym);
		}
		break;
	}

	default:
		break;
	}

	if (sym->initializer && (type->type != SYM_BASETYPE) &&
	    (type->type != SYM_ARRAY)) {
		printf(" = \n");
		x86_expression(sym->initializer);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x612c8
jmp 0x614ec
movq -0x8(%rbp), %rax
movq 0x60(%rax), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x612e0
jmp 0x614ec
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
addl $-0x2, %eax
movl %eax, %ecx
movq %rcx, -0x48(%rbp)
subl $0x6, %eax
ja 0x6149e
movq -0x48(%rbp), %rax
leaq 0x11368(%rip), %rcx     # 0x7266c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x8(%rbp), %rax
cmpq $0x0, 0xb0(%rax)
je 0x61326
movq -0x8(%rbp), %rdi
callq 0x61500
jmp 0x6132f
movq -0x8(%rbp), %rdi
callq 0x616e0
jmp 0x614a0
movq -0x8(%rbp), %rax
cmpq $0x0, 0xb0(%rax)
je 0x613a2
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x314b0
movq %rax, %rdi
movq -0x8(%rbp), %rax
movq 0x68(%rax), %rsi
movq -0x8(%rbp), %rax
movq 0x70(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rax
movl 0x50(%rax), %eax
movl $0x8, %ecx
cltd
idivl %ecx
movq -0x50(%rbp), %rdx
movl %eax, %ecx
callq 0x61770
movq -0x8(%rbp), %rax
movq 0xb0(%rax), %rdi
movq -0x8(%rbp), %rax
movl 0x50(%rax), %esi
callq 0x61810
movq -0x8(%rbp), %rdi
callq 0x61950
jmp 0x613ab
movq -0x8(%rbp), %rdi
callq 0x619c0
jmp 0x614a0
leaq 0xa68b(%rip), %rdi      # 0x6ba42
movb $0x0, %al
callq 0x11110
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 0x613e6
jmp 0x6145b
jmp 0x613e8
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 0x61447
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 0x61433
cmpq $0x0, -0x18(%rbp)
jne 0x61433
jmp 0x6143c
movq -0x18(%rbp), %rdi
callq 0x61a20
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x613ef
jmp 0x61449
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
cmpq -0x20(%rbp), %rax
jne 0x613e8
leaq 0xa5e4(%rip), %rdi      # 0x6ba46
movb $0x0, %al
callq 0x11110
jmp 0x614a0
movq -0x10(%rbp), %rax
movq 0x90(%rax), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
je 0x6149c
movq -0x8(%rbp), %rdi
callq 0x61a90
movq -0x40(%rbp), %rdi
callq 0x61d70
movq -0x8(%rbp), %rdi
callq 0x62080
jmp 0x614a0
jmp 0x614a0
movq -0x8(%rbp), %rax
cmpq $0x0, 0xb0(%rax)
je 0x614ec
movq -0x10(%rbp), %rax
movl (%rax), %eax
andl $0xff, %eax
cmpl $0x2, %eax
je 0x614ec
movq -0x10(%rbp), %rax
movl (%rax), %eax
andl $0xff, %eax
cmpl $0x6, %eax
je 0x614ec
leaq 0xa58e(%rip), %rdi      # 0x6ba63
movb $0x0, %al
callq 0x11110
movq -0x8(%rbp), %rax
movq 0xb0(%rax), %rdi
callq 0x62220
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)