	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_swapon                     ## -- Begin function sys_swapon
	.p2align	4, 0x90
_sys_swapon:                            ## @sys_swapon
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_PRIV_SWAPON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_priv_check
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	movq	_swdev_syscall_lock@GOTPCREL(%rip), %rdi
	callq	_sx_xlock
	movq	_swblk_zone@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.3:
	movq	_ISOPEN@GOTPCREL(%rip), %rax
	movq	_FOLLOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_LOOKUP@GOTPCREL(%rip), %rax
	movq	_AUDITVNODE1@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_UIO_USERSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%rbx), %r8d
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %r9
	callq	_NDINIT
	movq	%rbx, %rdi
	callq	_namei
	movl	%eax, -28(%rbp)
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:
	movq	_NDF_ONLY_PNBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdi
	callq	_NDFREE
	movq	-40(%rbp), %r14
	leaq	-28(%rbp), %rsi
	movq	%r14, %rdi
	callq	_vn_isdisk
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_swapongeom
	movl	%eax, -28(%rbp)
	jmp	LBB0_11
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	jmp	LBB0_13
LBB0_6:
	movq	(%r14), %rax
	movq	_VREG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.7:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	_VFCF_NETWORK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_10
## %bb.8:
	movl	(%r15), %edx
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_VOP_GETATTR
	movl	%eax, -28(%rbp)
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	movl	-32(%rbp), %eax
	movq	_DEV_BSIZE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_swaponvp
	movl	%eax, -28(%rbp)
	jmp	LBB0_11
LBB0_10:
	movl	-28(%rbp), %eax
LBB0_11:
	testl	%eax, %eax
	je	LBB0_13
LBB0_12:
	movq	%r14, %rdi
	callq	_vrele
LBB0_13:
	movq	_swdev_syscall_lock@GOTPCREL(%rip), %rdi
	callq	_sx_xunlock
	movl	-28(%rbp), %eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PRIV_SWAPON,4,2                ## @PRIV_SWAPON
	.comm	_swdev_syscall_lock,4,2         ## @swdev_syscall_lock
	.comm	_swblk_zone,8,3                 ## @swblk_zone
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_LOOKUP,4,2                     ## @LOOKUP
	.comm	_ISOPEN,4,2                     ## @ISOPEN
	.comm	_FOLLOW,4,2                     ## @FOLLOW
	.comm	_AUDITVNODE1,4,2                ## @AUDITVNODE1
	.comm	_UIO_USERSPACE,4,2              ## @UIO_USERSPACE
	.comm	_NDF_ONLY_PNBUF,4,2             ## @NDF_ONLY_PNBUF
	.comm	_VREG,8,3                       ## @VREG
	.comm	_VFCF_NETWORK,4,2               ## @VFCF_NETWORK
	.comm	_DEV_BSIZE,4,2                  ## @DEV_BSIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_swapon                     ; -- Begin function sys_swapon
	.p2align	2
_sys_swapon:                            ; @sys_swapon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _PRIV_SWAPON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PRIV_SWAPON@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_priv_check
	cbnz	w0, LBB0_14
; %bb.1:
Lloh3:
	adrp	x0, _swdev_syscall_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _swdev_syscall_lock@GOTPAGEOFF]
	bl	_sx_xlock
Lloh5:
	adrp	x8, _swblk_zone@GOTPAGE
Lloh6:
	ldr	x8, [x8, _swblk_zone@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.2:
Lloh8:
	adrp	x8, _LOOKUP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LOOKUP@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _ISOPEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ISOPEN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _FOLLOW@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FOLLOW@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _AUDITVNODE1@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AUDITVNODE1@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w2, w8, w9
Lloh20:
	adrp	x8, _UIO_USERSPACE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _UIO_USERSPACE@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	ldr	w4, [x20]
	add	x0, sp, #16
	mov	x5, x19
	bl	_NDINIT
	add	x0, sp, #16
	bl	_namei
	str	w0, [sp, #12]
	cbnz	w0, LBB0_13
; %bb.3:
Lloh23:
	adrp	x8, _NDF_ONLY_PNBUF@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NDF_ONLY_PNBUF@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	add	x0, sp, #16
	bl	_NDFREE
	ldr	x20, [sp, #16]
	add	x1, sp, #12
	mov	x0, x20
	bl	_vn_isdisk
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_swapongeom
	str	w0, [sp, #12]
	b	LBB0_11
LBB0_5:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	b	LBB0_13
LBB0_6:
	ldr	x8, [x20]
Lloh29:
	adrp	x9, _VREG@GOTPAGE
Lloh30:
	ldr	x9, [x9, _VREG@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _VFCF_NETWORK@GOTPAGE
Lloh33:
	ldr	x9, [x9, _VFCF_NETWORK@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:
	ldr	w2, [x19]
	add	x1, sp, #24
	mov	x0, x20
	bl	_VOP_GETATTR
	str	w0, [sp, #12]
	cbnz	w0, LBB0_12
; %bb.9:
	ldr	w8, [sp, #24]
Lloh35:
	adrp	x9, _DEV_BSIZE@GOTPAGE
Lloh36:
	ldr	x9, [x9, _DEV_BSIZE@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	sdiv	w2, w8, w9
	mov	x0, x19
	mov	x1, x20
	bl	_swaponvp
	str	w0, [sp, #12]
	b	LBB0_11
LBB0_10:
	ldr	w0, [sp, #12]
LBB0_11:
	cbz	w0, LBB0_13
LBB0_12:
	mov	x0, x20
	bl	_vrele
LBB0_13:
Lloh38:
	adrp	x0, _swdev_syscall_lock@GOTPAGE
Lloh39:
	ldr	x0, [x0, _swdev_syscall_lock@GOTPAGEOFF]
	bl	_sx_xunlock
	ldr	w0, [sp, #12]
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_PRIV_SWAPON,4,2                ; @PRIV_SWAPON
	.comm	_swdev_syscall_lock,4,2         ; @swdev_syscall_lock
	.comm	_swblk_zone,8,3                 ; @swblk_zone
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_LOOKUP,4,2                     ; @LOOKUP
	.comm	_ISOPEN,4,2                     ; @ISOPEN
	.comm	_FOLLOW,4,2                     ; @FOLLOW
	.comm	_AUDITVNODE1,4,2                ; @AUDITVNODE1
	.comm	_UIO_USERSPACE,4,2              ; @UIO_USERSPACE
	.comm	_NDF_ONLY_PNBUF,4,2             ; @NDF_ONLY_PNBUF
	.comm	_VREG,8,3                       ; @VREG
	.comm	_VFCF_NETWORK,4,2               ; @VFCF_NETWORK
	.comm	_DEV_BSIZE,4,2                  ; @DEV_BSIZE
.subsections_via_symbols
