	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ave_tx_complete
_ave_tx_complete:                       ## @ave_tx_complete
	.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, -56(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r12
	movl	24(%rax), %eax
	movl	28(%r12), %ebx
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	%ebx, %eax
	jne	LBB0_2
## %bb.1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_2:
	movl	32(%r12), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	movl	%ebx, %eax
	cltd
	idivl	-60(%rbp)                       ## 4-byte Folded Reload
	movl	%edx, %ebx
	cmpl	%edx, -48(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_AVE_DESCID_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_ave_desc_read_cmdsts
	movq	_AVE_STS_OWN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_AVE_STS_OK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_AVE_STS_PKTLEN_TX_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	addl	%ecx, %r14d
	movq	_AVE_STS_LAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r15d
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	40(%r12), %rax
	movslq	%ebx, %r13
	cmpq	$0, (%rax,%r13,8)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rax,%r13,8), %rsi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ave_dma_unmap
	movq	40(%r12), %rax
	movq	(%rax,%r13,8), %rdi
	callq	_dev_consume_skb_any
	movq	40(%r12), %rax
	movq	$0, (%rax,%r13,8)
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_AVE_STS_LAST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	16(%r12)
	movq	_AVE_STS_EC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_AVE_STS_OWC@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	12(%r12)
	jmp	LBB0_10
LBB0_4:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
LBB0_13:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 28(%r12)
	movq	%r12, %rbx
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_u64_stats_update_begin
	addl	%r15d, (%r12)
	addl	%r14d, 4(%r12)
	movq	%rbx, %rdi
	callq	_u64_stats_update_end
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_queue_stopped
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_16
## %bb.14:
	testl	%ebx, %ebx
	je	LBB0_16
## %bb.15:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_wake_queue
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVE_DESCID_TX,4,2              ## @AVE_DESCID_TX
	.comm	_AVE_STS_OWN,4,2                ## @AVE_STS_OWN
	.comm	_AVE_STS_OK,4,2                 ## @AVE_STS_OK
	.comm	_AVE_STS_PKTLEN_TX_MASK,4,2     ## @AVE_STS_PKTLEN_TX_MASK
	.comm	_AVE_STS_LAST,4,2               ## @AVE_STS_LAST
	.comm	_AVE_STS_OWC,4,2                ## @AVE_STS_OWC
	.comm	_AVE_STS_EC,4,2                 ## @AVE_STS_EC
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_ave_tx_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ave_tx_complete
_ave_tx_complete:                       ; @ave_tx_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	ldp	w23, w22, [x0, #24]
	cmp	w23, w22
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
	movi.2d	v0, #0000000000000000
	str	q0, [sp]                        ; 16-byte Folded Spill
	b	LBB0_14
LBB0_2:
	mov	w20, #0
	ldr	w24, [x21, #32]
	movi.2d	v0, #0000000000000000
	str	q0, [sp]                        ; 16-byte Folded Spill
Lloh0:
	adrp	x25, _AVE_DESCID_TX@GOTPAGE
Lloh1:
	ldr	x25, [x25, _AVE_DESCID_TX@GOTPAGEOFF]
Lloh2:
	adrp	x26, _AVE_STS_OWN@GOTPAGE
Lloh3:
	ldr	x26, [x26, _AVE_STS_OWN@GOTPAGEOFF]
Lloh4:
	adrp	x28, _AVE_STS_LAST@GOTPAGE
Lloh5:
	ldr	x28, [x28, _AVE_STS_LAST@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w22, #1
	sdiv	w9, w8, w24
	msub	w22, w9, w24, w8
	cmp	w23, w22
	b.eq	LBB0_14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x22
	bl	_ave_desc_read_cmdsts
	ldr	w8, [x26]
	tst	w8, w0
	b.ne	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh6:
	adrp	x8, _AVE_STS_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVE_STS_OK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh9:
	adrp	x8, _AVE_STS_PKTLEN_TX_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVE_STS_PKTLEN_TX_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w0
	ldr	w9, [x28]
	tst	w9, w0
	cset	w9, ne
	fmov	s0, w9
	mov.s	v0[1], w8
	ldr	q1, [sp]                        ; 16-byte Folded Reload
	add.2s	v1, v1, v0
	mov.16b	v0, v1
	b	LBB0_11
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x28]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21, #16]
	add	w8, w8, #1
	str	w8, [x21, #16]
Lloh12:
	adrp	x8, _AVE_STS_OWC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVE_STS_OWC@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _AVE_STS_EC@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AVE_STS_EC@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21, #12]
	add	w8, w8, #1
	str	w8, [x21, #12]
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	q0, [sp]                        ; 16-byte Folded Reload
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #40]
	add	x1, x8, w22, sxtw #3
	ldr	x8, [x1]
	str	q0, [sp]                        ; 16-byte Folded Spill
	cbz	x8, LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x27, w22
Lloh18:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ave_dma_unmap
	ldr	x8, [x21, #40]
	lsl	x27, x27, #3
	ldr	x0, [x8, x27]
	bl	_dev_consume_skb_any
	ldr	x8, [x21, #40]
	str	xzr, [x8, x27]
	add	w20, w20, #1
	b	LBB0_3
LBB0_13:
	mov	x23, x22
LBB0_14:
	str	w23, [x21, #28]
	add	x22, x21, #8
	mov	x0, x22
	bl	_u64_stats_update_begin
	ldr	d0, [x21]
	ldr	q1, [sp]                        ; 16-byte Folded Reload
	add.2s	v0, v0, v1
	str	d0, [x21]
	mov	x0, x22
	bl	_u64_stats_update_end
	mov	x0, x19
	bl	_netif_queue_stopped
	bl	_unlikely
	cbz	x0, LBB0_17
; %bb.15:
	cbz	w20, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_netif_wake_queue
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AVE_DESCID_TX,4,2              ; @AVE_DESCID_TX
	.comm	_AVE_STS_OWN,4,2                ; @AVE_STS_OWN
	.comm	_AVE_STS_OK,4,2                 ; @AVE_STS_OK
	.comm	_AVE_STS_PKTLEN_TX_MASK,4,2     ; @AVE_STS_PKTLEN_TX_MASK
	.comm	_AVE_STS_LAST,4,2               ; @AVE_STS_LAST
	.comm	_AVE_STS_OWC,4,2                ; @AVE_STS_OWC
	.comm	_AVE_STS_EC,4,2                 ; @AVE_STS_EC
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_ave_tx_complete
.subsections_via_symbols
