	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UtfToLocal                     ## -- Begin function UtfToLocal
	.p2align	4, 0x90
_UtfToLocal:                            ## @UtfToLocal
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -100(%rbp)                ## 4-byte Spill
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	%rdx, %r13
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	24(%rbp), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_PG_VALID_ENCODING
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movl	24(%rbp), %esi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	testl	%r15d, %r15d
	jg	LBB0_5
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_store_coded_char
	movq	%rax, %r13
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	subl	%r12d, %r15d
	jle	LBB0_41
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rbx)
	je	LBB0_36
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_pg_utf_mblen
	cmpl	%eax, %r15d
	jl	LBB0_36
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_pg_utf8_islegal
	testl	%eax, %eax
	je	LBB0_36
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	leal	-1(%r12), %eax
	cmpl	$3, %eax
	ja	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movzbl	(%rbx), %eax
	incq	%rbx
	movb	%al, (%r13)
	incq	%r13
	movl	$1, %r12d
	jmp	LBB0_4
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	callq	_elog
	pxor	%xmm0, %xmm0
	jmp	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movzwl	(%rbx), %eax
	addq	$2, %rbx
	movd	%eax, %xmm0
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movzbl	(%rbx), %eax
	movzwl	1(%rbx), %ecx
	addq	$3, %rbx
	movd	%ecx, %xmm0
	xorl	%ecx, %ecx
	jmp	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movzbl	(%rbx), %ecx
	movzbl	1(%rbx), %eax
	movzwl	2(%rbx), %edx
	addq	$4, %rbx
	movd	%edx, %xmm0
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movzbl	%cl, %edx
	movl	%edx, %esi
	shll	$24, %esi
	movzbl	%al, %ecx
	movl	%ecx, %eax
	shll	$16, %eax
	orl	%esi, %eax
	movd	%xmm0, %esi
	movzbl	%sil, %r8d
	movl	%r8d, %r13d
	shll	$8, %r13d
	orl	%eax, %r13d
	pextrb	$1, %xmm0, %esi
	orl	%esi, %r13d
	cmpq	$0, -112(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_31
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %eax
	subl	%r12d, %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	jle	LBB0_31
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%esi, -72(%rbp)                 ## 4-byte Spill
	movl	%r8d, -76(%rbp)                 ## 4-byte Spill
	movl	%ecx, -80(%rbp)                 ## 4-byte Spill
	movl	%edx, -84(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_pg_utf_mblen
	cmpl	%eax, -68(%rbp)                 ## 4-byte Folded Reload
	jl	LBB0_39
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_pg_utf8_islegal
	testl	%eax, %eax
	je	LBB0_39
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$2, %r14d
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	movl	-76(%rbp), %r8d                 ## 4-byte Reload
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	jl	LBB0_31
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$4, %r14d
	je	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$3, %r14d
	je	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$2, %r14d
	jne	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	2(%rbx), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movzwl	(%rbx), %eax
	rolw	$8, %ax
	movzwl	%ax, %eax
	jmp	LBB0_28
LBB0_25:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	4(%rbx), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	bswapl	%eax
	jmp	LBB0_28
LBB0_26:                                ##   in Loop: Header=BB0_5 Depth=1
	movzbl	(%rbx), %eax
	shll	$16, %eax
	movzbl	1(%rbx), %ecx
	shll	$8, %ecx
	orl	%eax, %ecx
	leaq	3(%rbx), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movzbl	2(%rbx), %eax
	orl	%ecx, %eax
	jmp	LBB0_28
LBB0_27:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	callq	_elog
	xorl	%eax, %eax
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
LBB0_28:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, -56(%rbp)
	movl	%eax, -52(%rbp)
	movq	_compare3@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-56(%rbp), %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movl	-100(%rbp), %edx                ## 4-byte Reload
	movl	$4, %ecx
	callq	_bsearch
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_store_coded_char
	movq	%rax, %r13
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	movl	%r14d, %r12d
	jmp	LBB0_4
LBB0_30:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	movl	-76(%rbp), %r8d                 ## 4-byte Reload
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_5 Depth=1
	movzbl	%sil, %r9d
	movl	%r12d, %esi
	callq	_pg_mb_radix_conv
	testl	%eax, %eax
	jne	LBB0_3
LBB0_33:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %edi
	callq	*%rax
	testl	%eax, %eax
	jne	LBB0_3
LBB0_35:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_PG_UTF8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	%r12d, %rax
	movq	%rbx, %rdx
	subq	%rax, %rdx
	movl	24(%rbp), %esi
	movl	%r15d, %ecx
	callq	_report_untranslatable_char
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_36:
	movl	%r15d, %edx
LBB0_40:
	movq	_PG_UTF8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_report_invalid_encoding
LBB0_41:
	movb	$0, (%r13)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_43
## %bb.42:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_39:
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, %edx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jg	LBB0_40
	jmp	LBB0_41
LBB0_43:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ## @ERRCODE_INVALID_PARAMETER_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid encoding number: %d"

L_.str.1:                               ## @.str.1
	.asciz	"unsupported character length %d"

	.comm	_compare3,4,2                   ## @compare3
	.comm	_PG_UTF8,4,2                    ## @PG_UTF8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UtfToLocal                     ; -- Begin function UtfToLocal
	.p2align	2
_UtfToLocal:                            ; @UtfToLocal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x6, [sp, #16]                   ; 8-byte Folded Spill
	str	w5, [sp, #8]                    ; 4-byte Folded Spill
	str	x4, [sp, #32]                   ; 8-byte Folded Spill
	mov	x21, x3
	mov	x20, x2
	mov	x25, x1
	mov	x26, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	str	w7, [sp, #12]                   ; 4-byte Folded Spill
	mov	x0, x7
	bl	_PG_VALID_ENCODING
	cbnz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
Lloh6:
	adrp	x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_errcode
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_2:
	cmp	w25, #1
	b.lt	LBB0_37
; %bb.3:
	str	x21, [sp, #24]                  ; 8-byte Folded Spill
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x0
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	bl	_store_coded_char
	mov	x20, x0
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	w25, w25, w28
	cmp	w25, #0
	b.le	LBB0_37
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x26]
	cbz	w8, LBB0_35
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x26
	bl	_pg_utf_mblen
	cmp	w25, w0
	b.lt	LBB0_35
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x28, x0
	mov	x0, x26
	mov	x1, x28
	bl	_pg_utf8_islegal
	cbz	w0, LBB0_35
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w8, w28, #1
	cmp	w8, #3
	b.hi	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh11:
	adrp	x11, lJTI0_0@PAGE
Lloh12:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_11
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x26], #1
	strb	w8, [x20], #1
	mov	w28, #1
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x20, [sp, #40]                  ; 8-byte Folded Spill
Lloh13:
	adrp	x8, _ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x28
	bl	_elog
	mov	w27, #0
	mov	w22, #0
	mov	w20, #0
	mov	w21, #0
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x20, [sp, #40]                  ; 8-byte Folded Spill
	mov	w27, #0
	mov	w22, #0
	ldrb	w20, [x26]
	ldrb	w21, [x26, #1]
	add	x26, x26, #2
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x20, [sp, #40]                  ; 8-byte Folded Spill
	mov	w27, #0
	ldrb	w22, [x26]
	ldrb	w20, [x26, #1]
	ldrb	w21, [x26, #2]
	add	x26, x26, #3
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x20, [sp, #40]                  ; 8-byte Folded Spill
	ldrb	w27, [x26]
	ldrb	w22, [x26, #1]
	ldrb	w20, [x26, #2]
	ldrb	w21, [x26, #3]
	add	x26, x26, #4
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	lsl	w8, w27, #24
	bfi	w8, w22, #16, #8
	bfi	w8, w20, #8, #8
	orr	w24, w8, w21
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_30
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	subs	w23, w25, w28
	b.le	LBB0_30
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x26
	bl	_pg_utf_mblen
	cmp	w23, w0
	b.lt	LBB0_39
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x19, x0
	mov	x0, x26
	mov	x1, x19
	bl	_pg_utf8_islegal
	cbz	w0, LBB0_39
; %bb.20:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w19, #2
	b.lt	LBB0_30
; %bb.21:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w19, #4
	b.eq	LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w19, #3
	b.eq	LBB0_26
; %bb.23:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w19, #2
	b.ne	LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x9, x26
	ldrh	w8, [x9], #2
	str	x9, [sp]                        ; 8-byte Folded Spill
	rev16	w8, w8
	b	LBB0_28
LBB0_25:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x9, x26
	ldr	w8, [x9], #4
	str	x9, [sp]                        ; 8-byte Folded Spill
	rev	w8, w8
	b	LBB0_28
LBB0_26:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x26]
	lsl	w8, w8, #16
	ldrb	w9, [x26, #1]
	bfi	w8, w9, #8, #8
	add	x9, x26, #3
	str	x9, [sp]                        ; 8-byte Folded Spill
	ldrb	w9, [x26, #2]
	orr	w8, w8, w9
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh18:
	adrp	x8, _ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_elog
	mov	w8, #0
	str	x26, [sp]                       ; 8-byte Folded Spill
LBB0_28:                                ;   in Loop: Header=BB0_6 Depth=1
	stp	w24, w8, [sp, #48]
Lloh23:
	adrp	x8, _compare3@GOTPAGE
Lloh24:
	ldr	x8, [x8, _compare3@GOTPAGEOFF]
Lloh25:
	ldr	w4, [x8]
	add	x0, sp, #48
	ldr	x1, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w2, [sp, #8]                    ; 4-byte Folded Reload
	mov	w3, #4
	bl	_bsearch
	cbz	x0, LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x0]
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	bl	_store_coded_char
	mov	x20, x0
	ldr	x26, [sp]                       ; 8-byte Folded Reload
	mov	x25, x23
	mov	x28, x19
	b	LBB0_5
LBB0_30:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	cbz	x0, LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x28
	mov	x2, x27
	mov	x3, x22
	mov	x4, x20
	mov	x5, x21
	bl	_pg_mb_radix_conv
	cbnz	w0, LBB0_4
LBB0_32:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	blr	x8
	cbnz	w0, LBB0_4
LBB0_34:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh26:
	adrp	x8, _PG_UTF8@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PG_UTF8@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	sub	x2, x26, w28, sxtw
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	mov	x3, x25
	bl	_report_untranslatable_char
	ldr	x20, [sp, #40]                  ; 8-byte Folded Reload
	b	LBB0_5
LBB0_35:
	mov	x23, x25
LBB0_36:
Lloh29:
	adrp	x8, _PG_UTF8@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PG_UTF8@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	mov	x1, x26
	mov	x2, x23
	bl	_report_invalid_encoding
LBB0_37:
	strb	wzr, [x20]
	ldr	x8, [sp, #56]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_40
; %bb.38:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_39:
	cmp	w23, #1
	ldr	x20, [sp, #40]                  ; 8-byte Folded Reload
	b.ge	LBB0_36
	b	LBB0_37
LBB0_40:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_14-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ; @ERRCODE_INVALID_PARAMETER_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid encoding number: %d"

l_.str.1:                               ; @.str.1
	.asciz	"unsupported character length %d"

	.comm	_compare3,4,2                   ; @compare3
	.comm	_PG_UTF8,4,2                    ; @PG_UTF8
.subsections_via_symbols
