	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ffs_rawread                    ## -- Begin function ffs_rawread
	.p2align	4, 0x90
_ffs_rawread:                           ## @ffs_rawread
	.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	%rdx, %r14
	movq	_allowrawread@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.1:
	movq	%rsi, %rbx
	cmpl	$1, (%rsi)
	jne	LBB0_14
## %bb.2:
	movq	8(%rbx), %rax
	movq	_UIO_USERSPACE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.3:
	movq	16(%rbx), %rax
	movq	40(%rbx), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.4:
	movq	%rdi, %r15
	movq	32(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_6:
	movq	_TDP_DEADLKTREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_14
## %bb.7:
	movq	%r15, %rdi
	callq	_VTOI
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_ITODEVVP
	movslq	(%rax), %rax
	decq	%rax
	testl	%eax, 24(%rbx)
	jne	LBB0_14
## %bb.8:
	testq	%rax, 16(%rbx)
	je	LBB0_9
LBB0_14:
	movl	$0, (%r14)
	xorl	%eax, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r15, %rdi
	callq	_ffs_rawread_sync
	testl	%eax, %eax
	jne	LBB0_15
## %bb.10:
	movl	(%r12), %ecx
	movl	%ecx, %r13d
	subl	24(%rbx), %r13d
	jle	LBB0_14
## %bb.11:
	movslq	%r13d, %rax
	cmpq	%rax, 16(%rbx)
	jle	LBB0_16
## %bb.12:
	movq	%r12, %rdi
	movl	%ecx, %r12d
	callq	_ITOFS
	movq	%rax, %rcx
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	(%rcx)
	subl	%edx, %r13d
	jle	LBB0_14
## %bb.13:
	movl	16(%rbx), %r12d
	movl	%r13d, %eax
	subl	%r13d, %r12d
	movq	%rax, 16(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ffs_rawread_main
	movslq	%r12d, %rcx
	addq	%rcx, 16(%rbx)
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_14
LBB0_16:
	movl	$1, (%r14)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ffs_rawread_main               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_allowrawread,8,3               ## @allowrawread
	.comm	_UIO_USERSPACE,8,3              ## @UIO_USERSPACE
	.comm	_curthread,8,3                  ## @curthread
	.comm	_TDP_DEADLKTREAT,4,2            ## @TDP_DEADLKTREAT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ffs_rawread                    ; -- Begin function ffs_rawread
	.p2align	2
_ffs_rawread:                           ; @ffs_rawread
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
Lloh0:
	adrp	x8, _allowrawread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _allowrawread@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x20, x1
	ldr	w8, [x1]
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.2:
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _UIO_USERSPACE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _UIO_USERSPACE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	ldr	x8, [x20, #16]
	ldr	x9, [x20, #40]
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	ldr	x8, [x20, #32]
Lloh6:
	adrp	x9, _curthread@GOTPAGE
Lloh7:
	ldr	x9, [x9, _curthread@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _TDP_DEADLKTREAT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TDP_DEADLKTREAT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.5:
	mov	x21, x0
	bl	_VTOI
	mov	x22, x0
	bl	_ITODEVVP
	ldrsw	x8, [x0]
	ldr	w9, [x20, #24]
	sub	x8, x8, #1
	tst	w9, w8
	b.ne	LBB0_7
; %bb.6:
	ldr	x9, [x20, #16]
	tst	x9, x8
	b.eq	LBB0_9
LBB0_7:
	mov	w0, #0
	str	wzr, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x21
	bl	_ffs_rawread_sync
	cbnz	w0, LBB0_8
; %bb.10:
	ldr	w23, [x22]
	ldr	w8, [x20, #24]
	subs	w24, w23, w8
	b.le	LBB0_7
; %bb.11:
	ldr	x8, [x20, #16]
	cmp	x8, w24, sxtw
	b.le	LBB0_14
; %bb.12:
	mov	x0, x22
	bl	_ITOFS
	ldr	w8, [x0]
	udiv	w9, w23, w8
	neg	w10, w23
	madd	w8, w9, w8, w10
	add	w8, w24, w8
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.13:
	ldr	w9, [x20, #16]
	sub	w22, w9, w8
	str	x8, [x20, #16]
	mov	x0, x21
	mov	x1, x20
	bl	_ffs_rawread_main
	ldr	x8, [x20, #16]
	add	x8, x8, w22, sxtw
	str	x8, [x20, #16]
	cbnz	w0, LBB0_8
	b	LBB0_7
LBB0_14:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x21
	mov	x1, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ffs_rawread_main
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_allowrawread,8,3               ; @allowrawread
	.comm	_UIO_USERSPACE,8,3              ; @UIO_USERSPACE
	.comm	_curthread,8,3                  ; @curthread
	.comm	_TDP_DEADLKTREAT,4,2            ; @TDP_DEADLKTREAT
.subsections_via_symbols
