	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %r12d
	movl	4(%rdi), %ebx
	xorl	%esi, %esi
	cmpl	%r12d, %ebx
	jne	LBB0_2
## %bb.1:
	xorl	%edx, %edx
	movl	%r12d, %ebx
	jmp	LBB0_20
LBB0_2:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_TxColCntShift@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	sarl	%cl, %r12d
	movq	_TxColCntMask@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movq	%r14, %r15
	movq	16(%r14), %rdx
	addl	%r12d, (%rdx)
	incl	8(%rdx)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %eax
	addl	%eax, 4(%rdx)
	movq	_tx_done@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %rcx
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %r8d
	callq	_netif_dbg
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	(%rbx), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	incl	%ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_dev_consume_skb_irq
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r15), %rax
	movq	$0, (%rax,%r13,8)
	movl	%r14d, %edi
	callq	_NEXT_TX
	movl	%eax, %ebx
	cmpl	%r12d, %eax
	je	LBB0_18
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r15), %r14
	movl	%ebx, %r13d
	xorl	%eax, %eax
	callq	_rmb
	movl	4(%r14,%r13,8), %edi
	callq	_le32_to_cpu
	movl	%eax, %r12d
	movq	_DescOwn@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_19
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movq	24(%r15), %rax
	movq	(%rax,%r13,8), %rax
	xorl	%edi, %edi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	movq	%r15, %rbx
	movq	32(%r15), %r15
	movl	(%r14,%r13,8), %edi
	callq	_le64_to_cpu
	movq	%rbx, %r14
	movq	8(%rbx), %rcx
	movzwl	(%rcx,%r13,4), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dma_unmap_single
	movq	_LastFrag@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_TxFIFOUnder@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_TxError@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%r12d, %eax
	je	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_tx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %r15
	movq	16(%r14), %rdx
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rcx
	movl	%r12d, %r8d
	callq	_netif_dbg
	movq	16(%r14), %rax
	incl	28(%rax)
	movq	_TxOWC@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	24(%rax)
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_TxMaxCol@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	20(%rax)
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_TxLinkFail@GOTPCREL(%rip), %rsi
	testl	%r12d, (%rsi)
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	16(%rax)
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_TxFIFOUnder@GOTPCREL(%rip), %rsi
	testl	%r12d, (%rsi)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%edi, %r12d
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	12(%rax)
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %r15
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_17
LBB0_18:
	movl	%r12d, %ebx
LBB0_19:
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_20:
	movl	%ebx, 4(%r15)
	movq	16(%r15), %rdi
	callq	_netdev_completed_queue
	movq	%r15, %rdi
	callq	_TX_BUFFS_AVAIL
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	incq	%rcx
	cmpq	%rcx, %rax
	jle	LBB0_21
## %bb.22:
	movq	16(%r15), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
LBB0_21:
	addq	$24, %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
	.comm	_tx_err,4,2                     ## @tx_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"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
	.comm	_tx_done,4,2                    ## @tx_done
L_.str.1:                               ## @.str.1
	.asciz	"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:
	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
	ldp	w8, w22, [x0]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	cmp	w22, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w21, #0
	mov	w20, #0
	b	LBB0_18
LBB0_2:
	mov	w20, #0
	mov	w21, #0
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh0:
	adrp	x8, _TxColCntShift@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TxColCntShift@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	asr	w8, w26, w8
Lloh3:
	adrp	x9, _TxColCntMask@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TxColCntMask@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w8, w9
	ldr	x2, [x19, #16]
	ldr	w9, [x2]
	add	w8, w9, w8
	str	w8, [x2]
	ldur	d0, [x2, #4]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x25]
	add.2s	v0, v0, v1
	stur	d0, [x2, #4]
Lloh6:
	adrp	x8, _tx_done@GOTPAGE
Lloh7:
	ldr	x8, [x8, _tx_done@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
Lloh9:
	adrp	x3, l_.str.1@PAGE
Lloh10:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x4, x22
	bl	_netif_dbg
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x25]
	add	w20, w20, w8
	add	w21, w21, #1
	mov	x0, x25
	bl	_dev_consume_skb_irq
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #24]
	str	xzr, [x8, x24, lsl #3]
	mov	x0, x22
	bl	_NEXT_TX
	mov	x22, x0
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w0, w8
	b.eq	LBB0_18
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x19, #40]
	bl	_rmb
	add	x8, x23, w22, uxtw #3
	ldr	w0, [x8, #4]
	bl	_le32_to_cpu
Lloh11:
	adrp	x8, _DescOwn@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DescOwn@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x26, x0
	mov	w24, w22
	ldr	x8, [x19, #24]
	lsl	x28, x24, #3
	ldr	x25, [x8, x28]
	cmp	x25, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x27, [x19, #32]
	ldr	w0, [x23, x28]
	bl	_le64_to_cpu
	mov	x1, x0
	ldr	x8, [x19, #8]
	lsl	x9, x24, #2
	ldrh	w2, [x8, x9]
Lloh14:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x0, x27
	bl	_dma_unmap_single
Lloh17:
	adrp	x8, _LastFrag@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LastFrag@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w26
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh20:
	adrp	x8, _TxError@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TxError@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _TxFIFOUnder@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TxFIFOUnder@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w26
	b.eq	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh26:
	adrp	x8, _tx_err@GOTPAGE
Lloh27:
	ldr	x8, [x8, _tx_err@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldr	x2, [x19, #16]
	mov	x0, x19
Lloh29:
	adrp	x3, l_.str@PAGE
Lloh30:
	add	x3, x3, l_.str@PAGEOFF
	mov	x4, x26
	bl	_netif_dbg
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #28]
	add	w9, w9, #1
	str	w9, [x8, #28]
Lloh31:
	adrp	x9, _TxOWC@GOTPAGE
Lloh32:
	ldr	x9, [x9, _TxOWC@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	tst	w9, w26
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x8, #24]
	add	w9, w9, #1
	str	w9, [x8, #24]
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh34:
	adrp	x9, _TxMaxCol@GOTPAGE
Lloh35:
	ldr	x9, [x9, _TxMaxCol@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	tst	w9, w26
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x8, #20]
	add	w9, w9, #1
	str	w9, [x8, #20]
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh37:
	adrp	x9, _TxLinkFail@GOTPAGE
Lloh38:
	ldr	x9, [x9, _TxLinkFail@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	tst	w9, w26
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x8, #16]
	add	w9, w9, #1
	str	w9, [x8, #16]
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh40:
	adrp	x9, _TxFIFOUnder@GOTPAGE
Lloh41:
	ldr	x9, [x9, _TxFIFOUnder@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	tst	w9, w26
	b.eq	LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x8, #12]
	add	w9, w9, #1
	str	w9, [x8, #12]
	b	LBB0_4
LBB0_17:
	str	w22, [sp, #12]                  ; 4-byte Folded Spill
LBB0_18:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	str	w8, [x19, #4]
	ldr	x0, [x19, #16]
	mov	x1, x21
	mov	x2, x20
	bl	_netdev_completed_queue
	mov	x0, x19
	bl	_TX_BUFFS_AVAIL
Lloh43:
	adrp	x8, _MAX_SKB_FRAGS@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MAX_SKB_FRAGS@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	add	x8, x8, #1
	cmp	x0, x8
	b.le	LBB0_20
; %bb.19:
	ldr	x0, [x19, #16]
	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_20:
	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 AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.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
	.comm	_tx_err,4,2                     ; @tx_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"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
	.comm	_tx_done,4,2                    ; @tx_done
l_.str.1:                               ; @.str.1
	.asciz	"tx done, slot %d\n"

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