	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_pageout_cluster
_vm_pageout_cluster:                    ## @vm_pageout_cluster
	.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
	subq	$56, %rsp
	.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	_vm_pageout_page_count@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	addl	%eax, %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	16(%r13), %rdi
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movl	(%r13), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_vm_page_assert_xbusied
	movslq	(%r14), %rcx
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, (%rbx,%rcx,8)
	movl	$1, %r12d
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ecx, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cltq
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %ebx
	subl	%r12d, %ebx
	movq	%r13, %r14
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%r12d, %r12d
	je	LBB0_32
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	cmpl	%ecx, %r15d
	jge	LBB0_32
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=2
	cmpl	%r12d, -88(%rbp)                ## 4-byte Folded Reload
	jl	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%r14, %rdi
	callq	_vm_page_prev
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_vm_page_tryxbusy
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%r13, %rdi
	callq	_vm_page_wired
	testq	%rax, %rax
	jne	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%r13, %rdi
	callq	_vm_page_test_dirty
	cmpq	$0, 8(%r13)
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%r13, %rdi
	callq	_vm_page_lock
	movq	%r13, %rdi
	callq	_vm_page_in_laundry
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=2
	movq	%r13, %rdi
	callq	_vm_page_try_remove_write
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=2
	movq	%r13, %rdi
	callq	_vm_page_unlock
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, -8(%rax,%rcx,8)
	decq	%rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	incl	%r15d
	incl	%r12d
	movq	_vm_pageout_page_count@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	decl	%ebx
	movq	%r13, %r14
	testl	%edx, %edx
	jne	LBB0_2
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_vm_page_unlock
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_vm_page_xunbusy
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %r13
	xorl	%r12d, %r12d
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_vm_pageout_page_count@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jge	LBB0_27
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r15d, %r15
	movslq	-72(%rbp), %rax                 ## 4-byte Folded Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %r14
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
LBB0_17:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	addl	%ecx, %eax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rcx), %eax
	jge	LBB0_25
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_vm_page_next
	testq	%rax, %rax
	je	LBB0_25
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_vm_page_tryxbusy
	testq	%rax, %rax
	je	LBB0_25
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	%rbx, %rdi
	callq	_vm_page_wired
	testq	%rax, %rax
	jne	LBB0_30
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	%rbx, %rdi
	callq	_vm_page_test_dirty
	cmpq	$0, 8(%rbx)
	je	LBB0_30
## %bb.22:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	%rbx, %rdi
	callq	_vm_page_lock
	movq	%rbx, %rdi
	callq	_vm_page_in_laundry
	testl	%eax, %eax
	je	LBB0_29
## %bb.23:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	%rbx, %rdi
	callq	_vm_page_try_remove_write
	testl	%eax, %eax
	je	LBB0_29
## %bb.24:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	%rbx, %rdi
	callq	_vm_page_unlock
	movq	%rbx, (%r14,%r15,8)
	incq	%r15
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incl	%ecx
	movq	_vm_pageout_page_count@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %r15
	jl	LBB0_17
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
LBB0_26:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
LBB0_27:                                ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	je	LBB0_33
LBB0_28:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_vm_pageout_page_count@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %r15d
	jl	LBB0_1
	jmp	LBB0_33
LBB0_32:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %r13
	jmp	LBB0_15
LBB0_29:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_vm_page_unlock
LBB0_30:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_vm_page_xunbusy
	testl	%r12d, %r12d
	jne	LBB0_28
