	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CopyArrayEls                   ## -- Begin function CopyArrayEls
	.p2align	4, 0x90
_CopyArrayEls:                          ## @CopyArrayEls
	.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, %r15d
	movl	%r8d, -64(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ebx
	movq	%rdx, %r13
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	callq	_ARR_DATA_PTR
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_ARR_NULLBITMAP
	testl	%ebx, %ebx
	jle	LBB0_16
## %bb.1:
	testl	%r15d, %r15d
	setne	%cl
	cmpl	$0, 24(%rbp)
	sete	%dl
	orb	%cl, %dl
	movb	%dl, -41(%rbp)                  ## 1-byte Spill
	movl	%ebx, %ecx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movl	$1, %ebx
	xorl	%edx, %edx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	cmpq	%r12, -88(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r13, %r13
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%r13,%r12,4)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r8, %r14
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	callq	_elog
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movq	%r14, %r8
	xorl	%eax, %eax
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %r14d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r12,4), %edi
	movsbl	16(%rbp), %ecx
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	movq	%r8, %r13
	callq	_ArrayCastAndSet
	movl	%eax, %r15d
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r12,4), %edi
	callq	_DatumGetPointer
	movl	%eax, %edi
	callq	_pfree
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edx
	orl	%ebx, %edx
	movslq	%r15d, %rax
	movq	%r13, %r8
	addq	%rax, %r8
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	%ebx, %ebx
	cmpl	$256, %ebx                      ## imm = 0x100
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, (%rax)
	addq	$4, %rax
	movl	$1, %ebx
	xorl	%edx, %edx
	jmp	LBB0_12
LBB0_13:
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	cmpl	$1, %ebx
	je	LBB0_16
## %bb.15:
	movl	%edx, (%rax)
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"null array element where not supported"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CopyArrayEls                   ; -- Begin function CopyArrayEls
	.p2align	2
_CopyArrayEls:                          ; @CopyArrayEls
	.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	x26, x7
	stp	w4, w6, [sp, #8]                ; 8-byte Folded Spill
	mov	x19, x5
	mov	x27, x3
	mov	x20, x2
	mov	x23, x1
	mov	x25, x0
	bl	_ARR_DATA_PTR
	mov	x24, x0
	mov	x0, x25
	bl	_ARR_NULLBITMAP
	cmp	w27, #1
	b.lt	LBB0_15
; %bb.1:
	mov	x25, x0
	mov	w28, #0
	str	w19, [sp, #4]                   ; 4-byte Folded Spill
	cmp	w19, #0
	ccmp	w26, #0, #4, eq
	cset	w26, eq
	mov	w19, w27
	mov	w21, #1
	mov	x22, x20
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #4
	add	x22, x22, #4
	subs	x19, x19, #1
	b.eq	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x20, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	cbz	w8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	x25, LBB0_10
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x23]
	ldp	w2, w1, [sp, #4]                ; 8-byte Folded Reload
	ldr	w3, [sp, #12]                   ; 4-byte Folded Reload
	mov	x4, x24
	bl	_ArrayCastAndSet
	mov	x27, x0
	tbnz	w26, #0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x23]
	bl	_DatumGetPointer
	bl	_pfree
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	orr	w28, w21, w28
	add	x24, x24, w27, sxtw
	cbz	x25, LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	w21, w21, #1
	cmp	w21, #256
	b.ne	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	str	w28, [x25], #4
	mov	w21, #1
	mov	w28, #0
	b	LBB0_3
LBB0_12:
	cbz	x25, LBB0_15
; %bb.13:
	cmp	w21, #1
	b.eq	LBB0_15
; %bb.14:
	str	w28, [x25]
LBB0_15:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"null array element where not supported"

.subsections_via_symbols
