	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_release_locked         ## -- Begin function vm_page_release_locked
	.p2align	4, 0x90
_vm_page_release_locked:                ## @vm_page_release_locked
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movq	_VPO_UNMANAGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%rbx), %eax
	sete	%dil
	movq	%rbx, %rsi
	callq	_KASSERT
	movq	%rbx, %rdi
	callq	_vm_page_unwire_noq
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	_VPR_TRYFREE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.2:
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_pmap_page_is_mapped
	testl	%eax, %eax
	jne	LBB0_6
LBB0_4:
	cmpq	$0, 8(%rbx)
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_vm_page_busied
	testl	%eax, %eax
	je	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_vm_page_lock
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_vm_page_release_toq
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vm_page_unlock                 ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vm_page_free                   ## TAILCALL
	.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_locked         ; -- Begin function vm_page_release_locked
	.p2align	2
_vm_page_release_locked:                ; @vm_page_release_locked
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0, #16]
	bl	_VM_OBJECT_ASSERT_WLOCKED
	ldr	w8, [x19]
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
	mov	x0, x19
	bl	_vm_page_unwire_noq
	cbz	x0, LBB0_7
; %bb.1:
Lloh3:
	adrp	x8, _VPR_TRYFREE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VPR_TRYFREE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_pmap_page_is_mapped
	cbnz	w0, LBB0_6
LBB0_4:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_vm_page_busied
	cbz	w0, LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_vm_page_lock
	mov	x0, x19
	mov	x1, x20
	bl	_vm_page_release_toq
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vm_page_unlock
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vm_page_free
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VPO_UNMANAGED,4,2              ; @VPO_UNMANAGED
	.comm	_VPR_TRYFREE,4,2                ; @VPR_TRYFREE
.subsections_via_symbols
