	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_ring
_free_ring:                             ## @free_ring
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	addl	(%rax), %esi
	movq	(%r14), %r14
	shll	$2, %esi
	movq	32(%rbx), %rdx
	movl	24(%rbx), %ecx
	movq	%r14, %rdi
	callq	_dma_free_coherent
	movq	$0, 16(%rbx)
	movq	(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	_PKT_BUF_SZ@GOTPCREL(%rip), %rax
	movl	(%r15), %esi
	imull	(%rax), %esi
	movl	8(%rbx), %ecx
	movq	%r14, %rdi
	callq	_dma_free_coherent
LBB0_2:
	movq	$0, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_RING_SIZE,4,2               ## @RX_RING_SIZE
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.comm	_PKT_BUF_SZ,4,2                 ## @PKT_BUF_SZ
	.no_dead_strip	_free_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_ring
_free_ring:                             ; @free_ring
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x20, [x20]
Lloh0:
	adrp	x8, _RX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RX_RING_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x21, _TX_RING_SIZE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _TX_RING_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x21]
	add	w8, w9, w8
	lsl	w1, w8, #2
	ldr	x2, [x0, #32]
	ldr	w3, [x0, #24]
	mov	x0, x20
	bl	_dma_free_coherent
	str	xzr, [x19, #16]
	ldr	x2, [x19]
	cbz	x2, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _PKT_BUF_SZ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PKT_BUF_SZ@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x21]
	mul	w1, w9, w8
	ldr	w3, [x19, #8]
	mov	x0, x20
	bl	_dma_free_coherent
LBB0_2:
	str	xzr, [x19]
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_RING_SIZE,4,2               ; @RX_RING_SIZE
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.comm	_PKT_BUF_SZ,4,2                 ; @PKT_BUF_SZ
	.no_dead_strip	_free_ring
.subsections_via_symbols
