	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1c_clean_rfd
_atl1c_clean_rfd:                       ## @atl1c_clean_rfd
	.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
	movq	%rdi, %r14
	movq	(%rsi), %rbx
	movq	_RRS_RX_RFD_INDEX_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarq	%cl, %rbx
	movq	_RRS_RX_RFD_INDEX_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %rbx
	testq	%rdx, %rdx
	jle	LBB0_3
## %bb.1:
	movq	%rdx, %r15
	movq	16(%r14), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r12,%rbx,8), %rdi
	movq	$0, (%r12,%rbx,8)
	movq	_ATL1C_BUFFER_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ATL1C_SET_BUFFER_STATE
	incq	%rbx
	cmpq	(%r14), %rbx
	cmoveq	%r13, %rbx
	decq	%r15
	jne	LBB0_2
LBB0_3:
	movq	%rbx, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RRS_RX_RFD_INDEX_SHIFT,8,3     ## @RRS_RX_RFD_INDEX_SHIFT
	.comm	_RRS_RX_RFD_INDEX_MASK,8,3      ## @RRS_RX_RFD_INDEX_MASK
	.comm	_ATL1C_BUFFER_FREE,4,2          ## @ATL1C_BUFFER_FREE
	.no_dead_strip	_atl1c_clean_rfd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1c_clean_rfd
_atl1c_clean_rfd:                       ; @atl1c_clean_rfd
	.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	x19, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _RRS_RX_RFD_INDEX_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RRS_RX_RFD_INDEX_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	asr	x8, x8, x9
Lloh3:
	adrp	x9, _RRS_RX_RFD_INDEX_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RRS_RX_RFD_INDEX_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	and	x21, x8, x9
	cmp	x2, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, x2
	ldr	x22, [x19, #16]
Lloh6:
	adrp	x23, _ATL1C_BUFFER_FREE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ATL1C_BUFFER_FREE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x22, x21, lsl #3
	str	xzr, [x0]
	ldr	w1, [x23]
	bl	_ATL1C_SET_BUFFER_STATE
	add	x8, x21, #1
	ldr	x9, [x19]
	cmp	x8, x9
	csinc	x21, xzr, x21, eq
	subs	x20, x20, #1
	b.ne	LBB0_2
LBB0_3:
	str	x21, [x19, #8]
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RRS_RX_RFD_INDEX_SHIFT,8,3     ; @RRS_RX_RFD_INDEX_SHIFT
	.comm	_RRS_RX_RFD_INDEX_MASK,8,3      ; @RRS_RX_RFD_INDEX_MASK
	.comm	_ATL1C_BUFFER_FREE,4,2          ; @ATL1C_BUFFER_FREE
	.no_dead_strip	_atl1c_clean_rfd
.subsections_via_symbols
