	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffs_susp_suspend
_ffs_susp_suspend:                      ## @ffs_susp_suspend
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_SA_XLOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ffs_susp_lock@GOTPCREL(%rip), %rdi
	callq	_sx_assert
	movq	%r15, %rdi
	callq	_ffs_own_mount
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_ffs_susp_suspended
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movq	%r15, %rdi
	callq	_VFSTOUFS
	movq	%rax, %r14
	movl	4(%rax), %edi
	movq	_LK_EXCLUSIVE@GOTPCREL(%rip), %rax
	movq	_LK_RETRY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_vn_lock
	movq	_VREAD@GOTPCREL(%rip), %rax
	movq	_VWRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	4(%r14), %edi
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	(%rcx), %edx
	callq	_VOP_ACCESS
	movl	%eax, %ebx
	movl	4(%r14), %edi
	xorl	%esi, %esi
	callq	_VOP_UNLOCK
	testl	%ebx, %ebx
	jne	LBB0_7
## %bb.5:
	movq	_VS_SKIP_UNMOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_vfs_write_suspend
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_UFS_LOCK
	movq	_UM_WRITESUSPENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_UFS_UNLOCK
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ffs_susp_lock,4,2              ## @ffs_susp_lock
	.comm	_SA_XLOCKED,4,2                 ## @SA_XLOCKED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_LK_EXCLUSIVE,4,2               ## @LK_EXCLUSIVE
	.comm	_LK_RETRY,4,2                   ## @LK_RETRY
	.comm	_VREAD,4,2                      ## @VREAD
	.comm	_VWRITE,4,2                     ## @VWRITE
	.comm	_curthread,8,3                  ## @curthread
	.comm	_VS_SKIP_UNMOUNT,4,2            ## @VS_SKIP_UNMOUNT
	.comm	_UM_WRITESUSPENDED,4,2          ## @UM_WRITESUSPENDED
	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_ffs_susp_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffs_susp_suspend
_ffs_susp_suspend:                      ; @ffs_susp_suspend
	.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	x19, x0
Lloh0:
	adrp	x8, _SA_XLOCKED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SA_XLOCKED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, _ffs_susp_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _ffs_susp_lock@GOTPAGEOFF]
	bl	_sx_assert
	mov	x0, x19
	bl	_ffs_own_mount
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_ffs_susp_suspended
	cbz	x0, LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	b	LBB0_7
LBB0_3:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_VFSTOUFS
	mov	x20, x0
Lloh11:
	adrp	x8, _LK_EXCLUSIVE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LK_EXCLUSIVE@GOTPAGEOFF]
	ldr	w0, [x0, #4]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _LK_RETRY@GOTPAGE
Lloh15:
	ldr	x9, [x9, _LK_RETRY@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_vn_lock
	ldr	w0, [x20, #4]
Lloh17:
	adrp	x8, _VREAD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VREAD@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _VWRITE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _VWRITE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh23:
	adrp	x8, _curthread@GOTPAGE
Lloh24:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh25:
	ldr	x3, [x8]
	ldr	w2, [x3]
	bl	_VOP_ACCESS
	mov	x21, x0
	ldr	w0, [x20, #4]
	mov	w1, #0
	bl	_VOP_UNLOCK
	cbnz	w21, LBB0_7
; %bb.5:
Lloh26:
	adrp	x8, _VS_SKIP_UNMOUNT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VS_SKIP_UNMOUNT@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vfs_write_suspend
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_UFS_LOCK
Lloh29:
	adrp	x8, _UM_WRITESUSPENDED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _UM_WRITESUSPENDED@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	mov	x0, x20
	bl	_UFS_UNLOCK
LBB0_7:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ffs_susp_lock,4,2              ; @ffs_susp_lock
	.comm	_SA_XLOCKED,4,2                 ; @SA_XLOCKED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_LK_EXCLUSIVE,4,2               ; @LK_EXCLUSIVE
	.comm	_LK_RETRY,4,2                   ; @LK_RETRY
	.comm	_VREAD,4,2                      ; @VREAD
	.comm	_VWRITE,4,2                     ; @VWRITE
	.comm	_curthread,8,3                  ; @curthread
	.comm	_VS_SKIP_UNMOUNT,4,2            ; @VS_SKIP_UNMOUNT
	.comm	_UM_WRITESUSPENDED,4,2          ; @UM_WRITESUSPENDED
	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_ffs_susp_suspend
.subsections_via_symbols
