	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_locale
_get_locale:                            ## @get_locale
	.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_4
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	callq	_getenv
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_lang_default@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_4:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_DEFAULT_LANG@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.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"

	.comm	_lang_default,8,3               ## @lang_default
L_.str.3:                               ## @.str.3
	.asciz	"C"

	.comm	_DEFAULT_LANG,8,3               ## @DEFAULT_LANG
	.no_dead_strip	_get_locale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_locale
_get_locale:                            ; @get_locale
	.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
	cbnz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	mov	x19, x0
	cbnz	x0, LBB0_3
; %bb.2:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_getenv
Lloh6:
	adrp	x8, _lang_default@GOTPAGE
Lloh7:
	ldr	x8, [x8, _lang_default@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x19, x8, x0, eq
LBB0_3:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_strcmp
Lloh11:
	adrp	x8, _DEFAULT_LANG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DEFAULT_LANG@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	w0, #0
	csel	x0, x8, x19, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.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"

	.comm	_lang_default,8,3               ; @lang_default
l_.str.3:                               ; @.str.3
	.asciz	"C"

	.comm	_DEFAULT_LANG,8,3               ; @DEFAULT_LANG
	.no_dead_strip	_get_locale
.subsections_via_symbols
