	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PLyUnicode_Bytes               ## -- Begin function PLyUnicode_Bytes
	.p2align	4, 0x90
_PLyUnicode_Bytes:                      ## @PLyUnicode_Bytes
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_PyUnicode_AsUTF8String
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_PLy_elog
LBB0_2:
	movq	%r14, %rdi
	callq	_PyBytes_AsString
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_Py_DECREF
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_PLy_elog
LBB0_4:
	xorl	%eax, %eax
	callq	_GetDatabaseEncoding
	movq	_PG_UTF8@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rbx
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
	callq	_PG_TRY
	movq	%r15, %rdi
	callq	_strlen
	movq	(%rbx), %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pg_any_to_server
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_PG_CATCH
	movq	%r14, %rdi
	callq	_Py_DECREF
	xorl	%eax, %eax
	callq	_PG_RE_THROW
	xorl	%eax, %eax
	callq	_PG_END_TRY
LBB0_7:
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_PyBytes_FromStringAndSize
	movq	%rax, %r12
	cmpq	%rbx, %r15
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_pfree
LBB0_9:
	movq	%r14, %rdi
	callq	_Py_DECREF
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not convert Python Unicode object to bytes"

L_.str.1:                               ## @.str.1
	.asciz	"could not extract bytes from encoded string"

	.comm	_PG_UTF8,8,3                    ## @PG_UTF8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PLyUnicode_Bytes               ; -- Begin function PLyUnicode_Bytes
	.p2align	2
_PLyUnicode_Bytes:                      ; @PLyUnicode_Bytes
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_PyUnicode_AsUTF8String
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PLy_elog
LBB0_2:
	mov	x0, x19
	bl	_PyBytes_AsString
	mov	x20, x0
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_Py_DECREF
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_PLy_elog
LBB0_4:
	bl	_GetDatabaseEncoding
Lloh10:
	adrp	x21, _PG_UTF8@GOTPAGE
Lloh11:
	ldr	x21, [x21, _PG_UTF8@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x21, x20
	b	LBB0_7
LBB0_6:
	bl	_PG_TRY
	mov	x0, x20
	bl	_strlen
	mov	x1, x0
	ldr	x2, [x21]
	mov	x0, x20
	bl	_pg_any_to_server
	mov	x21, x0
	bl	_PG_CATCH
	mov	x0, x19
	bl	_Py_DECREF
	bl	_PG_RE_THROW
	bl	_PG_END_TRY
LBB0_7:
	mov	x0, x21
	bl	_strlen
	mov	x1, x0
	mov	x0, x21
	bl	_PyBytes_FromStringAndSize
	mov	x22, x0
	cmp	x20, x21
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_pfree
LBB0_9:
	mov	x0, x19
	bl	_Py_DECREF
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not convert Python Unicode object to bytes"

l_.str.1:                               ; @.str.1
	.asciz	"could not extract bytes from encoded string"

	.comm	_PG_UTF8,8,3                    ; @PG_UTF8
.subsections_via_symbols
