	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swp_pager_meta_ctl
_swp_pager_meta_ctl:                    ## @swp_pager_meta_ctl
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_SWM_POP@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_VM_OBJECT_ASSERT_WLOCKED
	jmp	LBB0_3
LBB0_2:
	movq	%r12, %rdi
	callq	_VM_OBJECT_ASSERT_LOCKED
LBB0_3:
	movq	(%r12), %rax
	movq	_OBJT_SWAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	leaq	8(%r12), %rbx
	movq	_SWAP_META_PAGES@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_rounddown
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_SWAP_PCTRIE_LOOKUP
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %rsi
	movq	(%rax), %rcx
	movq	(%r13), %rdi
	movq	%r15, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_7
## %bb.8:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rdi
	jmp	LBB0_9
LBB0_4:
	movq	_SWAPBLK_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_12:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_9:
	movq	(%rcx,%rdx,8), %rbx
	movq	_SWAPBLK_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rbx
	je	LBB0_12
## %bb.10:
	movq	_SWM_POP@GOTPCREL(%rip), %rdi
	testl	%r14d, (%rdi)
	je	LBB0_12
## %bb.11:
	movq	%rax, (%rcx,%rdx,8)
	movq	%r12, %rdi
	callq	_swp_pager_free_empty_swblk
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_SWM_POP,4,2                    ## @SWM_POP
	.comm	_OBJT_SWAP,8,3                  ## @OBJT_SWAP
	.comm	_SWAPBLK_NONE,8,3               ## @SWAPBLK_NONE
	.comm	_SWAP_META_PAGES,8,3            ## @SWAP_META_PAGES
	.no_dead_strip	_swp_pager_meta_ctl
.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_ctl
_swp_pager_meta_ctl:                    ; @swp_pager_meta_ctl
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _SWM_POP@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SWM_POP@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w2
	b.eq	LBB0_2
; %bb.1:
	bl	_VM_OBJECT_ASSERT_WLOCKED
	b	LBB0_3
LBB0_2:
	bl	_VM_OBJECT_ASSERT_LOCKED
LBB0_3:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _OBJT_SWAP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _OBJT_SWAP@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
	add	x22, x19, #8
Lloh5:
	adrp	x24, _SWAP_META_PAGES@GOTPAGE
Lloh6:
	ldr	x24, [x24, _SWAP_META_PAGES@GOTPAGEOFF]
	ldr	x1, [x24]
	mov	x0, x21
	bl	_rounddown
	mov	x1, x0
	mov	x0, x22
	bl	_SWAP_PCTRIE_LOOKUP
	cbz	x0, LBB0_8
; %bb.5:
	mov	x1, x0
	ldr	x8, [x0]
	ldr	x9, [x24]
	udiv	x10, x21, x9
	msub	x9, x10, x9, x21
	ldr	x21, [x8, x9, lsl #3]
Lloh7:
	adrp	x10, _SWAPBLK_NONE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _SWAPBLK_NONE@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x21, x10
	b.eq	LBB0_9
; %bb.6:
	ldr	w11, [x23]
	tst	w11, w20
	b.eq	LBB0_9
; %bb.7:
	str	x10, [x8, x9, lsl #3]
	mov	x0, x19
	bl	_swp_pager_free_empty_swblk
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x8, _SWAPBLK_NONE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SWAPBLK_NONE@GOTPAGEOFF]
Lloh12:
	ldr	x21, [x8]
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SWM_POP,4,2                    ; @SWM_POP
	.comm	_OBJT_SWAP,8,3                  ; @OBJT_SWAP
	.comm	_SWAPBLK_NONE,8,3               ; @SWAPBLK_NONE
	.comm	_SWAP_META_PAGES,8,3            ; @SWAP_META_PAGES
	.no_dead_strip	_swp_pager_meta_ctl
.subsections_via_symbols
