	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function plperl_sv_to_datum
_plperl_sv_to_datum:                    ## @plperl_sv_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, %r13
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movq	16(%rbp), %r15
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -96(%rbp)
	movq	%r9, -72(%rbp)
	xorl	%eax, %eax
	callq	_check_stack_depth
	movl	$0, (%r15)
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_SvOK
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_VOIDOID@GOTPCREL(%rip), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rax)
	je	LBB0_3
## %bb.6:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	_current_call_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_get_transform_tosql
	testq	%rax, %rax
	je	LBB0_7
## %bb.30:
	movq	%rax, %r14
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_PointerGetDatum
	movq	%r14, %rdi
	movl	%eax, %esi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_OidFunctionCall1               ## TAILCALL
LBB0_3:
	testq	%r13, %r13
	jne	LBB0_5
## %bb.4:
	leaq	-56(%rbp), %r13
	leaq	-72(%rbp), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	__sv_to_datum_finfo
	movq	-72(%rbp), %r12
LBB0_5:
	movl	$1, (%r15)
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	movl	%r14d, %ecx
	callq	_InputFunctionCall
	movl	%eax, %ebx
LBB0_28:
	movl	%ebx, %eax
LBB0_29:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_SvROK
	testq	%rax, %rax
	je	LBB0_25
## %bb.8:
	movq	%r14, %rdi
	callq	_get_perl_array_ref
	testq	%rax, %rax
	je	LBB0_9
## %bb.31:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_plperl_array_to_datum          ## TAILCALL
LBB0_25:
	movq	%r14, %rdi
	callq	_sv2cstr
	movq	%rax, %r15
	testq	%r13, %r13
	jne	LBB0_27
