	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ravb_ring_free
_ravb_ring_free:                        ## @ravb_ring_free
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r12
	movl	(%rax), %r15d
	movq	64(%rax), %rax
	movslq	%ebx, %r14
	movq	(%rax,%r14,8), %r13
	testq	%r13, %r13
	je	LBB0_8
## %bb.1:
	movq	8(%r12), %rax
	movl	(%rax,%r14,4), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.2:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movq	8(%r12), %rax
	movq	64(%r12), %rcx
	movslq	(%rax,%r14,4), %rax
	movq	(%rcx,%r14,8), %r13
	cmpq	%rax, %r15
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ebx
	movl	(%r13,%r15,4), %edi
	callq	_le32_to_cpu
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ebx
	movl	(%r13,%r15,4), %edi
	callq	_le32_to_cpu
	movl	80(%r12), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_dma_unmap_single
	jmp	LBB0_5
LBB0_6:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_7:
	leal	4(,%rax,4), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	72(%r12), %rax
	movl	(%rax,%r14,4), %ecx
	movq	%r13, %rdx
	callq	_dma_free_coherent
	movq	64(%r12), %rax
	movq	$0, (%rax,%r14,8)
LBB0_8:
	movq	48(%r12), %rax
	cmpq	$0, (%rax,%r14,8)
	je	LBB0_10
## %bb.9:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_ravb_tx_free
	movq	16(%r12), %rax
	movq	48(%r12), %rcx
	imull	(%rax,%r14,4), %r15d
	leal	4(,%r15,4), %esi
	movl	(%rbx), %edi
	movq	(%rcx,%r14,8), %rdx
	movq	56(%r12), %rax
	movl	(%rax,%r14,4), %ecx
	callq	_dma_free_coherent
	movq	48(%r12), %rax
	movq	$0, (%rax,%r14,8)
LBB0_10:
	movq	40(%r12), %rax
	movq	(%rax,%r14,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.12:
	movq	8(%r12), %rax
	cmpl	$0, (%rax,%r14,4)
	jle	LBB0_15
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%rbx,4), %edi
	callq	_dev_kfree_skb
	incq	%rbx
	movq	8(%r12), %rax
	movq	40(%r12), %rcx
	movslq	(%rax,%r14,4), %rax
	movq	(%rcx,%r14,8), %rdi
	cmpq	%rax, %rbx
	jl	LBB0_14
	jmp	LBB0_15
LBB0_11:
	xorl	%edi, %edi
LBB0_15:
	callq	_kfree
	movq	40(%r12), %rax
	movq	$0, (%rax,%r14,8)
	movq	32(%r12), %rax
	movq	(%rax,%r14,8), %rdi
	callq	_kfree
	movq	32(%r12), %rax
	movq	$0, (%rax,%r14,8)
	movq	24(%r12), %rax
	movq	(%rax,%r14,8), %rdi
	callq	_kfree
	movq	24(%r12), %rax
	movq	$0, (%rax,%r14,8)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_ravb_ring_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ravb_ring_free
_ravb_ring_free:                        ; @ravb_ring_free
	.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	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	w25, [x0]
	ldr	x8, [x0, #64]
	sxtw	x24, w21
	ldr	x22, [x8, w21, sxtw #3]
	cbz	x22, LBB0_7
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x24, lsl #2]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x26, #0
Lloh0:
	adrp	x27, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _DMA_FROM_DEVICE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	ldr	x8, [x19, #8]
	ldrsw	x8, [x8, x24, lsl #2]
	ldr	x9, [x19, #64]
	ldr	x22, [x9, x24, lsl #3]
	cmp	x26, x8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x20]
	ldr	w0, [x22, x26, lsl #2]
	bl	_le32_to_cpu
	mov	x1, x0
	mov	x0, x23
	bl	_dma_mapping_error
	cbnz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w23, [x20]
	ldr	w0, [x22, x26, lsl #2]
	bl	_le32_to_cpu
	mov	x1, x0
	ldr	w2, [x19, #80]
	ldr	w3, [x27]
	mov	x0, x23
	bl	_dma_unmap_single
	b	LBB0_3
LBB0_6:
	lsl	w8, w8, #2
	add	w1, w8, #4
	ldr	w0, [x20]
	ldr	x8, [x19, #72]
	ldr	w3, [x8, x24, lsl #2]
	mov	x2, x22
	bl	_dma_free_coherent
	ldr	x8, [x19, #64]
	str	xzr, [x8, x24, lsl #3]
LBB0_7:
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x24, lsl #3]
	lsl	x22, x24, #3
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_ravb_tx_free
	ldr	x8, [x19, #16]
	lsl	x9, x24, #2
	ldr	w8, [x8, x9]
	mul	w8, w25, w8
	lsl	w8, w8, #2
	add	w1, w8, #4
	ldr	w0, [x20]
	ldp	x8, x10, [x19, #48]
	ldr	x2, [x8, x22]
	ldr	w3, [x10, x9]
	bl	_dma_free_coherent
	ldr	x8, [x19, #48]
	str	xzr, [x8, x22]
LBB0_9:
	ldr	x8, [x19, #40]
	ldr	x0, [x8, x24, lsl #3]
	cbz	x0, LBB0_13
; %bb.10:
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x24, lsl #2]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.11:
	mov	x20, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x0, x20, lsl #2]
	bl	_dev_kfree_skb
	add	x20, x20, #1
	ldr	x8, [x19, #8]
	ldrsw	x8, [x8, x24, lsl #2]
	ldr	x9, [x19, #40]
	ldr	x0, [x9, x24, lsl #3]
	cmp	x20, x8
	b.lt	LBB0_12
LBB0_13:
	bl	_kfree
	ldr	x8, [x19, #40]
	str	xzr, [x8, x22]
	ldr	x8, [x19, #32]
	ldr	x0, [x8, x22]
	bl	_kfree
	ldr	x8, [x19, #32]
	str	xzr, [x8, x22]
	ldr	x8, [x19, #24]
	ldr	x0, [x8, x22]
	bl	_kfree
	ldr	x8, [x19, #24]
	str	xzr, [x8, x22]
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_ravb_ring_free
.subsections_via_symbols
