// File: /workspace/github_c_makefile_star2_O3/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 0x409e6(%rip), %rax     # 0x74918
leaq 0x30(%rsp), %rcx
movq %rax, (%rcx)
movq %rsi, (%rsp)
leaq 0x41392(%rip), %rsi     # 0x752d7
leaq 0x40da4(%rip), %r8      # 0x74cf0
leaq 0x28(%rsp), %r9
movl $0x1, %edx
callq 0x34176
movl (%rbx), %ecx
movq $-0x1, %r15
testl %ecx, %ecx
je 0x33f83
cmpl $0x20, %ecx
jne 0x34145
movq %rbx, %rdi
callq 0x143b4
movq 0x28(%rsp), %r15
jmp 0x34145
movq 0x48(%r14), %rbp
movq %rax, 0x48(%r14)
movq %rax, %rdi
callq 0x2cc99
movq %rax, %r13
movq 0x48(%r14), %rdi
callq 0x2cc99
movq %rax, 0x18(%rsp)
movq 0x48(%r14), %rdi
callq 0x2cc99
movq %rax, 0x10(%rsp)
movq 0x48(%r14), %rdi
callq 0x2cc99
movq %rax, 0x20(%rsp)
movq 0x48(%r14), %rdi
movl $0x4, %edx
movl $0x12, %esi
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x2bc8f
cmpl $0x0, (%rbx)
jne 0x34141
movq %rax, %r12
movq 0x48(%r14), %rdi
movl $0x4, %edx
movl $0x8, %ecx
movl $0x12, %esi
movq %rbx, %r8
callq 0x2bc8f
movq %rax, 0x8(%rsp)
cmpl $0x0, (%rbx)
jne 0x34141
movq 0x48(%r14), %rdi
movl $0x43, %esi
movq %r12, %rdx
movq %r13, %rcx
movq 0x20(%rsp), %r8
movq %rbx, %r9
callq 0x2bd42
cmpl $0x0, (%rbx)
jne 0x34141
movq 0x48(%r14), %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x2cca6
cmpl $0x0, (%rbx)
jne 0x34141
movq 0x48(%r14), %rdi
movl $0x7a, %esi
movq 0x8(%rsp), %rdx
movq %rbx, %rcx
callq 0x2be09
cmpl $0x0, (%rbx)
jne 0x34141
movq 0x48(%r14), %rdi
movl $0x1, %ecx
movl $0x2d, %esi
movq %rax, %rdx
movq %rbx, %r8
callq 0x2bc8f
cmpl $0x0, (%rbx)
jne 0x34141
movq 0x48(%r14), %rdi
movl $0x43, %esi
movq %rax, %rdx
movq 0x18(%rsp), %rcx
movq 0x10(%rsp), %r8
movq %rbx, %r9
callq 0x2bd42
cmpl $0x0, (%rbx)
jne 0x34141
movq 0x48(%r14), %rdi
movq 0x18(%rsp), %rsi
movq %rbx, %rdx
callq 0x2cca6
cmpl $0x0, (%rbx)
jne 0x34141
movq 0x48(%r14), %rdi
movl $0x4, %edx
movl $0xc, %ecx
movl $0x12, %esi
movq %rbx, %r8
callq 0x2bc8f
cmpl $0x0, (%rbx)
jne 0x34141
movq %r14, %rdi
movq 0x8(%rsp), %rsi
movq %rax, %rdx
movq %rbx, %rcx
callq 0x44295
cmpl $0x0, (%rbx)
jne 0x34141
movq 0x48(%r14), %rdi
movq 0x10(%rsp), %rsi
movq %rbx, %rdx
callq 0x2cca6
cmpl $0x0, (%rbx)
jne 0x34141
movq %r14, %rdi
movq 0x8(%rsp), %rsi
movq %rbx, %rdx
callq 0x4d56b
cmpl $0x0, (%rbx)
jne 0x34141
movq 0x48(%r14), %rdi
movq 0x20(%rsp), %rsi
movq %rbx, %rdx
callq 0x2cca6
cmpl $0x0, (%rbx)
je 0x34157
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
movl $0x46, %esi
movq %rbx, %rdx
callq 0x2be37
cmpl $0x0, (%rbx)
movq %rbp, 0x48(%r14)
jne 0x34145
jmp 0x33f79