	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netdev_tx_done
_netdev_tx_done:                        ## @netdev_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
	pushq	%rax
	.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, %rbx
	movq	(%rax), %rsi
	movq	8(%rax), %rcx
	cmpq	%rcx, %rsi
	jle	LBB0_28
## %bb.1:
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	movq	%rcx, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_2
## %bb.3:
	movq	%rcx, %rax
	cqto
	idivq	%rdi
	movq	%rdx, %r13
	jmp	LBB0_4
LBB0_2:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%edi
	movl	%edx, %r13d
LBB0_4:
	movq	96(%rbx), %rax
	movl	(%rax,%r13,4), %r15d
	testl	%r15d, %r15d
	js	LBB0_28
## %bb.5:
	leaq	64(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r12
	addq	$56, %r12
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	%rcx, %rax
	cqto
	idivq	%rdi
	movq	%rdx, %r13
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	96(%rbx), %rax
	movl	(%rax,%r13,4), %r15d
	testl	%r15d, %r15d
	js	LBB0_28
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	$32768, %r15d                   ## imm = 0x8000
	jne	LBB0_11
## %bb.23:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$4, %eax
	jl	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_netdev_dbg
LBB0_25:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	32(%rbx), %rax
	movq	(%rax,%r13,8), %rax
	movl	(%rax), %eax
	addl	%eax, 60(%rbx)
	shrl	$3, %r15d
	andl	$15, %r15d
	addl	%r15d, 52(%rbx)
	movq	%r12, %rax
LBB0_26:                                ##   in Loop: Header=BB0_10 Depth=1
	incl	(%rax)
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$2, %eax
	jl	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_netdev_dbg
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	incl	84(%rbx)
	testl	$260, %r15d                     ## imm = 0x104
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	incl	80(%rbx)
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	testl	$3200, %r15d                    ## imm = 0xC80
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	incl	76(%rbx)
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	testl	$512, %r15d                     ## imm = 0x200
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=1
	testb	$2, %r15b
	jne	LBB0_20
LBB0_21:                                ##   in Loop: Header=BB0_10 Depth=1
	testb	$-128, %r15b
	jne	LBB0_22
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	incl	72(%rbx)
	testb	$2, %r15b
	je	LBB0_21
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=1
	incl	68(%rbx)
	testb	$-128, %r15b
	je	LBB0_27
LBB0_22:                                ##   in Loop: Header=BB0_10 Depth=1
	cmpq	$0, 88(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_26
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	48(%rbx), %edi
	movq	32(%rbx), %rax
	movq	40(%rbx), %rcx
	movl	(%rcx,%r13,4), %esi
	movq	(%rax,%r13,8), %rax
	movq	(%rax), %rdx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_unmap_single
	movq	32(%rbx), %rax
	movq	(%rax,%r13,8), %rdi
	movq	(%rdi), %rax
	subq	%rax, 16(%rbx)
	callq	_dev_kfree_skb_irq
	movq	32(%rbx), %rax
	movq	$0, (%rax,%r13,8)
	movq	(%rbx), %rsi
	movq	8(%rbx), %rcx
	incq	%rcx
	movq	%rcx, 8(%rbx)
	cmpq	%rcx, %rsi
	jle	LBB0_28
## %bb.6:                               ##   in Loop: Header=BB0_10 Depth=1
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	movq	%rcx, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_10 Depth=1
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%edi
	movl	%edx, %r13d
	jmp	LBB0_9
LBB0_28:
	cmpq	$0, 24(%rbx)
	je	LBB0_31
## %bb.29:
	subq	%rcx, %rsi
	movq	_TX_QUEUE_LEN_RESTART@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jge	LBB0_31
## %bb.30:
	movq	16(%rbx), %rax
	movq	_TX_BUG_FIFO_LIMIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_31
## %bb.32:
	movq	$0, 24(%rbx)
	xorl	%eax, %eax
	callq	_wmb
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
LBB0_31:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Transmit error, Tx status %08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Transmit slot %d ok, Tx status %08x\n"

	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_TX_QUEUE_LEN_RESTART,8,3       ## @TX_QUEUE_LEN_RESTART
	.comm	_TX_BUG_FIFO_LIMIT,8,3          ## @TX_BUG_FIFO_LIMIT
	.no_dead_strip	_netdev_tx_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netdev_tx_done
_netdev_tx_done:                        ; @netdev_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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldp	x8, x9, [x0]
	cmp	x8, x9
	b.le	LBB0_22
; %bb.1:
Lloh0:
	adrp	x25, _TX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _TX_RING_SIZE@GOTPAGEOFF]
	ldrsw	x10, [x25]
	sdiv	x11, x9, x10
	msub	x23, x11, x10, x9
	ldr	x10, [x20, #96]
	ldr	w24, [x10, x23, lsl #2]
	tbnz	w24, #31, LBB0_22
; %bb.2:
	add	x26, x20, #64
	add	x27, x20, #56
Lloh2:
	adrp	x28, _debug@GOTPAGE
Lloh3:
	ldr	x28, [x28, _debug@GOTPAGEOFF]
Lloh4:
	adrp	x21, _PCI_DMA_TODEVICE@GOTPAGE
Lloh5:
	ldr	x21, [x21, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	mov	w22, #3200
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x28]
	tbnz	w24, #15, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #4
	b.lt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x24, [sp]
	mov	x0, x19
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_netdev_dbg
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #32]
	ldr	x8, [x8, x23, lsl #3]
	ldr	w8, [x8]
	ldr	w9, [x20, #60]
	add	w8, w9, w8
	str	w8, [x20, #60]
	ubfx	w8, w24, #3, #4
	ldr	w9, [x20, #52]
	add	w8, w9, w8
	str	w8, [x20, #52]
	mov	x8, x27
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_20
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #2
	b.lt	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	bl	_netdev_dbg
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #84]
	add	w8, w8, #1
	str	w8, [x20, #84]
	mov	w8, #260
	tst	w24, w8
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #80]
	add	w8, w8, #1
	str	w8, [x20, #80]
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	tst	w24, w22
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #76]
	add	w8, w8, #1
	str	w8, [x20, #76]
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w24, #9, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w24, #1, LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w24, #7, LBB0_19
	b	LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #72]
	add	w8, w8, #1
	str	w8, [x20, #72]
	tbz	w24, #1, LBB0_16
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #68]
	add	w8, w8, #1
	str	w8, [x20, #68]
	tbz	w24, #7, LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x20, #88]
	mov	x8, x26
	cbz	x9, LBB0_7
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x9, x8, [x20, #32]
	ldr	w1, [x8, x23, lsl #2]
	ldr	w0, [x20, #48]
	lsl	x23, x23, #3
	ldr	x8, [x9, x23]
	ldr	x2, [x8]
	ldr	w3, [x21]
	bl	_pci_unmap_single
	ldr	x8, [x20, #32]
	ldr	x0, [x8, x23]
	ldr	x8, [x0]
	ldr	x9, [x20, #16]
	sub	x8, x9, x8
	str	x8, [x20, #16]
	bl	_dev_kfree_skb_irq
	ldr	x8, [x20, #32]
	str	xzr, [x8, x23]
	ldp	x8, x9, [x20]
	add	x9, x9, #1
	str	x9, [x20, #8]
	cmp	x8, x9
	b.le	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x10, [x25]
	sdiv	x11, x9, x10
	msub	x23, x11, x10, x9
	ldr	x10, [x20, #96]
	ldr	w24, [x10, x23, lsl #2]
	tbz	w24, #31, LBB0_3
LBB0_22:
	ldr	x10, [x20, #24]
	cbz	x10, LBB0_26
; %bb.23:
Lloh10:
	adrp	x10, _TX_QUEUE_LEN_RESTART@GOTPAGE
Lloh11:
	ldr	x10, [x10, _TX_QUEUE_LEN_RESTART@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	sub	x8, x8, x9
	cmp	x8, x10
	b.ge	LBB0_26
; %bb.24:
	ldr	x8, [x20, #16]
Lloh13:
	adrp	x9, _TX_BUG_FIFO_LIMIT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TX_BUG_FIFO_LIMIT@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_26
; %bb.25:
	str	xzr, [x20, #24]
	bl	_wmb
	mov	x0, x19
	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
	b	_netif_wake_queue
LBB0_26:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Transmit error, Tx status %08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Transmit slot %d ok, Tx status %08x\n"

	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_TX_QUEUE_LEN_RESTART,8,3       ; @TX_QUEUE_LEN_RESTART
	.comm	_TX_BUG_FIFO_LIMIT,8,3          ; @TX_BUG_FIFO_LIMIT
	.no_dead_strip	_netdev_tx_done
.subsections_via_symbols
