	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_fault_dontneed
_vm_fault_dontneed:                     ## @vm_fault_dontneed
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	movq	%r14, %rdi
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movq	16(%rbx), %r15
	cmpq	%r14, %r15
	je	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_VM_OBJECT_TRYWLOCK
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_VM_OBJECT_WUNLOCK
	movq	%r15, %rdi
	callq	_VM_OBJECT_WLOCK
	movq	%r14, %rdi
	callq	_VM_OBJECT_WLOCK
LBB0_3:
	movq	_OBJ_FICTITIOUS@GOTPCREL(%rip), %rax
	movq	_OBJ_UNMANAGED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%r15)
	jne	LBB0_14
## %bb.4:
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	movq	_VM_FAULT_DONTNEED_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_MAXPAGESIZES@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jl	LBB0_6
## %bb.5:
	movq	_pagesizes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	cmpq	%rax, %r13
	cmovleq	%rax, %r13
LBB0_6:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_rounddown2
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	subq	%rax, %r12
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_ptoa
	addq	%r14, %rax
	movq	%r13, %rcx
	subq	%rax, %rcx
	cmpq	%rcx, %r12
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jl	LBB0_14
## %bb.7:
	movq	8(%rbx), %r8
	movq	(%r8), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	subq	%rax, %rcx
	jle	LBB0_14
## %bb.8:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rsi, %r12
	movq	%rsi, %rdx
	subq	%r13, %r12
	cmpq	%r13, %rcx
	cmovlq	%rax, %r12
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	_MADV_DONTNEED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rsi
	movq	%r8, %r13
	callq	_pmap_advise
	movl	8(%r13), %edi
	callq	_OFF_TO_IDX
	movq	%rax, %rbx
	subq	(%r13), %r12
	movq	%r12, %rdi
	callq	_atop
	addq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_vm_page_find_least
	movq	%rax, %rbx
	movl	8(%r13), %edi
	callq	_OFF_TO_IDX
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	subq	%rax, %rdi
	callq	_atop
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.9:
	movq	%rax, %r12
	addq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	callq	_vm_page_unlock
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rbx
	testq	%r13, %r13
	je	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, (%rbx)
	jge	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_listq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_TAILQ_NEXT
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_vm_page_all_valid
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	callq	_vm_page_busied
	testq	%rax, %rax
	jne	LBB0_13
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	callq	_vm_page_lock
	movq	%rbx, %rdi
	callq	_vm_page_inactive
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	callq	_vm_page_deactivate
	jmp	LBB0_18
LBB0_14:
	cmpq	%r14, %r15
	je	LBB0_19
## %bb.15:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_VM_OBJECT_WUNLOCK              ## TAILCALL
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJ_FICTITIOUS,4,2             ## @OBJ_FICTITIOUS
	.comm	_OBJ_UNMANAGED,4,2              ## @OBJ_UNMANAGED
	.comm	_VM_FAULT_DONTNEED_MIN,8,3      ## @VM_FAULT_DONTNEED_MIN
	.comm	_MAXPAGESIZES,4,2               ## @MAXPAGESIZES
	.comm	_pagesizes,8,3                  ## @pagesizes
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_MADV_DONTNEED,4,2              ## @MADV_DONTNEED
	.comm	_listq,4,2                      ## @listq
	.no_dead_strip	_vm_fault_dontneed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vm_fault_dontneed
_vm_fault_dontneed:                     ; @vm_fault_dontneed
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	ldr	x19, [x0, #24]
	mov	x0, x19
	bl	_VM_OBJECT_ASSERT_WLOCKED
	ldr	x20, [x21, #16]
	cmp	x20, x19
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_VM_OBJECT_TRYWLOCK
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_VM_OBJECT_WUNLOCK
	mov	x0, x20
	bl	_VM_OBJECT_WLOCK
	mov	x0, x19
	bl	_VM_OBJECT_WLOCK
LBB0_3:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _OBJ_FICTITIOUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OBJ_FICTITIOUS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _OBJ_UNMANAGED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _OBJ_UNMANAGED@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_17
; %bb.4:
Lloh6:
	adrp	x8, _VM_FAULT_DONTNEED_MIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VM_FAULT_DONTNEED_MIN@GOTPAGEOFF]
Lloh8:
	ldr	x25, [x8]
Lloh9:
	adrp	x8, _MAXPAGESIZES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAXPAGESIZES@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _pagesizes@GOTPAGE
Lloh13:
	ldr	x8, [x8, _pagesizes@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	cmp	x25, x8
	csel	x25, x25, x8, gt
LBB0_6:
	mov	x0, x23
	mov	x1, x25
	bl	_rounddown2
	mov	x24, x0
	sub	x23, x23, x0
Lloh15:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	x26, [x8]
	mov	x0, x22
	bl	_ptoa
	add	x8, x26, x0
	sub	x8, x25, x8
	cmp	x23, x8
	b.lt	LBB0_17
; %bb.7:
	ldr	x23, [x21, #8]
	ldr	x8, [x23]
	subs	x9, x24, x8
	b.le	LBB0_17
; %bb.8:
	sub	x10, x24, x25
	cmp	x9, x25
	csel	x22, x8, x10, lt
	ldr	x8, [x21]
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _MADV_DONTNEED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MADV_DONTNEED@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x1, x22
	mov	x2, x24
	bl	_pmap_advise
	ldr	w0, [x23, #8]
	bl	_OFF_TO_IDX
	mov	x21, x0
	ldr	x8, [x23]
	sub	x0, x22, x8
	bl	_atop
	add	x1, x0, x21
	mov	x0, x20
	bl	_vm_page_find_least
	mov	x21, x0
	ldr	w0, [x23, #8]
	bl	_OFF_TO_IDX
	mov	x22, x0
	ldr	x8, [x23]
	sub	x0, x24, x8
	bl	_atop
	cbz	x21, LBB0_17
; %bb.9:
	add	x23, x0, x22
Lloh21:
	adrp	x24, _listq@GOTPAGE
Lloh22:
	ldr	x24, [x24, _listq@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x21
	bl	_vm_page_unlock
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x21, x22
	cbz	x22, LBB0_17
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	cmp	x8, x23
	b.ge	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w1, [x24]
	mov	x0, x21
	bl	_TAILQ_NEXT
	mov	x22, x0
	mov	x0, x21
	bl	_vm_page_all_valid
	cbz	w0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x21
	bl	_vm_page_busied
	cbnz	x0, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x21
	bl	_vm_page_lock
	mov	x0, x21
	bl	_vm_page_inactive
	cbnz	w0, LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x21
	bl	_vm_page_deactivate
	b	LBB0_10
LBB0_17:
	cmp	x20, x19
	b.eq	LBB0_19
; %bb.18:
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_VM_OBJECT_WUNLOCK
LBB0_19:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJ_FICTITIOUS,4,2             ; @OBJ_FICTITIOUS
	.comm	_OBJ_UNMANAGED,4,2              ; @OBJ_UNMANAGED
	.comm	_VM_FAULT_DONTNEED_MIN,8,3      ; @VM_FAULT_DONTNEED_MIN
	.comm	_MAXPAGESIZES,4,2               ; @MAXPAGESIZES
	.comm	_pagesizes,8,3                  ; @pagesizes
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_MADV_DONTNEED,4,2              ; @MADV_DONTNEED
	.comm	_listq,4,2                      ; @listq
	.no_dead_strip	_vm_fault_dontneed
.subsections_via_symbols
