	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_set_valid_range        ## -- Begin function vm_page_set_valid_range
	.p2align	4, 0x90
_vm_page_set_valid_range:               ## @vm_page_set_valid_range
	.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_9
## %bb.1:
	movq	_DEV_BSIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %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), %r12d
	movl	(%rbx), %esi
	movl	%r12d, %edi
	callq	_rounddown2
	cmpl	%r12d, %eax
	je	LBB0_7
## %bb.5:
	movl	(%r13), %eax
	movq	_DEV_BSHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%r12d, %edx
	sarl	%cl, %edx
	btl	%edx, %eax
	jb	LBB0_7
## %bb.6:
	movl	(%rbx), %edx
	leal	-1(%rdx), %eax
	andl	%r12d, %eax
	subl	%eax, %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_pmap_zero_page_area
LBB0_7:
	movl	(%r13), %ebx
	notl	%ebx
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_vm_page_bits
	andl	%ebx, %eax
	xorl	%edi, %edi
	andl	4(%r13), %eax
	sete	%dil
	movq	%r13, %rsi
	callq	_KASSERT
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_vm_page_bits
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_vm_page_xbusied
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	orl	%r14d, (%r13)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r13, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vm_page_bits_set               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DEV_BSIZE,4,2                  ## @DEV_BSIZE
	.comm	_DEV_BSHIFT,4,2                 ## @DEV_BSHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_set_valid_range        ; -- Begin function vm_page_set_valid_range
	.p2align	2
_vm_page_set_valid_range:               ; @vm_page_set_valid_range
	.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_9
; %bb.1:
Lloh0:
	adrp	x23, _DEV_BSIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DEV_BSIZE@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_rounddown2
Lloh2:
	adrp	x24, _DEV_BSHIFT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _DEV_BSHIFT@GOTPAGEOFF]
	cmp	w0, w21
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [x19]
	ldr	w9, [x24]
	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]
	ldr	w9, [x24]
	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	w22, [x19]
	mov	x0, x21
	mov	x1, x20
	bl	_vm_page_bits
	bic	w8, w0, w22
	ldr	w9, [x19, #4]
	tst	w8, w9
	cset	w0, eq
	mov	x1, x19
	bl	_KASSERT
	mov	x0, x21
	mov	x1, x20
	bl	_vm_page_bits
	mov	x20, x0
	mov	x0, x19
	bl	_vm_page_xbusied
	cbz	x0, LBB0_10
; %bb.8:
	ldr	w8, [x19]
	orr	w8, w8, w20
	str	w8, [x19]
LBB0_9:
	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_10:
	mov	x0, x19
	mov	x1, x19
	mov	x2, x20
	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_bits_set
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DEV_BSIZE,4,2                  ; @DEV_BSIZE
	.comm	_DEV_BSHIFT,4,2                 ; @DEV_BSHIFT
.subsections_via_symbols
