	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swap_pager_copy                ## -- Begin function swap_pager_copy
	.p2align	4, 0x90
_swap_pager_copy:                       ## @swap_pager_copy
	.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
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movq	%r15, %rdi
	callq	_VM_OBJECT_ASSERT_WLOCKED
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_vm_object_pip_add
	movq	%rbx, %rdi
	callq	_VM_OBJECT_WUNLOCK
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_vm_object_pip_add
	movq	%r15, %rdi
	callq	_VM_OBJECT_WUNLOCK
	movq	_sw_alloc_sx@GOTPCREL(%rip), %r12
	movq	%r12, %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	%r12, %rdi
	callq	_sx_xunlock
	movq	%r15, %rdi
	callq	_VM_OBJECT_WLOCK
	movq	%r15, %rdi
	callq	_vm_object_pip_wakeup
	movq	%rbx, %rdi
	callq	_VM_OBJECT_WLOCK
	movq	%rbx, %rdi
	callq	_vm_object_pip_wakeup
LBB0_3:
	movl	4(%r15), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_swp_pager_meta_transfer
	movq	%rbx, %rdi
	callq	_swp_pager_meta_free_all
	movq	_OBJT_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	4(%r15), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_swp_pager_meta_transfer        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_sw_alloc_sx,4,2                ## @sw_alloc_sx
	.comm	_pager_object_list,4,2          ## @pager_object_list
	.comm	_OBJT_DEFAULT,4,2               ## @OBJT_DEFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swap_pager_copy                ; -- Begin function swap_pager_copy
	.p2align	2
_swap_pager_copy:                       ; @swap_pager_copy
	.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	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_VM_OBJECT_ASSERT_WLOCKED
	mov	x0, x21
	bl	_VM_OBJECT_ASSERT_WLOCKED
	cbz	w22, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #1
	bl	_vm_object_pip_add
	mov	x0, x19
	bl	_VM_OBJECT_WUNLOCK
	mov	x0, x21
	mov	w1, #1
	bl	_vm_object_pip_add
	mov	x0, x21
	bl	_VM_OBJECT_WUNLOCK
Lloh0:
	adrp	x22, _sw_alloc_sx@GOTPAGE
Lloh1:
	ldr	x22, [x22, _sw_alloc_sx@GOTPAGEOFF]
	mov	x0, x22
	bl	_sx_xlock
	ldr	x0, [x19, #8]
	bl	_NOBJLIST
Lloh2:
	adrp	x8, _pager_object_list@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pager_object_list@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_TAILQ_REMOVE
	mov	x0, x22
	bl	_sx_xunlock
	mov	x0, x21
	bl	_VM_OBJECT_WLOCK
	mov	x0, x21
	bl	_vm_object_pip_wakeup
	mov	x0, x19
	bl	_VM_OBJECT_WLOCK
	mov	x0, x19
	bl	_vm_object_pip_wakeup
LBB0_3:
	ldr	w3, [x21, #4]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_swp_pager_meta_transfer
	mov	x0, x19
	bl	_swp_pager_meta_free_all
Lloh5:
	adrp	x8, _OBJT_DEFAULT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OBJT_DEFAULT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19]
	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
LBB0_4:
	ldr	w3, [x21, #4]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	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
	b	_swp_pager_meta_transfer
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_sw_alloc_sx,4,2                ; @sw_alloc_sx
	.comm	_pager_object_list,4,2          ; @pager_object_list
	.comm	_OBJT_DEFAULT,4,2               ; @OBJT_DEFAULT
.subsections_via_symbols
