	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ace_free_descriptors
_ace_free_descriptors:                  ## @ace_free_descriptors
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	_RX_STD_RING_ENTRIES@GOTPCREL(%rip), %rax
	movq	_RX_JUMBO_RING_ENTRIES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	addl	(%rax), %esi
	movq	_RX_MINI_RING_ENTRIES@GOTPCREL(%rip), %rax
	addl	(%rax), %esi
	movq	_RX_RETURN_RING_ENTRIES@GOTPCREL(%rip), %rax
	addl	(%rax), %esi
	shll	$2, %esi
	movl	36(%rbx), %edi
	movl	104(%rbx), %ecx
	callq	_pci_free_consistent
	movq	$0, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 80(%rbx)
	movq	$0, 96(%rbx)
LBB0_2:
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movq	_EVT_RING_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	movl	36(%rbx), %edi
	movl	72(%rbx), %ecx
	callq	_pci_free_consistent
	movq	$0, 8(%rbx)
LBB0_4:
	cmpq	$0, 16(%rbx)
	je	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_ACE_IS_TIGON_I
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_MAX_TX_RING_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	movl	36(%rbx), %edi
	movq	16(%rbx), %rdx
	movl	68(%rbx), %ecx
	callq	_pci_free_consistent
LBB0_7:
	movq	$0, 16(%rbx)
	movq	56(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.8:
	movl	36(%rbx), %edi
	movl	64(%rbx), %ecx
	movl	$4, %esi
	callq	_pci_free_consistent
	movq	$0, 56(%rbx)
LBB0_9:
	movq	40(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.10:
	movl	36(%rbx), %edi
	movl	48(%rbx), %ecx
	movl	$4, %esi
	callq	_pci_free_consistent
	movq	$0, 40(%rbx)
LBB0_11:
	movq	24(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.12:
	movl	32(%rbx), %ecx
	movl	36(%rbx), %edi
	movl	$4, %esi
	callq	_pci_free_consistent
	movq	$0, 24(%rbx)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_STD_RING_ENTRIES,4,2        ## @RX_STD_RING_ENTRIES
	.comm	_RX_JUMBO_RING_ENTRIES,4,2      ## @RX_JUMBO_RING_ENTRIES
	.comm	_RX_MINI_RING_ENTRIES,4,2       ## @RX_MINI_RING_ENTRIES
	.comm	_RX_RETURN_RING_ENTRIES,4,2     ## @RX_RETURN_RING_ENTRIES
	.comm	_EVT_RING_ENTRIES,4,2           ## @EVT_RING_ENTRIES
	.comm	_MAX_TX_RING_ENTRIES,4,2        ## @MAX_TX_RING_ENTRIES
	.no_dead_strip	_ace_free_descriptors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ace_free_descriptors
_ace_free_descriptors:                  ; @ace_free_descriptors
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_netdev_priv
	mov	x19, x0
	ldr	x2, [x0]
	cbz	x2, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _RX_STD_RING_ENTRIES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RX_STD_RING_ENTRIES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RX_JUMBO_RING_ENTRIES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RX_JUMBO_RING_ENTRIES@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _RX_MINI_RING_ENTRIES@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RX_MINI_RING_ENTRIES@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _RX_RETURN_RING_ENTRIES@GOTPAGE
Lloh10:
	ldr	x11, [x11, _RX_RETURN_RING_ENTRIES@GOTPAGEOFF]
	add	w8, w9, w8
	add	w8, w8, w10
Lloh11:
	ldr	w9, [x11]
	add	w8, w8, w9
	lsl	w1, w8, #2
	ldr	w0, [x19, #36]
	ldr	w3, [x19, #104]
	bl	_pci_free_consistent
	str	xzr, [x19]
	stp	xzr, xzr, [x19, #88]
	str	xzr, [x19, #80]
LBB0_2:
	ldr	x2, [x19, #8]
	cbz	x2, LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _EVT_RING_ENTRIES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EVT_RING_ENTRIES@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	lsl	w1, w8, #2
	ldr	w0, [x19, #36]
	ldr	w3, [x19, #72]
	bl	_pci_free_consistent
	str	xzr, [x19, #8]
LBB0_4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_ACE_IS_TIGON_I
	cbnz	w0, LBB0_7
; %bb.6:
Lloh15:
	adrp	x8, _MAX_TX_RING_ENTRIES@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MAX_TX_RING_ENTRIES@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	lsl	w1, w8, #2
	ldr	w0, [x19, #36]
	ldr	x2, [x19, #16]
	ldr	w3, [x19, #68]
	bl	_pci_free_consistent
LBB0_7:
	str	xzr, [x19, #16]
	ldr	x2, [x19, #56]
	cbz	x2, LBB0_9
; %bb.8:
	ldr	w0, [x19, #36]
	ldr	w3, [x19, #64]
	mov	w1, #4
	bl	_pci_free_consistent
	str	xzr, [x19, #56]
LBB0_9:
	ldr	x2, [x19, #40]
	cbz	x2, LBB0_11
; %bb.10:
	ldr	w0, [x19, #36]
	ldr	w3, [x19, #48]
	mov	w1, #4
	bl	_pci_free_consistent
	str	xzr, [x19, #40]
LBB0_11:
	ldr	x2, [x19, #24]
	cbz	x2, LBB0_13
; %bb.12:
	ldp	w3, w0, [x19, #32]
	mov	w1, #4
	bl	_pci_free_consistent
	str	xzr, [x19, #24]
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_STD_RING_ENTRIES,4,2        ; @RX_STD_RING_ENTRIES
	.comm	_RX_JUMBO_RING_ENTRIES,4,2      ; @RX_JUMBO_RING_ENTRIES
	.comm	_RX_MINI_RING_ENTRIES,4,2       ; @RX_MINI_RING_ENTRIES
	.comm	_RX_RETURN_RING_ENTRIES,4,2     ; @RX_RETURN_RING_ENTRIES
	.comm	_EVT_RING_ENTRIES,4,2           ; @EVT_RING_ENTRIES
	.comm	_MAX_TX_RING_ENTRIES,4,2        ; @MAX_TX_RING_ENTRIES
	.no_dead_strip	_ace_free_descriptors
.subsections_via_symbols
