// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/builtins_ir.c
// Function: subtilis_builtin_ir_deref_array_els
size_t subtilis_builtin_ir_deref_array_els(subtilis_parser_t *p,
					   subtilis_error_t *err)
{
	subtilis_ir_section_t *fn;
	const subtilis_type_t *ptype[2];
	size_t call_index;
	const char *name = "_deref_array";

	ptype[0] = &subtilis_type_integer;

	fn = prv_add_args_ci(p, name, 1, ptype, &subtilis_type_void,
			     &call_index, err);
	if (err->type != SUBTILIS_ERROR_OK) {
		if (err->type != SUBTILIS_ERROR_ALREADY_DEFINED)
			return SIZE_MAX;
		subtilis_error_init(err);
	} else {
		prv_builtins_ir_deref_array_els(p, fn, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return SIZE_MAX;
	}

	return call_index;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x3c05f(%rip), %rax     # 0x6e8c8
leaq 0x30(%rsp), %rcx
movq %rax, (%rcx)
movq %rsi, (%rsp)
leaq 0x3ca0b(%rip), %rsi     # 0x6f287
leaq 0x3c41d(%rip), %r8      # 0x6eca0
pushq $0x1
popq %rdx
leaq 0x28(%rsp), %r9
callq 0x32a8c
movl (%rbx), %ecx
pushq $-0x1
popq %r15
testl %ecx, %ecx
je 0x328b5
cmpl $0x20, %ecx
jne 0x32a5d
movq %rbx, %rdi
callq 0x140a4
movq 0x28(%rsp), %r15
jmp 0x32a5d
movq 0x48(%r14), %rbp
movq %rax, 0x48(%r14)
movq %rax, %rdi
callq 0x2b774
movq %rax, %r13
movq 0x48(%r14), %rdi
callq 0x2b774
movq %rax, 0x18(%rsp)
movq 0x48(%r14), %rdi
callq 0x2b774
movq %rax, 0x10(%rsp)
movq 0x48(%r14), %rdi
callq 0x2b774
movq %rax, 0x20(%rsp)
movq 0x48(%r14), %rdi
pushq $0x12
popq %rsi
pushq $0x4
popq %rdx
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x2a819
cmpl $0x0, (%rbx)
jne 0x32a59
movq %rax, %r12
movq 0x48(%r14), %rdi
pushq $0x12
popq %rsi
pushq $0x4
popq %rdx
pushq $0x8
popq %rcx
movq %rbx, %r8
callq 0x2a819
movq %rax, 0x8(%rsp)
cmpl $0x0, (%rbx)
jne 0x32a59
movq 0x48(%r14), %rdi
pushq $0x43
popq %rsi
movq %r12, %rdx
movq %r13, %rcx
movq 0x20(%rsp), %r8
movq %rbx, %r9
callq 0x2a8c1
cmpl $0x0, (%rbx)
jne 0x32a59
movq 0x48(%r14), %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x2b781
cmpl $0x0, (%rbx)
jne 0x32a59
movq 0x48(%r14), %rdi
pushq $0x7a
popq %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rcx
callq 0x2a981
cmpl $0x0, (%rbx)
jne 0x32a59
movq 0x48(%r14), %rdi
pushq $0x2d
popq %rsi
pushq $0x1
popq %rcx
movq %rax, %rdx
movq %rbx, %r8
callq 0x2a819
cmpl $0x0, (%rbx)
jne 0x32a59
movq 0x48(%r14), %rdi
pushq $0x43
popq %rsi
movq %rax, %rdx
movq 0x18(%rsp), %rcx
movq 0x10(%rsp), %r8
movq %rbx, %r9
callq 0x2a8c1
cmpl $0x0, (%rbx)
jne 0x32a59
movq 0x48(%r14), %rdi
movq 0x18(%rsp), %rsi
movq %rbx, %rdx
callq 0x2b781
cmpl $0x0, (%rbx)
jne 0x32a59
movq 0x48(%r14), %rdi
pushq $0x12
popq %rsi
pushq $0x4
popq %rdx
pushq $0xc
popq %rcx
movq %rbx, %r8
callq 0x2a819
cmpl $0x0, (%rbx)
jne 0x32a59
movq %r14, %rdi
movq 0x8(%rsp), %rsi
movq %rax, %rdx
movq %rbx, %rcx
callq 0x41b57
cmpl $0x0, (%rbx)
jne 0x32a59
movq 0x48(%r14), %rdi
movq 0x10(%rsp), %rsi
movq %rbx, %rdx
callq 0x2b781
cmpl $0x0, (%rbx)
jne 0x32a59
movq %r14, %rdi
movq 0x8(%rsp), %rsi
movq %rbx, %rdx
callq 0x4a982
cmpl $0x0, (%rbx)
jne 0x32a59
movq 0x48(%r14), %rdi
movq 0x20(%rsp), %rsi
movq %rbx, %rdx
callq 0x2b781
cmpl $0x0, (%rbx)
je 0x32a6f
movq %rbp, 0x48(%r14)
movq %r15, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x48(%r14), %rdi
pushq $0x46
popq %rsi
movq %rbx, %rdx
callq 0x2a9af
cmpl $0x0, (%rbx)
movq %rbp, 0x48(%r14)
jne 0x32a5d
jmp 0x328ab