// File: /workspace/github_c_makefile_star2_O2/lucvoo[P]sparse-dev/symbol.c
// Function: examine_node_type
static struct symbol * examine_node_type(struct symbol *sym)
{
	struct symbol *base_type = examine_base_type(sym);
	int bit_size;
	unsigned long alignment;

	/* SYM_NODE - figure out what the type of the node was.. */
	bit_size = 0;
	alignment = 0;
	if (!base_type)
		return sym;

	bit_size = base_type->bit_size;
	alignment = base_type->ctype.alignment;

	/* Pick up signedness information into the node */
	sym->ctype.modifiers |= (MOD_SIGNEDNESS & base_type->ctype.modifiers);

	if (!sym->ctype.alignment)
		sym->ctype.alignment = alignment;

	/* Unsized array? The size might come from the initializer.. */
	if (bit_size < 0 && base_type->type == SYM_ARRAY) {
		struct expression *initializer = get_symbol_initializer(sym);
		if (initializer) {
			struct symbol *node_type = base_type->ctype.base_type;
			int count = count_array_initializer(node_type, initializer);

			if (node_type && node_type->bit_size >= 0)
				bit_size = implicit_array_size(sym, count);
		}
	}
	
	sym->bit_size = bit_size;
	sym->rank = base_type->rank;
	return sym;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
callq 0x26ffa
testq %rax, %rax
je 0x26da8
movq %rax, %r14
movl 0x50(%rax), %r15d
movq 0x70(%rax), %rax
movq 0x68(%r14), %rcx
andl $0xe000, %ecx           # imm = 0xE000
orq %rcx, 0x68(%rbx)
cmpq $0x0, 0x70(%rbx)
jne 0x26b02
movq %rax, 0x70(%rbx)
testl %r15d, %r15d
jns 0x26d8e
cmpb $0x6, (%r14)
jne 0x26d8e
movq %rbx, %rax
movq 0xb0(%rax), %r12
testq %r12, %r12
jne 0x26b32
movq 0x38(%rax), %rax
testq %rax, %rax
jne 0x26b18
jmp 0x26d8e
movq 0x60(%r14), %rdx
leaq 0x3e33b(%rip), %rax     # 0x64e78
cmpq %rax, 0x60(%rdx)
movq %rdx, 0x8(%rsp)
jne 0x26b57
movl $0x3800000, %eax        # imm = 0x3800000
andl 0x54(%rdx), %eax
cmpl $0x3000000, %eax        # imm = 0x3000000
je 0x26bb4
leaq 0x37b02(%rip), %rax     # 0x5e660
movb $0x1, %bpl
cmpq %rdx, (%rax)
jne 0x26bb6
movq %r12, %r13
testq %r13, %r13
je 0x26bb6
movzbl (%r13), %eax
cmpl $0x9, %eax
je 0x26ba2
cmpl $0x18, %eax
jne 0x26baf
movq 0x20(%r13), %rdi
callq 0x1f89c
cmpl $0x1, %eax
jne 0x26dba
movq 0x20(%r13), %rdi
callq 0x1f919
movq %rax, %r13
movq 0x8(%rsp), %rdx
jmp 0x26b69
cmpl $0x28, 0x4(%r13)
jne 0x26bb6
movq 0x20(%r13), %r13
jmp 0x26b69
cmpl $0x2, %eax
jne 0x26bb6
xorl %ebp, %ebp
movzbl (%r12), %eax
xorl %r13d, %r13d
cmpl $0x2, %eax
je 0x26ce8
cmpl $0x9, %eax
je 0x26caa
cmpl $0x18, %eax
jne 0x26cfb
movq 0x20(%r12), %rcx
testq %rcx, %rcx
je 0x26ccd
xorl %edx, %edx
movl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
xorl %r13d, %r13d
xorl %eax, %eax
movq %rcx, %rdi
movzwl (%rdi), %r8d
movsbl %r8b, %r9d
testw %r9w, %r9w
movl $0x0, %r10d
cmovgl %r9d, %r10d
movzwl %r10w, %r9d
xorl %r10d, %r10d
cmpq %r9, %r10
je 0x26c90
movq 0x18(%rdi,%r10,8), %r11
cmpw $0x100, %r8w            # imm = 0x100
jb 0x26c2a
testq %r11, %r11
je 0x26c8b
incl %edx
movzbl (%r11), %r12d
cmpl $0x2, %r12d
je 0x26c7a
cmpl $0x9, %r12d
je 0x26c53
cmpl $0x1a, %r12d
jne 0x26c89
movl 0x24(%r11), %r11d
leal 0x1(%r11), %r12d
cmpl %eax, %r11d
cmovael %r12d, %eax
jmp 0x26c8b
testb %bpl, %bpl
jne 0x26c89
testq %r11, %r11
je 0x26c89
movzbl (%r11), %r12d
cmpl $0x9, %r12d
jne 0x26c74
cmpl $0x28, 0x4(%r11)
jne 0x26c89
movq 0x20(%r11), %r11
jmp 0x26c58
cmpl $0x2, %r12d
jne 0x26c89
testb %bpl, %bpl
jne 0x26c89
movq 0x28(%r11), %r11
movl (%r11), %r13d
andl %esi, %r13d
incl %eax
incq %r10
jmp 0x26c13
movq 0x10(%rdi), %rdi
cmpq %rcx, %rdi
jne 0x26bf6
cmpl $0x1, %edx
sete %cl
movq 0x8(%rsp), %rdx
jmp 0x26cd4
testb %bpl, %bpl
jne 0x26cfb
testq %r12, %r12
je 0x26cfb
movzbl (%r12), %eax
cmpl $0x9, %eax
jne 0x26ce3
cmpl $0x28, 0x4(%r12)
jne 0x26cfb
movq 0x20(%r12), %r12
jmp 0x26caf
xorl %ecx, %ecx
xorl %r13d, %r13d
xorl %eax, %eax
testl %r13d, %r13d
cmovel %eax, %r13d
testb %cl, %cl
cmovel %eax, %r13d
jmp 0x26cfb
cmpl $0x2, %eax
jne 0x26cfb
testb %bpl, %bpl
jne 0x26cfb
movq 0x28(%r12), %rax
movl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
andl (%rax), %r13d
testq %rdx, %rdx
je 0x26d8e
cmpl $0x0, 0x50(%rdx)
js 0x26d8e
movq 0x4(%rbx), %rdi
movq 0x60(%rbx), %r15
movq %r15, 0x8(%rsp)
pushq $0x6
popq %rsi
callq 0x2671f
movq %rax, %r12
movq 0x60(%r15), %rax
movq %rax, 0x10(%rsp)
movq 0x4(%rbx), %r15
xorl %edi, %edi
callq 0x2aafa
movq %rax, %rbp
movq %r15, 0x8(%rax)
movslq %r13d, %rsi
movq %rsi, 0x20(%rax)
leaq 0x3e9e9(%rip), %rax     # 0x65738
movq %rax, 0x10(%rbp)
movw $0x3101, (%rbp)         # imm = 0x3101
movq 0x10(%rsp), %rax
movslq 0x50(%rax), %rdi
callq 0x27a88
movq %rax, %r15
movl $0xe0, %edx
movq %r12, %rdi
movq 0x8(%rsp), %rsi
callq 0xe1e0
movl %r15d, 0x50(%r12)
movq %rbp, 0x58(%r12)
movq %rbp, 0x58(%rbx)
movq %r12, 0x60(%rbx)
movl %r15d, 0x50(%rbx)
movl $0x3800000, %eax        # imm = 0x3800000
andl 0x54(%r14), %eax
movl $0xfc7fffff, %ecx       # imm = 0xFC7FFFFF
andl 0x54(%rbx), %ecx
orl %eax, %ecx
movl %ecx, 0x54(%rbx)
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rsp), %rdx
jmp 0x26bb6