	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_object_page_clean           ## -- Begin function vm_object_page_clean
	.p2align	4, 0x90
_vm_object_page_clean:                  ## @vm_object_page_clean
	.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
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movq	(%r13), %rax
	movq	_OBJT_VNODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	%r13, %rdi
	callq	_vm_object_mightbedirty
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	cmpq	$0, 8(%r13)
	je	LBB0_3
## %bb.4:
	movq	_OBJPC_SYNC@GOTPCREL(%rip), %rcx
	movq	_OBJPC_INVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rcx), %eax
	orl	%edx, %eax
	testl	%ebx, %eax
	jne	LBB0_5
## %bb.6:
	movq	_VM_PAGER_CLUSTER_OK@GOTPCREL(%rip), %rax
	andl	%ebx, %edx
	jne	LBB0_8
	jmp	LBB0_9
LBB0_3:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_39:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_VM_PAGER_PUT_SYNC@GOTPCREL(%rip), %rax
	andl	%ebx, %edx
	je	LBB0_9
LBB0_8:
	movq	_VM_PAGER_PUT_INVAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_9:
	orl	(%rax), %edx
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_OFF_TO_IDX
	movq	%rax, %r15
	testq	%r14, %r14
	je	LBB0_10
## %bb.11:
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	%r14, %rdi
	callq	_OFF_TO_IDX
	jmp	LBB0_12
LBB0_10:
	movq	16(%r13), %rax
LBB0_12:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	testq	%r15, %r15
	jne	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	16(%r13), %rcx
	setge	%al
LBB0_14:
	movl	%eax, -52(%rbp)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	24(%r13), %r12d
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_vm_page_find_least
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movq	%rax, %r14
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
LBB0_18:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_19
LBB0_30:                                ##   in Loop: Header=BB0_19 Depth=2
	testl	%eax, %eax
	je	LBB0_31
LBB0_32:                                ##   in Loop: Header=BB0_19 Depth=2
	cltq
	addq	%rax, %r15
LBB0_33:                                ##   in Loop: Header=BB0_19 Depth=2
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_vm_page_find_least
	movq	%rax, %r12
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
LBB0_34:                                ##   in Loop: Header=BB0_19 Depth=2
	movq	%r12, %r14
	testq	%r12, %r12
	je	LBB0_35
LBB0_19:                                ##   Parent Loop BB0_18 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %r15
	cmpq	-72(%rbp), %r15                 ## 8-byte Folded Reload
	jge	LBB0_35
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	_listq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_TAILQ_NEXT
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_vm_page_none_valid
	testq	%rax, %rax
	jne	LBB0_34
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	_VM_ALLOC_WAITFAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_vm_page_busy_acquire
	testq	%rax, %rax
	je	LBB0_22
## %bb.24:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%ebx, %r13d
	leaq	-52(%rbp), %rbx
	movq	%rbx, %rdx
	callq	_vm_object_page_remove_write
	testl	%eax, %eax
	je	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movq	%rbx, %r8
	leaq	-80(%rbp), %r9
	callq	_vm_object_page_collect_flush
	cmpl	$0, -80(%rbp)
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%ecx, -52(%rbp)
LBB0_28:                                ##   in Loop: Header=BB0_19 Depth=2
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	24(%r13), %ebx
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_19 Depth=2
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	_OBJPC_SYNC@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_30
	jmp	LBB0_17
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=2
	movl	24(%r13), %ebx
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	je	LBB0_33
## %bb.23:                              ##   in Loop: Header=BB0_19 Depth=2
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	_OBJPC_SYNC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_33
	jmp	LBB0_17
LBB0_25:                                ##   in Loop: Header=BB0_19 Depth=2
	movq	%r14, %rdi
	callq	_vm_page_xunbusy
	movl	%r13d, %ebx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_34
LBB0_31:                                ##   in Loop: Header=BB0_19 Depth=2
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	$1, %eax
	jmp	LBB0_32
LBB0_17:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%r13, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_vm_page_find_least
	movq	%rax, %r14
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testq	%rax, %rax
	jne	LBB0_18
	jmp	LBB0_36
LBB0_35:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_36:
	cmpl	$0, -52(%rbp)
	je	LBB0_38
LBB0_37:
	movl	%ebx, 28(%r13)
LBB0_38:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_39
LBB0_15:
	movl	%r12d, %ebx
	cmpl	$0, -52(%rbp)
	jne	LBB0_37
	jmp	LBB0_38
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJT_VNODE,8,3                 ## @OBJT_VNODE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_OBJPC_SYNC,4,2                 ## @OBJPC_SYNC
	.comm	_OBJPC_INVAL,4,2                ## @OBJPC_INVAL
	.comm	_VM_PAGER_PUT_SYNC,4,2          ## @VM_PAGER_PUT_SYNC
	.comm	_VM_PAGER_CLUSTER_OK,4,2        ## @VM_PAGER_CLUSTER_OK
	.comm	_VM_PAGER_PUT_INVAL,4,2         ## @VM_PAGER_PUT_INVAL
	.comm	_PAGE_MASK,8,3                  ## @PAGE_MASK
	.comm	_listq,4,2                      ## @listq
	.comm	_VM_ALLOC_WAITFAIL,4,2          ## @VM_ALLOC_WAITFAIL
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_MNT_WAIT,4,2                   ## @MNT_WAIT
	.comm	_vp,4,2                         ## @vp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_object_page_clean           ; -- Begin function vm_object_page_clean
	.p2align	2
_vm_object_page_clean:                  ; @vm_object_page_clean
	.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
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_VM_OBJECT_ASSERT_WLOCKED
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _OBJT_VNODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OBJT_VNODE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_vm_object_mightbedirty
	cbz	w0, LBB0_6
