	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swp_pager_meta_transfer
_swp_pager_meta_transfer:               ## @swp_pager_meta_transfer
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.1:
	movq	_OBJT_SWAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%r14)
	jne	LBB0_20
## %bb.2:
	leaq	-44(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_swp_pager_init_freerange
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	leaq	8(%r14), %rbx
	movq	_SWAP_META_PAGES@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_rounddown
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_SWAP_PCTRIE_LOOKUP_GE
	testq	%rax, %rax
	je	LBB0_19
## %bb.3:
	movq	%rax, %r12
	addq	%r13, -56(%rbp)                 ## 8-byte Folded Spill
	movq	%r13, %rax
	negq	%rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_SWAPBLK_NONE@GOTPCREL(%rip), %r15
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_SWAP_META_PAGES@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_rounddown
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_SWAP_PCTRIE_LOOKUP_GE
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_19
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	(%r12), %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	subq	%rax, %r14
	jle	LBB0_19
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	subq	%rax, %r13
	movq	%r13, %rdx
	movl	$0, %ecx
	cmovleq	%rcx, %rdx
	movq	_SWAP_META_PAGES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	cmpq	%r13, %r14
	cmovgeq	%r13, %r14
	cmpl	%r14d, %edx
	jge	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movslq	%edx, %rbx
	movslq	%r14d, %r13
	movq	8(%r12), %rax
	jmp	LBB0_7
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rcx
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	leaq	-44(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	movq	%rcx, %rdx
	callq	_swp_pager_update_freerange
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	(%r15), %rcx
	movq	8(%r12), %rax
	movq	%rcx, (%rax,%rbx,8)
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=2
	incq	%rbx
	cmpq	%r13, %rbx
	jge	LBB0_14
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax,%rbx,8), %rcx
	cmpq	(%r15), %rcx
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx), %rdx
	addq	(%r12), %rdx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_swp_pager_xfer_source
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %rax
	movq	_SWAP_META_PAGES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	%rax, %r13
	movslq	%edx, %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_swp_pager_swblk_empty
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_SWAP_META_PAGES@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_swp_pager_swblk_empty
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	callq	_SWAP_PCTRIE_REMOVE
	movq	_swblk_zone@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_uma_zfree
	jmp	LBB0_18
LBB0_19:
	movl	-44(%rbp), %edi
	movl	-48(%rbp), %esi
	callq	_swp_pager_freeswapspace
LBB0_20:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJT_SWAP,8,3                  ## @OBJT_SWAP
	.comm	_SWAP_META_PAGES,8,3            ## @SWAP_META_PAGES
	.comm	_SWAPBLK_NONE,8,3               ## @SWAPBLK_NONE
	.comm	_swblk_zone,4,2                 ## @swblk_zone
	.no_dead_strip	_swp_pager_meta_transfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swp_pager_meta_transfer
_swp_pager_meta_transfer:               ; @swp_pager_meta_transfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x24, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	bl	_VM_OBJECT_ASSERT_WLOCKED
	cbz	x24, LBB0_20
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _OBJT_SWAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OBJT_SWAP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.2:
	add	x0, sp, #24
	add	x1, sp, #28
	bl	_swp_pager_init_freerange
	add	x21, x20, #8
Lloh3:
	adrp	x25, _SWAP_META_PAGES@GOTPAGE
Lloh4:
	ldr	x25, [x25, _SWAP_META_PAGES@GOTPAGEOFF]
	ldr	x1, [x25]
	mov	x0, x23
	bl	_rounddown
	mov	x1, x0
	str	x21, [sp, #16]                  ; 8-byte Folded Spill
	mov	x0, x21
	bl	_SWAP_PCTRIE_LOOKUP_GE
	cbz	x0, LBB0_19
; %bb.3:
	mov	x22, x0
	add	x8, x24, x23
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	neg	x27, x23
Lloh5:
	adrp	x28, _SWAPBLK_NONE@GOTPAGE
Lloh6:
	ldr	x28, [x28, _SWAPBLK_NONE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x24, x26
	ldr	x1, [x25]
	mov	x0, x23
	bl	_rounddown
	mov	x1, x0
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_SWAP_PCTRIE_LOOKUP_GE
	mov	x22, x0
	cbz	x0, LBB0_19
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x26, [x22]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	subs	x8, x8, x26
	b.le	LBB0_19
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	subs	x9, x23, x26
	csel	x9, x9, xzr, gt
	ldr	x24, [x25]
	cmp	x8, x24
	csel	x23, x8, x24, lt
	sxtw	x21, w9
	cmp	w9, w23
	b.ge	LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x26, w23
	ldr	x8, [x22, #8]
	mov	x24, x21
	b	LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [x22, #8]
	ldr	x3, [x8, x24, lsl #3]
LBB0_9:                                 ;   in Loop: Header=BB0_12 Depth=2
	add	x0, sp, #24
	add	x1, sp, #28
	mov	x2, x3
	bl	_swp_pager_update_freerange
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	x9, [x28]
	ldr	x8, [x22, #8]
	str	x9, [x8, x24, lsl #3]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x24, x24, #1
	cmp	x24, x26
	b.ge	LBB0_15
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x3, [x8, x24, lsl #3]
	ldr	x9, [x28]
	cmp	x3, x9
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	cbz	x19, LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [x22]
	add	x9, x27, x24
	add	x2, x9, x8
	mov	x0, x20
	mov	x1, x19
	bl	_swp_pager_xfer_source
	cbnz	w0, LBB0_10
	b	LBB0_8
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x26, [x22]
	ldr	x24, [x25]
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	w1, #0
	mov	x2, x21
	bl	_swp_pager_swblk_empty
	cbz	x0, LBB0_4
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x2, [x25]
	mov	x0, x22
	mov	x1, x23
	bl	_swp_pager_swblk_empty
	cbz	x0, LBB0_4
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x22]
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_SWAP_PCTRIE_REMOVE
Lloh7:
	adrp	x8, _swblk_zone@GOTPAGE
Lloh8:
	ldr	x8, [x8, _swblk_zone@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_uma_zfree
	b	LBB0_4
LBB0_19:
	ldp	w0, w1, [sp, #24]
	bl	_swp_pager_freeswapspace
LBB0_20:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJT_SWAP,8,3                  ; @OBJT_SWAP
	.comm	_SWAP_META_PAGES,8,3            ; @SWAP_META_PAGES
	.comm	_SWAPBLK_NONE,8,3               ; @SWAPBLK_NONE
	.comm	_swblk_zone,4,2                 ; @swblk_zone
	.no_dead_strip	_swp_pager_meta_transfer
.subsections_via_symbols
