	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc9420_free_tx_ring
_smsc9420_free_tx_ring:                 ## @smsc9420_free_tx_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	%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
	xorl	%edi, %edi
	cmpq	$0, 24(%r14)
	sete	%dil
	callq	_BUG_ON
	movq	16(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.1:
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.2:
	movl	$1, %r12d
	xorl	%ebx, %ebx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rcx,%rbx), %r13
	testq	%r13, %r13
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	cmpl	$0, (%rcx,%rbx)
	sete	%dil
	callq	_BUG_ON
	movl	32(%r14), %edi
	movq	16(%r14), %rax
	movl	(%rax,%rbx), %esi
	movl	(%r13), %edx
	movl	(%r15), %ecx
	callq	_pci_unmap_single
	movq	%r13, %rdi
	callq	_dev_kfree_skb_any
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r14), %rcx
	movslq	%eax, %rdx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rcx,%rbx,2)
	movups	%xmm0, (%rcx,%rbx,2)
	cmpq	%rdx, %r12
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r14), %rcx
	addq	$16, %rbx
	incq	%r12
	jmp	LBB0_3
LBB0_7:
	xorl	%eax, %eax
	callq	_wmb
	movq	16(%r14), %rdi
	callq	_kfree
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	movq	$0, 16(%r14)
LBB0_8:
	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	_smsc9420_free_tx_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc9420_free_tx_ring
_smsc9420_free_tx_ring:                 ; @smsc9420_free_tx_ring
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x8, [x0, #24]
	cmp	x8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_8
; %bb.1:
Lloh0:
	adrp	x21, _TX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x22, #0
	mov	x23, #0
	mov	w24, #1
Lloh2:
	adrp	x25, _PCI_DMA_TODEVICE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _PCI_DMA_TODEVICE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x9, x23
	ldr	x20, [x10, #8]
	cbz	x20, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x9, x23]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w0, [x19, #32]
	ldr	x8, [x19, #16]
	ldr	w1, [x8, x23]
	ldr	w2, [x20]
	ldr	w3, [x25]
	bl	_pci_unmap_single
	mov	x0, x20
	bl	_dev_kfree_skb_any
	ldr	w8, [x21]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19, #24]
	add	x9, x9, x22
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x9]
	cmp	x24, w8, sxtw
	b.ge	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19, #16]
	add	x23, x23, #16
	add	x22, x22, #32
	add	x24, x24, #1
	b	LBB0_3
LBB0_7:
	bl	_wmb
	ldr	x0, [x19, #16]
	bl	_kfree
	stp	xzr, xzr, [x19, #8]
	str	xzr, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 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	_smsc9420_free_tx_ring
.subsections_via_symbols
