	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sv2cstr
_sv2cstr:                               ## @sv2cstr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_SvREADONLY
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_isGV_with_GP
	testq	%rax, %rax
	je	LBB0_2
LBB0_4:
	movq	%r14, %rdi
	callq	_newSVsv
	movq	%rax, %r14
LBB0_6:
	xorl	%eax, %eax
	callq	_GetDatabaseEncoding
	movq	_PG_SQL_ASCII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_SvPV
	jmp	LBB0_9
LBB0_8:
	movq	%r14, %rdi
	callq	_SvPVutf8
LBB0_9:
	movq	%rax, %rdi
	callq	_utf_u2e
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_SvREFCNT_dec
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%r14, %rdi
	callq	_SvTYPE
	movq	_SVt_PVLV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_SvTYPE
	movq	_SVt_PVFM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	callq	_SvREFCNT_inc_simple_void
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_dTHX,4,2                       ## @dTHX
	.comm	_SVt_PVLV,8,3                   ## @SVt_PVLV
	.comm	_SVt_PVFM,8,3                   ## @SVt_PVFM
	.comm	_PG_SQL_ASCII,8,3               ## @PG_SQL_ASCII
	.no_dead_strip	_sv2cstr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sv2cstr
_sv2cstr:                               ; @sv2cstr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_SvREADONLY
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_isGV_with_GP
	cbz	x0, LBB0_7
LBB0_2:
	mov	x0, x19
	bl	_newSVsv
	mov	x19, x0
LBB0_3:
	bl	_GetDatabaseEncoding
Lloh0:
	adrp	x8, _PG_SQL_ASCII@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PG_SQL_ASCII@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_SvPV
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_SvPVutf8
LBB0_6:
	bl	_utf_u2e
	mov	x20, x0
	mov	x0, x19
	bl	_SvREFCNT_dec
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	bl	_SvTYPE
Lloh3:
	adrp	x8, _SVt_PVLV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SVt_PVLV@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_SvTYPE
Lloh6:
	adrp	x8, _SVt_PVFM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SVt_PVFM@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
LBB0_9:
	mov	x0, x19
	bl	_SvREFCNT_inc_simple_void
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_dTHX,4,2                       ; @dTHX
	.comm	_SVt_PVLV,8,3                   ; @SVt_PVLV
	.comm	_SVt_PVFM,8,3                   ; @SVt_PVFM
	.comm	_PG_SQL_ASCII,8,3               ; @PG_SQL_ASCII
	.no_dead_strip	_sv2cstr
.subsections_via_symbols
