	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_expand_array                   ## -- Begin function expand_array
	.p2align	4, 0x90
_expand_array:                          ## @expand_array
	.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
	movq	%rdx, %r15
	movl	%esi, %eax
	movl	%edi, %r13d
	movq	_ALLOCSET_START_SMALL_SIZES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_AllocSetContextCreate
	movl	%eax, %r12d
	movl	%eax, %edi
	movl	$112, %esi
	callq	_MemoryContextAlloc
	movq	%rax, %rbx
	leaq	24(%rax), %r14
	movq	_EA_methods@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_EOH_init_header
	movq	_EA_MAGIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movl	%r13d, %edi
	callq	_DatumGetPointer
	movl	%eax, %edi
	callq	_VARATT_IS_EXTERNAL_EXPANDED
	testq	%rax, %rax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	movl	%r13d, %edi
	callq	_DatumGetEOHP
	movq	%rax, %r14
	movq	(%rax), %rax
	xorl	%edi, %edi
	movq	_EA_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	testq	%r15, %r15
	leaq	-88(%rbp), %r13
	cmovneq	%r15, %r13
	movq	8(%r14), %rax
	movq	%rax, (%r13)
	movl	96(%r14), %eax
	movl	%eax, 24(%r13)
	movq	88(%r14), %rax
	movq	%rax, 16(%r13)
	movl	80(%r14), %ecx
	movl	%ecx, 8(%r13)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	cmpq	$0, 72(%r14)
	je	LBB0_4
## %bb.10:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_copy_byval_expanded_array
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_EOHPGetRWDatum                 ## TAILCALL
LBB0_1:
	movq	%r15, %r13
LBB0_4:
	movl	%r12d, %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r14d
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_DatumGetArrayTypePCopy
	movq	%rax, %r15
	movl	%r14d, %edi
	callq	_MemoryContextSwitchTo
	movq	%r15, %rdi
	callq	_ARR_NDIM
	movl	%eax, 108(%rbx)
	movq	%r15, %rdi
	callq	_ARR_DIMS
	movl	%eax, 104(%rbx)
	movq	%r15, %rdi
	callq	_ARR_LBOUND
	movl	%eax, 100(%rbx)
	movq	%r15, %rdi
	callq	_ARR_ELEMTYPE
	movq	%rax, 8(%rbx)
	testq	%r13, %r13
	je	LBB0_5
## %bb.6:
	cmpq	%rax, (%r13)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_8
## %bb.7:
	movl	24(%r13), %eax
	movl	%eax, 96(%rbx)
	movq	16(%r13), %rax
	movq	%rax, 88(%rbx)
	movl	8(%r13), %eax
	movl	%eax, 80(%rbx)
	jmp	LBB0_9
LBB0_5:
	leaq	96(%rbx), %rsi
	leaq	88(%rbx), %rdx
	movq	%rbx, %rcx
	addq	$80, %rcx
	movq	%rax, %rdi
	callq	_get_typlenbyvalalign
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_8:
	leaq	96(%rbx), %rsi
	leaq	88(%rbx), %rdx
	movq	%rbx, %rcx
	addq	$80, %rcx
	movq	%rax, %rdi
	callq	_get_typlenbyvalalign
	movq	8(%rbx), %rax
	movq	%rax, (%r13)
	movl	96(%rbx), %eax
	movl	%eax, 24(%r13)
	movq	88(%rbx), %rax
	movq	%rax, 16(%r13)
	movl	80(%rbx), %eax
	movl	%eax, 8(%r13)
LBB0_9:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%rbx)
	movups	%xmm0, 40(%rbx)
	movq	$0, 72(%rbx)
	movq	%r15, 32(%rbx)
	movq	%r15, %rdi
	callq	_ARR_DATA_PTR
	movl	%eax, 28(%rbx)
	movq	%r15, %rdi
	callq	_ARR_SIZE
	cltq
	addq	%rax, %r15
	movq	%r15, 16(%rbx)
	movq	%r14, %rdi
	callq	_EOHPGetRWDatum
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"expanded array"

	.comm	_ALLOCSET_START_SMALL_SIZES,4,2 ## @ALLOCSET_START_SMALL_SIZES
	.comm	_EA_methods,4,2                 ## @EA_methods
	.comm	_EA_MAGIC,8,3                   ## @EA_MAGIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_expand_array                   ; -- Begin function expand_array
	.p2align	2
