	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meth_tx_cleanup
_meth_tx_cleanup:                       ## @meth_tx_cleanup
	.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	%rsi, %r12
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_TX_INFO_RPTR@GOTPCREL(%rip), %rax
	andq	(%rax), %r12
	shrq	$16, %r12
	leaq	16(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	_METH_DMA_TX_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	40(%rbx), %eax
	movl	%eax, 40(%rbx)
	movq	_mace@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 4(%rcx)
	movq	(%rbx), %rax
	cmpq	%r12, %rax
	je	LBB0_8
## %bb.1:
	movq	24(%rbx), %rcx
	movq	_METH_TX_ST_DONE@GOTPCREL(%rip), %r13
	movq	_TX_RING_ENTRIES@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	(%r15)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_dev_consume_skb_irq
	movq	(%rbx), %rdx
	movq	32(%rbx), %rax
	movq	$0, (%rax,%rdx,8)
	movq	24(%rbx), %rcx
	movq	$0, (%rcx,%rdx,8)
	incq	%rdx
	movslq	(%r14), %rax
	decq	%rax
	andq	%rdx, %rax
	movq	%rax, (%rbx)
	decl	20(%rbx)
	cmpq	%r12, %rax
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rax,8), %rcx
	testq	%rcx, (%r13)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx), %rdx
	movq	(%rdx,%rax,8), %rdi
	movq	_METH_TX_ST_SUCCESS@GOTPCREL(%rip), %rax
	testq	%rcx, (%rax)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	8(%r15)
	movl	(%rdi), %eax
	addl	%eax, 4(%r15)
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTK
LBB0_8:
	movq	%r15, %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%r15, %rdi
	callq	_meth_tx_full
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_netif_wake_queue
LBB0_11:
	movq	_METH_INT_TX_EMPTY@GOTPCREL(%rip), %rax
	movq	_METH_INT_TX_PKT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_mace@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ecx, (%rax)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_INFO_RPTR,8,3               ## @TX_INFO_RPTR
	.comm	_METH_DMA_TX_INT_EN,4,2         ## @METH_DMA_TX_INT_EN
	.comm	_mace,8,3                       ## @mace
	.comm	_METH_TX_ST_DONE,8,3            ## @METH_TX_ST_DONE
	.comm	_METH_TX_ST_SUCCESS,8,3         ## @METH_TX_ST_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RPTR points us here, but packet not done?\n"

	.comm	_TX_RING_ENTRIES,4,2            ## @TX_RING_ENTRIES
	.comm	_METH_INT_TX_EMPTY,4,2          ## @METH_INT_TX_EMPTY
	.comm	_METH_INT_TX_PKT,4,2            ## @METH_INT_TX_PKT
	.comm	_METH_TX_ST_DEFER,8,3           ## @METH_TX_ST_DEFER
	.comm	_METH_TX_ST_EXCCOLL,8,3         ## @METH_TX_ST_EXCCOLL
	.comm	_METH_TX_ST_LATECOLL,8,3        ## @METH_TX_ST_LATECOLL
	.comm	_METH_TX_ST_TOOLONG,8,3         ## @METH_TX_ST_TOOLONG
	.comm	_METH_TX_ST_UNDERRUN,8,3        ## @METH_TX_ST_UNDERRUN
	.no_dead_strip	_meth_tx_cleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meth_tx_cleanup
_meth_tx_cleanup:                       ; @meth_tx_cleanup
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
Lloh0:
	adrp	x8, _TX_INFO_RPTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TX_INFO_RPTR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	and	x8, x8, x19
	lsr	x23, x8, #16
	add	x19, x0, #16
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x8, _METH_DMA_TX_INT_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _METH_DMA_TX_INT_EN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x21, #40]
	bic	w8, w9, w8
	str	w8, [x21, #40]
Lloh6:
	adrp	x22, _mace@GOTPAGE
Lloh7:
	ldr	x22, [x22, _mace@GOTPAGEOFF]
	ldr	x9, [x22]
	str	w8, [x9, #4]
	ldr	x9, [x21]
	cmp	x9, x23
	b.eq	LBB0_8
; %bb.1:
	ldr	x8, [x21, #24]
Lloh8:
	adrp	x24, _METH_TX_ST_DONE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _METH_TX_ST_DONE@GOTPAGEOFF]
Lloh10:
	adrp	x25, _METH_TX_ST_SUCCESS@GOTPAGE
Lloh11:
	ldr	x25, [x25, _METH_TX_ST_SUCCESS@GOTPAGEOFF]
Lloh12:
	adrp	x26, _TX_RING_ENTRIES@GOTPAGE
Lloh13:
	ldr	x26, [x26, _TX_RING_ENTRIES@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_dev_consume_skb_irq
	ldr	x8, [x21, #32]
	ldr	x9, [x21]
	lsl	x10, x9, #3
	str	xzr, [x8, x10]
	ldr	x8, [x21, #24]
	str	xzr, [x8, x10]
	add	x9, x9, #1
	ldrsw	x10, [x26]
	sub	x10, x10, #1
	and	x9, x9, x10
	str	x9, [x21]
	ldr	w10, [x21, #20]
	sub	w10, w10, #1
	str	w10, [x21, #20]
	cmp	x9, x23
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x9, x9, #3
	ldr	x8, [x8, x9]
	ldr	x10, [x24]
	tst	x10, x8
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x21, #32]
	ldr	x0, [x10, x9]
	ldr	x9, [x25]
	tst	x9, x8
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	d0, [x20, #4]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x0]
	add.2s	v0, v0, v1
	stur	d0, [x20, #4]
	b	LBB0_3
LBB0_7:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTK
LBB0_8:
	mov	x0, x20
	bl	_netif_queue_stopped
	cbz	x0, LBB0_11
; %bb.9:
	mov	x0, x20
	bl	_meth_tx_full
	cbnz	w0, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_netif_wake_queue
LBB0_11:
Lloh16:
	adrp	x8, _METH_INT_TX_EMPTY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _METH_INT_TX_EMPTY@GOTPAGEOFF]
Lloh18:
	adrp	x9, _METH_INT_TX_PKT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _METH_INT_TX_PKT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x22]
	str	w8, [x9]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_INFO_RPTR,8,3               ; @TX_INFO_RPTR
	.comm	_METH_DMA_TX_INT_EN,4,2         ; @METH_DMA_TX_INT_EN
	.comm	_mace,8,3                       ; @mace
	.comm	_METH_TX_ST_DONE,8,3            ; @METH_TX_ST_DONE
	.comm	_METH_TX_ST_SUCCESS,8,3         ; @METH_TX_ST_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RPTR points us here, but packet not done?\n"

	.comm	_TX_RING_ENTRIES,4,2            ; @TX_RING_ENTRIES
	.comm	_METH_INT_TX_EMPTY,4,2          ; @METH_INT_TX_EMPTY
	.comm	_METH_INT_TX_PKT,4,2            ; @METH_INT_TX_PKT
	.comm	_METH_TX_ST_DEFER,8,3           ; @METH_TX_ST_DEFER
	.comm	_METH_TX_ST_EXCCOLL,8,3         ; @METH_TX_ST_EXCCOLL
	.comm	_METH_TX_ST_LATECOLL,8,3        ; @METH_TX_ST_LATECOLL
	.comm	_METH_TX_ST_TOOLONG,8,3         ; @METH_TX_ST_TOOLONG
	.comm	_METH_TX_ST_UNDERRUN,8,3        ; @METH_TX_ST_UNDERRUN
	.no_dead_strip	_meth_tx_cleanup
.subsections_via_symbols
