// File: /workspace/github_c_makefile_star2_O0/markdryan[P]subtilis/frontend/parser_compound.c
// Function: prv_local_array_ref
static void prv_local_array_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 array_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_right_bkt_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_array_of(type, &array_type, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	subtilis_parser_create_array_ref(p, var_name, &array_type, e, true,
					 err);
	subtilis_type_free(&array_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 0x236b1
jmp 0x23824
movq -0x10(%rbp), %rdi
callq 0x12d70
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x2, (%rax)
jne 0x236dc
movq -0x30(%rbp), %rdi
leaq 0x8747f(%rip), %rsi     # 0xaab51
callq 0x12140
cmpl $0x0, %eax
je 0x23723
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rdx
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x30(%rax), %r8
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl 0x38(%rax), %r9d
movl $0x16, %esi
leaq 0x87b70(%rip), %rcx     # 0xab276
leaq 0x86f51(%rip), %rax     # 0xaa65e
movq %rax, (%rsp)
movl $0x2e, 0x8(%rsp)
callq 0x156d0
jmp 0x23824
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 0x23745
jmp 0x23824
movq -0x10(%rbp), %rdi
callq 0x12d70
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x2, (%rax)
jne 0x23770
movq -0x30(%rbp), %rdi
leaq 0x86eae(%rip), %rsi     # 0xaa614
callq 0x12140
cmpl $0x0, %eax
je 0x237b7
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 0x87aee(%rip), %rdx     # 0xab284
leaq 0x87ad9(%rip), %rcx     # 0xab276
leaq 0x86eba(%rip), %rax     # 0xaa65e
movq %rax, (%rsp)
movl $0x3a, 0x8(%rsp)
callq 0x156d0
jmp 0x23824
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 0x237d7
jmp 0x23824
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rdx
leaq -0x180(%rbp), %rsi
callq 0x479c0
movq -0x28(%rbp), %rax
cmpl $0x0, (%rax)
je 0x237f6
jmp 0x23824
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
nopl (%rax)