	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nb8800_tx_done
_nb8800_tx_done:                        ## @nb8800_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movl	(%rax), %eax
	movl	4(%r12), %r13d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %r13d
	je	LBB0_10
## %bb.1:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leaq	12(%r14), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_consume_skb
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rax
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	leaq	(%rax,%rbx,8), %rax
	addq	$8, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	incl	8(%r12)
	movq	(%r14,%r15,8), %rdi
	callq	_TX_BYTES_TRANSFERRED
	addl	%eax, 4(%r12)
	movq	(%r14,%r15,8), %rdi
	callq	_TX_EARLY_COLLISIONS
	addl	%eax, (%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax,%rbx,8)
	movq	$0, (%r14,%r15,8)
	incl	%r13d
	movl	%r13d, %eax
	xorl	%edx, %edx
	movq	_TX_DESC_COUNT@GOTPCREL(%rip), %rcx
	divl	(%rcx)
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
	incl	%ebx
	movl	%edx, %r13d
	cmpl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %r14
	movl	%r13d, %r15d
	cmpq	$0, (%r14,%r15,8)
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	movq	16(%r12), %rbx
	leaq	(%r15,%r15,2), %r12
	movq	8(%rbx,%r12,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	addl	(%rax), %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	20(%rbx,%r12,8), %esi
	movl	16(%rbx,%r12,8), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_unmap_single
	movq	(%r14,%r15,8), %rdi
	callq	_IS_TX_ERROR
	testq	%rax, %rax
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14,%r15,8), %rsi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_nb8800_tx_error
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree_skb
	jmp	LBB0_6
LBB0_7:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_8:
	testl	%ebx, %ebx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	movl	%ecx, %r15d
	callq	_smp_mb__before_atomic
	movq	%r12, %rsi
	addq	$8, %rsi
	movl	%ebx, %edi
	callq	_atomic_add
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_netdev_completed_queue
	movq	%r14, %rdi
	callq	_netif_wake_queue
	movl	%r13d, 4(%r12)
LBB0_10:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_TX_DESC_COUNT,4,2              ## @TX_DESC_COUNT
	.no_dead_strip	_nb8800_tx_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nb8800_tx_done
_nb8800_tx_done:                        ; @nb8800_tx_done
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldp	w8, w25, [x0]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	cmp	w25, w8
	b.eq	LBB0_10
; %bb.1:
	mov	x24, x0
	mov	w22, #0
	mov	w21, #0
	add	x8, x19, #12
	stp	x0, x8, [sp, #8]                ; 16-byte Folded Spill
	mov	w11, #24
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_consume_skb
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
	add	w21, w21, w20
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	lsl	x20, x27, #3
	ldr	x0, [x28, x20]
	bl	_TX_BYTES_TRANSFERRED
	ldr	w8, [x19, #4]
	add	w8, w8, w0
	str	w8, [x19, #4]
	ldr	x0, [x28, x20]
	bl	_TX_EARLY_COLLISIONS
	ldr	w8, [x19]
	add	w8, w8, w0
	str	w8, [x19]
	str	xzr, [x26]
	mov	w11, #24
	mul	x8, x27, x11
	str	wzr, [x23, x8]
	str	xzr, [x28, x20]
	add	w8, w25, #1
Lloh0:
	adrp	x9, _TX_DESC_COUNT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TX_DESC_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	udiv	w10, w8, w9
	msub	w25, w10, w9, w8
	add	w22, w22, #1
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w25, w8
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x24, #24]
	ldr	x8, [x28, w25, uxtw #3]
	cbz	x8, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w27, w25
	ldr	x8, [x24, #16]
	mov	x23, x8
	madd	x26, x27, x11, x8
	ldr	x24, [x26, #8]!
	ldr	w20, [x24]
	ldp	w2, w1, [x26, #8]
Lloh3:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_dma_unmap_single
	ldr	x0, [x28, x27, lsl #3]
	bl	_IS_TX_ERROR
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x28, x27, lsl #3]
	mov	x0, x19
	bl	_nb8800_tx_error
	mov	x0, x24
	bl	_kfree_skb
	b	LBB0_3
LBB0_7:
	ldr	w25, [sp, #28]                  ; 4-byte Folded Reload
LBB0_8:
	cbz	w22, LBB0_10
; %bb.9:
	bl	_smp_mb__before_atomic
	add	x1, x24, #8
	mov	x0, x22
	bl	_atomic_add
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_netdev_completed_queue
	mov	x0, x19
	bl	_netif_wake_queue
	str	w25, [x24, #4]
LBB0_10:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_TX_DESC_COUNT,4,2              ; @TX_DESC_COUNT
	.no_dead_strip	_nb8800_tx_done
.subsections_via_symbols
