	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SV_to_JsonbValue
_SV_to_JsonbValue:                      ## @SV_to_JsonbValue
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	callq	_SvROK
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_SvRV
	movq	%rax, %rbx
	movq	%rax, %rdi
	jmp	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_SvTYPE
	cmpl	$128, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$129, %eax
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AV_to_JsonbValue               ## TAILCALL
LBB0_6:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HV_to_JsonbValue               ## TAILCALL
LBB0_7:
	movq	%rbx, %rdi
	callq	_SvOK
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	callq	_SvUOK
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_SvPV_nolen
	movq	_jbvNumeric@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)
	movq	_numeric_in@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movq	%rax, %rdi
	callq	_CStringGetDatum
	movl	%eax, %r13d
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ObjectIdGetDatum
	movl	%eax, %ebx
	movl	$-1, %edi
	callq	_Int32GetDatum
	movl	%r12d, %edi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_DirectFunctionCall3
	jmp	LBB0_20
LBB0_8:
	movq	_jbvNull@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpq	$0, (%r15)
	jne	LBB0_24
	jmp	LBB0_28
LBB0_11:
	movq	%rbx, %rdi
	callq	_SvIOK
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	_SvIV
	movq	_jbvNumeric@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)
	movq	_int8_numeric@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_Int64GetDatum
	jmp	LBB0_19
LBB0_13:
	movq	%rbx, %rdi
	callq	_SvNOK
	testl	%eax, %eax
	je	LBB0_21
