	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swap_pager_dealloc
_swap_pager_dealloc:                    ## @swap_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, %rbx
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movq	_OBJ_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%rbx), %eax
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_VM_OBJECT_WUNLOCK
	movq	_sw_alloc_sx@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_sx_xlock
	movq	8(%rbx), %rdi
	callq	_NOBJLIST
	movq	_pager_object_list@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movq	%r14, %rdi
	callq	_sx_xunlock
	movq	%rbx, %rdi
	callq	_VM_OBJECT_WLOCK
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_vm_object_pip_wait
	movq	%rbx, %rdi
	callq	_swp_pager_meta_free_all
	movq	$0, 8(%rbx)
	movq	_OBJT_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJ_DEAD,4,2                   ## @OBJ_DEAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dealloc of reachable obj"

	.comm	_sw_alloc_sx,4,2                ## @sw_alloc_sx
	.comm	_pager_object_list,4,2          ## @pager_object_list
L_.str.1:                               ## @.str.1
	.asciz	"swpdea"

	.comm	_OBJT_DEAD,4,2                  ## @OBJT_DEAD
	.no_dead_strip	_swap_pager_dealloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swap_pager_dealloc
_swap_pager_dealloc:                    ; @swap_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_ASSERT_WLOCKED
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _OBJ_DEAD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OBJ_DEAD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_VM_OBJECT_WUNLOCK
Lloh5:
	adrp	x20, _sw_alloc_sx@GOTPAGE
Lloh6:
	ldr	x20, [x20, _sw_alloc_sx@GOTPAGEOFF]
	mov	x0, x20
	bl	_sx_xlock
	ldr	x0, [x19, #8]
	bl	_NOBJLIST
Lloh7:
	adrp	x8, _pager_object_list@GOTPAGE
Lloh8:
	ldr	x8, [x8, _pager_object_list@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_TAILQ_REMOVE
	mov	x0, x20
	bl	_sx_xunlock
	mov	x0, x19
	bl	_VM_OBJECT_WLOCK
LBB0_2:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_vm_object_pip_wait
	mov	x0, x19
	bl	_swp_pager_meta_free_all
	str	xzr, [x19, #8]
Lloh12:
	adrp	x8, _OBJT_DEAD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OBJT_DEAD@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJ_DEAD,4,2                   ; @OBJ_DEAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dealloc of reachable obj"

	.comm	_sw_alloc_sx,4,2                ; @sw_alloc_sx
	.comm	_pager_object_list,4,2          ; @pager_object_list
l_.str.1:                               ; @.str.1
	.asciz	"swpdea"

	.comm	_OBJT_DEAD,4,2                  ; @OBJT_DEAD
	.no_dead_strip	_swap_pager_dealloc
.subsections_via_symbols
