	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffs_susp_ioctl
_ffs_susp_ioctl:                        ## @ffs_susp_ioctl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movl	(%r8), %edi
	callq	_jailed
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_17
LBB0_2:
	movq	_ffs_susp_lock@GOTPCREL(%rip), %rdi
	callq	_sx_xlock
	cmpl	$129, %ebx
	je	LBB0_12
## %bb.3:
	cmpl	$128, %ebx
	jne	LBB0_14
## %bb.4:
	movq	%r14, %rdi
	callq	_vfs_getvfs
	movq	%rax, -24(%rbp)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_vfs_busy
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_vfs_rel
	testl	%ebx, %ebx
	jne	LBB0_16
## %bb.7:
	movq	%r14, %rdi
	callq	_ffs_susp_suspend
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_vfs_unbusy
	jmp	LBB0_16
LBB0_12:
	leaq	-24(%rbp), %rdi
	callq	_devfs_get_cdevpriv
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:
	movq	_ffs_susp_lock@GOTPCREL(%rip), %rdi
	callq	_sx_xunlock
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_devfs_clear_cdevpriv
	jmp	LBB0_17
LBB0_14:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_5:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %ebx
LBB0_16:
	movq	_ffs_susp_lock@GOTPCREL(%rip), %rdi
	callq	_sx_xunlock
LBB0_17:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movq	_ffs_susp_dtor@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_devfs_set_cdevpriv
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_ffs_susp_unsuspend
	jmp	LBB0_16
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_ffs_susp_lock,4,2              ## @ffs_susp_lock
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ffs_susp_dtor,4,2              ## @ffs_susp_dtor
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_ffs_susp_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffs_susp_ioctl
_ffs_susp_ioctl:                        ; @ffs_susp_ioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	ldr	w0, [x4]
	bl	_jailed
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EPERM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	b	LBB0_14
LBB0_2:
Lloh3:
	adrp	x0, _ffs_susp_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _ffs_susp_lock@GOTPAGEOFF]
	bl	_sx_xlock
	cmp	w20, #129
	b.eq	LBB0_8
; %bb.3:
	cmp	w20, #128
	b.ne	LBB0_10
; %bb.4:
	mov	x0, x19
	bl	_vfs_getvfs
	str	x0, [sp, #8]
	cbz	x0, LBB0_11
; %bb.5:
	mov	x20, x0
	mov	w1, #0
	bl	_vfs_busy
	mov	x19, x0
	mov	x0, x20
	bl	_vfs_rel
	cbnz	w19, LBB0_13
; %bb.6:
	mov	x0, x20
	bl	_ffs_susp_suspend
	cbz	w0, LBB0_15
; %bb.7:
	mov	x19, x0
	mov	x0, x20
	bl	_vfs_unbusy
	b	LBB0_13
LBB0_8:
	add	x0, sp, #8
	bl	_devfs_get_cdevpriv
	mov	x19, x0
	cbnz	w0, LBB0_13
; %bb.9:
Lloh5:
	adrp	x0, _ffs_susp_lock@GOTPAGE
Lloh6:
	ldr	x0, [x0, _ffs_susp_lock@GOTPAGEOFF]
	bl	_sx_xunlock
	bl	_devfs_clear_cdevpriv
	b	LBB0_14
LBB0_10:
Lloh7:
	adrp	x8, _ENXIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh9:
	adrp	x8, _ENOENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_12:
	ldr	w19, [x8]
LBB0_13:
Lloh11:
	adrp	x0, _ffs_susp_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _ffs_susp_lock@GOTPAGEOFF]
	bl	_sx_xunlock
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_15:
Lloh13:
	adrp	x8, _ffs_susp_dtor@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ffs_susp_dtor@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_devfs_set_cdevpriv
	mov	x19, x0
	cbz	w0, LBB0_13
; %bb.16:
	mov	x0, x20
	bl	_ffs_susp_unsuspend
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_ffs_susp_lock,4,2              ; @ffs_susp_lock
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ffs_susp_dtor,4,2              ; @ffs_susp_dtor
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_ffs_susp_ioctl
.subsections_via_symbols
