	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_pageout_clean
_vm_pageout_clean:                      ## @vm_pageout_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_vm_page_assert_locked
	movq	16(%r13), %r14
	movq	%r14, %rdi
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movq	$0, -48(%rbp)
	movq	(%r14), %rax
	movq	_OBJT_VNODE@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.4:
	movq	%r13, %rdi
	callq	_vm_page_unlock
	movq	%r13, %rdi
	callq	_vm_page_xunbusy
	movq	8(%r14), %r15
	movq	(%r15), %rax
	movq	_VREG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	_V_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_vn_start_write
	testq	%rax, %rax
	je	LBB0_6
## %bb.30:
	movq	$0, -48(%rbp)
	movq	_EDEADLK@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_1:
	xorl	%r15d, %r15d
LBB0_2:
	movq	%r13, %rdi
	callq	_vm_page_try_remove_write
	movq	%r13, %rdi
	testl	%eax, %eax
	je	LBB0_3
## %bb.21:
	callq	_vm_page_unlock
	movq	%r13, %rdi
	callq	_vm_pageout_cluster
	movl	%eax, (%r12)
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jne	LBB0_24
## %bb.22:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_3:
	callq	_vm_page_xunbusy
LBB0_20:
	movq	%r13, %rdi
	callq	_vm_page_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_6:
	xorl	%ebx, %ebx
	cmpq	$0, -48(%rbp)
	setne	%bl
LBB0_7:
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_KASSERT
	movq	%r14, %rdi
	callq	_vm_object_reference_locked
	movq	(%r13), %rbx
	movq	%r14, %rdi
	callq	_VM_OBJECT_WUNLOCK
	movl	16(%r15), %edi
	callq	_MNT_SHARED_WRITES
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:
	movq	_LK_EXCLUSIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_LK_SHARED@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %esi
	movq	_LK_TIMELOCK@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_curthread@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_vget
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_EDEADLK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_25
LBB0_12:
	movq	%r14, %rdi
	callq	_VM_OBJECT_WLOCK
	cmpq	%r14, 8(%r15)
	je	LBB0_14
## %bb.13:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_14:
	movq	%r13, %rdi
	callq	_vm_page_lock
	movq	%r13, %rdi
	callq	_vm_page_in_laundry
	testl	%eax, %eax
	je	LBB0_18
## %bb.15:
	cmpq	%r14, 16(%r13)
	jne	LBB0_18
## %bb.16:
	cmpq	%rbx, (%r13)
	jne	LBB0_18
## %bb.17:
	cmpq	$0, 8(%r13)
	je	LBB0_18
## %bb.19:
	movq	%r13, %rdi
	callq	_vm_page_tryxbusy
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_20
LBB0_18:
	movq	%r13, %rdi
	callq	_vm_page_unlock
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %r12d
LBB0_24:
	movq	%r14, %rdi
	callq	_VM_OBJECT_WUNLOCK
LBB0_25:
	movq	_MA_NOTOWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_vm_page_lock_assert
	cmpq	$0, -48(%rbp)
	je	LBB0_29
## %bb.26:
	testq	%r15, %r15
	je	LBB0_28
## %bb.27:
	movq	%r15, %rdi
	callq	_vput
LBB0_28:
	movq	%r14, %rdi
	callq	_vm_object_deallocate
	movq	-48(%rbp), %rdi
	callq	_vn_finished_write
