	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffs_susp_rdwr
_ffs_susp_rdwr:                         ## @ffs_susp_rdwr
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	_ffs_susp_lock@GOTPCREL(%rip), %rdi
	callq	_sx_slock
	leaq	-72(%rbp), %rdi
	callq	_devfs_get_cdevpriv
	testl	%eax, %eax
	je	LBB0_2
LBB0_1:
	movq	_ffs_susp_lock@GOTPCREL(%rip), %rdi
	callq	_sx_sunlock
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_23
LBB0_2:
	movq	-72(%rbp), %rdi
	callq	_VFSTOUFS
	movq	(%rax), %rbx
	movq	8(%rax), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rdi
	callq	_ffs_susp_suspended
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rax
	movq	_UIO_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_UIO_WRITE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	8(%r13), %rax
	movq	_UIO_USERSPACE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	leaq	L_.str.1(%rip), %rsi
	callq	_KASSERT
	movq	16(%r13), %rbx
	movl	24(%r13), %ecx
	xorl	%r14d, %r14d
	movl	$0, %r15d
	testl	%ecx, %ecx
	jle	LBB0_22
## %bb.4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	40(%r13), %rax
	xorl	%esi, %esi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	%rsi, %r14
	shlq	$4, %r14
	movq	(%rax,%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_19
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	32(%r13), %rsi
	movq	8(%rax,%r14), %r12
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=2
	movl	%esi, %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_copyout
	movl	%eax, %r15d
	movq	-56(%rbp), %rdi
	callq	_brelse
	testl	%r15d, %r15d
	jne	LBB0_21
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	40(%r13), %rax
	movq	8(%rax,%r14), %r12
	addq	%rbx, %r12
	movq	%r12, 8(%rax,%r14)
	movq	(%rax,%r14), %rdx
	movq	%rdx, %rcx
	subq	%rbx, %rcx
	movq	%rcx, (%rax,%r14)
	subq	%rbx, 16(%r13)
	movq	32(%r13), %rsi
	addq	%rbx, %rsi
	movq	%rsi, 32(%r13)
	subq	%rbx, %rdx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_18
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rbx
	cmpq	%rbx, %rdx
	cmovbq	%rdx, %rbx
	movq	%r15, %rdi
	callq	_fragoff
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_fragoff
	testq	%rax, %rax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	32(%r13), %rdi
	callq	_btodb
	movq	_NOCRED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movq	%rbx, %rdx
	leaq	-56(%rbp), %r8
	callq	_bread
	testl	%eax, %eax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	(%r13), %rax
	movq	-56(%rbp), %rcx
	movl	4(%rcx), %esi
	movq	_UIO_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_copyin
	testl	%eax, %eax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	-56(%rbp), %rdi
	callq	_bwrite
	testl	%eax, %eax
	je	LBB0_17
	jmp	LBB0_11
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	24(%r13), %ecx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rsi
	movslq	%ecx, %rdx
	cmpq	%rdx, %rsi
	jl	LBB0_5
## %bb.20:
	xorl	%r15d, %r15d
	jmp	LBB0_21
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_21
LBB0_11:
	movl	%eax, %r15d
	jmp	LBB0_21
LBB0_14:
	movl	%eax, %r15d
	movq	_B_INVAL@GOTPCREL(%rip), %rax
	movq	_B_NOCACHE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	-56(%rbp), %rdi
	orl	%ecx, (%rdi)
	callq	_brelse
LBB0_21:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	xorl	%r14d, %r14d
LBB0_22:
	movq	_ffs_susp_lock@GOTPCREL(%rip), %rdi
	callq	_sx_sunlock
	cmpq	%rbx, 16(%r13)
	cmovll	%r14d, %r15d
LBB0_23:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ffs_susp_lock,4,2              ## @ffs_susp_lock
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_UIO_READ,8,3                   ## @UIO_READ
	.comm	_UIO_WRITE,8,3                  ## @UIO_WRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"neither UIO_READ or UIO_WRITE"

	.comm	_UIO_USERSPACE,8,3              ## @UIO_USERSPACE
L_.str.1:                               ## @.str.1
	.asciz	"uio->uio_segflg != UIO_USERSPACE"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NOCRED,4,2                     ## @NOCRED
	.comm	_B_INVAL,4,2                    ## @B_INVAL
	.comm	_B_NOCACHE,4,2                  ## @B_NOCACHE
	.no_dead_strip	_ffs_susp_rdwr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffs_susp_rdwr
_ffs_susp_rdwr:                         ; @ffs_susp_rdwr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
Lloh0:
	adrp	x0, _ffs_susp_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ffs_susp_lock@GOTPAGEOFF]
	bl	_sx_slock
	add	x0, sp, #8
	bl	_devfs_get_cdevpriv
	cbz	w0, LBB0_2
