	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ag71xx_ring_rx_clean
_ag71xx_ring_rx_clean:                  ## @ag71xx_ring_rx_clean
	.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, %r15
	movl	24(%rdi), %edi
	callq	_BIT
	movq	16(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.1:
	testl	%eax, %eax
	jle	LBB0_7
## %bb.2:
	movl	%eax, %r14d
	shlq	$4, %r14
	addq	$-16, %r14
	xorl	%ebx, %ebx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %r12
	cmpq	$0, (%rcx,%rbx)
	je	LBB0_5
	.p2align	4, 0x90
LBB0_4:
	movq	8(%r15), %rdi
	movl	8(%rcx,%rbx), %esi
	movl	(%r15), %edx
	movl	(%r12), %ecx
	callq	_dma_unmap_single
	movq	16(%r15), %rax
	movq	(%rax,%rbx), %rdi
	callq	_skb_free_frag
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %r14
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r15), %rcx
	addq	$16, %rbx
	cmpq	$0, (%rcx,%rbx)
	jne	LBB0_4
	jmp	LBB0_5
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_ag71xx_ring_rx_clean
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ag71xx_ring_rx_clean
_ag71xx_ring_rx_clean:                  ; @ag71xx_ring_rx_clean
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_BIT
	ldr	x8, [x19, #16]
	cmp	x8, #0
	ccmp	w0, #1, #8, ne
	b.ge	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x20, #0
	mov	w9, w0
	lsl	x9, x9, #4
	sub	x21, x9, #16
Lloh0:
	adrp	x22, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	x9, [x8, x20]
	cbz	x9, LBB0_4
LBB0_3:
	ldr	x0, [x19, #8]
	add	x8, x8, x20
	ldr	w1, [x8, #8]
	ldr	w2, [x19]
	ldr	w3, [x22]
	bl	_dma_unmap_single
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x20]
	bl	_skb_free_frag
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x21, x20
	b.eq	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #16]
	add	x20, x20, #16
	ldr	x9, [x8, x20]
	cbnz	x9, LBB0_3
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_ag71xx_ring_rx_clean
.subsections_via_symbols