LBB0_33:
	movslq	-72(%rbp), %rax                 ## 4-byte Folded Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rdi
	movq	_VM_PAGER_PUT_NOREUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_vm_pageout_flush
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_35
## %bb.34:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_vm_pageout_page_count,4,2      ## @vm_pageout_page_count
	.comm	_VM_PAGER_PUT_NOREUSE,4,2       ## @VM_PAGER_PUT_NOREUSE
	.no_dead_strip	_vm_pageout_cluster
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vm_pageout_cluster
_vm_pageout_cluster:                    ; @vm_pageout_cluster
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #32
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x19, _vm_pageout_page_count@GOTPAGE
Lloh4:
	ldr	x19, [x19, _vm_pageout_page_count@GOTPAGEOFF]
	ldr	w8, [x19]
	lsl	w8, w8, #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x24, [x0, #16]
	mov	x0, x24
	bl	_VM_OBJECT_ASSERT_WLOCKED
	ldr	w26, [x21]
	mov	x0, x21
	bl	_vm_page_assert_xbusied
	ldrsw	x8, [x19]
	str	x21, [x20, x8, lsl #3]
	sub	x9, x20, #8
	stp	x20, x9, [x29, #-104]           ; 16-byte Folded Spill
	mov	w25, #1
	mov	x22, x21
	mov	w28, #1
	mov	x9, x8
	mov	w20, #1
	stur	x24, [x29, #-112]               ; 8-byte Folded Spill
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
	sxtw	x19, w9
	sub	w24, w26, w25
	mov	x23, x21
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	w25, LBB0_15
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	cmp	w20, w8
	b.ge	LBB0_15
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=2
	cmp	w26, w25
	b.lt	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	x0, x23
	bl	_vm_page_prev
	cbz	x0, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	x21, x0
	bl	_vm_page_tryxbusy
	cbz	x0, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	x0, x21
	bl	_vm_page_wired
	cbnz	x0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	x0, x21
	bl	_vm_page_test_dirty
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	x0, x21
	bl	_vm_page_lock
	mov	x0, x21
	bl	_vm_page_in_laundry
	cbz	w0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=2
	mov	x0, x21
	bl	_vm_page_try_remove_write
	cbz	w0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=2
	mov	x0, x21
	bl	_vm_page_unlock
	sub	x27, x19, #1
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	str	x21, [x8, x19, lsl #3]
	add	w20, w20, #1
	add	w25, w25, #1
Lloh7:
	adrp	x8, _vm_pageout_page_count@GOTPAGE
Lloh8:
	ldr	x8, [x8, _vm_pageout_page_count@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	sdiv	w9, w24, w8
	msub	w9, w9, w8, w24
	sub	w24, w24, #1
	mov	x19, x27
	mov	x23, x21
	cbnz	w9, LBB0_2
	b	LBB0_16
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	bl	_vm_page_unlock
LBB0_13:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	bl	_vm_page_xunbusy
LBB0_14:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w25, #0
LBB0_15:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x21, x23
	mov	x27, x19
LBB0_16:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh10:
	adrp	x8, _vm_pageout_page_count@GOTPAGE
Lloh11:
	ldr	x8, [x8, _vm_pageout_page_count@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ge	LBB0_28
; %bb.17:                               ;   in Loop: Header=BB0_1 Depth=1
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sxtw	x20, w20
	ldp	x24, x8, [x29, #-112]           ; 16-byte Folded Reload
	add	x19, x8, w27, sxtw #3
LBB0_18:                                ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x24]
	add	w9, w26, w28
	cmp	w9, w8
	b.ge	LBB0_26
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x0, x22
	bl	_vm_page_next
	cbz	x0, LBB0_26
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x23, x0
	bl	_vm_page_tryxbusy
	cbz	x0, LBB0_26
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x0, x23
	bl	_vm_page_wired
	cbnz	x0, LBB0_31
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x0, x23
	bl	_vm_page_test_dirty
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_31
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x0, x23
	bl	_vm_page_lock
	mov	x0, x23
	bl	_vm_page_in_laundry
	cbz	w0, LBB0_30
; %bb.24:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x0, x23
	bl	_vm_page_try_remove_write
	cbz	w0, LBB0_30
; %bb.25:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x0, x23
	bl	_vm_page_unlock
	str	x23, [x19, x20, lsl #3]
	add	x20, x20, #1
	add	w28, w28, #1
Lloh13:
	adrp	x8, _vm_pageout_page_count@GOTPAGE
Lloh14:
	ldr	x8, [x8, _vm_pageout_page_count@GOTPAGEOFF]
Lloh15:
	ldrsw	x8, [x8]
	mov	x22, x23
	cmp	x20, x8
	b.lt	LBB0_18
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x23, x22
LBB0_27:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x22, x23
LBB0_28:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	w25, LBB0_32
LBB0_29:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh16:
	adrp	x8, _vm_pageout_page_count@GOTPAGE
Lloh17:
	ldr	x8, [x8, _vm_pageout_page_count@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	mov	x9, x27
	cmp	w20, w8
	b.lt	LBB0_1
	b	LBB0_32
LBB0_30:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_vm_page_unlock
LBB0_31:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_vm_page_xunbusy
	cbnz	w25, LBB0_29
LBB0_32:
	lsl	x8, x27, #32
	ldur	x9, [x29, #-104]                ; 8-byte Folded Reload
	add	x0, x9, x8, asr #29
Lloh19:
	adrp	x8, _VM_PAGER_PUT_NOREUSE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VM_PAGER_PUT_NOREUSE@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x1, x20
	mov	w3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_vm_pageout_flush
	ldur	x8, [x29, #-88]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_34
; %bb.33:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_34:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_vm_pageout_page_count,4,2      ; @vm_pageout_page_count
	.comm	_VM_PAGER_PUT_NOREUSE,4,2       ; @VM_PAGER_PUT_NOREUSE
	.no_dead_strip	_vm_pageout_cluster
.subsections_via_symbols
