	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgb_clean_tx_ring
_ixgb_clean_tx_ring:                    ## @ixgb_clean_tx_ring
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpl	$0, 8(%rdi)
	je	LBB0_1
## %bb.2:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r14), %rsi
	addq	%r15, %rsi
	movq	%r14, %rdi
	callq	_ixgb_unmap_and_free_tx_resource
	incq	%rbx
	movl	8(%r14), %edx
	addq	$4, %r15
	cmpq	%rdx, %rbx
	jb	LBB0_3
## %bb.4:
	shlq	$2, %rdx
	jmp	LBB0_5
LBB0_1:
	xorl	%edx, %edx
LBB0_5:
	movq	48(%r14), %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	16(%r14), %rdx
	movq	40(%r14), %rdi
	xorl	%esi, %esi
	callq	_memset
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r14)
	movq	_TDH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_IXGB_WRITE_REG
	movq	_TDT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IXGB_WRITE_REG                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TDH,4,2                        ## @TDH
	.comm	_TDT,4,2                        ## @TDT
	.no_dead_strip	_ixgb_clean_tx_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgb_clean_tx_ring
_ixgb_clean_tx_ring:                    ; @ixgb_clean_tx_ring
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x20, #0
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	add	x1, x8, x20
	mov	x0, x19
	bl	_ixgb_unmap_and_free_tx_resource
	add	x21, x21, #1
	ldr	w8, [x19, #8]
	add	x20, x20, #4
	cmp	x21, x8
	b.lo	LBB0_2
; %bb.3:
	lsl	x2, x8, #2
	b	LBB0_5
LBB0_4:
	mov	x2, #0
LBB0_5:
	ldr	x0, [x19, #48]
	mov	w1, #0
	bl	_memset
	ldr	x0, [x19, #40]
	ldr	x2, [x19, #16]
	mov	w1, #0
	bl	_memset
	stp	xzr, xzr, [x19, #24]
Lloh0:
	adrp	x8, _TDH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TDH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_IXGB_WRITE_REG
Lloh3:
	adrp	x8, _TDT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TDT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_IXGB_WRITE_REG
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TDH,4,2                        ; @TDH
	.comm	_TDT,4,2                        ; @TDT
	.no_dead_strip	_ixgb_clean_tx_ring
.subsections_via_symbols
