	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function reset_tx_descriptors
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_reset_tx_descriptors:                  ## @reset_tx_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	%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
	callq	_netdev_priv
	movq	%rax, %r15
	movq	8(%rax), %rax
	movq	%rax, 48(%r15)
	movq	%rax, 40(%r15)
	movq	$0, 32(%r15)
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movl	%ecx, (%r15)
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movl	$48, %ebx
	xorl	%r12d, %r12d
	movq	%rax, %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorps	%xmm0, %xmm0
	movups	%xmm0, -32(%r13,%rbx)
	movq	16(%r15), %rdx
	incq	%r12
	leaq	(%rbx,%rdx), %rsi
	movq	%rsi, -40(%r13,%rbx)
	leaq	(%rax,%rbx), %rsi
	movq	%rsi, -48(%r13,%rbx)
	movslq	%ecx, %rsi
	addq	$48, %rbx
	movq	%rax, %r13
	cmpq	%rsi, %r12
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-16(%r13,%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	24(%r15), %edi
	movl	-8(%r13,%rbx), %esi
	movl	(%rdx), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_unmap_single
	movq	-16(%r13,%rbx), %rdi
	callq	_dev_kfree_skb_any
	movq	$0, -16(%r13,%rbx)
	movq	8(%r15), %rax
	movl	(%r14), %ecx
	jmp	LBB0_5
LBB0_1:
	movq	16(%r15), %rdx
LBB0_6:
	decl	%ecx
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	shlq	$4, %rcx
	movq	%rdx, 8(%rax,%rcx)
	movq	%rax, (%rax,%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.no_dead_strip	_reset_tx_descriptors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reset_tx_descriptors
_reset_tx_descriptors:                  ; @reset_tx_descriptors
	.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
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x0, #8]
	stp	x8, x8, [x0, #40]
	str	xzr, [x0, #32]
Lloh0:
	adrp	x20, _TX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TX_RING_SIZE@GOTPAGEOFF]
	ldr	w9, [x20]
	str	w9, [x0]
	ldr	w9, [x20]
	cmp	w9, #0
	b.le	LBB0_5
; %bb.1:
	mov	x21, #0
	mov	x22, #0
Lloh2:
	adrp	x23, _PCI_DMA_TODEVICE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	stp	xzr, xzr, [x24, #16]
	ldr	x10, [x19, #16]
	add	x22, x22, #1
	add	x11, x21, x10
	add	x11, x11, #48
	add	x12, x8, x21
	add	x12, x12, #48
	stp	x12, x11, [x24]
	add	x21, x21, #48
	cmp	x22, w9, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x24, x8, x21
	ldr	x10, [x24, #32]
	cbz	x10, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #24]
	ldr	w1, [x24, #40]
	ldr	w2, [x10]
	ldr	w3, [x23]
	bl	_pci_unmap_single
	ldr	x0, [x24, #32]
	bl	_dev_kfree_skb_any
	str	xzr, [x24, #32]
	ldr	x8, [x19, #8]
	ldr	w9, [x20]
	b	LBB0_2
LBB0_5:
	ldr	x10, [x19, #16]
LBB0_6:
	mov	w11, #48
	smaddl	x9, w9, w11, x8
	stp	x8, x10, [x9, #-48]
	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	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.no_dead_strip	_reset_tx_descriptors
.subsections_via_symbols
