	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_locales_list              ## -- Begin function init_locales_list
	.p2align	4, 0x90
_init_locales_list:                     ## @init_locales_list
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_locales@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_1
## %bb.25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	callq	_sl_init
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_3:
	xorl	%eax, %eax
	callq	___detect_path_locale
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_5:
	movq	__PathLocale@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_opendir
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movl	(%r15), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_7:
	movq	%rbx, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_20
## %bb.8:
	movq	%rax, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r14), %r15
	movq	(%r13), %rdi
	callq	_strdup
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sl_add
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	callq	_readdir
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_20
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movq	(%r13), %r15
	cmpb	$46, (%r15)
	je	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_NBOGUS@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_boguslocales@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_strlen
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_strncmp
	xorl	%r12d, %r12d
	testq	%rax, %rax
	sete	%r12b
	movq	_NBOGUS@GOTPCREL(%rip), %rax
	cmpq	$2, (%rax)
	jb	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$1, %r14d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=2
	incq	%r14
	movl	%ecx, %r12d
	movq	_NBOGUS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jae	LBB0_17
LBB0_14:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %r15
	movq	_boguslocales@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %ebx
	movl	%ebx, %edi
	callq	_strlen
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strncmp
	movl	$1, %ecx
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	%r12d, %ecx
	jmp	LBB0_16
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%r12d, %ecx
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	testl	%ecx, %ecx
	movq	_locales@GOTPCREL(%rip), %r14
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_19
	jmp	LBB0_18
LBB0_20:
	movq	%rbx, %rdi
	callq	_closedir
	movq	(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_sl_find
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:
	movq	(%r14), %rbx
	leaq	L_.str.3(%rip), %rdi
	callq	_strdup
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_sl_add
LBB0_22:
	movq	(%r14), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_sl_find
	testq	%rax, %rax
	jne	LBB0_24
## %bb.23:
	movq	(%r14), %rbx
	leaq	L_.str.4(%rip), %rdi
	callq	_strdup
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_sl_add
LBB0_24:
	movq	(%r14), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	_scmp@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$8, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qsort                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_locales,8,3                    ## @locales
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not allocate memory"

L_.str.1:                               ## @.str.1
	.asciz	"unable to find locales storage"

	.comm	__PathLocale,4,2                ## @_PathLocale
L_.str.2:                               ## @.str.2
	.asciz	"could not open directory '%s'"

	.comm	_NBOGUS,8,3                     ## @NBOGUS
	.comm	_boguslocales,8,3               ## @boguslocales
L_.str.3:                               ## @.str.3
	.asciz	"POSIX"

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

	.comm	_scmp,4,2                       ## @scmp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_locales_list              ; -- Begin function init_locales_list
	.p2align	2
_init_locales_list:                     ; @init_locales_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x23, _locales@GOTPAGE
Lloh1:
	ldr	x23, [x23, _locales@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	bl	_sl_init
	str	x0, [x23]
	cbnz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
	bl	___detect_path_locale
	cbz	x0, LBB0_6
; %bb.5:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_6:
Lloh6:
	adrp	x20, __PathLocale@GOTPAGE
Lloh7:
	ldr	x20, [x20, __PathLocale@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_opendir
	mov	x19, x0
	cbnz	x0, LBB0_8
; %bb.7:
	ldr	w8, [x20]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_8:
	mov	x0, x19
	bl	_readdir
	cbz	x0, LBB0_18
; %bb.9:
	mov	x20, x0
Lloh10:
	adrp	x24, _NBOGUS@GOTPAGE
Lloh11:
	ldr	x24, [x24, _NBOGUS@GOTPAGEOFF]
Lloh12:
	adrp	x25, _boguslocales@GOTPAGE
Lloh13:
	ldr	x25, [x25, _boguslocales@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x21, [x23]
	ldr	x0, [x20]
	bl	_strdup
	mov	x1, x0
	mov	x0, x21
	bl	_sl_add
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	bl	_readdir
	mov	x20, x0
	cbz	x0, LBB0_18
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	ldr	x21, [x20]
	ldrb	w8, [x21]
	cmp	w8, #46
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x24]
	cbz	x8, LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x25]
	ldr	w22, [x8]
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_strncmp
	cmp	x0, #0
	cset	w26, eq
	ldr	x8, [x24]
	cmp	x8, #2
	b.lo	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w27, #1
LBB0_16:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x21, [x20]
	ldr	x8, [x25]
	ldr	w22, [x8, x27, lsl #2]
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_strncmp
	cmp	x0, #0
	csinc	w26, w26, wzr, ne
	add	x27, x27, #1
	ldr	x8, [x24]
	cmp	x27, x8
	b.lo	LBB0_16
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
	cbnz	w26, LBB0_11
	b	LBB0_10
LBB0_18:
	mov	x0, x19
	bl	_closedir
	ldr	x0, [x23]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_sl_find
	cbnz	x0, LBB0_20
; %bb.19:
	ldr	x19, [x23]
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_strdup
	mov	x1, x0
	mov	x0, x19
	bl	_sl_add
LBB0_20:
	ldr	x0, [x23]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_sl_find
	cbnz	x0, LBB0_22
; %bb.21:
	ldr	x19, [x23]
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_strdup
	mov	x1, x0
	mov	x0, x19
	bl	_sl_add
LBB0_22:
	ldr	x8, [x23]
Lloh22:
	adrp	x9, _scmp@GOTPAGE
Lloh23:
	ldr	x9, [x9, _scmp@GOTPAGEOFF]
	ldp	w1, w0, [x8]
Lloh24:
	ldr	w3, [x9]
	mov	w2, #8
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_qsort
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_locales,8,3                    ; @locales
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not allocate memory"

l_.str.1:                               ; @.str.1
	.asciz	"unable to find locales storage"

	.comm	__PathLocale,4,2                ; @_PathLocale
l_.str.2:                               ; @.str.2
	.asciz	"could not open directory '%s'"

	.comm	_NBOGUS,8,3                     ; @NBOGUS
	.comm	_boguslocales,8,3               ; @boguslocales
l_.str.3:                               ; @.str.3
	.asciz	"POSIX"

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

	.comm	_scmp,4,2                       ; @scmp
.subsections_via_symbols
