	.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
	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, -48(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	je	LBB0_6
## %bb.1:
	movl	%edx, %r14d
	movl	%esi, %ebx
	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), %rcx
	divl	(%rcx)
	movl	%edx, %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r15
	movq	%r13, %r12
	shlq	$4, %r12
	cmpl	$0, (%r15,%r12)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r15,%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r15,%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_tp_to_dev
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	(%rcx), %r13
	movl	%eax, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_rtl8169_unmap_tx_skb
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%r12, %r15
	addq	$8, %r15
	callq	_dev_consume_skb_any
	movq	$0, (%r15)
	jmp	LBB0_5
LBB0_6:
	addq	$24, %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	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
	cbz	w2, LBB0_6
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _NUM_TX_DESC@GOTPAGE
Lloh1:
	ldr	x24, [x24, _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, [x24]
	udiv	w9, w20, w8
	msub	w26, w9, w8, w20
	ldr	x8, [x21, #8]
	add	x22, x8, w26, uxtw #4
	ldr	w9, [x22]
	cbz	w9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x8, x26, lsl #4
	ldr	x23, [x25, #8]!
	mov	x0, x21
	bl	_tp_to_dev
	ldr	x8, [x21]
	add	x2, x8, x26
	mov	x1, x22
	bl	_rtl8169_unmap_tx_skb
	cbz	x23, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_dev_consume_skb_any
	str	xzr, [x25]
	b	LBB0_2
LBB0_6:
	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
	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
