	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swp_pager_async_iodone
_swp_pager_async_iodone:                ## @swp_pager_async_iodone
	.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
	movq	%rdi, %r15
	movq	_BIO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_3
## %bb.1:
	movq	8(%r15), %r8
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r8
	je	LBB0_3
## %bb.2:
	movq	_BIO_READ@GOTPCREL(%rip), %rax
	movq	16(%r15), %rdx
	movq	80(%r15), %rcx
	cmpq	(%rax), %rdx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	88(%r15), %rdx
	leaq	L_.str(%rip), %rdi
	callq	_printf
LBB0_3:
	movq	%r15, %rdi
	callq	_buf_mapped
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	24(%r15), %esi
	movl	72(%r15), %edi
	callq	_pmap_qremove
	cmpl	$0, 24(%r15)
	jne	LBB0_7
	jmp	LBB0_24
LBB0_5:
	movq	64(%r15), %rax
	movq	%rax, 72(%r15)
	cmpl	$0, 24(%r15)
	je	LBB0_24
LBB0_7:
	movq	56(%r15), %rax
	movq	(%rax), %rax
	movq	16(%rax), %r14
	movq	%r14, %rdi
	callq	_VM_OBJECT_WLOCK
	movl	24(%r15), %esi
	testl	%esi, %esi
	jle	LBB0_22
## %bb.8:
	xorl	%r13d, %r13d
	movq	_BIO_READ@GOTPCREL(%rip), %r12
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	callq	_vm_page_invalid
LBB0_21:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r13
	movslq	24(%r15), %rsi
	cmpq	%rsi, %r13
	jge	LBB0_22
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r15), %rax
	movq	(%rax,%r13,8), %rbx
	movq	_VPO_SWAPINPROG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%rbx), %eax
	movl	%eax, (%rbx)
	movq	_VPO_SWAPSLEEP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_wakeup
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_BIO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	16(%r15), %rax
	movq	(%r12), %rcx
	testl	%edx, (%r15)
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%rcx, %rax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%rbx), %rax
	xorl	%edi, %edi
	movq	_VM_PAGE_BITS_ALL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_MPASS
	movq	%rbx, %rdi
	callq	_vm_page_lock
	movq	%rbx, %rdi
	callq	_vm_page_activate
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	cmpq	%rcx, %rax
	jne	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	callq	_pmap_page_is_mapped
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	movq	%rbx, %rsi
	callq	_KASSERT
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	sete	%dil
	movq	%rbx, %rsi
	callq	_KASSERT
	movq	%rbx, %rdi
	callq	_vm_page_valid
	movslq	28(%r15), %rax
	cmpq	%rax, %r13
	jl	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=1
	movslq	24(%r15), %rax
	movslq	32(%r15), %rcx
	subq	%rcx, %rax
	cmpq	%rax, %r13
	jl	LBB0_21
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	callq	_vm_page_readahead_finish
	jmp	LBB0_21
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=1
	callq	_pmap_page_is_write_mapped
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	movq	%rbx, %rsi
	callq	_KASSERT
	movq	%rbx, %rdi
	callq	_vm_page_undirty
	movq	%rbx, %rdi
	callq	_vm_page_lock
	movq	%rbx, %rdi
	callq	_vm_page_deactivate_noreuse
LBB0_20:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	callq	_vm_page_unlock
	movq	%rbx, %rdi
	callq	_vm_page_sunbusy
	jmp	LBB0_21
LBB0_22:
	testq	%r14, %r14
	je	LBB0_24
## %bb.23:
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_vm_object_pip_wakeupn
	movq	%r14, %rdi
	callq	_VM_OBJECT_WUNLOCK
LBB0_24:
	cmpq	$0, 48(%r15)
	je	LBB0_26
## %bb.25:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r15)
LBB0_26:
	movq	_B_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 36(%r15)
	je	LBB0_30
## %bb.27:
	movq	_swbuf_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_nsw_wcount_async@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	testl	%ecx, %ecx
	jne	LBB0_29
## %bb.28:
	movq	_nsw_wcount_async@GOTPCREL(%rip), %rdi
	callq	_wakeup
LBB0_29:
	movq	_swbuf_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
LBB0_30:
	movq	16(%r15), %rax
	movq	_BIO_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_31
