	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pg_to_ascii
_pg_to_ascii:                           ## @pg_to_ascii
	.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	_PG_LATIN1@GOTPCREL(%rip), %rax
	movl	$160, %r9d
	cmpl	%ecx, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %r8
	cmpq	%rsi, %rdi
	jb	LBB0_9
	jmp	LBB0_23
LBB0_2:
	movl	%ecx, %ebx
	movq	_PG_LATIN2@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %r8
	cmpq	%rsi, %rdi
	jb	LBB0_9
	jmp	LBB0_23
LBB0_4:
	movq	_PG_LATIN9@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %r8
	cmpq	%rsi, %rdi
	jb	LBB0_9
	jmp	LBB0_23
LBB0_6:
	movq	_PG_WIN1250@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_24
## %bb.7:
	movl	$128, %r9d
	leaq	L_.str.3(%rip), %r8
	cmpq	%rsi, %rdi
	jae	LBB0_23
LBB0_9:
	movl	%esi, %eax
	subl	%edi, %eax
	movq	%rdi, %rcx
	notq	%rcx
	testb	$1, %al
	je	LBB0_14
## %bb.10:
	movb	(%rdi), %bl
	testb	%bl, %bl
	jns	LBB0_13
## %bb.11:
	movzbl	%bl, %eax
	movb	$32, %bl
	cmpl	%eax, %r9d
	ja	LBB0_13
## %bb.12:
	subl	%r9d, %eax
	cltq
	movb	(%r8,%rax), %bl
LBB0_13:
	movb	%bl, (%rdx)
	incq	%rdx
	incq	%rdi
LBB0_14:
	addq	%rsi, %rcx
	jne	LBB0_15
LBB0_23:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_15:
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=1
	movb	%al, 1(%rdx,%rbx)
	addq	$2, %rbx
	addq	$2, %rcx
	cmpq	%rsi, %rcx
	je	LBB0_23
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%rdi,%rbx), %rcx
	movzbl	(%rdi,%rbx), %eax
	testb	%al, %al
	jns	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movzbl	%al, %r10d
	movb	$32, %al
	cmpl	%r10d, %r9d
	ja	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	subl	%r9d, %r10d
	movslq	%r10d, %rax
	movzbl	(%r8,%rax), %eax
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	movb	%al, (%rdx,%rbx)
	movzbl	1(%rcx), %eax
	testb	%al, %al
	jns	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	movzbl	%al, %r10d
	movb	$32, %al
	cmpl	%r10d, %r9d
	ja	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	subl	%r9d, %r10d
	movslq	%r10d, %rax
	movzbl	(%r8,%rax), %eax
	jmp	LBB0_22
LBB0_24:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	%ebx, %edi
	callq	_pg_encoding_to_char
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PG_LATIN1,4,2                  ## @PG_LATIN1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"  cL Y  \"Ca  -R     'u .,      ?AAAAAAACEEEEIIII NOOOOOxOUUUUYTBaaaaaaaceeeeiiii nooooo/ouuuuyty"

	.comm	_PG_LATIN2,4,2                  ## @PG_LATIN2
L_.str.1:                               ## @.str.1
	.asciz	" A L LS \"SSTZ-ZZ a,l'ls ,sstz\"zzRAAAALCCCEEEEIIDDNNOOOOxRUUUUYTBraaaalccceeeeiiddnnoooo/ruuuuyt."

	.comm	_PG_LATIN9,4,2                  ## @PG_LATIN9
L_.str.2:                               ## @.str.2
	.asciz	"  cL YS sCa  -R     Zu .z   EeY?AAAAAAACEEEEIIII NOOOOOxOUUUUYTBaaaaaaaceeeeiiii nooooo/ouuuuyty"

	.comm	_PG_WIN1250,4,2                 ## @PG_WIN1250
L_.str.3:                               ## @.str.3
	.asciz	"  ' \"    %S<STZZ `'\"\".--  s>stzz   L A  \"CS  -RZ  ,l'u .,as L\"lzRAAAALCCCEEEEIIDDNNOOOOxRUUUUYTBraaaalccceeeeiiddnnoooo/ruuuuyt "

	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
