	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_array_get_element              ## -- Begin function array_get_element
	.p2align	4, 0x90
_array_get_element:                     ## @array_get_element
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, %r13d
	movl	%ecx, %ebx
	movq	%rdx, %r12
	movl	%edi, %r15d
	movq	24(%rbp), %rax
	movb	16(%rbp), %cl
	testl	%ebx, %ebx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movb	%cl, -41(%rbp)                  ## 1-byte Spill
	jle	LBB0_2
## %bb.1:
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	movl	%ebx, %eax
	cltd
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	idivl	%r13d
	leaq	-72(%rbp), %r14
	movl	%eax, -72(%rbp)
	leaq	-68(%rbp), %r13
	movl	$0, -68(%rbp)
	movl	%r15d, %edi
	movl	%esi, %ebx
	callq	_DatumGetPointer
	movl	%ebx, %edi
	movq	%rax, %r8
	movl	$1, %r15d
	xorl	%eax, %eax
	cmpl	%edi, %r15d
	jne	LBB0_12
LBB0_5:
	testl	%r15d, %r15d
	jle	LBB0_12
## %bb.6:
	movq	_MAXDIM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	jg	LBB0_12
## %bb.7:
	movl	%edi, %ebx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rcx,4), %edx
	movl	(%r13,%rcx,4), %esi
	cmpl	%esi, %edx
	jl	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	addl	(%r14,%rcx,4), %esi
	cmpl	%esi, %edx
	jge	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	incq	%rcx
	cmpq	%rcx, %rbx
	jne	LBB0_9
## %bb.11:
	movq	%r8, %r15
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	movq	%rax, %r14
	callq	_ArrayGetOffset
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_array_get_isnull
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movsbl	-41(%rbp), %eax                 ## 1-byte Folded Reload
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %r8d
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r9d
	callq	_array_seek
	movq	%rax, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_ArrayCast
	jmp	LBB0_14
LBB0_2:
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_DatumGetPointer
	movq	%rax, %rdi
	callq	_VARATT_IS_EXTERNAL_EXPANDED
	testq	%rax, %rax
	je	LBB0_3
## %bb.15:
	movl	%r15d, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdx
	movl	%ebx, %ecx
	movl	%r13d, %r8d
	movl	%r14d, %r9d
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_array_get_element_expanded     ## TAILCALL
LBB0_3:
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	callq	_DatumGetArrayTypeP
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ARR_NDIM
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_ARR_DIMS
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_ARR_LBOUND
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_ARR_DATA_PTR
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ARR_NULLBITMAP
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	cmpl	%edi, %r15d
	je	LBB0_5
LBB0_12:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	xorl	%eax, %eax
LBB0_14:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXDIM,4,2                     ## @MAXDIM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_array_get_element              ; -- Begin function array_get_element
	.p2align	2
_array_get_element:                     ; @array_get_element
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x7
	mov	x26, x6
	mov	x19, x5
	mov	x20, x4
	mov	x25, x3
	mov	x23, x2
	mov	x24, x1
	mov	x22, x0
	cmp	w3, #1
	b.lt	LBB0_10
; %bb.1:
	stp	w26, wzr, [sp, #4]              ; 4-byte Folded Spill
	sdiv	w8, w25, w20
	add	x25, sp, #12
	str	w8, [sp, #12]
	add	x27, sp, #8
	mov	x0, x22
	bl	_DatumGetPointer
	mov	x26, x0
	mov	x28, #0
	mov	w22, #1
	cmp	w22, w24
	b.ne	LBB0_13
LBB0_2:
	cmp	w22, #1
	b.lt	LBB0_13
; %bb.3:
Lloh0:
	adrp	x8, _MAXDIM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXDIM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w22, w8
	b.gt	LBB0_13
; %bb.4:
	mov	x8, #0
	mov	w9, w24
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x11, x8, #2
	ldr	w10, [x23, x11]
	ldr	w11, [x27, x11]
	cmp	w10, w11
	b.lt	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w12, [x25, x8, lsl #2]
	add	w11, w12, w11
	cmp	w10, w11
	b.ge	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.8:
	mov	x0, x24
	mov	x1, x25
	mov	x2, x27
	mov	x3, x23
	bl	_ArrayGetOffset
	mov	x22, x0
	mov	x0, x28
	mov	x1, x22
	bl	_array_get_isnull
	cbnz	x0, LBB0_13
; %bb.9:
	str	wzr, [x21]
	mov	x0, x26
	mov	w1, #0
	mov	x2, x28
	mov	x3, x22
	mov	x4, x20
	mov	x5, x19
	ldr	w6, [sp, #4]                    ; 4-byte Folded Reload
	bl	_array_seek
	mov	x1, x19
	mov	x2, x20
	bl	_ArrayCast
	b	LBB0_14
LBB0_10:
	mov	x0, x22
	bl	_DatumGetPointer
	bl	_VARATT_IS_EXTERNAL_EXPANDED
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	mov	x3, x25
	mov	x4, x20
	mov	x5, x19
	mov	x6, x26
	mov	x7, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_array_get_element_expanded
LBB0_12:
	str	w26, [sp, #4]                   ; 4-byte Folded Spill
	mov	x0, x22
	bl	_DatumGetArrayTypeP
	mov	x28, x0
	bl	_ARR_NDIM
	mov	x22, x0
	mov	x0, x28
	bl	_ARR_DIMS
	mov	x25, x0
	mov	x0, x28
	bl	_ARR_LBOUND
	mov	x27, x0
	mov	x0, x28
	bl	_ARR_DATA_PTR
	mov	x26, x0
	mov	x0, x28
	bl	_ARR_NULLBITMAP
	mov	x28, x0
	cmp	w22, w24
	b.eq	LBB0_2
LBB0_13:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x21]
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXDIM,4,2                     ; @MAXDIM
.subsections_via_symbols
