// File: /workspace/github_c_makefile_star2_O1/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 0x40830(%rip), %rax     # 0x748f8
leaq 0x30(%rsp), %rcx
movq %rax, (%rcx)
movq %rsi, (%rsp)
leaq 0x411dc(%rip), %rsi     # 0x752b7
leaq 0x40bee(%rip), %r8      # 0x74cd0
leaq 0x28(%rsp), %r9
movl $0x1, %edx
callq 0x34307
movl (%rbx), %ecx
movq $-0x1, %r15
testl %ecx, %ecx
je 0x34114
cmpl $0x20, %ecx
jne 0x342f5
movq %rbx, %rdi
callq 0x14404
jmp 0x342f0
movq 0x48(%r14), %rbp
movq %rax, 0x48(%r14)
movq %rax, %rdi
callq 0x2d00a
movq %rax, %r13
movq 0x48(%r14), %rdi
callq 0x2d00a
movq %rax, 0x18(%rsp)
movq 0x48(%r14), %rdi
callq 0x2d00a
movq %rax, 0x10(%rsp)
movq 0x48(%r14), %rdi
callq 0x2d00a
movq %rax, 0x20(%rsp)
movq 0x48(%r14), %rdi
movl $0x4, %edx
movl $0x12, %esi
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x2c00f
cmpl $0x0, (%rbx)
jne 0x342e7
movq %rax, %r12
movq 0x48(%r14), %rdi
movl $0x4, %edx
movl $0x8, %ecx
movl $0x12, %esi
movq %rbx, %r8
callq 0x2c00f
movq %rax, 0x8(%rsp)
cmpl $0x0, (%rbx)
jne 0x342e7
movq 0x48(%r14), %rdi
movl $0x43, %esi
movq %r12, %rdx
movq %r13, %rcx
movq 0x20(%rsp), %r8
movq %rbx, %r9
callq 0x2c0c2
cmpl $0x0, (%rbx)
jne 0x342e7
movq 0x48(%r14), %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x2d017
cmpl $0x0, (%rbx)
jne 0x342e7
movq 0x48(%r14), %rdi
movl $0x7a, %esi
movq 0x8(%rsp), %rdx
movq %rbx, %rcx
callq 0x2c189
cmpl $0x0, (%rbx)
jne 0x342e7
movq 0x48(%r14), %rdi
movl $0x1, %ecx
movl $0x2d, %esi
movq %rax, %rdx
movq %rbx, %r8
callq 0x2c00f
cmpl $0x0, (%rbx)
jne 0x342e7
movq 0x48(%r14), %rdi
movl $0x43, %esi
movq %rax, %rdx
movq 0x18(%rsp), %rcx
movq 0x10(%rsp), %r8
movq %rbx, %r9
callq 0x2c0c2
cmpl $0x0, (%rbx)
jne 0x342e7
movq 0x48(%r14), %rdi
movq 0x18(%rsp), %rsi
movq %rbx, %rdx
callq 0x2d017
cmpl $0x0, (%rbx)
jne 0x342e7
movq 0x48(%r14), %rdi
movl $0x4, %edx
movl $0xc, %ecx
movl $0x12, %esi
movq %rbx, %r8
callq 0x2c00f
cmpl $0x0, (%rbx)
jne 0x342e7
movq %r14, %rdi
movq 0x8(%rsp), %rsi
movq %rax, %rdx
movq %rbx, %rcx
callq 0x4433b
cmpl $0x0, (%rbx)
jne 0x342e7
movq 0x48(%r14), %rdi
movq 0x10(%rsp), %rsi
movq %rbx, %rdx
callq 0x2d017
cmpl $0x0, (%rbx)
jne 0x342e7
movq %r14, %rdi
movq 0x8(%rsp), %rsi
movq %rbx, %rdx
callq 0x4d5af
cmpl $0x0, (%rbx)
jne 0x342e7
movq 0x48(%r14), %rdi
movq 0x20(%rsp), %rsi
movq %rbx, %rdx
callq 0x2d017
cmpl $0x0, (%rbx)
jne 0x342e7
movq 0x48(%r14), %rdi
movl $0x46, %esi
movq %rbx, %rdx
callq 0x2c1b7
movq %rbp, 0x48(%r14)
cmpl $0x0, (%rbx)
jne 0x342f5
movq 0x28(%rsp), %r15
movq %r15, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq