	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ag71xx_ring_tx_clean
_ag71xx_ring_tx_clean:                  ## @ag71xx_ring_tx_clean
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	24(%rdi), %edi
	callq	_BIT
	movl	12(%rbx), %edx
	cmpl	%edx, 8(%rbx)
	jne	LBB0_2
## %bb.1:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_8:
	xorl	%eax, %eax
	callq	_wmb
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_completed_queue         ## TAILCALL
LBB0_2:
	leaq	8(%rbx), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	decl	%eax
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %eax
	movq	$0, (%rcx,%r14)
	movl	8(%rbx), %ecx
	movl	12(%rbx), %edx
	incl	%edx
	movl	%edx, 12(%rbx)
	cmpl	%edx, %ecx
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %r15d
	andl	%eax, %edx
	movslq	%edx, %r14
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_ag71xx_ring_desc
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_ag71xx_desc_empty
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, (%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbx), %rcx
	shlq	$4, %r14
	movq	(%rcx,%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	8(%rcx,%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	incq	%r12
	callq	_dev_kfree_skb_any
	movq	16(%rbx), %rcx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ag71xx_ring_tx_clean
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ag71xx_ring_tx_clean
_ag71xx_ring_tx_clean:                  ; @ag71xx_ring_tx_clean
	.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	x20, x0
	ldr	x19, [x0]
	ldr	w0, [x0, #24]
	bl	_BIT
	mov	x23, x20
	ldp	w9, w8, [x23, #8]!
	cmp	w9, w8
	b.ne	LBB0_3
; %bb.1:
	mov	x22, #0
	mov	x21, #0
LBB0_2:
	bl	_wmb
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	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
	b	_netdev_completed_queue
LBB0_3:
	mov	x21, #0
	mov	x22, #0
	sub	w26, w0, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [x8, x25]
	ldp	w9, w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #12]
	cmp	w9, w8
	b.eq	LBB0_2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	and	w8, w8, w26
	sxtw	x24, w8
	mov	x0, x23
	mov	x1, x24
	bl	_ag71xx_ring_desc
	mov	x25, x0
	bl	_ag71xx_desc_empty
	cbnz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [x25]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #16]
	lsl	x25, x24, #4
	ldr	x0, [x8, x25]
	cbz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, x24, lsl #4
	ldr	x8, [x8, #8]
	add	x21, x8, x21
	add	x22, x22, #1
	bl	_dev_kfree_skb_any
	ldr	x8, [x20, #16]
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ag71xx_ring_tx_clean
.subsections_via_symbols