; %bb.2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _OBJPC_SYNC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OBJPC_SYNC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _OBJPC_INVAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OBJPC_INVAL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x10, _VM_PAGER_PUT_SYNC@GOTPAGE
Lloh10:
	ldr	x10, [x10, _VM_PAGER_PUT_SYNC@GOTPAGEOFF]
Lloh11:
	adrp	x11, _VM_PAGER_CLUSTER_OK@GOTPAGE
Lloh12:
	ldr	x11, [x11, _VM_PAGER_CLUSTER_OK@GOTPAGEOFF]
	tst	w8, w20
	csel	x8, x11, x10, eq
	ldr	w24, [x8]
Lloh13:
	adrp	x8, _VM_PAGER_PUT_INVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VM_PAGER_PUT_INVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w9, w20
	csel	w25, wzr, w8, eq
	mov	x0, x21
	bl	_OFF_TO_IDX
	mov	x21, x0
	cbz	x22, LBB0_8
; %bb.4:
Lloh16:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	add	x0, x8, x22
	bl	_OFF_TO_IDX
	mov	x23, x0
	cbz	x21, LBB0_9
LBB0_5:
	mov	w8, #0
	b	LBB0_10
LBB0_6:
Lloh19:
	adrp	x8, _TRUE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh21:
	ldr	w22, [x8]
LBB0_7:
	mov	x0, x22
	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_8:
	ldr	x23, [x19, #16]
	cbnz	x21, LBB0_5
LBB0_9:
	ldr	x8, [x19, #16]
	cmp	x23, x8
	cset	w8, ge
LBB0_10:
	str	w8, [sp, #8]
Lloh22:
	adrp	x8, _TRUE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh24:
	ldr	w22, [x8]
	ldr	w28, [x19, #24]
	mov	x0, x19
	mov	x1, x21
	bl	_vm_page_find_least
	cbz	x0, LBB0_30
; %bb.11:
	mov	x26, x0
	orr	w8, w24, w25
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
Lloh25:
	adrp	x24, _listq@GOTPAGE
Lloh26:
	ldr	x24, [x24, _listq@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x19
	mov	x1, x25
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	bl	_vm_page_find_least
	mov	x27, x0
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x26, x27
	cbz	x27, LBB0_30
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x26]
	cmp	x25, x23
	b.ge	LBB0_30
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w1, [x24]
	mov	x0, x26
	bl	_TAILQ_NEXT
	mov	x27, x0
	mov	x0, x26
	bl	_vm_page_none_valid
	cbnz	x0, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
Lloh27:
	adrp	x8, _VM_ALLOC_WAITFAIL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VM_ALLOC_WAITFAIL@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_vm_page_busy_acquire
	cbz	x0, LBB0_26
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x2, sp, #8
	mov	x0, x26
	mov	x1, x20
	bl	_vm_object_page_remove_write
	cbz	w0, LBB0_29
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x4, sp, #8
	add	x5, sp, #12
	mov	x0, x19
	mov	x1, x26
	ldr	w2, [sp, #4]                    ; 4-byte Folded Reload
	mov	x3, x20
	bl	_vm_object_page_collect_flush
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_15 Depth=1
Lloh30:
	adrp	x8, _FALSE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh32:
	ldr	w22, [x8]
	str	w22, [sp, #8]
LBB0_21:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x19, #24]
	cmp	w8, w28
	b.eq	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_15 Depth=1
Lloh33:
	adrp	x9, _OBJPC_SYNC@GOTPAGE
Lloh34:
	ldr	x9, [x9, _OBJPC_SYNC@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	tst	w9, w20
	b.ne	LBB0_28
LBB0_23:                                ;   in Loop: Header=BB0_15 Depth=1
	cbnz	w0, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_15 Depth=1
Lloh36:
	adrp	x8, _FALSE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	mov	w0, #1
LBB0_25:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x1, x25, w0, sxtw
	mov	x0, x19
	b	LBB0_13
LBB0_26:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x19, #24]
	cmp	w8, w28
	b.eq	LBB0_12
; %bb.27:                               ;   in Loop: Header=BB0_15 Depth=1
Lloh39:
	adrp	x9, _OBJPC_SYNC@GOTPAGE
Lloh40:
	ldr	x9, [x9, _OBJPC_SYNC@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_12
LBB0_28:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x28, x8
	mov	x0, x19
	mov	x1, x21
	bl	_vm_page_find_least
	mov	x26, x0
	cbnz	x0, LBB0_15
	b	LBB0_30
LBB0_29:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x26
	bl	_vm_page_xunbusy
	b	LBB0_14
LBB0_30:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_7
; %bb.31:
	str	w28, [x19, #28]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJT_VNODE,8,3                 ; @OBJT_VNODE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_OBJPC_SYNC,4,2                 ; @OBJPC_SYNC
	.comm	_OBJPC_INVAL,4,2                ; @OBJPC_INVAL
	.comm	_VM_PAGER_PUT_SYNC,4,2          ; @VM_PAGER_PUT_SYNC
	.comm	_VM_PAGER_CLUSTER_OK,4,2        ; @VM_PAGER_CLUSTER_OK
	.comm	_VM_PAGER_PUT_INVAL,4,2         ; @VM_PAGER_PUT_INVAL
	.comm	_PAGE_MASK,8,3                  ; @PAGE_MASK
	.comm	_listq,4,2                      ; @listq
	.comm	_VM_ALLOC_WAITFAIL,4,2          ; @VM_ALLOC_WAITFAIL
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_MNT_WAIT,4,2                   ; @MNT_WAIT
	.comm	_vp,4,2                         ; @vp
.subsections_via_symbols
