	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_preferred_languages        ## -- Begin function get_preferred_languages
	.p2align	4, 0x90
_get_preferred_languages:               ## @get_preferred_languages
	.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
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	cmpb	$0, (%rax)
	jne	LBB0_7
LBB0_2:
	movq	_LC_MESSAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_setlocale
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %rbx
	cmpb	$0, (%rax)
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_7
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LANGUAGE"

	.comm	_LC_MESSAGES,4,2                ## @LC_MESSAGES
L_.str.1:                               ## @.str.1
	.asciz	"C"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_preferred_languages        ; -- Begin function get_preferred_languages
	.p2align	2
_get_preferred_languages:               ; @get_preferred_languages
	.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
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldrb	w8, [x0]
	cbnz	w8, LBB0_7
LBB0_2:
Lloh2:
	adrp	x8, _LC_MESSAGES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LC_MESSAGES@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_setlocale
	cbz	x0, LBB0_6
; %bb.3:
	mov	x19, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_6
; %bb.4:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.5:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbnz	x0, LBB0_7
LBB0_6:
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LANGUAGE"

	.comm	_LC_MESSAGES,4,2                ; @LC_MESSAGES
l_.str.1:                               ; @.str.1
	.asciz	"C"

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

.subsections_via_symbols
