	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_updatecharset                  ## -- Begin function updatecharset
	.p2align	4, 0x90
_updatecharset:                         ## @updatecharset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_CODESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_nl_langinfo
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movq	_localeisutf8@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CODESET,4,2                    ## @CODESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UTF-8"

	.comm	_localeisutf8,4,2               ## @localeisutf8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_updatecharset                  ; -- Begin function updatecharset
	.p2align	2
_updatecharset:                         ; @updatecharset
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _CODESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CODESET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_nl_langinfo
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cmp	w0, #0
	cset	w8, eq
Lloh5:
	adrp	x9, _localeisutf8@GOTPAGE
Lloh6:
	ldr	x9, [x9, _localeisutf8@GOTPAGEOFF]
Lloh7:
	str	w8, [x9]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CODESET,4,2                    ; @CODESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UTF-8"

	.comm	_localeisutf8,4,2               ; @localeisutf8
.subsections_via_symbols
