	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_eth_txfree
_sh_eth_txfree:                         ## @sh_eth_txfree
	.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
	callq	_netdev_priv
	movq	%rax, %rbx
	movslq	8(%rax), %rax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpq	%rax, (%rbx)
	jle	LBB0_8
## %bb.1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	16(%rbx)
	movl	8(%r13,%r12), %eax
	addl	%eax, 12(%rbx)
	movslq	8(%rbx), %rax
	incq	%rax
	movl	%eax, 8(%rbx)
	cmpq	%rax, (%rbx)
	jle	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	(%r14)
	movl	%edx, %r15d
	movq	32(%rbx), %r13
	movslq	%edx, %r14
	movq	%r14, %r12
	shlq	$4, %r12
	movl	(%r13,%r12), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_TD_TACT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cpu_to_edmac
	testl	%eax, -56(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r12,%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	24(%rbx), %rax
	movq	(%rax,%r14,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_dev_kfree_skb_irq
	movq	24(%rbx), %rax
	movq	$0, (%rax,%r14,8)
	incl	-44(%rbp)                       ## 4-byte Folded Spill
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_TD_TFP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cpu_to_edmac
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	decl	%eax
	cmpl	%eax, %r15d
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_TD_TDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%rcx, %r15
	callq	_cpu_to_edmac
	orl	%eax, (%r15)
	jmp	LBB0_7
LBB0_8:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %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	_TD_TACT,4,2                    ## @TD_TACT
	.comm	_TD_TFP,4,2                     ## @TD_TFP
	.comm	_TD_TDLE,4,2                    ## @TD_TDLE
	.no_dead_strip	_sh_eth_txfree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_eth_txfree
_sh_eth_txfree:                         ; @sh_eth_txfree
	.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
	bl	_netdev_priv
	ldr	x9, [x0]
	ldrsw	x8, [x0, #8]
	cmp	x9, x8
	b.le	LBB0_8
; %bb.1:
	mov	x20, x0
	mov	w19, #0
Lloh0:
	adrp	x21, _TX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TX_RING_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x22, _TD_TACT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _TD_TACT@GOTPAGEOFF]
Lloh4:
	adrp	x23, _TD_TFP@GOTPAGE
Lloh5:
	ldr	x23, [x23, _TD_TFP@GOTPAGEOFF]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
Lloh6:
	adrp	x24, _TD_TDLE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _TD_TDLE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x25, x27, lsl #4
	add	x8, x8, #8
	ldur	d0, [x20, #12]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	stur	d0, [x20, #12]
	ldrsw	x8, [x20, #8]
	add	x8, x8, #1
	str	w8, [x20, #8]
	ldr	x9, [x20]
	cmp	x9, x8
	b.le	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x21]
	sdiv	w10, w8, w9
	msub	w27, w10, w9, w8
	ldr	x25, [x20, #32]
	add	x26, x25, w27, sxtw #4
	ldr	w28, [x26]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_cpu_to_edmac
	tst	w0, w28
	b.ne	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x27, w27
	ldr	x8, [x20, #24]
	ldr	x0, [x8, x27, lsl #3]
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_dev_kfree_skb_irq
	ldr	x8, [x20, #24]
	str	xzr, [x8, x27, lsl #3]
	add	w19, w19, #1
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	bl	_cpu_to_edmac
	str	w0, [x26]
	ldr	w8, [x21]
	sub	w8, w8, #1
	cmp	w27, w8
	b.lt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x24]
	mov	x0, x20
	bl	_cpu_to_edmac
	ldr	w8, [x26]
	orr	w8, w8, w0
	str	w8, [x26]
	b	LBB0_2
LBB0_8:
	mov	w19, #0
LBB0_9:
	mov	x0, x19
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.comm	_TD_TACT,4,2                    ; @TD_TACT
	.comm	_TD_TFP,4,2                     ; @TD_TFP
	.comm	_TD_TDLE,4,2                    ; @TD_TDLE
	.no_dead_strip	_sh_eth_txfree
.subsections_via_symbols
