	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_advise                 ## -- Begin function vm_page_advise
	.p2align	4, 0x90
_vm_page_advise:                        ## @vm_page_advise
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_vm_page_assert_locked
	movl	8(%rbx), %edi
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movq	_MADV_FREE@GOTPCREL(%rip), %r15
	cmpl	%r14d, (%r15)
	jne	LBB0_8
## %bb.1:
	movq	%rbx, %rdi
	callq	_vm_page_undirty
	jmp	LBB0_2
LBB0_8:
	movq	_MADV_DONTNEED@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_9
LBB0_2:
	movq	_PGA_REFERENCED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_vm_page_aflag_clear
	cmpl	%r14d, (%r15)
	je	LBB0_6
## %bb.3:
	cmpq	$0, (%rbx)
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_pmap_is_modified
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_vm_page_dirty
LBB0_6:
	cmpq	$0, (%rbx)
	je	LBB0_7
## %bb.11:
	movq	%rbx, %rdi
	callq	_vm_page_in_laundry
	testl	%eax, %eax
	jne	LBB0_12
## %bb.13:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vm_page_launder                ## TAILCALL
LBB0_7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vm_page_deactivate_noreuse     ## TAILCALL
LBB0_9:
	movq	_MADV_WILLNEED@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_12
## %bb.10:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vm_page_activate               ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MADV_FREE,4,2                  ## @MADV_FREE
	.comm	_MADV_DONTNEED,4,2              ## @MADV_DONTNEED
	.comm	_MADV_WILLNEED,4,2              ## @MADV_WILLNEED
	.comm	_PGA_REFERENCED,4,2             ## @PGA_REFERENCED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_advise                 ; -- Begin function vm_page_advise
	.p2align	2
_vm_page_advise:                        ; @vm_page_advise
	.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, x1
	mov	x19, x0
	bl	_vm_page_assert_locked
	ldr	w0, [x19, #8]
	bl	_VM_OBJECT_ASSERT_WLOCKED
Lloh0:
	adrp	x21, _MADV_FREE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MADV_FREE@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_vm_page_undirty
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _MADV_DONTNEED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MADV_DONTNEED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_11
LBB0_3:
Lloh5:
	adrp	x8, _PGA_REFERENCED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PGA_REFERENCED@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vm_page_aflag_clear
	ldr	w8, [x21]
	cmp	w8, w20
	b.eq	LBB0_7
; %bb.4:
	ldr	x8, [x19]
	cbnz	x8, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_pmap_is_modified
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_vm_page_dirty
LBB0_7:
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_vm_page_in_laundry
	cbnz	w0, LBB0_13
; %bb.9:
	mov	x0, 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
	b	_vm_page_launder
LBB0_10:
	mov	x0, 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
	b	_vm_page_deactivate_noreuse
LBB0_11:
Lloh8:
	adrp	x8, _MADV_WILLNEED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MADV_WILLNEED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_13
; %bb.12:
	mov	x0, 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
	b	_vm_page_activate
LBB0_13:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MADV_FREE,4,2                  ; @MADV_FREE
	.comm	_MADV_DONTNEED,4,2              ; @MADV_DONTNEED
	.comm	_MADV_WILLNEED,4,2              ; @MADV_WILLNEED
	.comm	_PGA_REFERENCED,4,2             ; @PGA_REFERENCED
.subsections_via_symbols
