	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcacheSortDirtyList
_pcacheSortDirtyList:                   ## @pcacheSortDirtyList
	.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	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_N_SORT_BUCKET@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movq	%rbx, %rax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	leal	(,%rbx,8), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	testq	%r13, %r13
	jne	LBB0_1
LBB0_8:
	movq	(%r14), %rax
	movl	(%r15), %ecx
	cmpl	$2, %ecx
	jl	LBB0_15
## %bb.9:
	movl	$1, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %r13
	testq	%r12, %r12
	je	LBB0_8
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	(%r13), %r12
	movq	$0, (%r13)
	xorl	%edi, %edi
	cmpl	$2, (%r15)
	setge	%dil
	callq	_ALWAYS
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	%r13, %rsi
	callq	_pcacheMergeDirtyList
	movq	%rax, %r13
	movq	$0, (%r14,%rbx,8)
	incq	%rbx
	movl	(%r15), %eax
	decl	%eax
	xorl	%edi, %edi
	cmpl	%ebx, %eax
	setg	%dil
	callq	_ALWAYS
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, (%r14,%rbx,8)
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %eax
	decl	%eax
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	sete	%dil
	callq	_NEVER
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %ebx
	movq	(%r14,%rbx,8), %rdi
	movq	%r13, %rsi
	callq	_pcacheMergeDirtyList
	movq	%rax, (%r14,%rbx,8)
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %rdi
	callq	_pcacheMergeDirtyList
	movl	(%r15), %ecx
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	movslq	%ecx, %rdx
	cmpq	%rdx, %rbx
	jge	LBB0_15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rsi, %rax
	jmp	LBB0_14
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_16
## %bb.18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_N_SORT_BUCKET,4,2              ## @N_SORT_BUCKET
	.no_dead_strip	_pcacheSortDirtyList
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcacheSortDirtyList
_pcacheSortDirtyList:                   ; @pcacheSortDirtyList
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x21, _N_SORT_BUCKET@GOTPAGE
Lloh4:
	ldr	x21, [x21, _N_SORT_BUCKET@GOTPAGEOFF]
	ldr	w12, [x21]
	lsl	x8, x12, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x19, x9, x8
	mov	sp, x19
	lsl	w2, w12, #3
	mov	x0, x19
	mov	w1, #0
	bl	_memset
	cbnz	x20, LBB0_4
LBB0_1:
	ldr	x0, [x19]
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_17
; %bb.2:
	mov	w20, #1
	b	LBB0_14
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x22
	cbz	x22, LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x22, [x20]
	str	xzr, [x20]
	ldr	w8, [x21]
	cmp	w8, #1
	cset	w0, gt
	bl	_ALWAYS
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, #0
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x19, x23, lsl #3]
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x1, x20
	bl	_pcacheMergeDirtyList
	mov	x20, x0
	str	xzr, [x19, x23, lsl #3]
	add	x23, x23, #1
	ldr	w8, [x21]
	sub	w8, w8, #1
	cmp	w8, w23
	cset	w0, gt
	bl	_ALWAYS
	cbnz	x0, LBB0_6
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w23, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x20, [x19, x23, lsl #3]
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	sub	w8, w8, #1
	cmp	w23, w8
	cset	w0, eq
	bl	_NEVER
	cbz	x0, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, w23
	lsl	x23, x8, #3
	ldr	x0, [x19, x23]
	mov	x1, x20
	bl	_pcacheMergeDirtyList
	str	x0, [x19, x23]
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	bl	_pcacheMergeDirtyList
	ldr	w8, [x21]
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_17
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x19, x20, lsl #3]
	cbz	x1, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	cbnz	x0, LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x1
	b	LBB0_13
LBB0_17:
	ldur	x8, [x29, #-56]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_N_SORT_BUCKET,4,2              ; @N_SORT_BUCKET
	.no_dead_strip	_pcacheSortDirtyList
.subsections_via_symbols
