	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ffs_blkpref_ufs2               ## -- Begin function ffs_blkpref_ufs2
	.p2align	4, 0x90
_ffs_blkpref_ufs2:                      ## @ffs_blkpref_ufs2
	.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
	movl	%edx, %ebx
	movq	%rdi, %r13
	movq	8(%rdi), %r14
	movl	%edx, %eax
	cltd
	idivl	(%r14)
	testl	%edx, %edx
	je	LBB0_3
## %bb.1:
	movslq	%ebx, %rax
	movq	-8(%rcx,%rax,8), %r15
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_UFS_FSNEEDSWAP
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ufs_rw64
	movl	8(%r14), %ebx
	jmp	LBB0_6
LBB0_3:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	_UFS_NDADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	movl	%esi, %r12d
	callq	_NINDIR
	addl	%r15d, %eax
	cmpl	%r12d, %eax
	jle	LBB0_8
## %bb.4:
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_ino_to_cg
	movl	%eax, %ebx
LBB0_5:
	imull	4(%r14), %ebx
	movl	8(%r14), %eax
LBB0_6:
	addl	%ebx, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.9:
	movslq	%ebx, %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-8(%rdx,%rax,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_UFS_FSNEEDSWAP
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ufs_rw64
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %esi
	movq	%r14, %rdi
	callq	_dtog
	jmp	LBB0_12
LBB0_11:
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_ino_to_cg
	movl	%eax, %ecx
	movl	%r12d, %eax
	cltd
	idivl	(%r14)
	addl	%ecx, %eax
LBB0_12:
	movl	12(%r14), %esi
	movl	24(%r14), %ecx
	cltd
	idivl	%esi
	movl	%edx, %r15d
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, %r12d
	testl	%esi, %esi
	js	LBB0_16
## %bb.13:
	movl	%r15d, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	*16(%r14)
	cmpl	%r12d, %eax
	jge	LBB0_5
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	incl	%ebx
	cmpl	12(%r14), %ebx
	jl	LBB0_14
LBB0_16:
	testl	%r15d, %r15d
	jle	LBB0_21
## %bb.17:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	*16(%r14)
	cmpl	%r12d, %eax
	jge	LBB0_5
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	incl	%ebx
	cmpl	%ebx, %r15d
	jne	LBB0_18
LBB0_21:
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_UFS_NDADDR,4,2                 ## @UFS_NDADDR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ffs_blkpref_ufs2               ; -- Begin function ffs_blkpref_ufs2
	.p2align	2
_ffs_blkpref_ufs2:                      ; @ffs_blkpref_ufs2
	.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	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x19, [x0, #8]
	ldr	w8, [x19]
	sdiv	w9, w2, w8
	msub	w8, w9, w8, w2
	cbz	w8, LBB0_3
; %bb.1:
	add	x8, x22, w23, sxtw #3
	ldur	x24, [x8, #-8]
	cbz	x24, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_UFS_FSNEEDSWAP
	mov	x1, x0
	mov	x0, x24
	bl	_ufs_rw64
	ldr	w8, [x19, #8]
	b	LBB0_19
LBB0_3:
Lloh0:
	adrp	x8, _UFS_NDADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UFS_NDADDR@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_NINDIR
	add	w8, w0, w24
	cmp	w8, w20
	b.le	LBB0_5
; %bb.4:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ino_to_cg
	mov	x8, x0
	ldp	w9, w0, [x19, #4]
	mul	w8, w9, w8
	b	LBB0_19
LBB0_5:
	cbz	w23, LBB0_8
; %bb.6:
	add	x8, x22, w23, sxtw #3
	ldur	x22, [x8, #-8]
	cbz	x22, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_UFS_FSNEEDSWAP
	mov	x1, x0
	mov	x0, x22
	bl	_ufs_rw64
	add	w1, w0, #1
	mov	x0, x19
	bl	_dtog
	b	LBB0_9
LBB0_8:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ino_to_cg
	ldr	w8, [x19]
	sdiv	w8, w20, w8
	add	w0, w8, w0
LBB0_9:
	ldr	w8, [x19, #12]
	sdiv	w9, w0, w8
	msub	w21, w9, w8, w0
	ldr	w9, [x19, #24]
	sdiv	w22, w9, w8
	tbnz	w8, #31, LBB0_13
; %bb.10:
	mov	x20, x21
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	cmp	w0, w22
	b.ge	LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w20, w20, #1
	ldr	w8, [x19, #12]
	cmp	w20, w8
	b.lt	LBB0_11
LBB0_13:
	cmp	w21, #1
	b.lt	LBB0_17
; %bb.14:
	mov	w20, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	cmp	w0, w22
	b.ge	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	w20, w20, #1
	cmp	w21, w20
	b.ne	LBB0_15
LBB0_17:
	mov	w0, #0
	b	LBB0_20
LBB0_18:
	ldp	w8, w0, [x19, #4]
	mul	w8, w8, w20
LBB0_19:
	add	w0, w8, w0
LBB0_20:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UFS_NDADDR,4,2                 ; @UFS_NDADDR
.subsections_via_symbols