L_.str.4:                               ## @.str.4
	.asciz	"encoding conversion from %s to ASCII not supported"

	.comm	_RANGE_128,4,2                  ## @RANGE_128
	.comm	_RANGE_160,4,2                  ## @RANGE_160
	.no_dead_strip	_pg_to_ascii
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pg_to_ascii
_pg_to_ascii:                           ; @pg_to_ascii
	.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
Lloh0:
	adrp	x8, _PG_LATIN1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PG_LATIN1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w3
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #160
Lloh3:
	adrp	x9, l_.str@PAGE
Lloh4:
	add	x9, x9, l_.str@PAGEOFF
	cmp	x0, x1
	b.lo	LBB0_8
	b	LBB0_14
LBB0_2:
	mov	x19, x3
Lloh5:
	adrp	x8, _PG_LATIN2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PG_LATIN2@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w3
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #160
Lloh8:
	adrp	x9, l_.str.1@PAGE
Lloh9:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x0, x1
	b.lo	LBB0_8
	b	LBB0_14
LBB0_4:
Lloh10:
	adrp	x8, _PG_LATIN9@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PG_LATIN9@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_6
; %bb.5:
	mov	w8, #160
Lloh13:
	adrp	x9, l_.str.2@PAGE
Lloh14:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x0, x1
	b.lo	LBB0_8
	b	LBB0_14
LBB0_6:
Lloh15:
	adrp	x8, _PG_WIN1250@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PG_WIN1250@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_15
; %bb.7:
	mov	w8, #128
Lloh18:
	adrp	x9, l_.str.3@PAGE
Lloh19:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	x0, x1
	b.hs	LBB0_14
LBB0_8:
	sub	x10, x1, x0
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	sub	w11, w11, w8
	ldrb	w11, [x9, w11, sxtw]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	strb	w11, [x2], #1
	add	x0, x0, #1
	subs	x10, x10, #1
	b.eq	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	w11, [x0]
	tbz	w11, #31, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	and	w11, w11, #0xff
	cmp	w8, w11
	b.ls	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w11, #32
	b	LBB0_10
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh20:
	adrp	x8, _ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
Lloh23:
	adrp	x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x19
	bl	_pg_encoding_to_char
	mov	x1, x0
Lloh26:
	adrp	x0, l_.str.4@PAGE
Lloh27:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ereport
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_PG_LATIN1,4,2                  ; @PG_LATIN1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"  cL Y  \"Ca  -R     'u .,      ?AAAAAAACEEEEIIII NOOOOOxOUUUUYTBaaaaaaaceeeeiiii nooooo/ouuuuyty"

	.comm	_PG_LATIN2,4,2                  ; @PG_LATIN2
l_.str.1:                               ; @.str.1
	.asciz	" A L LS \"SSTZ-ZZ a,l'ls ,sstz\"zzRAAAALCCCEEEEIIDDNNOOOOxRUUUUYTBraaaalccceeeeiiddnnoooo/ruuuuyt."

	.comm	_PG_LATIN9,4,2                  ; @PG_LATIN9
l_.str.2:                               ; @.str.2
	.asciz	"  cL YS sCa  -R     Zu .z   EeY?AAAAAAACEEEEIIII NOOOOOxOUUUUYTBaaaaaaaceeeeiiii nooooo/ouuuuyty"

	.comm	_PG_WIN1250,4,2                 ; @PG_WIN1250
l_.str.3:                               ; @.str.3
	.asciz	"  ' \"    %S<STZZ `'\"\".--  s>stzz   L A  \"CS  -RZ  ,l'u .,as L\"lzRAAAALCCCEEEEIIDDNNOOOOxRUUUUYTBraaaalccceeeeiiddnnoooo/ruuuuyt "

	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
l_.str.4:                               ; @.str.4
	.asciz	"encoding conversion from %s to ASCII not supported"

	.comm	_RANGE_128,4,2                  ; @RANGE_128
	.comm	_RANGE_160,4,2                  ; @RANGE_160
	.no_dead_strip	_pg_to_ascii
.subsections_via_symbols
