	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv_tx_done
_nv_tx_done:                            ## @nv_tx_done
	.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
	movl	%esi, %r13d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	16(%rax), %rax
	movl	$0, %r14d
	movl	$0, %r15d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	72(%rbx), %rax
	je	LBB0_22
## %bb.1:
	movq	%rbx, %rax
	addq	$68, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rax
	cmpq	72(%rbx), %rax
	je	LBB0_22
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, %r12d
	movq	_NV_TX_VALID@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_22
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r13d, %r15d
	jge	LBB0_22
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_nv_unmap_txskb
	movq	(%rbx), %rax
	movq	_DESC_VER_1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_NV_TX_LASTPACKET@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_NV_TX_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r12d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_NV_TX_RETRYERROR@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_NV_TX_RETRYCOUNT_MASK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_16
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_NV_TX2_LASTPACKET@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_NV_TX2_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r12d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_NV_TX2_RETRYERROR@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_NV_TX2_RETRYCOUNT_MASK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_16
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_nv_legacybackoff_reseed
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_u64_stats_update_begin
	movq	_stat_tx_packets@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_nv_txrx_stats_inc
	movq	40(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	_stat_tx_bytes@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_nv_txrx_stats_add
	movq	%r12, %rdi
	callq	_u64_stats_update_end
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%rbx), %rax
	movq	(%rax), %rdi
	addl	(%rdi), %r14d
	callq	_dev_kfree_skb_any
	movq	40(%rbx), %rax
	movq	$0, (%rax)
	incl	%r15d
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rax
	leaq	4(%rax), %rcx
	movq	%rcx, 16(%rbx)
	movslq	64(%rbx), %rcx
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	56(%rbx), %rax
	movq	%rax, 16(%rbx)
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%rbx), %rax
	leaq	8(%rax), %rcx
	movq	%rcx, 40(%rbx)
	movslq	48(%rbx), %rcx
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx), %rax
	movq	%rax, 40(%rbx)
	jmp	LBB0_21
LBB0_22:
	movl	24(%rbx), %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_netdev_completed_queue
	cmpl	$1, 8(%rbx)
	movl	$0, %edi
	jne	LBB0_24
## %bb.23:
	xorl	%edi, %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, 16(%rbx)
	setne	%dil
