	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_eth_ring_free
_sh_eth_ring_free:                      ## @sh_eth_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
	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
	callq	_netdev_priv
	movq	%rax, %r13
	movq	48(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.1:
	movl	(%r13), %esi
	testl	%esi, %esi
	jle	LBB0_7
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	%esi, %rax
	cmpq	%rax, %rbx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r13), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%r13), %r15
	movq	48(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_le32_to_cpu
	movl	%eax, %r12d
	movl	60(%r13), %edi
	movl	$32, %esi
	callq	_ALIGN
	movl	(%r14), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_dma_unmap_single
	movl	(%r13), %esi
	jmp	LBB0_5
LBB0_6:
	movq	48(%r13), %rdx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_7:
	shll	$2, %esi
	movq	32(%r13), %rdi
	movl	56(%r13), %ecx
	callq	_dma_free_coherent
	movq	$0, 48(%r13)
LBB0_8:
	movq	40(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.10:
	cmpl	$0, (%r13)
	jle	LBB0_13
## %bb.11:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rbx,8), %rdi
	callq	_dev_kfree_skb
	incq	%rbx
	movslq	(%r13), %rax
	movq	40(%r13), %rdi
	cmpq	%rax, %rbx
	jl	LBB0_12
	jmp	LBB0_13
LBB0_9:
	xorl	%edi, %edi
LBB0_13:
	callq	_kfree
	movq	$0, 40(%r13)
	cmpq	$0, 16(%r13)
	je	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_sh_eth_tx_free
	movl	4(%r13), %esi
	shll	$2, %esi
	movq	32(%r13), %rdi
	movq	16(%r13), %rdx
	movl	24(%r13), %ecx
	callq	_dma_free_coherent
	movq	$0, 16(%r13)
LBB0_15:
	movq	8(%r13), %rdi
	callq	_kfree
	movq	$0, 8(%r13)
	addq	$8, %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	_sh_eth_ring_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_eth_ring_free
_sh_eth_ring_free:                      ; @sh_eth_ring_free
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x2, [x0, #48]
	cbz	x2, LBB0_8
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x23, #0
Lloh0:
	adrp	x24, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DMA_FROM_DEVICE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #40]
	ldr	x9, [x9, x23, lsl #3]
	cbz	x9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #48]
	ldr	x21, [x19, #32]
	ldr	w0, [x8, x23, lsl #2]
	bl	_le32_to_cpu
	mov	x22, x0
	ldr	w0, [x19, #60]
	mov	w1, #32
	bl	_ALIGN
	mov	x2, x0
	ldr	w3, [x24]
	mov	x0, x21
	mov	x1, x22
	bl	_dma_unmap_single
	ldr	w8, [x19]
	b	LBB0_3
LBB0_6:
	ldr	x2, [x19, #48]
LBB0_7:
	lsl	w1, w8, #2
	ldr	x0, [x19, #32]
	ldr	w3, [x19, #56]
	bl	_dma_free_coherent
	str	xzr, [x19, #48]
LBB0_8:
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_12
; %bb.9:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x21, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x0, x21, lsl #3]
	bl	_dev_kfree_skb
	add	x21, x21, #1
	ldrsw	x8, [x19]
	ldr	x0, [x19, #40]
	cmp	x21, x8
	b.lt	LBB0_11
LBB0_12:
	bl	_kfree
	str	xzr, [x19, #40]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_14
; %bb.13:
	mov	x0, x20
	mov	w1, #0
	bl	_sh_eth_tx_free
	ldr	w8, [x19, #4]
	lsl	w1, w8, #2
	ldr	x0, [x19, #32]
	ldr	x2, [x19, #16]
	ldr	w3, [x19, #24]
	bl	_dma_free_coherent
	str	xzr, [x19, #16]
LBB0_14:
	ldr	x0, [x19, #8]
	bl	_kfree
	str	xzr, [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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_sh_eth_ring_free
.subsections_via_symbols
