	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_encoding_name_for_icu      ## -- Begin function get_encoding_name_for_icu
	.p2align	4, 0x90
_get_encoding_name_for_icu:             ## @get_encoding_name_for_icu
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_pg_enc2icu_tbl@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_lengthof
	movq	_PG_ENCODING_BE_LAST@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	incq	%rcx
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_StaticAssertStmt
	movq	(%rbx), %rax
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	%r14d, %edi
	callq	_pg_encoding_to_char
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pg_enc2icu_tbl,8,3             ## @pg_enc2icu_tbl
	.comm	_PG_ENCODING_BE_LAST,8,3        ## @PG_ENCODING_BE_LAST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pg_enc2icu_tbl incomplete"

	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
L_.str.1:                               ## @.str.1
	.asciz	"encoding \"%s\" not supported by ICU"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_encoding_name_for_icu      ; -- Begin function get_encoding_name_for_icu
	.p2align	2
_get_encoding_name_for_icu:             ; @get_encoding_name_for_icu
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _pg_enc2icu_tbl@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pg_enc2icu_tbl@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_lengthof
Lloh2:
	adrp	x8, _PG_ENCODING_BE_LAST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PG_ENCODING_BE_LAST@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x8, x8, #1
	cmp	x0, x8
	cset	w0, eq
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_StaticAssertStmt
	ldr	x8, [x20]
	ldr	x20, [x8, w19, sxtw #3]
	cbnz	x20, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
Lloh10:
	adrp	x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x19
	bl	_pg_encoding_to_char
	mov	x1, x0
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_2:
	mov	x0, x20
	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	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_pg_enc2icu_tbl,8,3             ; @pg_enc2icu_tbl
	.comm	_PG_ENCODING_BE_LAST,8,3        ; @PG_ENCODING_BE_LAST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pg_enc2icu_tbl incomplete"

	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
l_.str.1:                               ; @.str.1
	.asciz	"encoding \"%s\" not supported by ICU"

.subsections_via_symbols