## %bb.32:
	movq	_swrbuf_zone@GOTPCREL(%rip), %rax
	jmp	LBB0_33
LBB0_31:
	movq	_swwbuf_zone@GOTPCREL(%rip), %rax
LBB0_33:
	movl	(%rax), %edi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_uma_zfree                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BIO_ERROR,4,2                  ## @BIO_ERROR
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"swap_pager: I/O error - %s failed; blkno %ld,size %ld, error %d\n"

	.comm	_BIO_READ,8,3                   ## @BIO_READ
L_.str.1:                               ## @.str.1
	.asciz	"pagein"

L_.str.2:                               ## @.str.2
	.asciz	"pageout"

	.comm	_VPO_SWAPINPROG,4,2             ## @VPO_SWAPINPROG
	.comm	_VPO_SWAPSLEEP,4,2              ## @VPO_SWAPSLEEP
	.comm	_VM_PAGE_BITS_ALL,8,3           ## @VM_PAGE_BITS_ALL
	.comm	_B_ASYNC,4,2                    ## @B_ASYNC
	.comm	_swbuf_mtx,4,2                  ## @swbuf_mtx
	.comm	_nsw_wcount_async,4,2           ## @nsw_wcount_async
	.comm	_swrbuf_zone,4,2                ## @swrbuf_zone
	.comm	_swwbuf_zone,4,2                ## @swwbuf_zone
	.no_dead_strip	_swp_pager_async_iodone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swp_pager_async_iodone
_swp_pager_async_iodone:                ; @swp_pager_async_iodone
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x23, _BIO_ERROR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BIO_ERROR@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh2:
	adrp	x22, _BIO_READ@GOTPAGE
