	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function plperl_array_to_datum
_plperl_array_to_datum:                 ## @plperl_array_to_datum
	.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
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXDIM@GOTPCREL(%rip), %r14
	movl	(%r14), %r13d
	movq	%r13, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	(%r14), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movl	$1, -52(%rbp)
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_get_element_type
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_DATATYPE_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_format_type_be
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movl	$1, %edx
	callq	_initArrayResult
	movq	%rax, %r14
	leaq	-64(%rbp), %rsi
	leaq	-60(%rbp), %rdx
	movl	%r15d, %edi
	callq	__sv_to_datum_finfo
	leal	(,%r13,4), %edx
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_SvRV
	movq	%rax, %rdi
	callq	_av_len
	incl	%eax
	movl	%eax, (%r12)
	movq	%rbx, %rdi
	callq	_SvRV
	movl	-60(%rbp), %ebx
	leaq	-52(%rbp), %rdx
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%r12, %rcx
	movl	$1, %r8d
	movl	-56(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rbx
	leaq	-64(%rbp), %rax
	pushq	%rax
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	%r15
	callq	_array_to_datum_internal
	addq	$32, %rsp
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.4:
	movl	-52(%rbp), %r13d
	testl	%r13d, %r13d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_6
## %bb.5:
	leaq	(,%r13,4), %rdx
	leaq	L_.memset_pattern(%rip), %rsi
	movq	%rbx, %rdi
	callq	_memset_pattern16
	jmp	LBB0_6
LBB0_3:
	movl	$0, -52(%rbp)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_6:
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	movl	$1, %r9d
	callq	_makeMdArrayResult
	movq	-96(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_dTHX,4,2                       ## @dTHX
	.comm	_MAXDIM,4,2                     ## @MAXDIM
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_DATATYPE_MISMATCH,4,2  ## @ERRCODE_DATATYPE_MISMATCH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot convert Perl array to non-array type %s"

	.comm	_CurrentMemoryContext,4,2       ## @CurrentMemoryContext
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @.memset_pattern
L_.memset_pattern:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1

	.no_dead_strip	_plperl_array_to_datum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function plperl_array_to_datum
_plperl_array_to_datum:                 ; @plperl_array_to_datum
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	x8, sp
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x12, _MAXDIM@GOTPAGE
Lloh4:
	ldr	x12, [x12, _MAXDIM@GOTPAGEOFF]
	ldr	w28, [x12]
	lsl	x8, x28, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	ldr	w8, [x12]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	mov	w8, #1
	stur	w8, [x29, #-100]
	mov	x0, x1
	bl	_get_element_type
	mov	x24, x0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w25, [x8]
Lloh12:
	adrp	x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x22
	bl	_format_type_be
	mov	x1, x0
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_2:
Lloh17:
	adrp	x27, _CurrentMemoryContext@GOTPAGE
Lloh18:
	ldr	x27, [x27, _CurrentMemoryContext@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x24
	mov	w2, #1
	bl	_initArrayResult
	mov	x25, x0
	sub	x26, x29, #92
	sub	x1, x29, #92
	sub	x2, x29, #96
	mov	x0, x24
	bl	__sv_to_datum_finfo
	lsl	w2, w28, #2
	mov	x0, x19
	mov	w1, #0
	bl	_memset
	mov	x0, x23
	bl	_SvRV
	bl	_av_len
	add	w8, w0, #1
	str	w8, [x19]
	mov	x0, x23
	bl	_SvRV
	ldur	w8, [x29, #-96]
	sub	sp, sp, #16
	str	w8, [sp, #8]
	str	x26, [sp]
	sub	x2, x29, #100
	mov	x1, x25
	mov	x3, x19
	mov	w4, #1
	mov	x5, x22
	mov	x6, x24
	mov	x7, x21
	bl	_array_to_datum_internal
	add	sp, sp, #16
	ldr	w8, [x19]
	cmp	w8, #0
	b.le	LBB0_5
; %bb.3:
	ldur	w21, [x29, #-100]
	cmp	w21, #1
	b.lt	LBB0_6
; %bb.4:
	lsl	x2, x21, #2
Lloh19:
	adrp	x1, l_.memset_pattern@PAGE
Lloh20:
	add	x1, x1, l_.memset_pattern@PAGEOFF
	mov	x0, x20
	bl	_memset_pattern16
	b	LBB0_6
LBB0_5:
	mov	w21, #0
	stur	wzr, [x29, #-100]
LBB0_6:
	ldr	w4, [x27]
	mov	x0, x25
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	mov	w5, #1
	bl	_makeMdArrayResult
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-88]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_dTHX,4,2                       ; @dTHX
	.comm	_MAXDIM,4,2                     ; @MAXDIM
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_DATATYPE_MISMATCH,4,2  ; @ERRCODE_DATATYPE_MISMATCH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot convert Perl array to non-array type %s"

	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; @.memset_pattern
l_.memset_pattern:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1

	.no_dead_strip	_plperl_array_to_datum
.subsections_via_symbols
