	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_locale_encoding
_check_locale_encoding:                 ## @check_locale_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	$1, %r15d
	movl	$1, %esi
	callq	_pg_get_encoding_from_locale
	cmpl	%r14d, %eax
	je	LBB0_5
## %bb.1:
	movl	%eax, %ebx
	movq	_PG_SQL_ASCII@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r14d, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$-1, %ebx
	je	LBB0_5
## %bb.3:
	cmpl	%eax, %ebx
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_pg_log_error
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	%rax, %r12
	movl	%r14d, %edi
	callq	_pg_encoding_to_char
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_pg_encoding_to_char
	movq	_progname@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movl	%r15d, %edi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%rax, %rcx
	callq	_fprintf
	xorl	%r15d, %r15d
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PG_SQL_ASCII,4,2               ## @PG_SQL_ASCII
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"encoding mismatch"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"The encoding you selected (%s) and the encoding that the\nselected locale uses (%s) do not match.  This would lead to\nmisbehavior in various character string processing functions.\nRerun %s and either do not specify an encoding explicitly,\nor choose a matching combination.\n"

	.comm	_progname,8,3                   ## @progname
	.comm	_PG_UTF8,4,2                    ## @PG_UTF8
	.no_dead_strip	_check_locale_encoding
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_locale_encoding
_check_locale_encoding:                 ; @check_locale_encoding
	.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, x1
	mov	w21, #1
	mov	w1, #1
	bl	_pg_get_encoding_from_locale
	cmp	w0, w19
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _PG_SQL_ASCII@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PG_SQL_ASCII@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	ccmn	w0, #1, #4, ne
	ccmp	w0, w8, #4, ne
	b.ne	LBB0_3
; %bb.2:
	mov	w21, #1
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pg_log_error
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x22, x0
	mov	x0, x19
	bl	_pg_encoding_to_char
	mov	x19, x0
	mov	x0, x20
	bl	_pg_encoding_to_char
	mov	x3, x0
Lloh10:
	adrp	x8, _progname@GOTPAGE
Lloh11:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh12:
	ldr	x4, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	bl	_fprintf
	mov	w21, #0
LBB0_4:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PG_SQL_ASCII,4,2               ; @PG_SQL_ASCII
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"encoding mismatch"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"The encoding you selected (%s) and the encoding that the\nselected locale uses (%s) do not match.  This would lead to\nmisbehavior in various character string processing functions.\nRerun %s and either do not specify an encoding explicitly,\nor choose a matching combination.\n"

	.comm	_progname,8,3                   ; @progname
	.comm	_PG_UTF8,4,2                    ; @PG_UTF8
	.no_dead_strip	_check_locale_encoding
.subsections_via_symbols