Lloh3:
	ldr	x22, [x22, _BIO_READ@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	x4, [x19, #8]
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x4, x8
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	x9, [x22]
Lloh7:
	adrp	x10, l_.str.2@PAGE
Lloh8:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh9:
	adrp	x11, l_.str.1@PAGE
Lloh10:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x8, x9
	csel	x1, x11, x10, eq
	ldp	x3, x2, [x19, #80]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_3:
	mov	x0, x19
	bl	_buf_mapped
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x19, #72]
	ldr	w1, [x19, #24]
	bl	_pmap_qremove
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_6
	b	LBB0_23
LBB0_5:
	ldr	x8, [x19, #64]
	str	x8, [x19, #72]
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_23
LBB0_6:
	ldr	x8, [x19, #56]
	ldr	x8, [x8]
	ldr	x20, [x8, #16]
	mov	x0, x20
	bl	_VM_OBJECT_WLOCK
	ldr	w1, [x19, #24]
	cmp	w1, #1
	b.lt	LBB0_21
; %bb.7:
	mov	x24, #0
Lloh13:
	adrp	x25, _VPO_SWAPINPROG@GOTPAGE
Lloh14:
	ldr	x25, [x25, _VPO_SWAPINPROG@GOTPAGEOFF]
Lloh15:
	adrp	x26, _VPO_SWAPSLEEP@GOTPAGE
Lloh16:
	ldr	x26, [x26, _VPO_SWAPSLEEP@GOTPAGEOFF]
Lloh17:
	adrp	x27, _VM_PAGE_BITS_ALL@GOTPAGE
Lloh18:
	ldr	x27, [x27, _VM_PAGE_BITS_ALL@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x21
	bl	_vm_page_invalid
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x24, x24, #1
	ldrsw	x1, [x19, #24]
	cmp	x24, x1
	b.ge	LBB0_21
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	ldr	x21, [x8, x24, lsl #3]
	ldr	w8, [x25]
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	bic	w8, w8, w9
	str	w8, [x21]
	mov	x0, x20
	bl	_wakeup
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w10, [x19]
	ldr	w11, [x23]
	ldr	x8, [x19, #16]
	ldr	x9, [x22]
	tst	w11, w10
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x21, #8]
	ldr	x9, [x27]
	cmp	x8, x9
	cset	w0, eq
	bl	_MPASS
	mov	x0, x21
	bl	_vm_page_lock
	mov	x0, x21
	bl	_vm_page_activate
	b	LBB0_20
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x21
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	bl	_pmap_page_is_mapped
	cmp	w0, #0
	cset	w0, eq
	mov	x1, x21
	bl	_KASSERT
	ldr	x8, [x21, #8]
	cmp	x8, #0
	cset	w0, eq
	mov	x1, x21
	bl	_KASSERT
	mov	x0, x21
	bl	_vm_page_valid
	ldrsw	x8, [x19, #28]
	cmp	x24, x8
	b.lt	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=1
	ldrsw	x8, [x19, #24]
	ldrsw	x9, [x19, #32]
	sub	x8, x8, x9
	cmp	x24, x8
	b.lt	LBB0_9
LBB0_18:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x21
	bl	_vm_page_readahead_finish
	b	LBB0_9
LBB0_19:                                ;   in Loop: Header=BB0_10 Depth=1
	bl	_pmap_page_is_write_mapped
	cmp	w0, #0
	cset	w0, eq
	mov	x1, x21
	bl	_KASSERT
	mov	x0, x21
	bl	_vm_page_undirty
	mov	x0, x21
	bl	_vm_page_lock
	mov	x0, x21
	bl	_vm_page_deactivate_noreuse
LBB0_20:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x21
	bl	_vm_page_unlock
	mov	x0, x21
	bl	_vm_page_sunbusy
	b	LBB0_9
LBB0_21:
	cbz	x20, LBB0_23
; %bb.22:
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_vm_object_pip_wakeupn
	mov	x0, x20
	bl	_VM_OBJECT_WUNLOCK
LBB0_23:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_25
; %bb.24:
	stp	xzr, xzr, [x19, #40]
LBB0_25:
	ldr	w8, [x19, #36]
Lloh19:
	adrp	x9, _B_ASYNC@GOTPAGE
Lloh20:
	ldr	x9, [x9, _B_ASYNC@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_29
; %bb.26:
Lloh22:
	adrp	x0, _swbuf_mtx@GOTPAGE
Lloh23:
	ldr	x0, [x0, _swbuf_mtx@GOTPAGEOFF]
	bl	_mtx_lock
Lloh24:
	adrp	x8, _nsw_wcount_async@GOTPAGE
Lloh25:
	ldr	x8, [x8, _nsw_wcount_async@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w10, w9, #1
	str	w10, [x8]
	cbnz	w9, LBB0_28
; %bb.27:
Lloh26:
	adrp	x0, _nsw_wcount_async@GOTPAGE
Lloh27:
	ldr	x0, [x0, _nsw_wcount_async@GOTPAGEOFF]
	bl	_wakeup
LBB0_28:
Lloh28:
	adrp	x0, _swbuf_mtx@GOTPAGE
Lloh29:
	ldr	x0, [x0, _swbuf_mtx@GOTPAGEOFF]
	bl	_mtx_unlock
LBB0_29:
	ldr	x8, [x19, #16]
Lloh30:
	adrp	x9, _swrbuf_zone@GOTPAGE
Lloh31:
	ldr	x9, [x9, _swrbuf_zone@GOTPAGEOFF]
Lloh32:
	adrp	x10, _swwbuf_zone@GOTPAGE
Lloh33:
	ldr	x10, [x10, _swwbuf_zone@GOTPAGEOFF]
	ldr	x11, [x22]
	cmp	x8, x11
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_uma_zfree
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_BIO_ERROR,4,2                  ; @BIO_ERROR
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"swap_pager: I/O error - %s failed; blkno %ld,size %ld, error %d\n"

	.comm	_BIO_READ,8,3                   ; @BIO_READ
l_.str.1:                               ; @.str.1
	.asciz	"pagein"

l_.str.2:                               ; @.str.2
	.asciz	"pageout"

	.comm	_VPO_SWAPINPROG,4,2             ; @VPO_SWAPINPROG
	.comm	_VPO_SWAPSLEEP,4,2              ; @VPO_SWAPSLEEP
	.comm	_VM_PAGE_BITS_ALL,8,3           ; @VM_PAGE_BITS_ALL
	.comm	_B_ASYNC,4,2                    ; @B_ASYNC
	.comm	_swbuf_mtx,4,2                  ; @swbuf_mtx
	.comm	_nsw_wcount_async,4,2           ; @nsw_wcount_async
	.comm	_swrbuf_zone,4,2                ; @swrbuf_zone
	.comm	_swwbuf_zone,4,2                ; @swwbuf_zone
	.no_dead_strip	_swp_pager_async_iodone
.subsections_via_symbols
