// File: /workspace/github_c_makefile_star2_O0/markdryan[P]subtilis/frontend/parser_compound.c
// Function: prv_local_vector_ref
static void prv_local_vector_ref(subtilis_parser_t *p, subtilis_token_t *t,
				 const char *var_name,
				 const subtilis_type_t *type,
				 subtilis_error_t *err)
{
	const char *tbuf;
	subtilis_exp_t *e;
	subtilis_type_t vector_type;

	subtilis_lexer_get(p->l, t, 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);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	tbuf = subtilis_token_get_text(t);

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

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

	subtilis_type_if_vector_of(type, &vector_type, err);
	if (err->type != SUBTILIS_ERROR_OK) {
		subtilis_exp_delete(e);
		return;
	}

	subtilis_parser_create_array_ref(p, var_name, &vector_type, e, true,
					 err);
	subtilis_type_free(&vector_type);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x190, %rsp            # imm = 0x190
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x133f0
movq -0x28(%rbp), %rax
cmpl $0x0, (%rax)
je 0x23871
jmp 0x239ed
movq -0x10(%rbp), %rdi
callq 0x12d70
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x2, (%rax)
jne 0x2389c
movq -0x30(%rbp), %rdi
leaq 0x86d99(%rip), %rsi     # 0xaa62b
callq 0x12140
cmpl $0x0, %eax
je 0x238e3
movq -0x28(%rbp), %rdi
movq -0x30(%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 0x86d65(%rip), %rdx     # 0xaa62b
leaq 0x86d91(%rip), %rax     # 0xaa65e
movq %rax, (%rsp)
movl $0x5b, 0x8(%rsp)
callq 0x156d0
jmp 0x239ed
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x133f0
movq -0x28(%rbp), %rax
cmpl $0x0, (%rax)
je 0x23905
jmp 0x239ed
movq -0x10(%rbp), %rdi
callq 0x12d70
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x2, (%rax)
jne 0x23930
movq -0x30(%rbp), %rdi
leaq 0x86cee(%rip), %rsi     # 0xaa614
callq 0x12140
cmpl $0x0, %eax
je 0x23977
movq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x30(%rax), %r8
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl 0x38(%rax), %r9d
movl $0x15, %esi
leaq 0x8792e(%rip), %rdx     # 0xab284
leaq 0x87919(%rip), %rcx     # 0xab276
leaq 0x86cfa(%rip), %rax     # 0xaa65e
movq %rax, (%rsp)
movl $0x67, 0x8(%rsp)
callq 0x156d0
jmp 0x239ed
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x24a20
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rax
cmpl $0x0, (%rax)
je 0x23997
jmp 0x239ed
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rdx
leaq -0x180(%rbp), %rsi
callq 0x47a50
movq -0x28(%rbp), %rax
cmpl $0x0, (%rax)
je 0x239bf
movq -0x38(%rbp), %rdi
callq 0x36ee0
jmp 0x239ed
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x38(%rbp), %rcx
movq -0x28(%rbp), %r9
leaq -0x180(%rbp), %rdx
movl $0x1, %r8d
callq 0x1af80
leaq -0x180(%rbp), %rdi
callq 0x3e100
addq $0x190, %rsp            # imm = 0x190
popq %rbp
retq
nopw %cs:(%rax,%rax)