LBB0_24:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movl	$0, 8(%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_wake_queue
LBB0_26:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_TX_VALID,4,2                ## @NV_TX_VALID
	.comm	_DESC_VER_1,8,3                 ## @DESC_VER_1
	.comm	_NV_TX_LASTPACKET,4,2           ## @NV_TX_LASTPACKET
	.comm	_NV_TX_ERROR,4,2                ## @NV_TX_ERROR
	.comm	_NV_TX_RETRYERROR,4,2           ## @NV_TX_RETRYERROR
	.comm	_NV_TX_RETRYCOUNT_MASK,4,2      ## @NV_TX_RETRYCOUNT_MASK
	.comm	_stat_tx_packets,4,2            ## @stat_tx_packets
	.comm	_stat_tx_bytes,4,2              ## @stat_tx_bytes
	.comm	_NV_TX2_LASTPACKET,4,2          ## @NV_TX2_LASTPACKET
	.comm	_NV_TX2_ERROR,4,2               ## @NV_TX2_ERROR
	.comm	_NV_TX2_RETRYERROR,4,2          ## @NV_TX2_RETRYERROR
	.comm	_NV_TX2_RETRYCOUNT_MASK,4,2     ## @NV_TX2_RETRYCOUNT_MASK
	.no_dead_strip	_nv_tx_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv_tx_done
_nv_tx_done:                            ; @nv_tx_done
	.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	x23, x1
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	bl	_netdev_priv
	mov	x20, x0
	ldr	x9, [x0, #16]
	ldr	x8, [x0, #72]
	cmp	x9, x8
	str	x9, [sp]                        ; 8-byte Folded Spill
	b.eq	LBB0_21
; %bb.1:
	mov	w21, #0
	mov	w22, #0
Lloh0:
	adrp	x27, _NV_TX_VALID@GOTPAGE
Lloh1:
	ldr	x27, [x27, _NV_TX_VALID@GOTPAGEOFF]
Lloh2:
	adrp	x28, _DESC_VER_1@GOTPAGE
Lloh3:
	ldr	x28, [x28, _DESC_VER_1@GOTPAGEOFF]
Lloh4:
	adrp	x26, _NV_TX_LASTPACKET@GOTPAGE
Lloh5:
	ldr	x26, [x26, _NV_TX_LASTPACKET@GOTPAGEOFF]
Lloh6:
	adrp	x19, _NV_TX2_LASTPACKET@GOTPAGE
Lloh7:
	ldr	x19, [x19, _NV_TX2_LASTPACKET@GOTPAGEOFF]
	add	x24, x20, #68
	mov	x8, x9
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #16]
	ldr	x9, [x20, #72]
	cmp	x8, x9
	b.eq	LBB0_22
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x8]
	bl	_le32_to_cpu
	ldr	w8, [x27]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w21, w23, #0, eq
	b.ge	LBB0_22
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x0
	ldr	x1, [x20, #40]
	mov	x0, x20
	bl	_nv_unmap_txskb
	ldr	x8, [x20]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x26]
	tst	w8, w25
	b.eq	LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh8:
	adrp	x8, _NV_TX_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NV_TX_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w0, w8, w25
	bl	_unlikely
	cbz	x0, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh11:
	adrp	x8, _NV_TX_RETRYERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NV_TX_RETRYERROR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh14:
	adrp	x8, _NV_TX_RETRYCOUNT_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NV_TX_RETRYCOUNT_MASK@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	tst	w8, w25
	b.eq	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh16:
	adrp	x8, _NV_TX2_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NV_TX2_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	and	w0, w8, w25
	bl	_unlikely
	cbz	x0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh19:
	adrp	x8, _NV_TX2_RETRYERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NV_TX2_RETRYERROR@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh22:
	adrp	x8, _NV_TX2_RETRYCOUNT_MASK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NV_TX2_RETRYCOUNT_MASK@GOTPAGEOFF]
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x8]
	tst	w8, w25
	b.ne	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_nv_legacybackoff_reseed
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	bl	_u64_stats_update_begin
Lloh24:
	adrp	x8, _stat_tx_packets@GOTPAGE
Lloh25:
	ldr	x8, [x8, _stat_tx_packets@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_nv_txrx_stats_inc
	ldr	x8, [x20, #40]
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _stat_tx_bytes@GOTPAGE
Lloh28:
	ldr	x8, [x8, _stat_tx_bytes@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_nv_txrx_stats_add
	mov	x0, x24
	bl	_u64_stats_update_end
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #40]
	ldr	x0, [x8]
	ldr	w8, [x0]
	add	w22, w8, w22
	bl	_dev_kfree_skb_any
	ldr	x8, [x20, #40]
	str	xzr, [x8]
	add	w21, w21, #1
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #16]
	add	x9, x8, #4
	str	x9, [x20, #16]
	ldrsw	x9, [x20, #64]
	cmp	x8, x9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #56]
	str	x8, [x20, #16]
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #40]
	add	x9, x8, #8
	str	x9, [x20, #40]
	ldrsw	x9, [x20, #48]
	cmp	x8, x9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.20:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #32]
	str	x8, [x20, #40]
	b	LBB0_2
LBB0_21:
	mov	w22, #0
	mov	w21, #0
LBB0_22:
	ldr	w0, [x20, #24]
	mov	x1, x21
	mov	x2, x22
	bl	_netdev_completed_queue
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.ne	LBB0_24
; %bb.23:
	ldr	x8, [x20, #16]
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_25
	b	LBB0_26
LBB0_24:
	mov	w0, #0
	bl	_unlikely
	cbz	x0, LBB0_26
LBB0_25:
	str	wzr, [x20, #8]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_netif_wake_queue
LBB0_26:
	mov	x0, x21
	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	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_TX_VALID,4,2                ; @NV_TX_VALID
	.comm	_DESC_VER_1,8,3                 ; @DESC_VER_1
	.comm	_NV_TX_LASTPACKET,4,2           ; @NV_TX_LASTPACKET
	.comm	_NV_TX_ERROR,4,2                ; @NV_TX_ERROR
	.comm	_NV_TX_RETRYERROR,4,2           ; @NV_TX_RETRYERROR
	.comm	_NV_TX_RETRYCOUNT_MASK,4,2      ; @NV_TX_RETRYCOUNT_MASK
	.comm	_stat_tx_packets,4,2            ; @stat_tx_packets
	.comm	_stat_tx_bytes,4,2              ; @stat_tx_bytes
	.comm	_NV_TX2_LASTPACKET,4,2          ; @NV_TX2_LASTPACKET
	.comm	_NV_TX2_ERROR,4,2               ; @NV_TX2_ERROR
	.comm	_NV_TX2_RETRYERROR,4,2          ; @NV_TX2_RETRYERROR
	.comm	_NV_TX2_RETRYCOUNT_MASK,4,2     ; @NV_TX2_RETRYCOUNT_MASK
	.no_dead_strip	_nv_tx_done
.subsections_via_symbols
