// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/dissect.c
// Function: do_initializer
static struct symbol *do_initializer(struct symbol *type, struct expression *expr)
{
	struct symbol *m_type;
	struct expression *m_expr;
	int m_addr;

	if (expr) switch (expr->type) {
	default:
		do_expression(u_lval(type), expr);

	break; case EXPR_INDEX:
		do_initializer(base_type(type), expr->idx_expression);

	break; case EXPR_INITIALIZER:
		m_addr = 0;
		FOR_EACH_PTR(expr->expr_list, m_expr) {
			if (type->type == SYM_ARRAY) {
				m_type = base_type(type);
				if (m_expr->type == EXPR_INDEX)
					m_expr = m_expr->idx_expression;
			} else {
				int *m_atop = &m_addr;

				m_type = type;
				while (m_expr->type == EXPR_IDENTIFIER) {
					m_type = report_member(U_W_VAL, &m_expr->pos, m_type,
							lookup_member(m_type, m_expr->expr_ident, m_atop));
					m_expr = m_expr->ident_expression;
					m_atop = NULL;
				}

				if (m_atop) {
					m_type = report_member(U_W_VAL, &m_expr->pos, m_type,
							lookup_member(m_type, NULL, m_atop));
				}

				if (m_expr->type != EXPR_INITIALIZER)
					report_implicit(U_W_VAL, &m_expr->pos, m_type);
			}
			do_initializer(m_type, m_expr);
			m_addr++;
		} END_FOR_EACH_PTR(m_expr);
	}

	return type;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
testq %rsi, %rsi
je 0x12f89
movq %rsi, %r14
movzbl (%rsi), %eax
cmpl $0x18, %eax
je 0x12dca
cmpl $0x1a, %eax
jne 0x12f54
movq %rbx, %rdi
callq 0x12d51
movq 0x28(%r14), %rsi
movq %rax, %rdi
callq 0x12d83
jmp 0x12f89
movl $0x0, 0xc(%rsp)
movq 0x20(%r14), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x12f89
movq 0x10(%rsp), %rbp
movzwl (%rbp), %eax
testb %al, %al
jle 0x12f43
xorl %r14d, %r14d
movq 0x18(%rbp,%r14,8), %r15
movzwl %ax, %ecx
cmpl $0x100, %ecx            # imm = 0x100
jb 0x12e11
testq %r15, %r15
je 0x12f30
cmpb $0x6, (%rbx)
jne 0x12e39
movq 0x60(%rbx), %r12
testq %r12, %r12
jne 0x12e26
leaq 0x5fdda(%rip), %r12     # 0x72c00
cmpb $0x1a, (%r15)
jne 0x12f1d
movq 0x28(%r15), %r15
jmp 0x12f1d
cmpb $0x19, (%r15)
jne 0x12eae
leaq 0xc(%rsp), %rdx
movq %rbx, %r12
movq 0x28(%r15), %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x13176
testq %rax, %rax
jne 0x12e83
cmpq $0x0, 0x98(%r12)
jne 0x12e75
leaq 0x56ddb(%rip), %rax     # 0x69c48
movq (%rax), %rax
movq %rax, 0x30(%r12)
movq %r13, 0x5348c(%rip)     # 0x66308
leaq 0x5346d(%rip), %rax     # 0x662f0
leaq 0x8(%r15), %rsi
movl $0x8, %edi
movq %r12, %rdx
movq %rax, %rcx
callq 0x1303b
movq %rax, %r12
movq 0x38(%r15), %r15
movzbl (%r15), %eax
movl $0x0, %edx
cmpl $0x19, %eax
je 0x12e47
jmp 0x12f07
movq %rbx, %rdi
xorl %esi, %esi
leaq 0xc(%rsp), %rdx
callq 0x13176
testq %rax, %rax
jne 0x12eec
cmpq $0x0, 0x98(%rbx)
jne 0x12eda
leaq 0x56d75(%rip), %rax     # 0x69c48
movq (%rax), %rax
movq %rax, 0x30(%rbx)
movq $0x0, 0x53423(%rip) # 0x66308
leaq 0x53404(%rip), %rax     # 0x662f0
leaq 0x8(%r15), %rsi
movl $0x8, %edi
movq %rbx, %rdx
movq %rax, %rcx
callq 0x1303b
movq %rax, %r12
movzbl (%r15), %eax
cmpl $0x18, %eax
je 0x12f1d
leaq 0x8(%r15), %rsi
movl $0x8, %edi
movq %r12, %rdx
callq 0x12f9b
movq %r12, %rdi
movq %r15, %rsi
callq 0x12d83
incl 0xc(%rsp)
movzwl (%rbp), %eax
incq %r14
movzwl %ax, %ecx
movsbq %cl, %rcx
cmpq %rcx, %r14
jl 0x12df8
movq 0x10(%rbp), %rbp
cmpq 0x10(%rsp), %rbp
jne 0x12de9
jmp 0x12f89
movl $0xfd, %eax
andl (%rbx), %eax
cmpl $0x4, %eax
jne 0x12f69
testb $0x2, 0x69(%rbx)
sete %al
jmp 0x12f6b
xorl %eax, %eax
cmpq 0x5301e(%rip), %rbx     # 0x65f90
movzbl %al, %eax
leal 0x4(%rax,%rax), %eax
movl $0x6, %edi
cmovnel %eax, %edi
movq %r14, %rsi
callq 0x1230d
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq