// File: /workspace/github_c_makefile_star2_O0/markdryan[P]subtilis/frontend/parser_rec.c
// Function: prv_array_field_init
static void prv_array_field_init(subtilis_parser_t *p, subtilis_token_t *t,
				 const subtilis_type_field_t *field,
				 const subtilis_type_t *type, size_t mem_reg,
				 size_t loc, subtilis_error_t *err)
{
	const char *tbuf;
	subtilis_exp_t *e;
	subtilis_array_desc_t d;

	tbuf = subtilis_token_get_text(t);
	if ((t->type == SUBTILIS_TOKEN_OPERATOR) && !strcmp(tbuf, "(")) {
		e = subtilis_parser_expression(p, t, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;

		d.name = field->name;
		d.t = type;
		d.reg = mem_reg;
		d.loc = loc;

		if (subtilis_type_if_is_array(type))
			subtilis_rec_type_init_array(p, type, d.name, mem_reg,
						     loc, err);
		else
			subtilis_rec_type_init_vector(p, type, mem_reg, loc,
						      field->vec_dim, err);

		if (err->type != SUBTILIS_ERROR_OK)
			return;

		subtilis_parser_array_init_list(p, t, &d, e, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;

		tbuf = subtilis_token_get_text(t);
		if ((t->type != SUBTILIS_TOKEN_OPERATOR) || strcmp(tbuf, ")")) {
			subtilis_error_set_expected(
			    err, ")", tbuf, p->l->stream->name, p->l->line);
			return;
		}
		subtilis_lexer_get(p->l, t, err);
		return;
	}

	e = subtilis_parser_priority7(p, t, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	subtilis_array_type_init_field(p, type, mem_reg, loc, e, err);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rdi
callq 0x12d70
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x2, (%rax)
jne 0x36306
movq -0x38(%rbp), %rdi
leaq 0x750f3(%rip), %rsi     # 0xab29c
callq 0x12140
cmpl $0x0, %eax
jne 0x36306
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq 0x10(%rbp), %rdx
callq 0x24a20
movq %rax, -0x40(%rbp)
movq 0x10(%rbp), %rax
cmpl $0x0, (%rax)
je 0x361da
jmp 0x36343
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x20(%rbp), %rdi
callq 0x49ff0
testb $0x1, %al
jne 0x3620c
jmp 0x3622b
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
movq 0x10(%rbp), %r9
callq 0x61e30
jmp 0x3624c
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq -0x18(%rbp), %rax
movl 0x10(%rax), %r8d
movq 0x10(%rbp), %r9
callq 0x61f50
movq 0x10(%rbp), %rax
cmpl $0x0, (%rax)
je 0x3625a
jmp 0x36343
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x40(%rbp), %rcx
movq 0x10(%rbp), %r8
leaq -0x60(%rbp), %rdx
callq 0x18c00
movq 0x10(%rbp), %rax
cmpl $0x0, (%rax)
je 0x36281
jmp 0x36343
movq -0x10(%rbp), %rdi
callq 0x12d70
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x2, (%rax)
jne 0x362ac
movq -0x38(%rbp), %rdi
leaq 0x748af(%rip), %rsi     # 0xaab51
callq 0x12140
cmpl $0x0, %eax
je 0x362f0
movq 0x10(%rbp), %rdi
movq -0x38(%rbp), %rcx
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x30(%rax), %r8
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl 0x38(%rax), %r9d
movl $0x1d, %esi
leaq 0x7487b(%rip), %rdx     # 0xaab51
leaq 0x74859(%rip), %rax     # 0xaab36
movq %rax, (%rsp)
movl $0x1db, 0x8(%rsp)       # imm = 0x1DB
callq 0x156d0
jmp 0x36343
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rsi
movq 0x10(%rbp), %rdx
callq 0x133f0
jmp 0x36343
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq 0x10(%rbp), %rdx
callq 0x24550
movq %rax, -0x40(%rbp)
movq 0x10(%rbp), %rax
cmpl $0x0, (%rax)
je 0x36326
jmp 0x36343
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq -0x40(%rbp), %r8
movq 0x10(%rbp), %r9
callq 0x5e320
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax)