	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_release                ## -- Begin function vm_page_release
	.p2align	4, 0x90
_vm_page_release:                       ## @vm_page_release
	.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	%esi, %ebx
	movq	%rdi, %r15
	movq	_VPO_UNMANAGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%r15), %eax
	sete	%dil
	movq	%r15, %rsi
	callq	_KASSERT
	movq	_VPR_TRYFREE@GOTPCREL(%rip), %rax
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.1:
	leaq	8(%r15), %r13
	movq	%r13, %rdi
	callq	_atomic_load_ptr
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_vm_page_busied
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_VM_OBJECT_TRYWLOCK
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rbx, (%r13)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_VM_OBJECT_WUNLOCK
	movq	%r13, %rdi
	callq	_atomic_load_ptr
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_9
LBB0_2:
	xorl	%r12d, %r12d
	jmp	LBB0_9
LBB0_8:
	movq	%rbx, %r12
LBB0_9:
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	callq	___predict_true
	testq	%rax, %rax
	je	LBB0_10
## %bb.23:
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_vm_page_release_locked
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_VM_OBJECT_WUNLOCK              ## TAILCALL
LBB0_10:
	leaq	4(%r15), %r13
	movl	4(%r15), %edi
	movl	%edi, -44(%rbp)
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %ebx
	callq	_VPRC_WIRE_COUNT
	xorl	%edi, %edi
	testl	%eax, %eax
	setg	%dil
	movq	%r15, %rsi
	callq	_KASSERT
	xorl	%r12d, %r12d
	testl	%ebx, %ebx
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	-44(%rbp), %edi
	callq	_VPRC_WIRE_COUNT
	movb	$1, %r14b
	cmpl	$1, %eax
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %rdi
	callq	_vm_page_lock
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_vm_page_release_toq
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	xorl	%r14d, %r14d
	movl	$1, %r12d
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	-44(%rbp), %edx
	decl	%edx
	movq	%r13, %rdi
	leaq	-44(%rbp), %rsi
	callq	_atomic_fcmpset_rel_int
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	-44(%rbp), %edi
	jmp	LBB0_11
LBB0_17:
	testb	%r14b, %r14b
	jne	LBB0_19
## %bb.18:
	movq	%r15, %rdi
	callq	_vm_page_unlock
LBB0_19:
	movl	-44(%rbp), %edi
	callq	_VPRC_WIRE_COUNT
	cmpl	$1, %eax
	jne	LBB0_22
## %bb.20:
	movl	$1, %edi
	callq	_vm_wire_sub
	cmpl	$1, -44(%rbp)
	jne	LBB0_22
## %bb.21:
	movq	%r15, %rdi
	callq	_vm_page_free
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VPO_UNMANAGED,4,2              ## @VPO_UNMANAGED
	.comm	_VPR_TRYFREE,4,2                ## @VPR_TRYFREE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_release                ; -- Begin function vm_page_release
	.p2align	2
_vm_page_release:                       ; @vm_page_release
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _VPO_UNMANAGED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VPO_UNMANAGED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	mov	x1, x19
	bl	_KASSERT
Lloh3:
	adrp	x8, _VPR_TRYFREE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VPR_TRYFREE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.1:
	add	x22, x19, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_atomic_load_ptr
	mov	x21, x0
	cbz	x0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_vm_page_busied
	cbnz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_VM_OBJECT_TRYWLOCK
	cbz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22]
	cmp	x8, x21
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_VM_OBJECT_WUNLOCK
	b	LBB0_2
LBB0_7:
	mov	x21, #0
LBB0_8:
	cmp	x21, #0
	cset	w0, ne
	bl	___predict_true
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	bl	_vm_page_release_locked
	mov	x0, x21
	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
	add	sp, sp, #80
	b	_VM_OBJECT_WUNLOCK
LBB0_10:
	mov	w22, #0
	mov	x21, x19
	ldr	w0, [x21, #4]!
	str	w0, [sp, #12]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	bl	_VPRC_WIRE_COUNT
	cmp	w0, #0
	cset	w0, gt
	mov	x1, x19
	bl	_KASSERT
	cbnz	w22, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [sp, #12]
	bl	_VPRC_WIRE_COUNT
	cmp	w0, #1
	b.ne	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_vm_page_lock
	mov	x0, x19
	mov	x1, x20
	bl	_vm_page_release_toq
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w23, #0
	mov	w22, #1
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [sp, #12]
	sub	w2, w8, #1
	add	x1, sp, #12
	mov	x0, x21
	bl	_atomic_fcmpset_rel_int
	cbnz	w0, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [sp, #12]
	b	LBB0_11
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w22, #0
	mov	w23, #1
	b	LBB0_15
LBB0_18:
	tbnz	w23, #0, LBB0_20
; %bb.19:
	mov	x0, x19
	bl	_vm_page_unlock
LBB0_20:
	ldr	w0, [sp, #12]
	bl	_VPRC_WIRE_COUNT
	cmp	w0, #1
	b.ne	LBB0_23
; %bb.21:
	bl	_vm_wire_sub
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.ne	LBB0_23
; %bb.22:
	mov	x0, x19
	bl	_vm_page_free
LBB0_23:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VPO_UNMANAGED,4,2              ; @VPO_UNMANAGED
	.comm	_VPR_TRYFREE,4,2                ; @VPR_TRYFREE
.subsections_via_symbols
