	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1e_clean_tx_ring
_atl1e_clean_tx_ring:                   ## @atl1e_clean_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
	cmpq	$0, 24(%rdi)
	je	LBB0_18
## %bb.1:
	movq	%rdi, %r12
	movq	16(%rdi), %r13
	testq	%r13, %r13
	je	LBB0_18
## %bb.2:
	movq	8(%r12), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	(%r12), %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	-1(%rax), %rbx
	movl	$24, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%r13,%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-24(%r13,%r14), %eax
	movq	_ATL1E_TX_PCIMAP_SINGLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13,%r14), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_pci_unmap_single
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_ATL1E_TX_PCIMAP_PAGE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13,%r14), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_pci_unmap_page
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, -8(%r13,%r14)
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	subq	$1, %rbx
	jb	LBB0_7
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r12), %r13
	addq	$32, %r14
	jmp	LBB0_4
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_12
## %bb.8:
	movl	$8, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$32, %rbx
	decq	%r14
	je	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %r15
	movq	(%r15,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	callq	_dev_kfree_skb_any
	movq	$0, (%r15,%rbx)
	jmp	LBB0_11
LBB0_12:
	movq	24(%r12), %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leal	(,%rbx,4), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	16(%r12), %rdi
	shll	$5, %ebx
	xorl	%esi, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATL1E_TX_PCIMAP_SINGLE,4,2     ## @ATL1E_TX_PCIMAP_SINGLE
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_ATL1E_TX_PCIMAP_PAGE,4,2       ## @ATL1E_TX_PCIMAP_PAGE
	.no_dead_strip	_atl1e_clean_tx_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1e_clean_tx_ring
_atl1e_clean_tx_ring:                   ; @atl1e_clean_tx_ring
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_12
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_12
; %bb.2:
	ldr	x21, [x19, #8]
	cbz	x21, LBB0_18
; %bb.3:
	mov	x22, #0
	ldr	x20, [x19]
	sub	x23, x21, #1
Lloh0:
	adrp	x24, _ATL1E_TX_PCIMAP_SINGLE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ATL1E_TX_PCIMAP_SINGLE@GOTPAGEOFF]
Lloh2:
	adrp	x25, _ATL1E_TX_PCIMAP_PAGE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ATL1E_TX_PCIMAP_PAGE@GOTPAGEOFF]
Lloh4:
	adrp	x26, _PCI_DMA_TODEVICE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _PCI_DMA_TODEVICE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x27, x8, x22
	ldr	x1, [x27, #16]
	cbz	x1, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x8, x22]
	ldr	w10, [x24]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, x22
	ldr	w2, [x8, #24]
	ldr	w3, [x26]
	mov	x0, x20
	bl	_pci_unmap_single
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x25]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, x22
	ldr	w2, [x8, #24]
	ldr	w3, [x26]
	mov	x0, x20
	bl	_pci_unmap_page
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x27, #16]
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x23, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #16]
	sub	x23, x23, #1
	add	x22, x22, #32
	b	LBB0_4
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
	cbz	x21, LBB0_18
; %bb.14:
	mov	w20, #8
	mov	x22, x21
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x20, x20, #32
	subs	x22, x22, #1
	b.eq	LBB0_18
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x19, #16]
	ldr	x0, [x23, x20]
	cbz	x0, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	bl	_dev_kfree_skb_any
	str	xzr, [x23, x20]
	b	LBB0_15
LBB0_18:
	ldr	x0, [x19, #24]
	lsl	w2, w21, #2
	mov	w1, #0
	bl	_memset
	ldr	x0, [x19, #16]
	lsl	w2, w21, #5
	mov	w1, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_memset
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ATL1E_TX_PCIMAP_SINGLE,4,2     ; @ATL1E_TX_PCIMAP_SINGLE
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_ATL1E_TX_PCIMAP_PAGE,4,2       ; @ATL1E_TX_PCIMAP_PAGE
	.no_dead_strip	_atl1e_clean_tx_ring
.subsections_via_symbols
