	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ffs_fragacct                   ## -- Begin function ffs_fragacct
	.p2align	4, 0x90
_ffs_fragacct:                          ## @ffs_fragacct
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rdi
	cmpq	$2, %rdi
	jb	LBB0_11
## %bb.1:
	movl	%ecx, %r8d
	movq	%rdx, %r9
	movq	_fragtbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rdi,8), %rax
	movslq	%esi, %r12
	movl	(%rax,%r12,8), %r10d
	addl	%r10d, %r10d
	addl	%r12d, %r12d
	movq	_around@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	movq	_inside@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	$1, %ecx
	movq	_NBBY@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	cmpq	%rdi, %rcx
	je	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movslq	(%r14), %rbx
	movq	%rdi, %rax
	orq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, %rax
	xorl	%edx, %edx
	divq	%rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%ecx, %edx
	btl	%edx, %r10d
	jae	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15,%rcx,4), %eax
	movl	(%r11,%rcx,4), %esi
	movl	%ecx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	addl	%esi, %esi
	addl	%eax, %eax
	incl	%ebx
	movslq	%ebx, %rdx
	cmpq	%rdx, %rdi
	jb	LBB0_10
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%esi, %edx
	andl	%r12d, %edx
	cmpl	%eax, %edx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	addl	%r8d, (%r9,%rcx,4)
	shll	%cl, %esi
	addl	%ecx, %ebx
	shll	%cl, %eax
	jmp	LBB0_9
LBB0_11:
	popq	%rbx
	popq	%r12
	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                   ; -- Begin function ffs_fragacct
	.p2align	2
_ffs_fragacct:                          ; @ffs_fragacct
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	cmp	x8, #2
	b.lo	LBB0_8
; %bb.1:
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
	lsl	w10, w1, #1
Lloh3:
	adrp	x11, _around@GOTPAGE
Lloh4:
	ldr	x11, [x11, _around@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
Lloh6:
	adrp	x12, _inside@GOTPAGE
Lloh7:
	ldr	x12, [x12, _inside@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x12]
	mov	w13, #1
Lloh9:
	adrp	x14, _NBBY@GOTPAGE
Lloh10:
	ldr	x14, [x14, _NBBY@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x13, x13, #1
	cmp	x13, x8
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldrsw	x15, [x14]
	udiv	x16, x8, x15
	msub	w15, w16, w15, w8
	add	w15, w13, w15
	lsr	w15, w9, w15
	tbz	w15, #0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	x15, x13, #2
	ldr	w16, [x12, x15]
	ldr	w17, [x11, x15]
	mov	x0, x13
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	lsl	w17, w17, #1
	lsl	w16, w16, #1
	add	w0, w0, #1
	cmp	x8, w0, sxtw
	b.lo	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	and	w1, w17, w10
	cmp	w1, w16
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w1, [x2, x15]
	add	w1, w1, w3
	str	w1, [x2, x15]
	add	w0, w0, w13
	lsl	w17, w17, w13
	lsl	w16, w16, w13
	b	LBB0_5
LBB0_8:
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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
