	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swapper                        ## -- Begin function swapper
	.p2align	4, 0x90
_swapper:                               ## @swapper
	.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	_allproc_lock@GOTPCREL(%rip), %r12
	leaq	L_.str(%rip), %r15
	movq	_MA_OWNED@GOTPCREL(%rip), %r13
	movq	_PRS_NORMAL@GOTPCREL(%rip), %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_PROC_UNLOCK
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_sx_slock
	xorl	%eax, %eax
	callq	_swapper_wkilled_only
	movl	%eax, %edi
	callq	_swapper_selector
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_sx_sunlock
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_PROC_LOCK_ASSERT
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_P_SWAPPINGOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_P_INMEM@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_P_SWAPPINGIN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%eax, 8(%rbx)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_faultin
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_PVM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SWAPIN_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_proc0@GOTPCREL(%rip), %rdi
	movq	%r15, %rdx
	callq	_tsleep
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_allproc_lock,4,2               ## @allproc_lock
	.comm	_proc0,4,2                      ## @proc0
	.comm	_PVM,4,2                        ## @PVM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"swapin"

	.comm	_SWAPIN_INTERVAL,4,2            ## @SWAPIN_INTERVAL
	.comm	_MA_OWNED,4,2                   ## @MA_OWNED
	.comm	_PRS_NORMAL,8,3                 ## @PRS_NORMAL
	.comm	_P_INMEM,4,2                    ## @P_INMEM
	.comm	_P_SWAPPINGOUT,4,2              ## @P_SWAPPINGOUT
	.comm	_P_SWAPPINGIN,4,2               ## @P_SWAPPINGIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swapper                        ; -- Begin function swapper
	.p2align	2
_swapper:                               ; @swapper
	.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
Lloh0:
	adrp	x19, _allproc_lock@GOTPAGE
Lloh1:
	ldr	x19, [x19, _allproc_lock@GOTPAGEOFF]
Lloh2:
	adrp	x23, _PVM@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PVM@GOTPAGEOFF]
Lloh4:
	adrp	x24, _SWAPIN_INTERVAL@GOTPAGE
Lloh5:
	ldr	x24, [x24, _SWAPIN_INTERVAL@GOTPAGEOFF]
Lloh6:
	adrp	x20, _proc0@GOTPAGE
Lloh7:
	ldr	x20, [x20, _proc0@GOTPAGEOFF]
Lloh8:
	adrp	x21, l_.str@PAGE
Lloh9:
	add	x21, x21, l_.str@PAGEOFF
Lloh10:
	adrp	x25, _MA_OWNED@GOTPAGE
Lloh11:
	ldr	x25, [x25, _MA_OWNED@GOTPAGEOFF]
Lloh12:
	adrp	x26, _PRS_NORMAL@GOTPAGE
Lloh13:
	ldr	x26, [x26, _PRS_NORMAL@GOTPAGEOFF]
Lloh14:
	adrp	x28, _P_SWAPPINGOUT@GOTPAGE
Lloh15:
	ldr	x28, [x28, _P_SWAPPINGOUT@GOTPAGEOFF]
Lloh16:
	adrp	x27, _P_SWAPPINGIN@GOTPAGE
Lloh17:
	ldr	x27, [x27, _P_SWAPPINGIN@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_PROC_UNLOCK
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_sx_slock
	bl	_swapper_wkilled_only
	bl	_swapper_selector
	mov	x22, x0
	mov	x0, x19
	bl	_sx_sunlock
	cbz	x22, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x25]
	mov	x0, x22
	bl	_PROC_LOCK_ASSERT
	ldr	x8, [x22]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x22, #8]
Lloh18:
	adrp	x9, _P_INMEM@GOTPAGE
Lloh19:
	ldr	x9, [x9, _P_INMEM@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	ldr	w10, [x28]
	orr	w9, w10, w9
	ldr	w10, [x27]
	orr	w9, w9, w10
	tst	w9, w8
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_faultin
	b	LBB0_1
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x23]
	ldr	w3, [x24]
	mov	x0, x20
	mov	x2, x21
	bl	_tsleep
	b	LBB0_2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_allproc_lock,4,2               ; @allproc_lock
	.comm	_proc0,4,2                      ; @proc0
	.comm	_PVM,4,2                        ; @PVM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"swapin"

	.comm	_SWAPIN_INTERVAL,4,2            ; @SWAPIN_INTERVAL
	.comm	_MA_OWNED,4,2                   ; @MA_OWNED
	.comm	_PRS_NORMAL,8,3                 ; @PRS_NORMAL
	.comm	_P_INMEM,4,2                    ; @P_INMEM
	.comm	_P_SWAPPINGOUT,4,2              ; @P_SWAPPINGOUT
	.comm	_P_SWAPPINGIN,4,2               ; @P_SWAPPINGIN
.subsections_via_symbols
