	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_encoding_locale_matches  ## -- Begin function check_encoding_locale_matches
	.p2align	4, 0x90
_check_encoding_locale_matches:         ## @check_encoding_locale_matches
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movl	%edi, %r13d
	movq	%rdx, %rdi
	movl	$1, %esi
	callq	_pg_get_encoding_from_locale
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_pg_get_encoding_from_locale
	movl	%eax, %r15d
	cmpl	%r13d, %ebx
	je	LBB0_6
## %bb.1:
	cmpl	$-1, %ebx
	je	LBB0_6
## %bb.2:
	movq	_PG_SQL_ASCII@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	je	LBB0_6
## %bb.3:
	cmpl	%r13d, %eax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_superuser
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	cmpl	%r13d, %r15d
	je	LBB0_11
LBB0_7:
	cmpl	$-1, %r15d
	je	LBB0_11
## %bb.8:
	movq	_PG_SQL_ASCII@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r15d
	je	LBB0_11
## %bb.9:
	cmpl	%r13d, %eax
	jne	LBB0_12
## %bb.10:
	xorl	%eax, %eax
	callq	_superuser
	testq	%rax, %rax
	jne	LBB0_11
LBB0_12:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	%r13d, %edi
	callq	_pg_encoding_to_char
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_errmsg
	movl	%r15d, %edi
	callq	_pg_encoding_to_char
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_errdetail
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
LBB0_5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	%r13d, %edi
	callq	_pg_encoding_to_char
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_errmsg
	movl	%ebx, %edi
	callq	_pg_encoding_to_char
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_errdetail
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
	cmpl	%r13d, %r15d
	jne	LBB0_7
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PG_SQL_ASCII,4,2               ## @PG_SQL_ASCII
	.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	"encoding \"%s\" does not match locale \"%s\""

L_.str.1:                               ## @.str.1
	.asciz	"The chosen LC_CTYPE setting requires encoding \"%s\"."

L_.str.2:                               ## @.str.2
	.asciz	"The chosen LC_COLLATE setting requires encoding \"%s\"."

	.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	_check_encoding_locale_matches  ; -- Begin function check_encoding_locale_matches
	.p2align	2
_check_encoding_locale_matches:         ; @check_encoding_locale_matches
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x2
	mov	w1, #1
	bl	_pg_get_encoding_from_locale
	mov	x23, x0
	mov	x0, x19
	mov	w1, #1
	bl	_pg_get_encoding_from_locale
	mov	x21, x0
Lloh0:
	adrp	x25, _PG_SQL_ASCII@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PG_SQL_ASCII@GOTPAGEOFF]
	cmp	w23, w20
	b.eq	LBB0_5
; %bb.1:
	cmn	w23, #1
	b.eq	LBB0_5
; %bb.2:
	ldr	w8, [x25]
	cmp	w23, w8
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, w20
	b.ne	LBB0_11
; %bb.4:
	bl	_superuser
	cbz	x0, LBB0_11
LBB0_5:
	cmp	w21, w20
	b.eq	LBB0_12
LBB0_6:
	cmn	w21, #1
	b.eq	LBB0_12
; %bb.7:
	ldr	w8, [x25]
	cmp	w21, w8
	b.eq	LBB0_12
; %bb.8:
	cmp	w8, w20
	b.ne	LBB0_10
; %bb.9:
	bl	_superuser
	cbnz	x0, LBB0_12
LBB0_10:
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
Lloh5:
	adrp	x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x20
	bl	_pg_encoding_to_char
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_errmsg
	mov	x0, x21
	bl	_pg_encoding_to_char
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errdetail
	mov	x1, x0
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ereport
LBB0_11:
Lloh12:
	adrp	x8, _ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w24, [x8]
Lloh15:
	adrp	x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x20
	bl	_pg_encoding_to_char
	mov	x1, x0
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x22
	bl	_errmsg
	mov	x0, x23
	bl	_pg_encoding_to_char
	mov	x1, x0
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errdetail
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
	cmp	w21, w20
	b.ne	LBB0_6
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PG_SQL_ASCII,4,2               ; @PG_SQL_ASCII
	.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	"encoding \"%s\" does not match locale \"%s\""

l_.str.1:                               ; @.str.1
	.asciz	"The chosen LC_CTYPE setting requires encoding \"%s\"."

l_.str.2:                               ; @.str.2
	.asciz	"The chosen LC_COLLATE setting requires encoding \"%s\"."

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