	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swapoff_one
_swapoff_one:                           ## @swapoff_one
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_SA_XLOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_swdev_syscall_lock@GOTPCREL(%rip), %rdi
	callq	_sx_assert
	movq	(%rbx), %r14
	xorl	%eax, %eax
	callq	_vm_free_count
	movq	_swap_pager_avail@GOTPCREL(%rip), %r12
	addq	(%r12), %rax
	movq	_nswap_lowat@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%r14, %rcx
	cmpq	%rcx, %rax
	jge	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_2:
	movq	_sw_dev_mtx@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_mtx_lock
	movq	_SW_CLOSING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%rbx)
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_blist_fill
	subq	%rax, (%r12)
	movq	_swap_total@GOTPCREL(%rip), %rax
	subl	%r14d, (%rax)
	movq	%r15, %rdi
	callq	_mtx_unlock
	movq	%rbx, %rdi
	callq	_swap_pager_swapoff
	movq	_curthread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	*24(%rbx)
	movq	%r15, %rdi
	callq	_mtx_lock
	movq	$0, 16(%rbx)
	movq	_sw_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_swtailq@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movq	_nswapdev@GOTPCREL(%rip), %rax
	decq	(%rax)
	jne	LBB0_4
## %bb.3:
	movq	_swap_pager_full@GOTPCREL(%rip), %rax
	movl	$2, (%rax)
	movq	_swap_pager_almost_full@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_4:
	movq	_swdevhd@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	$0, (%rax)
LBB0_6:
	movq	_sw_dev_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	movl	8(%rbx), %edi
	callq	_blist_destroy
	movq	_M_VMPGDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_free
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_swdev_syscall_lock,4,2         ## @swdev_syscall_lock
	.comm	_SA_XLOCKED,4,2                 ## @SA_XLOCKED
	.comm	_swap_pager_avail,8,3           ## @swap_pager_avail
	.comm	_nswap_lowat,8,3                ## @nswap_lowat
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sw_dev_mtx,4,2                 ## @sw_dev_mtx
	.comm	_SW_CLOSING,4,2                 ## @SW_CLOSING
	.comm	_swap_total,4,2                 ## @swap_total
	.comm	_curthread,4,2                  ## @curthread
	.comm	_swtailq,4,2                    ## @swtailq
	.comm	_sw_list,4,2                    ## @sw_list
	.comm	_nswapdev,8,3                   ## @nswapdev
	.comm	_swap_pager_full,4,2            ## @swap_pager_full
	.comm	_swap_pager_almost_full,4,2     ## @swap_pager_almost_full
	.comm	_swdevhd,8,3                    ## @swdevhd
	.comm	_M_VMPGDATA,4,2                 ## @M_VMPGDATA
	.comm	_LK_EXCLUSIVE,4,2               ## @LK_EXCLUSIVE
	.comm	_LK_RETRY,4,2                   ## @LK_RETRY
	.no_dead_strip	_swapoff_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swapoff_one
_swapoff_one:                           ; @swapoff_one
	.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	x19, x0
Lloh0:
	adrp	x8, _SA_XLOCKED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SA_XLOCKED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, _swdev_syscall_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _swdev_syscall_lock@GOTPAGEOFF]
	bl	_sx_assert
	ldr	x20, [x19]
	bl	_vm_free_count
Lloh5:
	adrp	x22, _swap_pager_avail@GOTPAGE
