	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1_clean_tx_ring
_atl1_clean_tx_ring:                    ## @atl1_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
	movq	%rdi, %r15
	movl	8(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	movq	(%r15), %r14
	movl	$8, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movl	%eax, %ecx
	addq	$24, %rbx
	cmpq	%rcx, %r12
	jae	LBB0_5
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r15), %r13
	movq	(%r13,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r13,%rbx), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_pci_unmap_page
	movq	$0, (%r13,%rbx)
	movl	8(%r15), %eax
	jmp	LBB0_2
LBB0_5:
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
	movl	%eax, %ecx
	addq	$24, %rbx
	cmpq	%rcx, %r14
	jae	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r15), %r12
	movq	(%r12,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	callq	_dev_kfree_skb_any
	movq	$0, (%r12,%rbx)
	movl	8(%r15), %eax
	jmp	LBB0_7
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	movl	%eax, %eax
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %rdx
	movq	40(%r15), %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	16(%r15), %rdx
	movq	32(%r15), %rdi
	xorl	%esi, %esi
	callq	_memset
	leaq	28(%r15), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	addq	$24, %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atomic_set                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.no_dead_strip	_atl1_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 atl1_clean_tx_ring
_atl1_clean_tx_ring:                    ; @atl1_clean_tx_ring
	.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	w8, [x0, #8]
	cbz	w8, LBB0_10
; %bb.1:
	mov	x21, #0
	mov	x22, #0
	ldr	x20, [x19]
Lloh0:
	adrp	x23, _PCI_DMA_TODEVICE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	add	x21, x21, #24
	cmp	x22, w8, uxtw
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #40]
	add	x24, x9, x21
	ldr	x1, [x24, #8]
	cbz	x1, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x24, #16]
	ldr	w3, [x23]
	mov	x0, x20
	bl	_pci_unmap_page
	str	xzr, [x24, #8]
	ldr	w8, [x19, #8]
	b	LBB0_2
LBB0_5:
	cbz	w8, LBB0_10
; %bb.6:
	mov	x20, #0
	mov	x21, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x21, x21, #1
	add	x20, x20, #24
	cmp	x21, w8, uxtw
	b.hs	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x19, #40]
	ldr	x0, [x22, x20]
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_dev_kfree_skb_any
	str	xzr, [x22, x20]
	ldr	w8, [x19, #8]
	b	LBB0_7
LBB0_10:
	mov	w9, #24
	umull	x2, w8, w9
	ldr	x0, [x19, #40]
	mov	w1, #0
	bl	_memset
	ldr	x0, [x19, #32]
	ldr	x2, [x19, #16]
	mov	w1, #0
	bl	_memset
	add	x0, x19, #28
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #24
	mov	w1, #0
	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
	b	_atomic_set
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.no_dead_strip	_atl1_clean_tx_ring
.subsections_via_symbols