## %bb.26:
	leaq	-56(%rbp), %r13
	leaq	-72(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	__sv_to_datum_finfo
	movq	-72(%rbp), %r12
LBB0_27:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_InputFunctionCall
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_pfree
	jmp	LBB0_28
LBB0_9:
	movq	%r14, %rdi
	callq	_SvRV
	movq	%rax, %rdi
	callq	_SvTYPE
	movq	_SVt_PVHV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.10:
	movq	%rbx, %rdi
	callq	_type_is_rowtype
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_DATATYPE_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_format_type_be
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_12:
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	$1, %edx
	callq	_lookup_rowtype_tupdesc_domain
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	movq	(%rax), %r14
	movq	%rax, %rsi
	callq	_plperl_hash_to_datum
	movq	%rbx, %rdx
	movl	%eax, %ebx
	cmpq	%rdx, %r14
	jne	LBB0_22
	jmp	LBB0_23
LBB0_24:
	movq	%r14, %rdi
	callq	_SvRV
	movq	%r15, (%rsp)
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	movq	%r12, %r9
	callq	_plperl_sv_to_datum
	jmp	LBB0_29
LBB0_14:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	leaq	-96(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	callq	_get_call_result_type
	movq	%rax, %r14
	jmp	LBB0_17
LBB0_16:
	movq	_TYPEFUNC_OTHER@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_17:
	movq	_TYPEFUNC_COMPOSITE@GOTPCREL(%rip), %rax
	movq	_TYPEFUNC_COMPOSITE_DOMAIN@GOTPCREL(%rip), %r15
	cmpq	(%rax), %r14
	je	LBB0_20
## %bb.18:
	cmpq	(%r15), %r14
	je	LBB0_20
## %bb.19:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_20:
	movq	-56(%rbp), %rdi
	callq	_Assert
	movq	(%r15), %r15
	movq	-56(%rbp), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_plperl_hash_to_datum
	movl	%eax, %ebx
	cmpq	%r15, %r14
	jne	LBB0_23
## %bb.21:
	movq	-96(%rbp), %rdx
LBB0_22:
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_domain_check
LBB0_23:
	movq	-56(%rbp), %rdi
	callq	_ReleaseTupleDesc
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_VOIDOID,8,3                    ## @VOIDOID
	.comm	_current_call_data,8,3          ## @current_call_data
	.comm	_SVt_PVHV,8,3                   ## @SVt_PVHV
	.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 hash to non-composite type %s"

	.comm	_TYPEFUNC_OTHER,8,3             ## @TYPEFUNC_OTHER
	.comm	_TYPEFUNC_COMPOSITE,8,3         ## @TYPEFUNC_COMPOSITE
	.comm	_TYPEFUNC_COMPOSITE_DOMAIN,8,3  ## @TYPEFUNC_COMPOSITE_DOMAIN
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
L_.str.1:                               ## @.str.1
	.asciz	"function returning record called in context that cannot accept type record"

	.no_dead_strip	_plperl_sv_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_sv_to_datum
_plperl_sv_to_datum:                    ; @plperl_sv_to_datum
	.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	x25, x6
	mov	x24, x5
	mov	x23, x4
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	stp	x5, x1, [sp, #16]
	bl	_check_stack_depth
	str	wzr, [x25]
	cbz	x19, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_SvOK
	cbz	w0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _VOIDOID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VOIDOID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x20
	b.eq	LBB0_5
; %bb.3:
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, x20
	bl	_get_transform_tosql
	cbz	x0, LBB0_9
; %bb.4:
	mov	x26, x0
	mov	x0, x19
	bl	_PointerGetDatum
	mov	x1, x0
	mov	x0, x26
	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	_OidFunctionCall1
LBB0_5:
	cbnz	x23, LBB0_7
; %bb.6:
	add	x23, sp, #8
	add	x1, sp, #8
	add	x2, sp, #16
	mov	x0, x20
	bl	__sv_to_datum_finfo
	ldr	x24, [sp, #16]
LBB0_7:
	mov	w8, #1
	str	w8, [x25]
	mov	x0, x23
	mov	x1, #0
	mov	x2, x24
	mov	x3, x21
	bl	_InputFunctionCall
	mov	x19, x0
LBB0_8:
	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
	ret
LBB0_9:
	mov	x0, x19
	bl	_SvROK
	cbz	x0, LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_get_perl_array_ref
	cbz	x0, LBB0_15
; %bb.11:
	mov	x1, x20
	mov	x2, 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
	add	sp, sp, #112
	b	_plperl_array_to_datum
LBB0_12:
	mov	x0, x19
	bl	_sv2cstr
	mov	x22, x0
	cbnz	x23, LBB0_14
; %bb.13:
	add	x23, sp, #8
	add	x1, sp, #8
	add	x2, sp, #16
	mov	x0, x20
	bl	__sv_to_datum_finfo
	ldr	x24, [sp, #16]
LBB0_14:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	mov	x3, x21
	bl	_InputFunctionCall
	mov	x19, x0
	mov	x0, x22
	bl	_pfree
	b	LBB0_8
LBB0_15:
	mov	x0, x19
	bl	_SvRV
	bl	_SvTYPE
Lloh6:
	adrp	x8, _SVt_PVHV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SVt_PVHV@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.16:
	mov	x0, x20
	bl	_type_is_rowtype
	cbnz	w0, LBB0_18
; %bb.17:
Lloh9:
	adrp	x8, _ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w23, [x8]
Lloh12:
	adrp	x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x20
	bl	_format_type_be
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_18:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	bl	_lookup_rowtype_tupdesc_domain
	str	x0, [sp, #8]
	cbz	x0, LBB0_21
; %bb.19:
	mov	x1, x0
	ldr	x21, [x0]
	mov	x0, x19
	bl	_plperl_hash_to_datum
	mov	x19, x0
	cmp	x21, x20
	b.ne	LBB0_29
	b	LBB0_30
LBB0_20:
	mov	x0, x19
	bl	_SvRV
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	mov	x5, x24
	mov	x6, x25
	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	_plperl_sv_to_datum
LBB0_21:
	cbz	x22, LBB0_23
; %bb.22:
	add	x1, sp, #24
	add	x2, sp, #8
	mov	x0, x22
	bl	_get_call_result_type
	mov	x20, x0
	b	LBB0_24
LBB0_23:
Lloh17:
	adrp	x8, _TYPEFUNC_OTHER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TYPEFUNC_OTHER@GOTPAGEOFF]
Lloh19:
	ldr	x20, [x8]
LBB0_24:
Lloh20:
	adrp	x8, _TYPEFUNC_COMPOSITE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TYPEFUNC_COMPOSITE@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	adrp	x22, _TYPEFUNC_COMPOSITE_DOMAIN@GOTPAGE
Lloh24:
	ldr	x22, [x22, _TYPEFUNC_COMPOSITE_DOMAIN@GOTPAGEOFF]
	cmp	x20, x8
	b.eq	LBB0_27
; %bb.25:
	ldr	x8, [x22]
	cmp	x20, x8
	b.eq	LBB0_27
; %bb.26:
Lloh25:
	adrp	x8, _ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w21, [x8]
Lloh28:
	adrp	x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_errcode
Lloh31:
	adrp	x0, l_.str.1@PAGE
Lloh32:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_27:
	ldr	x0, [sp, #8]
	bl	_Assert
	ldr	x21, [x22]
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_plperl_hash_to_datum
	mov	x19, x0
	cmp	x20, x21
	b.ne	LBB0_30
; %bb.28:
	ldr	x20, [sp, #24]
LBB0_29:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	mov	x3, #0
	mov	x4, #0
	bl	_domain_check
LBB0_30:
	ldr	x0, [sp, #8]
	bl	_ReleaseTupleDesc
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_VOIDOID,8,3                    ; @VOIDOID
	.comm	_current_call_data,8,3          ; @current_call_data
	.comm	_SVt_PVHV,8,3                   ; @SVt_PVHV
	.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 hash to non-composite type %s"

	.comm	_TYPEFUNC_OTHER,8,3             ; @TYPEFUNC_OTHER
	.comm	_TYPEFUNC_COMPOSITE,8,3         ; @TYPEFUNC_COMPOSITE
	.comm	_TYPEFUNC_COMPOSITE_DOMAIN,8,3  ; @TYPEFUNC_COMPOSITE_DOMAIN
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
l_.str.1:                               ; @.str.1
	.asciz	"function returning record called in context that cannot accept type record"

	.no_dead_strip	_plperl_sv_to_datum
.subsections_via_symbols
