	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ffs_clusteracct                ## -- Begin function ffs_clusteracct
	.p2align	4, 0x90
_ffs_clusteracct:                       ## @ffs_clusteracct
	.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
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_UFS_FSNEEDSWAP
	cmpl	$0, (%rbx)
	jle	LBB0_33
## %bb.1:
	movl	%eax, %r15d
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_cg_clustersfree_swap
	movq	%rax, %r14
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_cg_clustersum_swap
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	testl	%r13d, %r13d
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	jle	LBB0_3
## %bb.2:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_setbit
	jmp	LBB0_4
LBB0_3:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_clrbit
LBB0_4:
	leal	1(%r14), %r13d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r15d
	addl	%r13d, %r15d
	movl	4(%r12), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_ufs_rw32
	cmpq	%r15, %rax
	ja	LBB0_6
## %bb.5:
	movl	4(%r12), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_ufs_rw32
	movq	%rax, %r15
LBB0_6:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	_NBBY@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	%r13d, %eax
	cltd
	idivl	%r10d
	movl	%edx, %ecx
	movl	$1, %edi
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movl	%r13d, %r12d
	cmpl	%r15d, %r13d
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	jge	LBB0_14
## %bb.7:
	movslq	%eax, %rcx
	movl	(%r9,%rcx,4), %eax
	movl	%edx, %ebx
	movl	%r13d, %r12d
	andl	%eax, %ebx
	je	LBB0_14
## %bb.8:
	leaq	(%r9,%rcx,4), %rcx
	addq	$4, %rcx
	leal	-1(%r10), %ebx
	movl	%r13d, %r12d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %esi
	notl	%esi
	testl	%esi, %ebx
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%rcx), %eax
	addq	$4, %rcx
	movl	$1, %edx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	addl	%edx, %edx
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	%r12d
	cmpl	%r15d, %r12d
	jge	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%edx, %esi
	andl	%eax, %esi
	jne	LBB0_9
LBB0_14:
	subl	%r13d, %r12d
	decl	%r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r8d
	movl	%r14d, %eax
	subl	%r8d, %eax
	movl	$-1, %ebx
	cmovnsl	%eax, %ebx
	movl	%r14d, %eax
	cltd
	idivl	%r10d
	movl	%edx, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	movl	%r14d, %ecx
	cmpl	%ebx, %r14d
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jle	LBB0_22
## %bb.15:
	movslq	%eax, %rdx
	movl	(%r9,%rdx,4), %eax
	movl	%edi, %esi
	movl	%r14d, %ecx
	andl	%eax, %esi
	je	LBB0_22
## %bb.16:
	leaq	(%r9,%rdx,4), %rdx
	addq	$-4, %rdx
	decl	%r10d
	movl	$1, %r9d
	movl	%r10d, %ecx
	shll	%cl, %r9d
	movl	%r14d, %ecx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	testl	%r10d, %ecx
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	sarl	%edi
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	(%rdx), %eax
	addq	$-4, %rdx
	movl	%r9d, %edi
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	decl	%ecx
	cmpl	%ebx, %ecx
	jle	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	%edi, %esi
	andl	%eax, %esi
	jne	LBB0_17
LBB0_22:
	subl	%ecx, %r14d
	leal	(%r14,%r12), %eax
	leal	(%r14,%r12), %ecx
	incl	%ecx
	cmpl	%r8d, %eax
	cmovgel	%r8d, %ecx
	movslq	%ecx, %rax
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx,%rax,4), %edi
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_ufs_add32
	testl	%r14d, %r14d
	jle	LBB0_24
## %bb.23:
	movl	%r14d, %eax
	movl	(%rbx,%rax,4), %edi
	negl	%r15d
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_ufs_add32
LBB0_24:
	testl	%r12d, %r12d
	movq	%rbx, %r14
	jle	LBB0_26
## %bb.25:
	movl	%r12d, %eax
	movl	(%r14,%rax,4), %edi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	negl	%esi
	movl	%r13d, %edx
	callq	_ufs_add32
LBB0_26:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jle	LBB0_27
## %bb.28:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %edi
	movl	%r13d, %esi
	callq	_ufs_rw32
	testq	%rax, %rax
	jne	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	decq	%rbx
	leal	1(%rbx), %eax
	cmpl	$1, %eax
	jg	LBB0_29
## %bb.31:
	xorl	%ebx, %ebx
	jmp	LBB0_32
LBB0_27:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
LBB0_32:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r14
	movl	(%r15), %edi
	movl	%r13d, %esi
	callq	_ufs_rw32
	movl	%ebx, (%r14,%rax,4)
