	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_report_invalid_encoding        ## -- Begin function report_invalid_encoding
	.p2align	4, 0x90
_report_invalid_encoding:               ## @report_invalid_encoding
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%edi, -100(%rbp)                ## 4-byte Spill
	callq	_pg_encoding_mblen
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_Min
	movl	%eax, %edi
	movl	$8, %esi
	callq	_Min
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	leaq	-96(%rbp), %rbx
	leal	-1(%rax), %r13d
	movl	%eax, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movq	%rax, %rbx
	cmpq	%r15, %r14
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r12,%r15), %edx
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_sprintf
	cltq
	addq	%rbx, %rax
	cmpq	%r13, %r15
	jae	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movw	$32, (%rax)
	incq	%rax
	jmp	LBB0_4
LBB0_5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_CHARACTER_NOT_IN_REPERTOIRE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	_pg_enc2name_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	-100(%rbp), %rcx                ## 4-byte Folded Reload
	movl	(%rax,%rcx,4), %esi
	leaq	L_.str.2(%rip), %rdi
	leaq	-96(%rbp), %rdx
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x%02x"

	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_CHARACTER_NOT_IN_REPERTOIRE,4,2 ## @ERRCODE_CHARACTER_NOT_IN_REPERTOIRE
L_.str.2:                               ## @.str.2
	.asciz	"invalid byte sequence for encoding \"%s\": %s"

	.comm	_pg_enc2name_tbl,8,3            ## @pg_enc2name_tbl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_report_invalid_encoding        ; -- Begin function report_invalid_encoding
	.p2align	2
_report_invalid_encoding:               ; @report_invalid_encoding
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	bl	_pg_encoding_mblen
	mov	x1, x21
	bl	_Min
	mov	w1, #8
	bl	_Min
	subs	w23, w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x24, #0
	add	x21, sp, #15
	mov	w25, w0
	mov	w26, #32
Lloh3:
	adrp	x22, l_.str@PAGE
Lloh4:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	cmp	x25, x24
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20, x24]
	str	x8, [sp]
	mov	x0, x21
	mov	x1, x22
	bl	_sprintf
	add	x21, x21, w0, sxtw
	cmp	x24, x23
	b.hs	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	strh	w26, [x21], #1
	b	LBB0_2
LBB0_5:
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
Lloh8:
	adrp	x8, _ERRCODE_CHARACTER_NOT_IN_REPERTOIRE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERRCODE_CHARACTER_NOT_IN_REPERTOIRE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_errcode
Lloh11:
	adrp	x8, _pg_enc2name_tbl@GOTPAGE
Lloh12:
	ldr	x8, [x8, _pg_enc2name_tbl@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w1, [x8, w19, sxtw #2]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x2, sp, #15
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
	ldr	x8, [sp, #56]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x%02x"

	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_CHARACTER_NOT_IN_REPERTOIRE,4,2 ; @ERRCODE_CHARACTER_NOT_IN_REPERTOIRE
l_.str.2:                               ; @.str.2
	.asciz	"invalid byte sequence for encoding \"%s\": %s"

	.comm	_pg_enc2name_tbl,8,3            ; @pg_enc2name_tbl
.subsections_via_symbols