LBB0_1:
Lloh2:
	adrp	x0, _ffs_susp_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _ffs_susp_lock@GOTPAGEOFF]
	bl	_sx_sunlock
Lloh4:
	adrp	x8, _ENXIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	b	LBB0_22
LBB0_2:
	ldr	x0, [sp, #8]
	bl	_VFSTOUFS
	ldp	x21, x20, [x0]
	ldr	x0, [sp, #8]
	bl	_ffs_susp_suspended
	cbz	x0, LBB0_1
; %bb.3:
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _UIO_READ@GOTPAGE
Lloh8:
	ldr	x9, [x9, _UIO_READ@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh10:
	adrp	x26, _UIO_WRITE@GOTPAGE
Lloh11:
	ldr	x26, [x26, _UIO_WRITE@GOTPAGEOFF]
	ldr	x9, [x26]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _UIO_USERSPACE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _UIO_USERSPACE@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_KASSERT
	ldr	x25, [x19, #16]
	ldr	w9, [x19, #24]
	cmp	w9, #1
	b.lt	LBB0_17
; %bb.4:
	mov	x27, #0
	ldr	x8, [x19, #40]
Lloh19:
	adrp	x28, _NOCRED@GOTPAGE
Lloh20:
	ldr	x28, [x28, _NOCRED@GOTPAGEOFF]
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	lsl	x10, x27, #4
	ldr	x10, [x8, x10]
	cbz	x10, LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x19, #32]
	add	x8, x8, x27, lsl #4
	ldr	x23, [x8, #8]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x1
	mov	x1, x23
	mov	x2, x22
	bl	_copyout
	mov	x24, x0
	ldr	x0, [sp]
	bl	_brelse
	cbnz	w24, LBB0_21
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x19, #40]
	add	x9, x8, x27, lsl #4
	ldp	x11, x10, [x9]
	add	x23, x10, x22
	sub	x10, x11, x22
	stp	x10, x23, [x9]
	ldr	x9, [x19, #16]
	sub	x9, x9, x22
	str	x9, [x19, #16]
	ldr	x9, [x19, #32]
	add	x1, x9, x22
	str	x1, [x19, #32]
	cbz	x10, LBB0_15
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21]
	cmp	x10, x8
	csel	x22, x10, x8, lo
	mov	x0, x21
	bl	_fragoff
	cbnz	x0, LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x21
	mov	x1, x22
	bl	_fragoff
	cbnz	x0, LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x0, [x19, #32]
	bl	_btodb
	mov	x1, x0
	ldr	w3, [x28]
	mov	x4, sp
	mov	x0, x20
	mov	x2, x22
	bl	_bread
	cbnz	w0, LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x19]
	ldr	x9, [x26]
	ldr	x10, [sp]
	ldr	w1, [x10, #4]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x23
	mov	x2, x22
	bl	_copyin
	cbnz	w0, LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x0, [sp]
	bl	_bwrite
	cbz	w0, LBB0_8
	b	LBB0_19
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x19, #24]
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x27, #1
	cmp	x27, w9, sxtw
	b.lt	LBB0_5
LBB0_17:
	mov	w24, #0
	b	LBB0_21
LBB0_18:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w24, [x8]
	b	LBB0_21
LBB0_19:
	mov	x24, x0
	b	LBB0_21
LBB0_20:
	mov	x24, x0
Lloh24:
	adrp	x8, _B_INVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _B_INVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _B_NOCACHE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _B_NOCACHE@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x0, [sp]
	ldr	w9, [x0]
	orr	w8, w8, w9
	str	w8, [x0]
	bl	_brelse
LBB0_21:
Lloh30:
	adrp	x0, _ffs_susp_lock@GOTPAGE
Lloh31:
	ldr	x0, [x0, _ffs_susp_lock@GOTPAGEOFF]
	bl	_sx_sunlock
	ldr	x8, [x19, #16]
	cmp	x8, x25
	csel	w0, wzr, w24, lt
LBB0_22:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ffs_susp_lock,4,2              ; @ffs_susp_lock
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_UIO_READ,8,3                   ; @UIO_READ
	.comm	_UIO_WRITE,8,3                  ; @UIO_WRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"neither UIO_READ or UIO_WRITE"

	.comm	_UIO_USERSPACE,8,3              ; @UIO_USERSPACE
l_.str.1:                               ; @.str.1
	.asciz	"uio->uio_segflg != UIO_USERSPACE"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NOCRED,4,2                     ; @NOCRED
	.comm	_B_INVAL,4,2                    ; @B_INVAL
	.comm	_B_NOCACHE,4,2                  ; @B_NOCACHE
	.no_dead_strip	_ffs_susp_rdwr
.subsections_via_symbols
