// File: /workspace/github_c_makefile_star2_O0/markdryan[P]subtilis/frontend/parser_rec.c
// Function: prv_array_field_reset
static void prv_array_field_reset(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;

		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_reset_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 0x36499
movq -0x38(%rbp), %rdi
leaq 0x74f03(%rip), %rsi     # 0xab29c
callq 0x12140
cmpl $0x0, %eax
jne 0x36499
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 0x363ca
jmp 0x364d6
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 -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 0x36414
jmp 0x364d6
movq -0x10(%rbp), %rdi
callq 0x12d70
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x2, (%rax)
jne 0x3643f
movq -0x38(%rbp), %rdi
leaq 0x7471c(%rip), %rsi     # 0xaab51
callq 0x12140
cmpl $0x0, %eax
je 0x36483
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 0x746e8(%rip), %rdx     # 0xaab51
leaq 0x746c6(%rip), %rax     # 0xaab36
movq %rax, (%rsp)
movl $0x204, 0x8(%rsp)       # imm = 0x204
callq 0x156d0
jmp 0x364d6
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rsi
movq 0x10(%rbp), %rdx
callq 0x133f0
jmp 0x364d6
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 0x364b9
jmp 0x364d6
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 0x5e7e0
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax)