	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_locale_and_encoding
_check_locale_and_encoding:             ## @check_locale_and_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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	cmpq	(%rsi), %rdi
	je	LBB0_2
## %bb.1:
	movl	12(%rbx), %r15d
	callq	_pg_encoding_to_char
	movl	%eax, %r12d
	movq	(%r14), %rdi
	callq	_pg_encoding_to_char
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_pg_fatal
LBB0_2:
	movq	_LC_COLLATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	movl	16(%r14), %edx
	callq	_equivalent_locale
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	12(%rbx), %esi
	movl	16(%rbx), %edx
	movl	16(%r14), %ecx
	leaq	L_.str.1(%rip), %rdi
	callq	_pg_fatal
LBB0_4:
	movq	_LC_CTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	movl	8(%r14), %edx
	callq	_equivalent_locale
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	movl	8(%r14), %ecx
	leaq	L_.str.2(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pg_fatal                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"encodings for database \"%s\" do not match:  old \"%s\", new \"%s\"\n"

	.comm	_LC_COLLATE,4,2                 ## @LC_COLLATE
L_.str.1:                               ## @.str.1
	.asciz	"lc_collate values for database \"%s\" do not match:  old \"%s\", new \"%s\"\n"

	.comm	_LC_CTYPE,4,2                   ## @LC_CTYPE
L_.str.2:                               ## @.str.2
	.asciz	"lc_ctype values for database \"%s\" do not match:  old \"%s\", new \"%s\"\n"

	.no_dead_strip	_check_locale_and_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_and_encoding
_check_locale_and_encoding:             ; @check_locale_and_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	x20, x0
	ldr	x0, [x0]
	ldr	x8, [x1]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	ldr	w21, [x20, #12]
	bl	_pg_encoding_to_char
	mov	x22, x0
	ldr	x0, [x19]
	bl	_pg_encoding_to_char
	mov	x3, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x22
	bl	_pg_fatal
LBB0_2:
Lloh2:
	adrp	x8, _LC_COLLATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LC_COLLATE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w1, [x20, #16]
	ldr	w2, [x19, #16]
	bl	_equivalent_locale
	cbnz	w0, LBB0_4
; %bb.3:
	ldp	w1, w2, [x20, #12]
	ldr	w3, [x19, #16]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pg_fatal
LBB0_4:
Lloh7:
	adrp	x8, _LC_CTYPE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LC_CTYPE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
	ldr	w2, [x19, #8]
	bl	_equivalent_locale
	cbz	w0, LBB0_6
; %bb.5:
	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
LBB0_6:
	ldp	w2, w1, [x20, #8]
	ldr	w3, [x19, #8]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	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
	b	_pg_fatal
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"encodings for database \"%s\" do not match:  old \"%s\", new \"%s\"\n"

	.comm	_LC_COLLATE,4,2                 ; @LC_COLLATE
l_.str.1:                               ; @.str.1
	.asciz	"lc_collate values for database \"%s\" do not match:  old \"%s\", new \"%s\"\n"

	.comm	_LC_CTYPE,4,2                   ; @LC_CTYPE
l_.str.2:                               ; @.str.2
	.asciz	"lc_ctype values for database \"%s\" do not match:  old \"%s\", new \"%s\"\n"

	.no_dead_strip	_check_locale_and_encoding
.subsections_via_symbols
