	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msetlocale                     ## -- Begin function msetlocale
	.p2align	4, 0x90
_msetlocale:                            ## @msetlocale
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	callq	_getenv
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_strncasecmp
	testq	%rax, %rax
	je	LBB0_6
LBB0_4:
	leaq	L_.str.9(%rip), %rsi
LBB0_5:
	movq	_LC_CTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_setlocale                      ## TAILCALL
LBB0_6:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasestr
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasestr
	testq	%rax, %rax
	je	LBB0_11
LBB0_8:
	movq	_LC_CTYPE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_setlocale
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movl	(%rbx), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_setlocale
	testq	%rax, %rax
	je	LBB0_11
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LC_ALL"

L_.str.1:                               ## @.str.1
	.asciz	"LC_CTYPE"

L_.str.2:                               ## @.str.2
	.asciz	"LANG"

L_.str.3:                               ## @.str.3
	.asciz	"TR"

L_.str.4:                               ## @.str.4
	.asciz	"UTF-8"

L_.str.5:                               ## @.str.5
	.asciz	"UTF8"

	.comm	_LC_CTYPE,4,2                   ## @LC_CTYPE
L_.str.6:                               ## @.str.6
	.asciz	"C.UTF-8"

L_.str.7:                               ## @.str.7
	.asciz	"POSIX.UTF-8"

L_.str.8:                               ## @.str.8
	.asciz	"C"

L_.str.9:                               ## @.str.9
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msetlocale                     ; -- Begin function msetlocale
	.p2align	2
_msetlocale:                            ; @msetlocale
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	mov	x19, x0
Lloh2:
	adrp	x20, _LC_CTYPE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _LC_CTYPE@GOTPAGEOFF]
	cbnz	x0, LBB0_3
; %bb.1:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	mov	x19, x0
	cbnz	x0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_getenv
	mov	x19, x0
	cbz	x0, LBB0_4
LBB0_3:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w2, #2
	bl	_strncasecmp
	cbz	x0, LBB0_6
LBB0_4:
Lloh10:
	adrp	x1, l_.str.9@PAGE
Lloh11:
	add	x1, x1, l_.str.9@PAGEOFF
LBB0_5:
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_setlocale
LBB0_6:
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_strcasestr
	cbnz	x0, LBB0_8
; %bb.7:
Lloh14:
	adrp	x1, l_.str.5@PAGE
Lloh15:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_strcasestr
	cbz	x0, LBB0_11
LBB0_8:
	ldr	w0, [x20]
Lloh16:
	adrp	x1, l_.str.6@PAGE
Lloh17:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_setlocale
	cbnz	x0, LBB0_10
; %bb.9:
	ldr	w0, [x20]
Lloh18:
	adrp	x1, l_.str.7@PAGE
Lloh19:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_setlocale
	cbz	x0, LBB0_11
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh20:
	adrp	x1, l_.str.8@PAGE
Lloh21:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LC_ALL"

l_.str.1:                               ; @.str.1
	.asciz	"LC_CTYPE"

l_.str.2:                               ; @.str.2
	.asciz	"LANG"

l_.str.3:                               ; @.str.3
	.asciz	"TR"

l_.str.4:                               ; @.str.4
	.asciz	"UTF-8"

l_.str.5:                               ; @.str.5
	.asciz	"UTF8"

	.comm	_LC_CTYPE,4,2                   ; @LC_CTYPE
l_.str.6:                               ; @.str.6
	.asciz	"C.UTF-8"

l_.str.7:                               ; @.str.7
	.asciz	"POSIX.UTF-8"

l_.str.8:                               ; @.str.8
	.asciz	"C"

l_.str.9:                               ; @.str.9
	.space	1

.subsections_via_symbols
