	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dev_pager_dealloc
_dev_pager_dealloc:                     ## @dev_pager_dealloc
	.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
	movq	%rdi, %r14
	callq	_VM_OBJECT_WUNLOCK
	movq	24(%r14), %rax
	movl	20(%r14), %edi
	callq	*(%rax)
	movq	_dev_pager_mtx@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_mtx_lock
	movq	_pager_object_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_dev_pager_object_list@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_TAILQ_REMOVE
	movq	%rbx, %rdi
	callq	_mtx_unlock
	movq	%r14, %rdi
	callq	_VM_OBJECT_WLOCK
	movq	(%r14), %rax
	movq	_OBJT_DEVICE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	leaq	16(%r14), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_dev_pager_free_page
	jmp	LBB0_3
LBB0_4:
	movq	$0, 8(%r14)
	movq	_OBJT_DEAD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_pager_mtx,4,2              ## @dev_pager_mtx
	.comm	_dev_pager_object_list,4,2      ## @dev_pager_object_list
	.comm	_pager_object_list,4,2          ## @pager_object_list
	.comm	_OBJT_DEVICE,8,3                ## @OBJT_DEVICE
	.comm	_OBJT_DEAD,8,3                  ## @OBJT_DEAD
	.no_dead_strip	_dev_pager_dealloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dev_pager_dealloc
_dev_pager_dealloc:                     ; @dev_pager_dealloc
	.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	x19, x0
	bl	_VM_OBJECT_WUNLOCK
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w0, [x19, #20]
	blr	x8
Lloh0:
	adrp	x20, _dev_pager_mtx@GOTPAGE
Lloh1:
	ldr	x20, [x20, _dev_pager_mtx@GOTPAGEOFF]
	mov	x0, x20
	bl	_mtx_lock
Lloh2:
	adrp	x8, _pager_object_list@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pager_object_list@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x0, _dev_pager_object_list@GOTPAGE
Lloh6:
	ldr	x0, [x0, _dev_pager_object_list@GOTPAGEOFF]
	mov	x1, x19
	bl	_TAILQ_REMOVE
	mov	x0, x20
	bl	_mtx_unlock
	mov	x0, x19
	bl	_VM_OBJECT_WLOCK
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _OBJT_DEVICE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _OBJT_DEVICE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	add	x20, x19, #16
	mov	x0, x20
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_4
; %bb.2:
	mov	x1, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_dev_pager_free_page
	mov	x0, x20
	bl	_TAILQ_FIRST
	mov	x1, x0
	cbnz	x0, LBB0_3
LBB0_4:
Lloh10:
	adrp	x8, _OBJT_DEAD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OBJT_DEAD@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	stp	x8, xzr, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_pager_mtx,4,2              ; @dev_pager_mtx
	.comm	_dev_pager_object_list,4,2      ; @dev_pager_object_list
	.comm	_pager_object_list,4,2          ; @pager_object_list
	.comm	_OBJT_DEVICE,8,3                ; @OBJT_DEVICE
	.comm	_OBJT_DEAD,8,3                  ; @OBJT_DEAD
	.no_dead_strip	_dev_pager_dealloc
.subsections_via_symbols
