	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ffs_fragacct_swap              ## -- Begin function ffs_fragacct_swap
	.p2align	4, 0x90
_ffs_fragacct_swap:                     ## @ffs_fragacct_swap
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	cmpq	$2, %rax
	jb	LBB0_9
## %bb.1:
	movq	_fragtbl@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx,%rax,8), %rdx
	movslq	%esi, %rsi
	movl	(%rdx,%rsi,8), %edx
	addl	%edx, %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	addl	%esi, %esi
	movslq	%ecx, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %rax
	jbe	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	_NBBY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	decl	%ecx
	movl	%eax, %edx
	andl	%ecx, %edx
	addl	%ebx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	btl	%edx, %ecx
	jae	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rbx, %rax
	jb	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_inside@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rbx,4), %r15d
	movq	_around@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rbx,4), %r14d
	movl	%ebx, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	addl	%r14d, %r14d
	addl	%r15d, %r15d
	incl	%r12d
	movslq	%r12d, %rcx
	cmpq	%rcx, %rax
	jb	LBB0_8
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, %ecx
	andl	%esi, %ecx
	cmpl	%r15d, %ecx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rdi
	movl	%r13d, %esi
	callq	_ufs_rw32
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %rdi
	movl	%r13d, %esi
	callq	_ufs_rw32
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rbx,8)
	addl	%ebx, %r12d
	movl	%ebx, %ecx
	shll	%cl, %r14d
	shll	%cl, %r15d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	jmp	LBB0_7
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fragtbl,8,3                    ## @fragtbl
	.comm	_NBBY,4,2                       ## @NBBY
	.comm	_around,8,3                     ## @around
	.comm	_inside,8,3                     ## @inside
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ffs_fragacct_swap              ; -- Begin function ffs_fragacct_swap
	.p2align	2
_ffs_fragacct_swap:                     ; @ffs_fragacct_swap
	.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
                                        ; kill: def $w3 killed $w3 def $x3
	ldr	x8, [x0]
	cmp	x8, #2
	b.lo	LBB0_9
; %bb.1:
	mov	x19, x4
	mov	x20, x2
	mov	x21, x0
Lloh0:
	adrp	x9, _fragtbl@GOTPAGE
Lloh1:
	ldr	x9, [x9, _fragtbl@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x9, [x9, x8, lsl #3]
	ldr	x9, [x9, w1, sxtw #3]
	lsl	w9, w9, #1
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	lsl	w23, w1, #1
	sxtw	x24, w3
	mov	w25, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	cmp	x8, x25
	b.ls	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
Lloh3:
	adrp	x9, _NBBY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NBBY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	sub	w9, w9, #1
	and	w9, w9, w8
	add	w9, w9, w25
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	lsr	w9, w10, w9
	tbz	w9, #0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x8, x25
	b.lo	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh6:
	adrp	x9, _inside@GOTPAGE
Lloh7:
	ldr	x9, [x9, _inside@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	lsl	x10, x25, #2
	ldr	w27, [x9, x10]
Lloh9:
	adrp	x9, _around@GOTPAGE
Lloh10:
	ldr	x9, [x9, _around@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	w28, [x9, x10]
	mov	x26, x25
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	lsl	w28, w28, #1
	lsl	w27, w27, #1
	add	w26, w26, #1
	cmp	x8, w26, sxtw
	b.lo	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	and	w9, w28, w23
	cmp	w9, w27
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	lsl	x22, x25, #3
	ldr	x0, [x20, x22]
	mov	x1, x19
	bl	_ufs_rw32
	add	x0, x0, x24
	mov	x1, x19
	bl	_ufs_rw32
	str	x0, [x20, x22]
	add	w26, w26, w25
	lsl	w28, w28, w25
	lsl	w27, w27, w25
	ldr	x8, [x21]
	b	LBB0_6
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_fragtbl,8,3                    ; @fragtbl
	.comm	_NBBY,4,2                       ; @NBBY
	.comm	_around,8,3                     ; @around
	.comm	_inside,8,3                     ; @inside
.subsections_via_symbols
