	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_set_invalid            ## -- Begin function vm_page_set_invalid
	.p2align	4, 0x90
_vm_page_set_invalid:                   ## @vm_page_set_invalid
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	24(%rdi), %r15
	movq	%r15, %rdi
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movq	%rbx, %rdi
	callq	_vm_page_assert_busied
	testl	%r12d, %r12d
	jne	LBB0_4
## %bb.1:
	movq	_OBJT_VNODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%r15)
	jne	LBB0_4
## %bb.2:
	movl	16(%rbx), %edi
	callq	_IDX_TO_OFF
	movslq	%r14d, %rcx
	addq	%rax, %rcx
	cmpq	16(%r15), %rcx
	jge	LBB0_3
LBB0_4:
	movl	%r12d, %edi
	movl	%r14d, %esi
	callq	_vm_page_bits
	movq	%rax, %r14
	cmpq	$0, 8(%r15)
	jne	LBB0_6
	jmp	LBB0_9
LBB0_3:
	movq	_VM_PAGE_BITS_ALL@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	cmpq	$0, 8(%r15)
	je	LBB0_9
LBB0_6:
	movq	%rbx, %rdi
	callq	_vm_page_all_valid
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_pmap_remove_all
	jmp	LBB0_11
LBB0_9:
	testq	%r14, %r14
	jne	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_vm_page_all_valid
	movl	$1, %edi
	testq	%rax, %rax
	jne	LBB0_12
LBB0_11:
	movq	%rbx, %rdi
	callq	_pmap_page_is_mapped
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
LBB0_12:
	movq	%rbx, %rsi
	callq	_KASSERT
	movq	%rbx, %rdi
	callq	_vm_page_xbusied
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	notq	%r14
	movdqu	(%rbx), %xmm0
	movq	%r14, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	pand	%xmm0, %xmm1
	movdqu	%xmm1, (%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_vm_page_bits_clear
	leaq	8(%rbx), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vm_page_bits_clear             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJT_VNODE,8,3                 ## @OBJT_VNODE
	.comm	_VM_PAGE_BITS_ALL,8,3           ## @VM_PAGE_BITS_ALL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_set_invalid            ; -- Begin function vm_page_set_invalid
	.p2align	2
_vm_page_set_invalid:                   ; @vm_page_set_invalid
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x21, [x0, #24]
	mov	x0, x21
	bl	_VM_OBJECT_ASSERT_WLOCKED
	mov	x0, x19
	bl	_vm_page_assert_busied
	cbnz	w22, LBB0_3
; %bb.1:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _OBJT_VNODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OBJT_VNODE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x19, #16]
	bl	_IDX_TO_OFF
	add	x8, x0, w20, sxtw
	ldr	x9, [x21, #16]
	cmp	x8, x9
	b.ge	LBB0_4
LBB0_3:
	mov	x0, x22
	mov	x1, x20
	bl	_vm_page_bits
	mov	x20, x0
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_5
	b	LBB0_8
LBB0_4:
Lloh3:
	adrp	x8, _VM_PAGE_BITS_ALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VM_PAGE_BITS_ALL@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x8]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_8
LBB0_5:
	mov	x0, x19
	bl	_vm_page_all_valid
	cbz	x0, LBB0_8
; %bb.6:
	cbz	x20, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_pmap_remove_all
	b	LBB0_9
LBB0_8:
	cbz	x20, LBB0_13
LBB0_9:
	mov	x0, x19
	bl	_pmap_page_is_mapped
	cmp	w0, #0
	cset	w0, eq
LBB0_10:
	mov	x1, x19
	bl	_KASSERT
	mov	x0, x19
	bl	_vm_page_xbusied
	cbz	x0, LBB0_12
; %bb.11:
	mvn	x8, x20
	ldr	q0, [x19]
	dup.2d	v1, x8
	and.16b	v0, v0, v1
	str	q0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x0, x19
	mov	x1, x19
	mov	x2, x20
	bl	_vm_page_bits_clear
	add	x1, x19, #8
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_vm_page_bits_clear
LBB0_13:
	mov	x0, x19
	bl	_vm_page_all_valid
	cbz	x0, LBB0_9
; %bb.14:
	mov	w0, #1
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJT_VNODE,8,3                 ; @OBJT_VNODE
	.comm	_VM_PAGE_BITS_ALL,8,3           ; @VM_PAGE_BITS_ALL
.subsections_via_symbols
