	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_set_validclean         ## -- Begin function vm_page_set_validclean
	.p2align	4, 0x90
_vm_page_set_validclean:                ## @vm_page_set_validclean
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r13
	callq	_vm_page_assert_busied
	testl	%r14d, %r14d
	je	LBB0_18
## %bb.1:
	movq	_DEV_BSIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%r15d, %edi
	callq	_rounddown2
	cmpl	%r15d, %eax
	je	LBB0_4
## %bb.2:
	movl	(%r13), %edx
	movq	_DEV_BSHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%r15d, %esi
	sarl	%cl, %esi
	btl	%esi, %edx
	jb	LBB0_4
## %bb.3:
	movl	%r15d, %edx
	subl	%eax, %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_pmap_zero_page_area
LBB0_4:
	leal	(%r14,%r15), %ebx
	movl	(%r12), %esi
	movl	%ebx, %edi
	callq	_rounddown2
	cmpl	%ebx, %eax
	je	LBB0_7
## %bb.5:
	movl	(%r13), %eax
	movq	_DEV_BSHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%ebx, %edx
	sarl	%cl, %edx
	btl	%edx, %eax
	jb	LBB0_7
## %bb.6:
	movl	(%r12), %edx
	leal	-1(%rdx), %eax
	andl	%ebx, %eax
	subl	%eax, %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_pmap_zero_page_area
LBB0_7:
	movl	(%r13), %ebx
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_vm_page_bits
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_vm_page_xbusied
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	orl	%r12d, (%r13)
	jmp	LBB0_10
LBB0_9:
	movq	%r13, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_vm_page_bits_set
LBB0_10:
	movq	_VM_PAGE_BITS_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r15d, %r15d
	jne	LBB0_15
## %bb.11:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	jne	LBB0_15
## %bb.12:
	cmpl	%eax, %ebx
	jne	LBB0_14
## %bb.13:
	movq	%r13, %rdi
	callq	_pmap_clear_modify
LBB0_14:
	movl	$0, 4(%r13)
	movq	_PGA_NOSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vm_page_aflag_clear            ## TAILCALL
LBB0_15:
	cmpl	%eax, %ebx
	je	LBB0_19
## %bb.16:
	movq	%r13, %rdi
	callq	_vm_page_xbusied
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	notl	%r12d
	andl	%r12d, 4(%r13)
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	%r13, %rdi
	movl	%r12d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vm_page_clear_dirty_mask       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DEV_BSIZE,4,2                  ## @DEV_BSIZE
	.comm	_DEV_BSHIFT,4,2                 ## @DEV_BSHIFT
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_VM_PAGE_BITS_ALL,4,2           ## @VM_PAGE_BITS_ALL
	.comm	_PGA_NOSYNC,4,2                 ## @PGA_NOSYNC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_set_validclean         ; -- Begin function vm_page_set_validclean
	.p2align	2
_vm_page_set_validclean:                ; @vm_page_set_validclean
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_vm_page_assert_busied
	cbz	w20, LBB0_18
; %bb.1:
Lloh0:
	adrp	x23, _DEV_BSIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DEV_BSIZE@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_rounddown2
	cmp	w0, w21
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _DEV_BSHIFT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DEV_BSHIFT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	asr	w9, w21, w9
	lsr	w8, w8, w9
	tbnz	w8, #0, LBB0_4
; %bb.3:
	mov	x1, x0
	sub	w2, w21, w0
	mov	x0, x19
	bl	_pmap_zero_page_area
LBB0_4:
	add	w22, w20, w21
	ldr	w1, [x23]
	mov	x0, x22
	bl	_rounddown2
	cmp	w0, w22
	b.eq	LBB0_7
; %bb.5:
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _DEV_BSHIFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DEV_BSHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	asr	w9, w22, w9
	lsr	w8, w8, w9
	tbnz	w8, #0, LBB0_7
; %bb.6:
	ldr	w8, [x23]
	sub	w9, w8, #1
	and	w9, w9, w22
	sub	w2, w8, w9
	mov	x0, x19
	mov	x1, x22
	bl	_pmap_zero_page_area
LBB0_7:
	ldr	w23, [x19]
	mov	x0, x21
	mov	x1, x20
	bl	_vm_page_bits
	mov	x22, x0
	mov	x0, x19
	bl	_vm_page_xbusied
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w8, [x19]
	orr	w8, w8, w22
	str	w8, [x19]
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	mov	x1, x19
	mov	x2, x22
	bl	_vm_page_bits_set
LBB0_10:
Lloh8:
	adrp	x8, _VM_PAGE_BITS_ALL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VM_PAGE_BITS_ALL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cbnz	w21, LBB0_15
; %bb.11:
Lloh11:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w9, w20
	b.ne	LBB0_15
; %bb.12:
	cmp	w23, w8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_pmap_clear_modify
LBB0_14:
	str	wzr, [x19, #4]
Lloh14:
	adrp	x8, _PGA_NOSYNC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PGA_NOSYNC@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_vm_page_aflag_clear
LBB0_15:
	cmp	w23, w8
	b.eq	LBB0_19
; %bb.16:
	mov	x0, x19
	bl	_vm_page_xbusied
	cbz	x0, LBB0_19
; %bb.17:
	ldr	w8, [x19, #4]
	bic	w8, w8, w22
	str	w8, [x19, #4]
LBB0_18:
	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:
	mov	x0, x19
	mov	x1, x22
	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
	b	_vm_page_clear_dirty_mask
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DEV_BSIZE,4,2                  ; @DEV_BSIZE
	.comm	_DEV_BSHIFT,4,2                 ; @DEV_BSHIFT
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_VM_PAGE_BITS_ALL,4,2           ; @VM_PAGE_BITS_ALL
	.comm	_PGA_NOSYNC,4,2                 ; @PGA_NOSYNC
.subsections_via_symbols