LBB0_33:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NBBY,4,2                       ## @NBBY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ffs_clusteracct                ; -- Begin function ffs_clusteracct
	.p2align	2
_ffs_clusteracct:                       ; @ffs_clusteracct
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x3
	mov	x24, x2
	mov	x19, x1
	mov	x20, x0
	bl	_UFS_FSNEEDSWAP
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_33
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_cg_clustersfree_swap
	mov	x25, x0
	mov	x0, x19
	mov	x1, x21
	bl	_cg_clustersum_swap
	mov	x22, x0
	mov	x0, x25
	mov	x1, x24
	cmp	w23, #1
	b.lt	LBB0_3
; %bb.2:
	bl	_setbit
	b	LBB0_4
LBB0_3:
	bl	_clrbit
LBB0_4:
	add	w26, w24, #1
	ldr	w8, [x20]
	add	w27, w8, w26
	ldr	w0, [x19, #4]
	mov	x1, x21
	bl	_ufs_rw32
	cmp	x0, x27
	b.hi	LBB0_6
; %bb.5:
	ldr	w0, [x19, #4]
	mov	x1, x21
	bl	_ufs_rw32
	mov	x27, x0
LBB0_6:
Lloh0:
	adrp	x8, _NBBY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NBBY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #1
	cmp	w26, w27
	b.ge	LBB0_14
; %bb.7:
	sdiv	w12, w26, w8
	add	x11, x25, w12, sxtw #2
	ldr	w10, [x11]
	msub	w12, w12, w8, w26
	lsl	w12, w9, w12
	and	w13, w12, w10
	cbz	w13, LBB0_14
; %bb.8:
	add	x13, x11, #4
	sub	w14, w8, #1
	mov	x11, x26
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	bics	wzr, w14, w11
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w10, [x13], #4
	mov	w12, #1
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	lsl	w12, w12, #1
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	add	w11, w11, #1
	cmp	w11, w27
	b.ge	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	and	w15, w12, w10
	cbnz	w15, LBB0_9
	b	LBB0_15
LBB0_14:
	mov	x11, x26
LBB0_15:
	sub	w26, w11, w26
	sub	w11, w24, #1
	ldr	w10, [x20]
	sub	w12, w11, w10
	cmp	w12, #0
	csinv	w12, w12, wzr, ge
	cmp	w11, w12
	b.le	LBB0_23
; %bb.16:
	sdiv	w14, w11, w8
	add	x15, x25, w14, sxtw #2
	ldr	w13, [x15]
	msub	w14, w14, w8, w11
	lsl	w14, w9, w14
	and	w9, w14, w13
	cbz	w9, LBB0_23
; %bb.17:
	sub	x9, x15, #4
	sub	w15, w8, #1
	mov	w8, #1
	lsl	w16, w8, w15
	mov	x8, x11
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	tst	w8, w15
	b.eq	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	asr	w14, w14, #1
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	w13, [x9], #-4
	mov	x14, x16
LBB0_21:                                ;   in Loop: Header=BB0_18 Depth=1
	sub	w8, w8, #1
	cmp	w8, w12
	b.le	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=1
	and	w17, w14, w13
	cbnz	w17, LBB0_18
	b	LBB0_24
LBB0_23:
	mov	x8, x11
LBB0_24:
	sub	w24, w11, w8
	add	w8, w24, w26
	cmp	w8, w10
	csinc	w8, w10, w8, ge
	ldr	w0, [x22, w8, sxtw #2]
	mov	x1, x23
	mov	x2, x21
	bl	_ufs_add32
	cmp	w24, #1
	b.lt	LBB0_26
; %bb.25:
	ldr	w0, [x22, w24, uxtw #2]
	neg	w1, w23
	mov	x2, x21
	bl	_ufs_add32
LBB0_26:
	cmp	w26, #1
	b.lt	LBB0_28
; %bb.27:
	ldr	w0, [x22, w26, uxtw #2]
	neg	w1, w23
	mov	x2, x21
	bl	_ufs_add32
LBB0_28:
	ldr	w23, [x20]
	cmp	w23, #1
	b.lt	LBB0_32
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22, x23, lsl #2]
	mov	x1, x21
	bl	_ufs_rw32
	cbnz	x0, LBB0_32
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	sub	x23, x23, #1
	add	w8, w23, #1
	cmp	w8, #1
	b.gt	LBB0_29
; %bb.31:
	mov	w23, #0
LBB0_32:
	ldr	x20, [x20, #8]
	ldr	w0, [x19]
	mov	x1, x21
	bl	_ufs_rw32
	str	w23, [x20, x0, lsl #2]
LBB0_33:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NBBY,4,2                       ; @NBBY
.subsections_via_symbols