LBB0_29:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJT_VNODE,8,3                 ## @OBJT_VNODE
	.comm	_VREG,8,3                       ## @VREG
	.comm	_V_NOWAIT,4,2                   ## @V_NOWAIT
	.comm	_EDEADLK,4,2                    ## @EDEADLK
	.comm	_LK_SHARED,4,2                  ## @LK_SHARED
	.comm	_LK_EXCLUSIVE,4,2               ## @LK_EXCLUSIVE
	.comm	_LK_TIMELOCK,4,2                ## @LK_TIMELOCK
	.comm	_curthread,4,2                  ## @curthread
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EIO,4,2                        ## @EIO
	.comm	_MA_NOTOWNED,4,2                ## @MA_NOTOWNED
	.no_dead_strip	_vm_pageout_clean
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vm_pageout_clean
_vm_pageout_clean:                      ; @vm_pageout_clean
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x1
	mov	x20, x0
	bl	_vm_page_assert_locked
	ldr	x19, [x20, #16]
	mov	x0, x19
	bl	_VM_OBJECT_ASSERT_WLOCKED
	mov	x21, #0
	str	xzr, [sp, #8]
	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_15
; %bb.1:
	mov	x0, x20
	bl	_vm_page_unlock
	mov	x0, x20
	bl	_vm_page_xunbusy
	ldr	x21, [x19, #8]
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _VREG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VREG@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _V_NOWAIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V_NOWAIT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x21
	bl	_vn_start_write
	cbz	x0, LBB0_5
; %bb.3:
	str	xzr, [sp, #8]
Lloh9:
	adrp	x8, _EDEADLK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EDEADLK@GOTPAGEOFF]
	b	LBB0_19
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	x8, [sp, #8]
	cmp	x8, #0
	cset	w0, ne
LBB0_6:
	mov	x1, x21
	bl	_KASSERT
	mov	x0, x19
	bl	_vm_object_reference_locked
	ldr	x23, [x20]
	mov	x0, x19
	bl	_VM_OBJECT_WUNLOCK
	ldr	w0, [x21, #16]
	bl	_MNT_SHARED_WRITES
Lloh11:
	adrp	x8, _LK_SHARED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LK_SHARED@GOTPAGEOFF]
Lloh13:
	adrp	x9, _LK_EXCLUSIVE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _LK_EXCLUSIVE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
Lloh15:
	adrp	x9, _LK_TIMELOCK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _LK_TIMELOCK@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	orr	w1, w8, w9
Lloh18:
	adrp	x8, _curthread@GOTPAGE
Lloh19:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_vget
	cbz	x0, LBB0_8
; %bb.7:
	mov	x21, #0
Lloh21:
	adrp	x8, _EDEADLK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EDEADLK@GOTPAGEOFF]
Lloh23:
	ldr	w22, [x8]
	b	LBB0_21
LBB0_8:
	mov	x0, x19
	bl	_VM_OBJECT_WLOCK
	ldr	x8, [x21, #8]
	cmp	x8, x19
	b.eq	LBB0_10
; %bb.9:
Lloh24:
	adrp	x8, _ENOENT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_19
LBB0_10:
	mov	x0, x20
	bl	_vm_page_lock
	mov	x0, x20
	bl	_vm_page_in_laundry
	cbz	w0, LBB0_26
; %bb.11:
	ldr	x8, [x20, #16]
	cmp	x8, x19
	b.ne	LBB0_26
; %bb.12:
	ldr	x8, [x20]
	cmp	x8, x23
	b.ne	LBB0_26
; %bb.13:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_26
; %bb.14:
	mov	x0, x20
	bl	_vm_page_tryxbusy
	cbz	x0, LBB0_18
LBB0_15:
	mov	x0, x20
	bl	_vm_page_try_remove_write
	cbz	w0, LBB0_17
; %bb.16:
	mov	x0, x20
	bl	_vm_page_unlock
	mov	x0, x20
	bl	_vm_pageout_cluster
	str	w0, [x22]
Lloh26:
	adrp	x8, _EIO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w22, w8, wzr, eq
	b	LBB0_20
LBB0_17:
	mov	x0, x20
	bl	_vm_page_xunbusy
LBB0_18:
	mov	x0, x20
	bl	_vm_page_unlock
Lloh29:
	adrp	x8, _EBUSY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_19:
	ldr	w22, [x8]
LBB0_20:
	mov	x0, x19
	bl	_VM_OBJECT_WUNLOCK
LBB0_21:
Lloh31:
	adrp	x8, _MA_NOTOWNED@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MA_NOTOWNED@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_vm_page_lock_assert
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_25
; %bb.22:
	cbz	x21, LBB0_24
; %bb.23:
	mov	x0, x21
	bl	_vput
LBB0_24:
	mov	x0, x19
	bl	_vm_object_deallocate
	ldr	x0, [sp, #8]
	bl	_vn_finished_write
LBB0_25:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_26:
	mov	x0, x20
	bl	_vm_page_unlock
Lloh34:
	adrp	x8, _ENXIO@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJT_VNODE,8,3                 ; @OBJT_VNODE
	.comm	_VREG,8,3                       ; @VREG
	.comm	_V_NOWAIT,4,2                   ; @V_NOWAIT
	.comm	_EDEADLK,4,2                    ; @EDEADLK
	.comm	_LK_SHARED,4,2                  ; @LK_SHARED
	.comm	_LK_EXCLUSIVE,4,2               ; @LK_EXCLUSIVE
	.comm	_LK_TIMELOCK,4,2                ; @LK_TIMELOCK
	.comm	_curthread,4,2                  ; @curthread
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EIO,4,2                        ; @EIO
	.comm	_MA_NOTOWNED,4,2                ; @MA_NOTOWNED
	.no_dead_strip	_vm_pageout_clean
.subsections_via_symbols
