	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sort_dir_list
_sort_dir_list:                         ## @sort_dir_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_22
## %bb.3:
	movq	(%rbx), %rcx
	movq	%r14, %rax
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.4:
	movq	%r14, %rax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rcx), %rcx
	movq	(%rax), %rax
	testq	%rcx, %rcx
	jne	LBB0_5
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_22
LBB0_6:
	movq	(%rax), %rax
LBB0_8:
	movq	(%rax), %rbx
LBB0_9:
	movq	$0, (%rax)
	movq	%r14, %rdi
	callq	_sort_dir_list
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_sort_dir_list
	movq	%rax, %r15
	movl	8(%r14), %edi
	movl	8(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	jle	LBB0_11
## %bb.10:
	movq	(%r14), %r12
	movq	%r15, %rbx
	jmp	LBB0_12
LBB0_11:
	movq	(%r15), %rbx
	movq	%r14, %r12
	movq	%r15, %r14
LBB0_12:
	testq	%rbx, %rbx
	setne	%al
	testq	%r12, %r12
	setne	%cl
	movq	%r14, %r15
	jne	LBB0_13
LBB0_18:
	testb	%cl, %cl
	je	LBB0_20
## %bb.19:
	movq	%r12, (%r15)
LBB0_20:
	testb	%al, %al
	je	LBB0_22
## %bb.21:
	movq	%rbx, (%r15)
LBB0_22:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, (%r15)
	movq	%rbx, %r15
	movq	(%rbx), %rbx
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	testq	%rbx, %rbx
	setne	%al
	testq	%r12, %r12
	setne	%cl
	je	LBB0_18
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	8(%r12), %edi
	movl	8(%rbx), %esi
	callq	_strcmp
	testq	%rax, %rax
	jle	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, (%r15)
	movq	%r12, %r15
	movq	(%r12), %r12
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sort_dir_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sort_dir_list
_sort_dir_list:                         ; @sort_dir_list
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	cbz	x0, LBB0_22
; %bb.1:
	ldr	x20, [x19]
	cbz	x20, LBB0_22
; %bb.2:
	ldr	x9, [x20]
	mov	x8, x19
	cbz	x9, LBB0_8
; %bb.3:
	mov	x8, x19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x9]
	cbz	x9, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x9]
	ldr	x8, [x8]
	cbnz	x9, LBB0_4
	b	LBB0_7
LBB0_6:
	ldr	x8, [x8]
LBB0_7:
	ldr	x20, [x8]
LBB0_8:
	str	xzr, [x8]
	mov	x0, x19
	bl	_sort_dir_list
	mov	x19, x0
	mov	x0, x20
	bl	_sort_dir_list
	mov	x20, x0
	ldr	w0, [x19, #8]
	ldr	w1, [x20, #8]
	bl	_strcmp
	cmp	x0, #1
	b.lt	LBB0_10
; %bb.9:
	ldr	x22, [x19]
	mov	x21, x20
	b	LBB0_11
LBB0_10:
	ldr	x21, [x20]
	mov	x22, x19
	mov	x19, x20
LBB0_11:
	cmp	x22, #0
	cset	w8, ne
	cmp	x21, #0
	cset	w9, ne
	mov	x20, x19
	cbz	x22, LBB0_18
; %bb.12:
	cbz	x21, LBB0_18
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22, #8]
	ldr	w1, [x21, #8]
	bl	_strcmp
	cmp	x0, #1
	b.lt	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	str	x22, [x20]
	mov	x20, x22
	ldr	x22, [x22]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	str	x21, [x20]
	mov	x20, x21
	ldr	x21, [x21]
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=1
	cmp	x22, #0
	cset	w8, ne
	cmp	x21, #0
	cset	w9, ne
	cbz	x22, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	cbnz	x21, LBB0_13
LBB0_18:
	cbz	w8, LBB0_20
; %bb.19:
	str	x22, [x20]
LBB0_20:
	cbz	w9, LBB0_22
; %bb.21:
	str	x21, [x20]
LBB0_22:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sort_dir_list
.subsections_via_symbols
