	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function plperl_ref_from_pg_array
_plperl_ref_from_pg_array:              ## @plperl_ref_from_pg_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_DatumGetArrayTypeP
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_ARR_ELEMTYPE
	movl	%eax, %r12d
	movl	$40, %edi
	callq	_palloc0
	movq	%rax, %r13
	movq	_IOFunc_output@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rax
	leaq	-64(%rbp), %rbx
	leaq	-60(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	leaq	-41(%rbp), %r8
	leaq	-42(%rbp), %r9
	movl	%r12d, %edi
	pushq	%rax
	pushq	%rbx
	callq	_get_type_io_data
	addq	$16, %rsp
	movq	_current_call_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movl	%r12d, %edi
	callq	_get_transform_fromsql
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	32(%r13), %rsi
	movl	%ebx, %edi
	jmp	LBB0_3
LBB0_2:
	movl	-52(%rbp), %edi
	leaq	28(%r13), %rsi
LBB0_3:
	callq	_fmgr_info
	movl	%r12d, %edi
	callq	_type_is_rowtype
	movl	%eax, 24(%r13)
	movq	%r15, %rdi
	callq	_ARR_NDIM
	movl	%eax, (%r13)
	movq	%r15, %rdi
	callq	_ARR_DIMS
	cmpl	$0, (%r13)
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movl	-60(%rbp), %edx
	movl	-56(%rbp), %ecx
	movsbl	-41(%rbp), %r8d
	leaq	20(%r13), %r9
	movq	%r13, %rax
	addq	$16, %rax
	leaq	-48(%rbp), %r10
	movq	%r15, %rdi
	movl	%r12d, %esi
	pushq	%r10
	pushq	%rax
	callq	_deconstruct_array
	addq	$16, %rsp
	movl	(%r13), %edi
	shll	$2, %edi
	callq	_palloc
	movq	%rax, %rcx
	movq	%rax, 8(%r13)
	movl	-48(%rbp), %eax
	movl	%eax, (%rcx)
	cmpl	$2, (%r13)
	jl	LBB0_8
## %bb.6:
	movl	$1, %esi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cltd
	idivl	-4(%rbx,%rsi,4)
	movl	%eax, (%rcx,%rsi,4)
	incq	%rsi
	movslq	(%r13), %rdx
	cmpq	%rdx, %rsi
	jl	LBB0_7
LBB0_8:
	movl	-48(%rbp), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_split_array
	jmp	LBB0_9
LBB0_4:
	xorl	%eax, %eax
	callq	_newAV
	movq	%rax, %rdi
	callq	_newRV_noinc
LBB0_9:
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_newHV
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movl	$5, %edx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	callq	_hv_store
	movl	%r14d, %edi
	callq	_newSVuv
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	$7, %edx
	movq	%rax, %rcx
	xorl	%r8d, %r8d
	callq	_hv_store
	movq	%rbx, %rdi
	callq	_newRV_noinc
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rdi
	xorl	%esi, %esi
	callq	_gv_stashpv
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_sv_bless
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dTHX,4,2                       ## @dTHX
	.comm	_IOFunc_output,4,2              ## @IOFunc_output
	.comm	_current_call_data,8,3          ## @current_call_data
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"array"

L_.str.1:                               ## @.str.1
	.asciz	"typeoid"

L_.str.2:                               ## @.str.2
	.asciz	"PostgreSQL::InServer::ARRAY"

	.no_dead_strip	_plperl_ref_from_pg_array
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function plperl_ref_from_pg_array
_plperl_ref_from_pg_array:              ; @plperl_ref_from_pg_array
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	bl	_DatumGetArrayTypeP
	mov	x21, x0
	bl	_ARR_ELEMTYPE
	mov	x22, x0
	mov	w0, #40
	bl	_palloc0
	mov	x20, x0
Lloh0:
	adrp	x8, _IOFunc_output@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IOFunc_output@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #28
	add	x3, sp, #24
	add	x4, sp, #23
	add	x5, sp, #22
	add	x6, sp, #16
	add	x7, sp, #12
	mov	x0, x22
	bl	_get_type_io_data
Lloh3:
	adrp	x8, _current_call_data@GOTPAGE
Lloh4:
	ldr	x8, [x8, _current_call_data@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldp	w2, w1, [x8]
	mov	x0, x22
	bl	_get_transform_fromsql
	mov	x23, x0
	bl	_OidIsValid
	cbz	x0, LBB0_2
; %bb.1:
	add	x1, x20, #32
	mov	x0, x23
	b	LBB0_3
LBB0_2:
	ldr	w0, [sp, #12]
	add	x1, x20, #28
LBB0_3:
	bl	_fmgr_info
	mov	x0, x22
	bl	_type_is_rowtype
	str	w0, [x20, #24]
	mov	x0, x21
	bl	_ARR_NDIM
	str	w0, [x20]
	mov	x0, x21
	bl	_ARR_DIMS
	ldr	w8, [x20]
	cbz	w8, LBB0_8
; %bb.4:
	mov	x23, x0
	ldp	w3, w2, [sp, #24]
	add	x5, x20, #20
	add	x6, x20, #16
	ldrsb	w4, [sp, #23]
	add	x7, sp, #8
	mov	x0, x21
	mov	x1, x22
	bl	_deconstruct_array
	ldr	w8, [x20]
	lsl	w0, w8, #2
	bl	_palloc
	str	x0, [x20, #8]
	ldr	w8, [sp, #8]
	str	w8, [x0]
	ldr	w9, [x20]
	cmp	w9, #2
	b.lt	LBB0_7
; %bb.5:
	mov	x9, #0
	add	x10, x0, #4
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x11, x9, #2
	ldr	w12, [x23, x11]
	sdiv	w8, w8, w12
	str	w8, [x10, x11]
	ldrsw	x11, [x20]
	add	x12, x9, #2
	add	x9, x9, #1
	cmp	x12, x11
	b.lt	LBB0_6
LBB0_7:
	ldr	w2, [sp, #8]
	mov	x0, x20
	mov	w1, #0
	mov	w3, #0
	bl	_split_array
	b	LBB0_9
LBB0_8:
	bl	_newAV
	bl	_newRV_noinc
LBB0_9:
	mov	x20, x0
	bl	_newHV
	mov	x21, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #5
	mov	x3, x20
	mov	w4, #0
	bl	_hv_store
	mov	x0, x19
	bl	_newSVuv
	mov	x3, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	w2, #7
	mov	w4, #0
	bl	_hv_store
	mov	x0, x21
	bl	_newRV_noinc
	mov	x19, x0
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #0
	bl	_gv_stashpv
	mov	x1, x0
	mov	x0, x19
	bl	_sv_bless
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_dTHX,4,2                       ; @dTHX
	.comm	_IOFunc_output,4,2              ; @IOFunc_output
	.comm	_current_call_data,8,3          ; @current_call_data
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"array"

l_.str.1:                               ; @.str.1
	.asciz	"typeoid"

l_.str.2:                               ; @.str.2
	.asciz	"PostgreSQL::InServer::ARRAY"

	.no_dead_strip	_plperl_ref_from_pg_array
.subsections_via_symbols