## %bb.14:
	movq	%rbx, %rdi
	callq	_SvNV
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	callq	_isinf
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_16:
	movsd	-72(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_isnan
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_18:
	movq	_jbvNumeric@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_float8_numeric@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movsd	-72(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_Float8GetDatum
LBB0_19:
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_DirectFunctionCall1
LBB0_20:
	movl	%eax, %edi
	callq	_DatumGetNumeric
	movq	%rax, -56(%rbp)
	cmpq	$0, (%r15)
	je	LBB0_28
LBB0_24:
	testl	%r14d, %r14d
	jne	LBB0_25
## %bb.26:
	movq	_WJB_VALUE@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_25:
	movq	_WJB_ELEM@GOTPCREL(%rip), %rax
LBB0_27:
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movq	%r15, %rdi
	callq	_pushJsonbValue
	jmp	LBB0_29
LBB0_21:
	movq	%rbx, %rdi
	callq	_SvPOK
	testl	%eax, %eax
	je	LBB0_30
## %bb.22:
	movq	_jbvString@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rbx, %rdi
	callq	_sv2cstr
	movl	%eax, -64(%rbp)
	movl	%eax, %edi
	callq	_strlen
	movl	%eax, -60(%rbp)
	cmpq	$0, (%r15)
	jne	LBB0_24
LBB0_28:
	movl	$24, %edi
	callq	_palloc
	leaq	-64(%rbp), %rsi
	movl	%eax, %edi
	movl	$24, %edx
	callq	_memcpy
LBB0_29:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	xorl	%eax, %eax
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_dTHX,4,2                       ## @dTHX
	.comm	_jbvNull,8,3                    ## @jbvNull
	.comm	_jbvNumeric,8,3                 ## @jbvNumeric
	.comm	_numeric_in,4,2                 ## @numeric_in
	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.comm	_int8_numeric,4,2               ## @int8_numeric
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE,4,2 ## @ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot convert infinity to jsonb"

L_.str.1:                               ## @.str.1
	.asciz	"cannot convert NaN to jsonb"

	.comm	_float8_numeric,4,2             ## @float8_numeric
	.comm	_jbvString,8,3                  ## @jbvString
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
L_.str.2:                               ## @.str.2
	.asciz	"cannot transform this Perl type to jsonb"

	.comm	_WJB_ELEM,4,2                   ## @WJB_ELEM
	.comm	_WJB_VALUE,4,2                  ## @WJB_VALUE
	.no_dead_strip	_SV_to_JsonbValue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SV_to_JsonbValue
_SV_to_JsonbValue:                      ; @SV_to_JsonbValue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	d9, d8, [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 b8, -72
	.cfi_offset b9, -80
	mov	x20, x2
	mov	x19, x1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x0
	bl	_SvROK
	cbz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	bl	_SvRV
	b	LBB0_1
LBB0_3:
	mov	x0, x21
	bl	_SvTYPE
	cmp	w0, #128
	b.eq	LBB0_6
; %bb.4:
	cmp	w0, #129
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x21
	mov	x1, 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	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_AV_to_JsonbValue
LBB0_6:
	mov	x0, x21
	mov	x1, 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	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_HV_to_JsonbValue
LBB0_7:
	mov	x0, x21
	bl	_SvOK
	cbz	w0, LBB0_10
; %bb.8:
	mov	x0, x21
	bl	_SvUOK
	cbz	w0, LBB0_11
; %bb.9:
	mov	x0, x21
	bl	_SvPV_nolen
Lloh0:
	adrp	x8, _jbvNumeric@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jbvNumeric@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _numeric_in@GOTPAGE
Lloh4:
	ldr	x8, [x8, _numeric_in@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	bl	_CStringGetDatum
	mov	x22, x0
Lloh6:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh7:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_ObjectIdGetDatum
	mov	x23, x0
	mov	w0, #-1
	bl	_Int32GetDatum
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_DirectFunctionCall3
	b	LBB0_20
LBB0_10:
Lloh9:
	adrp	x8, _jbvNull@GOTPAGE
Lloh10:
	ldr	x8, [x8, _jbvNull@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x19]
	cbnz	x8, LBB0_21
	b	LBB0_24
LBB0_11:
	mov	x0, x21
	bl	_SvIOK
	cbz	w0, LBB0_13
; %bb.12:
	mov	x0, x21
	bl	_SvIV
Lloh12:
	adrp	x8, _jbvNumeric@GOTPAGE
Lloh13:
	ldr	x8, [x8, _jbvNumeric@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh15:
	adrp	x8, _int8_numeric@GOTPAGE
Lloh16:
	ldr	x8, [x8, _int8_numeric@GOTPAGEOFF]
Lloh17:
	ldr	w21, [x8]
	bl	_Int64GetDatum
	b	LBB0_19
LBB0_13:
	mov	x0, x21
	bl	_SvNOK
	cbz	w0, LBB0_22
; %bb.14:
	mov	x0, x21
	bl	_SvNV
	fmov	d8, d0
	bl	_isinf
Lloh18:
	adrp	x22, _ERROR@GOTPAGE
Lloh19:
	ldr	x22, [x22, _ERROR@GOTPAGEOFF]
Lloh20:
	adrp	x23, _ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE@GOTPAGE
Lloh21:
	ldr	x23, [x23, _ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE@GOTPAGEOFF]
	cbz	w0, LBB0_16
; %bb.15:
	ldr	w21, [x22]
	ldr	w0, [x23]
	bl	_errcode
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_16:
	fmov	d0, d8
	bl	_isnan
	cbz	w0, LBB0_18
; %bb.17:
	ldr	w21, [x22]
	ldr	w0, [x23]
	bl	_errcode
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_18:
Lloh26:
	adrp	x8, _jbvNumeric@GOTPAGE
Lloh27:
	ldr	x8, [x8, _jbvNumeric@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh29:
	adrp	x8, _float8_numeric@GOTPAGE
Lloh30:
	ldr	x8, [x8, _float8_numeric@GOTPAGEOFF]
Lloh31:
	ldr	w21, [x8]
	fmov	d0, d8
	bl	_Float8GetDatum
LBB0_19:
	mov	x1, x0
	mov	x0, x21
	bl	_DirectFunctionCall1
LBB0_20:
	bl	_DatumGetNumeric
	str	x0, [sp, #16]
	ldr	x8, [x19]
	cbz	x8, LBB0_24
LBB0_21:
Lloh32:
	adrp	x8, _WJB_ELEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _WJB_ELEM@GOTPAGEOFF]
Lloh34:
	adrp	x9, _WJB_VALUE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _WJB_VALUE@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_pushJsonbValue
	b	LBB0_25
LBB0_22:
	mov	x0, x21
	bl	_SvPOK
	cbz	w0, LBB0_26
; %bb.23:
Lloh36:
	adrp	x8, _jbvString@GOTPAGE
Lloh37:
	ldr	x8, [x8, _jbvString@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	x0, x21
	bl	_sv2cstr
	str	w0, [sp, #8]
	bl	_strlen
	str	w0, [sp, #12]
	ldr	x8, [x19]
	cbnz	x8, LBB0_21
LBB0_24:
	mov	w0, #24
	bl	_palloc
	add	x1, sp, #8
	mov	w2, #24
	bl	_memcpy
LBB0_25:
	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	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_26:
Lloh39:
	adrp	x8, _ERROR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh41:
	ldr	w19, [x8]
Lloh42:
	adrp	x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	bl	_errcode
Lloh45:
	adrp	x0, l_.str.2@PAGE
Lloh46:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	mov	x0, #0
	b	LBB0_25
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_dTHX,4,2                       ; @dTHX
	.comm	_jbvNull,8,3                    ; @jbvNull
	.comm	_jbvNumeric,8,3                 ; @jbvNumeric
	.comm	_numeric_in,4,2                 ; @numeric_in
	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.comm	_int8_numeric,4,2               ; @int8_numeric
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE,4,2 ; @ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot convert infinity to jsonb"

l_.str.1:                               ; @.str.1
	.asciz	"cannot convert NaN to jsonb"

	.comm	_float8_numeric,4,2             ; @float8_numeric
	.comm	_jbvString,8,3                  ; @jbvString
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
l_.str.2:                               ; @.str.2
	.asciz	"cannot transform this Perl type to jsonb"

	.comm	_WJB_ELEM,4,2                   ; @WJB_ELEM
	.comm	_WJB_VALUE,4,2                  ; @WJB_VALUE
	.no_dead_strip	_SV_to_JsonbValue
.subsections_via_symbols
