	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_free_desc_rings
_e1000_free_desc_rings:                 ## @e1000_free_desc_rings
	.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, %r15
	movq	(%rdi), %r14
	cmpq	$0, 56(%rdi)
	je	LBB0_8
## %bb.1:
	movq	48(%r15), %r13
	testq	%r13, %r13
	je	LBB0_8
## %bb.2:
	cmpl	$0, 40(%r15)
	jle	LBB0_8
## %bb.3:
	movl	$8, %ebx
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-8(%r13,%rbx), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_dma_unmap_single
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-4(%r13,%rbx), %edi
	callq	_dev_kfree_skb
	movslq	40(%r15), %rax
	cmpq	%rax, %r12
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	48(%r15), %r13
	addq	$16, %rbx
	incq	%r12
	jmp	LBB0_4
LBB0_8:
	cmpq	$0, 24(%r15)
	je	LBB0_16
## %bb.9:
	movq	16(%r15), %r13
	testq	%r13, %r13
	je	LBB0_16
## %bb.10:
	cmpl	$0, 8(%r15)
	jle	LBB0_16
## %bb.11:
	movl	$8, %ebx
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$2048, %edx                     ## imm = 0x800
	callq	_dma_unmap_single
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	-4(%r13,%rbx), %edi
	callq	_dev_kfree_skb
	movslq	8(%r15), %rax
	cmpq	%rax, %r12
	jge	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	16(%r15), %r13
	addq	$16, %rbx
	incq	%r12
	jmp	LBB0_12
LBB0_16:
	movq	56(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_18
## %bb.17:
	movl	64(%r15), %ecx
	movl	68(%r15), %esi
	movq	%r14, %rdi
	callq	_dma_free_coherent
	movq	$0, 56(%r15)
LBB0_18:
	movq	24(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_20
## %bb.19:
	movl	32(%r15), %ecx
	movl	36(%r15), %esi
	movq	%r14, %rdi
	callq	_dma_free_coherent
	movq	$0, 24(%r15)
LBB0_20:
	movq	48(%r15), %rdi
	callq	_kfree
	movq	$0, 48(%r15)
	movq	16(%r15), %rdi
	callq	_kfree
	movq	$0, 16(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_e1000_free_desc_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_free_desc_rings
_e1000_free_desc_rings:                 ; @e1000_free_desc_rings
	.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	x19, x0
	ldr	x20, [x0]
	ldr	x8, [x0, #56]
	cbz	x8, LBB0_8
; %bb.1:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_8
; %bb.2:
	ldr	w9, [x19, #40]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x21, #0
	mov	w22, #1
Lloh0:
	adrp	x23, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DMA_TO_DEVICE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x24, x8, x21
	ldr	x1, [x24, #8]
	cbz	x1, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x8, x21]
	ldr	w3, [x23]
	mov	x0, x20
	bl	_dma_unmap_single
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24, #4]
	bl	_dev_kfree_skb
	ldrsw	x8, [x19, #40]
	cmp	x22, x8
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #48]
	add	x21, x21, #16
	add	x22, x22, #1
	b	LBB0_4
LBB0_8:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_16
; %bb.9:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_16
; %bb.10:
	ldr	w9, [x19, #8]
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.11:
	mov	x21, #0
	mov	w22, #1
Lloh2:
	adrp	x23, _DMA_FROM_DEVICE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _DMA_FROM_DEVICE@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x24, x8, x21
	ldr	x1, [x24, #8]
	cbz	x1, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w3, [x23]
	mov	x0, x20
	mov	w2, #2048
	bl	_dma_unmap_single
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x24, #4]
	bl	_dev_kfree_skb
	ldrsw	x8, [x19, #8]
	cmp	x22, x8
	b.ge	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x19, #16]
	add	x21, x21, #16
	add	x22, x22, #1
	b	LBB0_12
LBB0_16:
	ldr	x2, [x19, #56]
	cbz	x2, LBB0_18
; %bb.17:
	ldp	w3, w1, [x19, #64]
	mov	x0, x20
	bl	_dma_free_coherent
	str	xzr, [x19, #56]
LBB0_18:
	ldr	x2, [x19, #24]
	cbz	x2, LBB0_20
; %bb.19:
	ldp	w3, w1, [x19, #32]
	mov	x0, x20
	bl	_dma_free_coherent
	str	xzr, [x19, #24]
LBB0_20:
	ldr	x0, [x19, #48]
	bl	_kfree
	str	xzr, [x19, #48]
	ldr	x0, [x19, #16]
	bl	_kfree
	str	xzr, [x19, #16]
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_e1000_free_desc_rings
.subsections_via_symbols