Lloh6:
	ldr	x22, [x22, _swap_pager_avail@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x8, x8, x0
Lloh7:
	adrp	x9, _nswap_lowat@GOTPAGE
Lloh8:
	ldr	x9, [x9, _nswap_lowat@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x9, x9, x20
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_2:
Lloh13:
	adrp	x21, _sw_dev_mtx@GOTPAGE
Lloh14:
	ldr	x21, [x21, _sw_dev_mtx@GOTPAGEOFF]
	mov	x0, x21
	bl	_mtx_lock
Lloh15:
	adrp	x8, _SW_CLOSING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SW_CLOSING@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
	ldr	w0, [x19, #8]
	mov	w1, #0
	mov	x2, x20
	bl	_blist_fill
	ldr	x8, [x22]
	sub	x8, x8, x0
	str	x8, [x22]
Lloh18:
	adrp	x8, _swap_total@GOTPAGE
Lloh19:
	ldr	x8, [x8, _swap_total@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, w20
	str	w9, [x8]
	mov	x0, x21
	bl	_mtx_unlock
	mov	x0, x19
	bl	_swap_pager_swapoff
	ldr	x8, [x19, #24]
Lloh20:
	adrp	x9, _curthread@GOTPAGE
Lloh21:
	ldr	x9, [x9, _curthread@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x9]
	mov	x1, x19
	blr	x8
	mov	x0, x21
	bl	_mtx_lock
	str	xzr, [x19, #16]
Lloh23:
	adrp	x8, _sw_list@GOTPAGE
Lloh24:
	ldr	x8, [x8, _sw_list@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x0, _swtailq@GOTPAGE
Lloh27:
	ldr	x0, [x0, _swtailq@GOTPAGEOFF]
	mov	x1, x19
	bl	_TAILQ_REMOVE
Lloh28:
	adrp	x8, _nswapdev@GOTPAGE
Lloh29:
	ldr	x8, [x8, _nswapdev@GOTPAGEOFF]
	ldr	x9, [x8]
	subs	x9, x9, #1
	str	x9, [x8]
	b.ne	LBB0_4
; %bb.3:
Lloh30:
	adrp	x8, _swap_pager_full@GOTPAGE
Lloh31:
	ldr	x8, [x8, _swap_pager_full@GOTPAGEOFF]
	mov	w9, #2
Lloh32:
	str	w9, [x8]
Lloh33:
	adrp	x8, _swap_pager_almost_full@GOTPAGE
Lloh34:
	ldr	x8, [x8, _swap_pager_almost_full@GOTPAGEOFF]
	mov	w9, #1
Lloh35:
	str	w9, [x8]
LBB0_4:
Lloh36:
	adrp	x8, _swdevhd@GOTPAGE
Lloh37:
	ldr	x8, [x8, _swdevhd@GOTPAGEOFF]
	ldr	x9, [x8]
	cmp	x9, x19
	b.ne	LBB0_6
; %bb.5:
	str	xzr, [x8]
LBB0_6:
Lloh38:
	adrp	x0, _sw_dev_mtx@GOTPAGE
Lloh39:
	ldr	x0, [x0, _sw_dev_mtx@GOTPAGEOFF]
	bl	_mtx_unlock
	ldr	w0, [x19, #8]
	bl	_blist_destroy
Lloh40:
	adrp	x8, _M_VMPGDATA@GOTPAGE
Lloh41:
	ldr	x8, [x8, _M_VMPGDATA@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_free
	mov	w0, #0
LBB0_7:
	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 AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_swdev_syscall_lock,4,2         ; @swdev_syscall_lock
	.comm	_SA_XLOCKED,4,2                 ; @SA_XLOCKED
	.comm	_swap_pager_avail,8,3           ; @swap_pager_avail
	.comm	_nswap_lowat,8,3                ; @nswap_lowat
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sw_dev_mtx,4,2                 ; @sw_dev_mtx
	.comm	_SW_CLOSING,4,2                 ; @SW_CLOSING
	.comm	_swap_total,4,2                 ; @swap_total
	.comm	_curthread,4,2                  ; @curthread
	.comm	_swtailq,4,2                    ; @swtailq
	.comm	_sw_list,4,2                    ; @sw_list
	.comm	_nswapdev,8,3                   ; @nswapdev
	.comm	_swap_pager_full,4,2            ; @swap_pager_full
	.comm	_swap_pager_almost_full,4,2     ; @swap_pager_almost_full
	.comm	_swdevhd,8,3                    ; @swdevhd
	.comm	_M_VMPGDATA,4,2                 ; @M_VMPGDATA
	.comm	_LK_EXCLUSIVE,4,2               ; @LK_EXCLUSIVE
	.comm	_LK_RETRY,4,2                   ; @LK_RETRY
	.no_dead_strip	_swapoff_one
.subsections_via_symbols
