// File: /workspace/github_c_makefile_star2_O1/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 0x12fc3
movq %rsi, %r14
movzbl (%rsi), %eax
cmpl $0x18, %eax
je 0x12e01
cmpl $0x1a, %eax
jne 0x12f8e
movq %rbx, %rdi
callq 0x12d88
movq 0x28(%r14), %rsi
movq %rax, %rdi
callq 0x12dba
jmp 0x12fc3
movl $0x0, 0xc(%rsp)
movq 0x20(%r14), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x12fc3
movq 0x10(%rsp), %rbp
movzwl (%rbp), %eax
testb %al, %al
jle 0x12f7d
xorl %r13d, %r13d
movq 0x18(%rbp,%r13,8), %r14
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x12e47
testq %r14, %r14
je 0x12f6a
cmpb $0x6, (%rbx)
jne 0x12e6f
movq 0x60(%rbx), %r15
testq %r15, %r15
jne 0x12e5c
leaq 0x61da4(%rip), %r15     # 0x74c00
cmpb $0x1a, (%r14)
jne 0x12f5b
movq 0x28(%r14), %r14
jmp 0x12f5b
cmpb $0x19, (%r14)
jne 0x12ee4
leaq 0xc(%rsp), %rdx
movq %rbx, %r15
movq 0x28(%r14), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x131a6
testq %rax, %rax
jne 0x12eb7
cmpq $0x0, 0x98(%r15)
jne 0x12ea9
leaq 0x58da6(%rip), %rax     # 0x6bc48
movq (%rax), %rax
movq %rax, 0x30(%r15)
movq %r12, 0x55458(%rip)     # 0x68308
leaq 0x55439(%rip), %rax     # 0x682f0
leaq 0x8(%r14), %rsi
movl $0x8, %edi
movq %r15, %rdx
movq %rax, %rcx
callq 0x13070
movq %rax, %r15
movq 0x38(%r14), %r14
cmpb $0x19, (%r14)
movl $0x0, %edx
movl $0x0, %eax
je 0x12e7d
jmp 0x12eec
movq %rbx, %r15
leaq 0xc(%rsp), %rax
testq %rax, %rax
je 0x12f44
movq %r15, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0x131a6
testq %rax, %rax
jne 0x12f2d
cmpq $0x0, 0x98(%r15)
jne 0x12f1b
leaq 0x58d34(%rip), %rax     # 0x6bc48
movq (%rax), %rax
movq %rax, 0x30(%r15)
movq $0x0, 0x553e2(%rip) # 0x68308
leaq 0x553c3(%rip), %rax     # 0x682f0
leaq 0x8(%r14), %rsi
movl $0x8, %edi
movq %r15, %rdx
movq %rax, %rcx
callq 0x13070
movq %rax, %r15
cmpb $0x18, (%r14)
je 0x12f5b
leaq 0x8(%r14), %rsi
movl $0x8, %edi
movq %r15, %rdx
callq 0x12fd5
movq %r15, %rdi
movq %r14, %rsi
callq 0x12dba
incl 0xc(%rsp)
incq %r13
movl (%rbp), %eax
movsbq %al, %rcx
cmpq %rcx, %r13
jl 0x12e2f
movq 0x10(%rbp), %rbp
cmpq 0x10(%rsp), %rbp
jne 0x12e20
jmp 0x12fc3
movl $0xfd, %eax
andl (%rbx), %eax
cmpl $0x4, %eax
jne 0x12fa3
testb $0x2, 0x69(%rbx)
sete %al
jmp 0x12fa5
xorl %eax, %eax
cmpq 0x54fe4(%rip), %rbx     # 0x67f90
movzbl %al, %eax
leal 0x4(%rax,%rax), %eax
movl $0x6, %edi
cmovnel %eax, %edi
movq %r14, %rsi
callq 0x1235c
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq