	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv_tx_done_optimized
_nv_tx_done_optimized:                  ## @nv_tx_done_optimized
	.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	8(%rax), %rax
	cmpq	80(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rcx
	addq	$72, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rax
	cmpq	80(%rbx), %rax
	je	LBB0_20
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, %r14d
	movq	_NV_TX2_VALID@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_20
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r13d, %r15d
	jge	LBB0_20
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_nv_unmap_txskb
	movq	_NV_TX2_LASTPACKET@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_NV_TX2_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r14d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_NV_TX2_RETRYERROR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_NV_TX2_RETRYCOUNT_MASK@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_DEV_HAS_GEAR_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_nv_gear_backoff_reseed
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_u64_stats_update_begin
	movq	_stat_tx_packets@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_nv_txrx_stats_inc
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	_stat_tx_bytes@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_nv_txrx_stats_add
	movq	%r14, %rdi
	callq	_u64_stats_update_end
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%rbx), %rax
	movq	(%rax), %rdi
	movl	(%rdi), %eax
	addq	%rax, %r12
	callq	_dev_kfree_skb_any
	movq	32(%rbx), %rax
	movq	$0, (%rax)
	incl	%r15d
	cmpq	$0, 64(%rbx)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_nv_tx_flip_ownership
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rax
	leaq	4(%rax), %rcx
	movq	%rcx, 8(%rbx)
	movslq	56(%rbx), %rcx
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	48(%rbx), %rax
	movq	%rax, 8(%rbx)
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%rbx), %rax
	leaq	8(%rax), %rcx
	movq	%rcx, 32(%rbx)
	movslq	40(%rbx), %rcx
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%rbx), %rax
	movq	%rax, 32(%rbx)
	jmp	LBB0_19
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_nv_legacybackoff_reseed
	jmp	LBB0_13
LBB0_1:
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
LBB0_20:
	movl	16(%rbx), %edi
	movl	%r15d, %esi
	movq	%r12, %rdx
	callq	_netdev_completed_queue
	cmpl	$1, 4(%rbx)
	movl	$0, %edi
	jne	LBB0_22
## %bb.21:
	xorl	%edi, %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, 8(%rbx)
	setne	%dil
LBB0_22:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movl	$0, 4(%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_wake_queue
LBB0_24:
	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_TX2_VALID,4,2               ## @NV_TX2_VALID
	.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
	.comm	_DEV_HAS_GEAR_MODE,4,2          ## @DEV_HAS_GEAR_MODE
	.comm	_stat_tx_packets,4,2            ## @stat_tx_packets
	.comm	_stat_tx_bytes,4,2              ## @stat_tx_bytes
	.no_dead_strip	_nv_tx_done_optimized
.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_optimized
_nv_tx_done_optimized:                  ; @nv_tx_done_optimized
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x9, [x0, #8]
	ldr	x8, [x0, #80]
	cmp	x9, x8
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	b.eq	LBB0_18
; %bb.1:
	mov	w21, #0
	mov	x22, #0
Lloh0:
	adrp	x27, _NV_TX2_VALID@GOTPAGE
Lloh1:
	ldr	x27, [x27, _NV_TX2_VALID@GOTPAGEOFF]
Lloh2:
	adrp	x28, _NV_TX2_LASTPACKET@GOTPAGE
Lloh3:
	ldr	x28, [x28, _NV_TX2_LASTPACKET@GOTPAGEOFF]
Lloh4:
	adrp	x26, _NV_TX2_ERROR@GOTPAGE
Lloh5:
	ldr	x26, [x26, _NV_TX2_ERROR@GOTPAGEOFF]
	add	x24, x20, #72
	mov	x8, x9
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x20, #80]
	cmp	x8, x9
	b.eq	LBB0_19
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_19
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x0
	ldr	x1, [x20, #32]
	mov	x0, x20
	bl	_nv_unmap_txskb
	ldr	w8, [x28]
	tst	w8, w25
	b.eq	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x26]
	and	w0, w8, w25
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh6:
	adrp	x8, _NV_TX2_RETRYERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NV_TX2_RETRYERROR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh9:
	adrp	x8, _NV_TX2_RETRYCOUNT_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NV_TX2_RETRYCOUNT_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w25
	b.ne	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
Lloh12:
	adrp	x9, _DEV_HAS_GEAR_MODE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DEV_HAS_GEAR_MODE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	mov	x0, x19
	tst	w9, w8
	b.eq	LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_nv_gear_backoff_reseed
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	bl	_u64_stats_update_begin
Lloh15:
	adrp	x8, _stat_tx_packets@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stat_tx_packets@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_nv_txrx_stats_inc
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _stat_tx_bytes@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stat_tx_bytes@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_nv_txrx_stats_add
	mov	x0, x24
	bl	_u64_stats_update_end
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #32]
	ldr	x0, [x8]
	ldr	w8, [x0]
	add	x22, x22, x8
	bl	_dev_kfree_skb_any
	ldr	x8, [x20, #32]
	str	xzr, [x8]
	add	w21, w21, #1
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_nv_tx_flip_ownership
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	add	x9, x8, #4
	str	x9, [x20, #8]
	ldrsw	x9, [x20, #56]
	cmp	x8, x9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #48]
	str	x8, [x20, #8]
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #32]
	add	x9, x8, #8
	str	x9, [x20, #32]
	ldrsw	x9, [x20, #40]
	cmp	x8, x9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #24]
	str	x8, [x20, #32]
	b	LBB0_2
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_nv_legacybackoff_reseed
	b	LBB0_11
LBB0_18:
	mov	x22, #0
	mov	w21, #0
LBB0_19:
	ldr	w0, [x20, #16]
	mov	x1, x21
	mov	x2, x22
	bl	_netdev_completed_queue
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.ne	LBB0_21
; %bb.20:
	ldr	x8, [x20, #8]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_22
	b	LBB0_23
LBB0_21:
	mov	w0, #0
	bl	_unlikely
	cbz	x0, LBB0_23
LBB0_22:
	str	wzr, [x20, #4]
	mov	x0, x19
	bl	_netif_wake_queue
LBB0_23:
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_TX2_VALID,4,2               ; @NV_TX2_VALID
	.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
	.comm	_DEV_HAS_GEAR_MODE,4,2          ; @DEV_HAS_GEAR_MODE
	.comm	_stat_tx_packets,4,2            ; @stat_tx_packets
	.comm	_stat_tx_bytes,4,2              ; @stat_tx_bytes
	.no_dead_strip	_nv_tx_done_optimized
.subsections_via_symbols
