	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffs_rawread_readahead
_ffs_rawread_readahead:                 ## @ffs_rawread_readahead
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%rcx, %r14
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movslq	(%rax), %r12
	callq	_VTOI
	movq	%rax, %rdi
	callq	_ITODEVVP
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r13d, %eax
	movslq	%eax, %rdx
	movq	%r14, (%rbx)
	addq	%r14, %rdx
	movslq	8(%rbx), %rcx
	cmpq	%rcx, %rdx
	jbe	LBB0_3
## %bb.1:
	movq	%rcx, (%rbx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	subq	(%rax), %rcx
	movq	%rcx, (%rbx)
LBB0_3:
	movl	$0, 32(%rbx)
	movq	_BIO_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%rbx)
	movq	_bdone@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	%r13, 48(%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cltd
	movq	%r12, %r13
	idivl	%r13d
	movl	%eax, %esi
	movl	%edx, %eax
	movq	_DEV_BSIZE@GOTPCREL(%rip), %r14
	cltd
	idivl	(%r14)
	movl	%eax, %r12d
	movl	%esi, 16(%rbx)
	movl	%esi, 12(%rbx)
	leaq	-48(%rbp), %rdx
	leaq	-52(%rbp), %r8
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_ufs_bmaparray
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_4
LBB0_14:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	-48(%rbp), %ecx
	cmpl	$-1, %ecx
	je	LBB0_5
## %bb.10:
	addl	%r12d, %ecx
	movl	%ecx, 16(%rbx)
	movl	(%r14), %eax
	imull	%eax, %ecx
	movl	%ecx, 28(%rbx)
	movl	%ecx, 24(%rbx)
	movq	(%rbx), %rcx
	imull	%r12d, %eax
	movslq	%eax, %rsi
	addq	%rcx, %rsi
	movslq	-52(%rbp), %rdx
	incq	%rdx
	imulq	%r13, %rdx
	cmpq	%rdx, %rsi
	jbe	LBB0_12
## %bb.11:
	subl	%eax, %edx
	movslq	%edx, %rcx
	movq	%rcx, (%rbx)
LBB0_12:
	movl	%ecx, 20(%rbx)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_vmapbuf
	testq	%rax, %rax
	js	LBB0_8
## %bb.13:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_BO_STRATEGY
	xorl	%r15d, %r15d
	jmp	LBB0_14
LBB0_5:
	movq	(%rbx), %rax
	movslq	(%r14), %rdx
	movslq	%r12d, %rcx
	imulq	%rdx, %rcx
	leaq	(%rax,%rcx), %rdx
	cmpq	%r13, %rdx
	jbe	LBB0_7
## %bb.6:
	subl	%ecx, %r13d
	movslq	%r13d, %rax
	movq	%rax, (%rbx)
LBB0_7:
	movl	%eax, 20(%rbx)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_vmapbuf
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_maybe_yield
	movq	48(%rbx), %rdi
	movl	20(%rbx), %esi
	callq	_bzero
	movq	$0, 40(%rbx)
	movq	_B_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%rbx)
	jmp	LBB0_14
LBB0_8:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_BIO_READ,4,2                   ## @BIO_READ
	.comm	_bdone,4,2                      ## @bdone
	.comm	_DEV_BSIZE,4,2                  ## @DEV_BSIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_B_DONE,4,2                     ## @B_DONE
	.no_dead_strip	_ffs_rawread_readahead
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffs_rawread_readahead
_ffs_rawread_readahead:                 ; @ffs_rawread_readahead
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x5
	mov	x24, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	ldr	x8, [x0, #8]
	ldrsw	x25, [x8]
	bl	_VTOI
	bl	_ITODEVVP
	mov	x20, x0
Lloh0:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w9, w8, w23
	str	x24, [x19]
	add	x10, x24, w9, sxtw
	ldrsw	x8, [x19, #8]
	cmp	x10, x8
	b.ls	LBB0_3
; %bb.1:
	str	x8, [x19]
	cbz	w9, LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	sub	x8, x8, x9
	str	x8, [x19]
LBB0_3:
	str	wzr, [x19, #32]
Lloh6:
	adrp	x8, _BIO_READ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BIO_READ@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _bdone@GOTPAGE
Lloh10:
	ldr	x9, [x9, _bdone@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #56]
	str	x23, [x19, #48]
Lloh12:
	adrp	x24, _DEV_BSIZE@GOTPAGE
Lloh13:
	ldr	x24, [x24, _DEV_BSIZE@GOTPAGEOFF]
	ldr	w26, [x24]
	sdiv	w23, w21, w25
	stp	w23, w23, [x19, #12]
	add	x2, sp, #8
	add	x4, sp, #12
	mov	x0, x22
	mov	x1, x23
	mov	x3, #0
	mov	x5, #0
	bl	_ufs_bmaparray
	cbz	w0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	msub	w9, w23, w25, w21
	ldr	w8, [sp, #8]
	sdiv	w9, w9, w26
	cmn	w8, #1
	b.eq	LBB0_10
; %bb.6:
	add	w8, w8, w9
	str	w8, [x19, #16]
	ldr	w10, [x24]
	mul	w8, w10, w8
	stp	w8, w8, [x19, #24]
	ldr	x8, [x19]
	mul	w9, w10, w9
	add	x11, x8, w9, sxtw
	ldrsw	x10, [sp, #12]
	madd	x10, x25, x10, x25
	cmp	x11, x10
	b.ls	LBB0_8
; %bb.7:
	sub	w8, w10, w9
	sxtw	x8, w8
	str	x8, [x19]
LBB0_8:
	str	w8, [x19, #20]
	mov	x0, x19
	mov	w1, #1
	bl	_vmapbuf
	tbnz	x0, #63, LBB0_14
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	bl	_BO_STRATEGY
	mov	w0, #0
	b	LBB0_4
LBB0_10:
	ldr	x8, [x19]
	ldrsw	x10, [x24]
	sxtw	x9, w9
	mul	x9, x10, x9
	add	x10, x8, x9
	cmp	x10, x25
	b.ls	LBB0_12
; %bb.11:
	sub	x8, x25, w9, sxtw
	str	x8, [x19]
LBB0_12:
	str	w8, [x19, #20]
	mov	x0, x19
	mov	w1, #1
	bl	_vmapbuf
	tbnz	x0, #63, LBB0_14
; %bb.13:
	bl	_maybe_yield
	ldr	x0, [x19, #48]
	ldr	w1, [x19, #20]
	bl	_bzero
	mov	w0, #0
	str	xzr, [x19, #40]
Lloh14:
	adrp	x8, _B_DONE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _B_DONE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
	b	LBB0_4
LBB0_14:
Lloh17:
	adrp	x8, _EFAULT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_BIO_READ,4,2                   ; @BIO_READ
	.comm	_bdone,4,2                      ; @bdone
	.comm	_DEV_BSIZE,4,2                  ; @DEV_BSIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_B_DONE,4,2                     ; @B_DONE
	.no_dead_strip	_ffs_rawread_readahead
.subsections_via_symbols