_expand_array:                          ; @expand_array
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x21, x2
	mov	x8, x1
	mov	x22, x0
Lloh0:
	adrp	x9, _ALLOCSET_START_SMALL_SIZES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ALLOCSET_START_SMALL_SIZES@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_AllocSetContextCreate
	mov	x23, x0
	mov	w1, #112
	bl	_MemoryContextAlloc
	mov	x20, x0
	add	x19, x0, #24
Lloh5:
	adrp	x1, _EA_methods@GOTPAGE
Lloh6:
	ldr	x1, [x1, _EA_methods@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x23
	bl	_EOH_init_header
Lloh7:
	adrp	x25, _EA_MAGIC@GOTPAGE
Lloh8:
	ldr	x25, [x25, _EA_MAGIC@GOTPAGEOFF]
	ldr	x8, [x25]
	str	x8, [x20]
	mov	x0, x22
	bl	_DatumGetPointer
	bl	_VARATT_IS_EXTERNAL_EXPANDED
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x22
	bl	_DatumGetEOHP
	mov	x24, x0
	ldr	x8, [x0]
	ldr	x9, [x25]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	mov	x8, sp
	cmp	x21, #0
	csel	x21, x8, x21, eq
	ldr	x8, [x24, #8]
	str	x8, [x21]
	ldr	w8, [x24, #96]
	str	w8, [x21, #24]
	ldr	x8, [x24, #88]
	str	x8, [x21, #16]
	ldr	w9, [x24, #80]
	str	w9, [x21, #8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x24, #72]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x24
	bl	_copy_byval_expanded_array
	mov	x0, x19
	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
	add	sp, sp, #112
	b	_EOHPGetRWDatum
LBB0_4:
	mov	x0, x23
	bl	_MemoryContextSwitchTo
	mov	x23, x0
	mov	x0, x22
	bl	_DatumGetArrayTypePCopy
	mov	x22, x0
	mov	x0, x23
	bl	_MemoryContextSwitchTo
	mov	x0, x22
	bl	_ARR_NDIM
	str	w0, [x20, #108]
	mov	x0, x22
	bl	_ARR_DIMS
	str	w0, [x20, #104]
	mov	x0, x22
	bl	_ARR_LBOUND
	str	w0, [x20, #100]
	mov	x0, x22
	bl	_ARR_ELEMTYPE
	str	x0, [x20, #8]
	cbz	x21, LBB0_7
; %bb.5:
	ldr	x8, [x21]
	cmp	x8, x0
	b.ne	LBB0_8
; %bb.6:
	ldr	w8, [x21, #24]
	str	w8, [x20, #96]
	ldr	x8, [x21, #16]
	str	x8, [x20, #88]
	ldr	w8, [x21, #8]
	str	w8, [x20, #80]
	b	LBB0_9
LBB0_7:
	add	x1, x20, #96
	add	x2, x20, #88
	add	x3, x20, #80
	bl	_get_typlenbyvalalign
	b	LBB0_9
LBB0_8:
	add	x1, x20, #96
	add	x2, x20, #88
	add	x3, x20, #80
	bl	_get_typlenbyvalalign
	ldr	x8, [x20, #8]
	str	x8, [x21]
	ldr	w8, [x20, #96]
	str	w8, [x21, #24]
	ldr	x8, [x20, #88]
	str	x8, [x21, #16]
	ldr	w8, [x20, #80]
	str	w8, [x21, #8]
LBB0_9:
	str	xzr, [x20, #72]
	movi.2d	v0, #0000000000000000
	stur	q0, [x20, #56]
	stur	q0, [x20, #40]
	str	x22, [x20, #32]
	mov	x0, x22
	bl	_ARR_DATA_PTR
	str	w0, [x20, #28]
	mov	x0, x22
	bl	_ARR_SIZE
	add	x8, x22, w0, sxtw
	str	x8, [x20, #16]
	mov	x0, x19
	bl	_EOHPGetRWDatum
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"expanded array"

	.comm	_ALLOCSET_START_SMALL_SIZES,4,2 ; @ALLOCSET_START_SMALL_SIZES
	.comm	_EA_methods,4,2                 ; @EA_methods
	.comm	_EA_MAGIC,8,3                   ; @EA_MAGIC
.subsections_via_symbols
