// File: /workspace/github_c_makefile_star2_O0/markdryan[P]subtilis/frontend/parser_file.c
// Function: subtilis_parser_get_hash
subtilis_exp_t *subtilis_parser_get_hash(subtilis_parser_t *p,
					 subtilis_token_t *t,
					 subtilis_error_t *err)
{
	subtilis_ir_operand_t handle;
	subtilis_ir_operand_t ret;
	subtilis_ir_operand_t zero;
	subtilis_ir_operand_t data;
	subtilis_ir_operand_t skip_label;
	subtilis_ir_operand_t array_size;
	subtilis_ir_operand_t get_label;
	bool check_dims;
	bool arg1_tmp;
	size_t val_reg;
	const char *tbuf;
	size_t el_size;
	subtilis_exp_t *a1;
	subtilis_exp_t *a2;
	bool cow = false;

	skip_label.label = subtilis_ir_section_new_label(p->current);
	get_label.label = subtilis_ir_section_new_label(p->current);

	subtilis_lexer_get(p->l, t, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return NULL;

	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 NULL;
	}

	check_dims =
	    prv_block_operation_prep(p, t, &handle, &array_size, &val_reg, &cow,
				     &arg1_tmp, &el_size, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return NULL;

	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 NULL;
	}

	subtilis_lexer_get(p->l, t, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return NULL;

	if (arg1_tmp) {
		subtilis_error_set_temporary_not_allowed(
		    err, "second argument to get#", p->l->stream->name,
		    p->l->line);
		return NULL;
	}

	ret.reg = p->current->reg_counter++;
	if (check_dims) {
		zero.integer = 0;
		subtilis_ir_section_add_instr_no_reg2(
		    p->current, SUBTILIS_OP_INSTR_MOVI_I32, ret, zero, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return NULL;

		subtilis_ir_section_add_instr_reg(
		    p->current, SUBTILIS_OP_INSTR_JMPC, array_size, get_label,
		    skip_label, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return NULL;

		subtilis_ir_section_add_label(p->current, get_label.label, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return NULL;
	}

	if (cow)
		data.reg = subtilis_reference_type_copy_on_write(
		    p, val_reg, 0, array_size.reg, err);
	else
		data.reg = subtilis_reference_get_data(p, val_reg, 0, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return NULL;

	subtilis_ir_section_add_instr4(p->current, SUBTILIS_OP_INSTR_BLOCK_GET,
				       ret, handle, data, array_size, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return NULL;

	subtilis_exp_handle_errors(p, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return NULL;

	if (check_dims)
		subtilis_ir_section_add_label(p->current, skip_label.label,
					      err);

	a1 = subtilis_exp_new_int32_var(ret.reg, err);
	if (el_size == 1)
		return a1;

	a2 = subtilis_exp_new_int32((int32_t)el_size, err);
	if (err->type != SUBTILIS_ERROR_OK) {
		subtilis_exp_delete(a1);
		return NULL;
	}

	return subtilis_type_if_div(p, a1, a2, err);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movb $0x0, -0x89(%rbp)
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rdi
callq 0x39940
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rdi
callq 0x39940
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x133f0
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x2811a
movq $0x0, -0x8(%rbp)
jmp 0x284f1
movq -0x18(%rbp), %rdi
callq 0x12d70
movq %rax, -0x70(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x2, (%rax)
jne 0x28145
movq -0x70(%rbp), %rdi
leaq 0x83161(%rip), %rsi     # 0xab29c
callq 0x12140
cmpl $0x0, %eax
je 0x28194
movq -0x20(%rbp), %rdi
movq -0x70(%rbp), %rcx
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x30(%rax), %r8
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x38(%rax), %r9d
movl $0x1d, %esi
leaq 0x8312d(%rip), %rdx     # 0xab29c
leaq 0x827e5(%rip), %rax     # 0xaa95b
movq %rax, (%rsp)
movl $0x17f, 0x8(%rsp)       # imm = 0x17F
callq 0x156d0
movq $0x0, -0x8(%rbp)
jmp 0x284f1
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rax
leaq -0x28(%rbp), %rdx
leaq -0x50(%rbp), %rcx
leaq -0x68(%rbp), %r8
leaq -0x89(%rbp), %r9
leaq -0x5a(%rbp), %r11
leaq -0x78(%rbp), %r10
movq %r11, (%rsp)
movq %r10, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x28500
andb $0x1, %al
movb %al, -0x59(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x281e9
movq $0x0, -0x8(%rbp)
jmp 0x284f1
movq -0x18(%rbp), %rdi
callq 0x12d70
movq %rax, -0x70(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x2, (%rax)
jne 0x28214
movq -0x70(%rbp), %rdi
leaq 0x82947(%rip), %rsi     # 0xaab51
callq 0x12140
cmpl $0x0, %eax
je 0x28263
movq -0x20(%rbp), %rdi
movq -0x70(%rbp), %rcx
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x30(%rax), %r8
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x38(%rax), %r9d
movl $0x1d, %esi
leaq 0x82913(%rip), %rdx     # 0xaab51
leaq 0x82716(%rip), %rax     # 0xaa95b
movq %rax, (%rsp)
movl $0x18c, 0x8(%rsp)       # imm = 0x18C
callq 0x156d0
movq $0x0, -0x8(%rbp)
jmp 0x284f1
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x133f0
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x2828d
movq $0x0, -0x8(%rbp)
jmp 0x284f1
testb $0x1, -0x5a(%rbp)
je 0x282e5
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x30(%rax), %r8
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x38(%rax), %r9d
movl $0x53, %esi
leaq 0x826b9(%rip), %rdx     # 0xaa972
leaq 0x82fb6(%rip), %rcx     # 0xab276
leaq 0x82694(%rip), %rax     # 0xaa95b
movq %rax, (%rsp)
movl $0x197, 0x8(%rsp)       # imm = 0x197
callq 0x156d0
movq $0x0, -0x8(%rbp)
jmp 0x284f1
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rcx
movq 0x18(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x18(%rcx)
movq %rax, -0x30(%rbp)
testb $0x1, -0x59(%rbp)
je 0x283aa
movl $0x0, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rdi
movq -0x20(%rbp), %r8
movq -0x30(%rbp), %rdx
movq -0x38(%rbp), %rcx
movl $0x1b, %esi
callq 0x385a0
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x28345
movq $0x0, -0x8(%rbp)
jmp 0x284f1
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rdi
movq -0x20(%rbp), %r9
movq -0x50(%rbp), %rdx
movq -0x58(%rbp), %rcx
movq -0x48(%rbp), %r8
movl $0x43, %esi
callq 0x38360
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x2837d
movq $0x0, -0x8(%rbp)
jmp 0x284f1
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rdi
movq -0x58(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x39960
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x283a8
movq $0x0, -0x8(%rbp)
jmp 0x284f1
jmp 0x283aa
testb $0x1, -0x89(%rbp)
je 0x283d2
movq -0x10(%rbp), %rdi
movq -0x68(%rbp), %rsi
movq -0x50(%rbp), %rcx
movq -0x20(%rbp), %r8
xorl %eax, %eax
movl %eax, %edx
callq 0x6e000
movq %rax, -0x40(%rbp)
jmp 0x283eb
movq -0x10(%rbp), %rdi
movq -0x68(%rbp), %rsi
movq -0x20(%rbp), %rcx
xorl %eax, %eax
movl %eax, %edx
callq 0x6d1e0
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x28401
movq $0x0, -0x8(%rbp)
jmp 0x284f1
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rdi
movq -0x20(%rbp), %rax
movq -0x30(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq -0x40(%rbp), %r8
movq -0x50(%rbp), %r9
movl $0x91, %esi
movq %rax, (%rsp)
callq 0x386c0
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x28441
movq $0x0, -0x8(%rbp)
jmp 0x284f1
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x36ce0
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x28464
movq $0x0, -0x8(%rbp)
jmp 0x284f1
testb $0x1, -0x59(%rbp)
je 0x2847f
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rdi
movq -0x48(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x39960
movq -0x30(%rbp), %rax
movl %eax, %edi
movq -0x20(%rbp), %rsi
callq 0x37770
movq %rax, -0x80(%rbp)
cmpq $0x1, -0x78(%rbp)
jne 0x284a3
movq -0x80(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x284f1
movq -0x78(%rbp), %rax
movl %eax, %edi
movq -0x20(%rbp), %rsi
callq 0x37800
movq %rax, -0x88(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x284d5
movq -0x80(%rbp), %rdi
callq 0x36ee0
movq $0x0, -0x8(%rbp)
jmp 0x284f1
movq -0x10(%rbp), %rdi
movq -0x80(%rbp), %rsi
movq -0x88(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0x49330
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xb0, %rsp
popq %rbp
retq
nop