	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cp_tx
_cp_tx:                                 ## @cp_tx
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	(%rdi), %eax
	movl	4(%rdi), %r13d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %r13d
	jne	LBB0_1
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_dev_kfree_skb_irq
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r12), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	$0, (%rax,%rcx,8)
	movl	%r14d, %edi
	callq	_NEXT_TX
	movl	%eax, %r13d
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_19
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %r14
	movl	%r13d, %ebx
	xorl	%eax, %eax
	callq	_rmb
	movl	(%r14,%rbx,8), %edi
	callq	_le32_to_cpu
	movl	%eax, %r15d
	movq	_DescOwn@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	xorl	%edi, %edi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	movq	24(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	4(%r14,%rbx,8), %edi
	callq	_le64_to_cpu
	movq	%rbx, %rcx
	movl	%r13d, %ebx
	movl	%eax, %r13d
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	(%r14,%rcx,8), %edi
	callq	_le32_to_cpu
	movzwl	%ax, %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%ebx, %r14d
	callq	_dma_unmap_single
	movq	_LastFrag@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_18
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_TxFIFOUnder@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_TxError@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%r15d, %eax
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_netif_msg_tx_err
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r12), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %edx
	callq	_pr_debug
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r12), %rax
	incl	32(%rax)
	movq	_TxOWC@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	28(%rax)
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_TxMaxCol@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	incl	24(%rax)
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_TxLinkFail@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	incl	20(%rax)
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_TxFIFOUnder@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	incl	16(%rax)
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_TxColCntShift@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	sarl	%cl, %r15d
	movq	_TxColCntMask@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	8(%r12), %rax
	addl	%r15d, 4(%rax)
	incl	12(%rax)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %ecx
	addl	%ecx, 8(%rax)
	movq	%r12, %rdi
	callq	_netif_msg_tx_done
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r12), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %edx
	callq	_pr_debug
	jmp	LBB0_17
LBB0_2:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
LBB0_19:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r12)
	movq	%r12, %rdi
	callq	_TX_BUFFS_AVAIL
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	incq	%rcx
	cmpq	%rcx, %rax
	jle	LBB0_20
## %bb.21:
	movq	8(%r12), %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
LBB0_20:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DescOwn,4,2                    ## @DescOwn
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_LastFrag,4,2                   ## @LastFrag
	.comm	_TxError,4,2                    ## @TxError
	.comm	_TxFIFOUnder,4,2                ## @TxFIFOUnder
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: tx err, status 0x%x\n"

	.comm	_TxOWC,4,2                      ## @TxOWC
	.comm	_TxMaxCol,4,2                   ## @TxMaxCol
	.comm	_TxLinkFail,4,2                 ## @TxLinkFail
	.comm	_TxColCntShift,4,2              ## @TxColCntShift
	.comm	_TxColCntMask,4,2               ## @TxColCntMask
L_.str.1:                               ## @.str.1
	.asciz	"%s: tx done, slot %d\n"

	.comm	_MAX_SKB_FRAGS,8,3              ## @MAX_SKB_FRAGS
	.no_dead_strip	_cp_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cp_tx
_cp_tx:                                 ; @cp_tx
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldp	w27, w20, [x0]
	cmp	w20, w27
	b.ne	LBB0_3
	b	LBB0_19
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_dev_kfree_skb_irq
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	str	xzr, [x8, x22, lsl #3]
	mov	x0, x20
	bl	_NEXT_TX
	mov	x20, x0
	cmp	w0, w27
	b.eq	LBB0_19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x19, #32]
	bl	_rmb
	add	x21, x26, w20, uxtw #3
	ldr	w0, [x21]
	bl	_le32_to_cpu
Lloh0:
	adrp	x8, _DescOwn@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DescOwn@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_18
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	mov	w22, w20
	ldr	x8, [x19, #16]
	lsl	x28, x22, #3
	ldr	x23, [x8, x28]
	cmp	x23, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x25, [x19, #24]
	add	x8, x26, x28
	ldr	w0, [x8, #4]
	bl	_le64_to_cpu
	mov	x26, x0
	ldr	w0, [x21]
	bl	_le32_to_cpu
	and	w2, w0, #0xffff
Lloh3:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x25
	mov	x1, x26
	bl	_dma_unmap_single
Lloh6:
	adrp	x8, _LastFrag@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LastFrag@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh9:
	adrp	x8, _TxError@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TxError@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _TxFIFOUnder@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TxFIFOUnder@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w24
	b.eq	LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_netif_msg_tx_err
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x24
	bl	_pr_debug
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #32]
	add	w9, w9, #1
	str	w9, [x8, #32]
Lloh17:
	adrp	x9, _TxOWC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _TxOWC@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w24
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x8, #28]
	add	w9, w9, #1
	str	w9, [x8, #28]
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh20:
	adrp	x9, _TxMaxCol@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TxMaxCol@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w24
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x8, #24]
	add	w9, w9, #1
	str	w9, [x8, #24]
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh23:
	adrp	x9, _TxLinkFail@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TxLinkFail@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w24
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x8, #20]
	add	w9, w9, #1
	str	w9, [x8, #20]
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh26:
	adrp	x9, _TxFIFOUnder@GOTPAGE
Lloh27:
	ldr	x9, [x9, _TxFIFOUnder@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w24
	b.eq	LBB0_1
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x8, #16]
	add	w9, w9, #1
	str	w9, [x8, #16]
	b	LBB0_1
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh29:
	adrp	x8, _TxColCntShift@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TxColCntShift@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	asr	w8, w24, w8
Lloh32:
	adrp	x9, _TxColCntMask@GOTPAGE
Lloh33:
	ldr	x9, [x9, _TxColCntMask@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	and	w8, w8, w9
	ldr	x9, [x19, #8]
	ldr	w10, [x9, #4]
	add	w8, w10, w8
	str	w8, [x9, #4]
	ldr	d0, [x9, #8]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x23]
	add.2s	v0, v0, v1
	str	d0, [x9, #8]
	mov	x0, x19
	bl	_netif_msg_tx_done
	cbz	x0, LBB0_1
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh35:
	adrp	x0, l_.str.1@PAGE
Lloh36:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_pr_debug
	b	LBB0_1
LBB0_18:
	mov	x27, x20
LBB0_19:
	str	w27, [x19, #4]
	mov	x0, x19
	bl	_TX_BUFFS_AVAIL
Lloh37:
	adrp	x8, _MAX_SKB_FRAGS@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MAX_SKB_FRAGS@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	add	x8, x8, #1
	cmp	x0, x8
	b.le	LBB0_21
; %bb.20:
	ldr	x0, [x19, #8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_netif_wake_queue
LBB0_21:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_DescOwn,4,2                    ; @DescOwn
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_LastFrag,4,2                   ; @LastFrag
	.comm	_TxError,4,2                    ; @TxError
	.comm	_TxFIFOUnder,4,2                ; @TxFIFOUnder
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: tx err, status 0x%x\n"

	.comm	_TxOWC,4,2                      ; @TxOWC
	.comm	_TxMaxCol,4,2                   ; @TxMaxCol
	.comm	_TxLinkFail,4,2                 ; @TxLinkFail
	.comm	_TxColCntShift,4,2              ; @TxColCntShift
	.comm	_TxColCntMask,4,2               ; @TxColCntMask
l_.str.1:                               ; @.str.1
	.asciz	"%s: tx done, slot %d\n"

	.comm	_MAX_SKB_FRAGS,8,3              ; @MAX_SKB_FRAGS
	.no_dead_strip	_cp_tx
.subsections_via_symbols
