	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8169_tx_clear_range
_rtl8169_tx_clear_range:                ## @rtl8169_tx_clear_range
	.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
	testl	%edx, %edx
	je	LBB0_6
## %bb.1:
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %rcx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	decl	%r14d
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	xorl	%edx, %edx
	movq	_NUM_TX_DESC@GOTPCREL(%rip), %rsi
	divl	(%rsi)
                                        ## kill: def $edx killed $edx def $rdx
	movq	24(%rcx), %r13
	movq	%rdx, %r15
	shlq	$4, %r15
	cmpl	$0, (%r13,%r15)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r15,%r13), %rsi
	movq	8(%r13,%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rcx), %rdi
	addq	8(%rcx), %rdx
	movq	%rcx, %r12
	callq	_rtl8169_unmap_tx_skb
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rcx
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%r13, %r15
	addq	$8, %r15
	movq	(%rcx), %rax
	incl	(%rax)
	callq	_dev_kfree_skb
	movq	%r12, %rcx
	movq	$0, (%r15)
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_TX_DESC,4,2                ## @NUM_TX_DESC
	.no_dead_strip	_rtl8169_tx_clear_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8169_tx_clear_range
_rtl8169_tx_clear_range:                ; @rtl8169_tx_clear_range
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	w2, LBB0_6
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _NUM_TX_DESC@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NUM_TX_DESC@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w20, #1
	subs	w19, w19, #1
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	udiv	w9, w20, w8
	msub	w8, w9, w8, w20
	ldr	x9, [x21, #24]
	add	x1, x9, w8, uxtw #4
	ldr	w10, [x1]
	cbz	w10, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x9, x8, lsl #4
	ldr	x22, [x24, #8]!
	ldp	x9, x0, [x21, #8]
	add	x2, x9, x8
	bl	_rtl8169_unmap_tx_skb
	cbz	x22, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x22
	bl	_dev_kfree_skb
	str	xzr, [x24]
	b	LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_TX_DESC,4,2                ; @NUM_TX_DESC
	.no_dead_strip	_rtl8169_tx_clear_range
.subsections_via_symbols
