	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_clean_test_rings
_ixgbe_clean_test_rings:                ## @ixgbe_clean_test_rings
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	(%rdi), %r12
	movq	(%rsi), %r13
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	callq	_IXGBE_RX_DESC
	cmpq	8(%rbx), %r13
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_5
## %bb.1:
	movq	%r13, %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_IXGBE_TX_DESC
	movl	(%rax), %r14d
	movq	_IXGBE_TXD_STAT_DD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	testl	%r14d, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	40(%rbx), %rax
	leaq	(%rax,%r13,4), %r14
	movl	(%rax,%r13,4), %edi
	callq	_dev_kfree_skb_any
	movl	24(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_dma@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dma_unmap_addr
	movl	%eax, %r15d
	movq	_len@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dma_unmap_len
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_dma_unmap_single
	movq	_len@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_dma_unmap_len_set
	incq	%r13
	cmpq	16(%rbx), %r13
	movl	$0, %r14d
	cmovneq	%r13, %r14
	movq	%r14, %r13
	cmpq	8(%rbx), %r14
	jne	LBB0_5
LBB0_2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.7:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rax
	leaq	(%rax,%r12,4), %rbx
	movl	24(%r15), %r13d
	movl	(%rax,%r12,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_ixgbe_rx_bufsz
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r13d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_dma_sync_single_for_cpu
	movq	%rbx, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_ixgbe_check_lbtest_frame
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	-56(%rbp)                       ## 8-byte Folded Spill
	movl	24(%r15), %r13d
	movl	(%rbx), %ebx
	movq	%r15, %rdi
	callq	_ixgbe_rx_bufsz
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_dma_sync_single_for_device
	incq	%r12
	cmpq	16(%r15), %r12
	movl	$0, %eax
	cmoveq	%rax, %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_IXGBE_RX_DESC
	cmpq	$0, (%rax)
	jne	LBB0_8
	jmp	LBB0_10
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_3:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r15                 ## 8-byte Reload
LBB0_10:
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_txring_txq
	movl	%eax, %edi
	callq	_netdev_tx_reset_queue
	movq	%r15, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ixgbe_alloc_rx_buffers
	movq	%r12, (%r15)
	movq	%r14, (%r13)
LBB0_11:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_TXD_STAT_DD,4,2          ## @IXGBE_TXD_STAT_DD
	.comm	_dma,4,2                        ## @dma
	.comm	_len,4,2                        ## @len
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_ixgbe_clean_test_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_clean_test_rings
_ixgbe_clean_test_rings:                ; @ixgbe_clean_test_rings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0]
	ldr	x21, [x1]
	mov	x1, x22
	bl	_IXGBE_RX_DESC
	ldr	x8, [x19, #8]
	cmp	x21, x8
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	b.eq	LBB0_4
; %bb.1:
Lloh0:
	adrp	x28, _IXGBE_TXD_STAT_DD@GOTPAGE
Lloh1:
	ldr	x28, [x28, _IXGBE_TXD_STAT_DD@GOTPAGEOFF]
Lloh2:
	adrp	x24, _len@GOTPAGE
Lloh3:
	ldr	x24, [x24, _len@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_IXGBE_TX_DESC
	ldr	w25, [x0]
	ldr	w0, [x28]
	bl	_cpu_to_le32
	tst	w0, w25
	b.eq	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #40]
	add	x25, x8, x21, lsl #2
	ldr	w0, [x25]
	bl	_dev_kfree_skb_any
	ldr	w26, [x19, #24]
Lloh4:
	adrp	x8, _dma@GOTPAGE
Lloh5:
	ldr	x8, [x8, _dma@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_dma_unmap_addr
	mov	x27, x0
	ldr	w1, [x24]
	mov	x0, x25
	bl	_dma_unmap_len
	mov	x2, x0
Lloh7:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x26
	mov	x1, x27
	bl	_dma_unmap_single
	ldr	w1, [x24]
	mov	x0, x25
	mov	w2, #0
	bl	_dma_unmap_len_set
	add	x8, x21, #1
	ldp	x10, x9, [x19, #8]
	cmp	x8, x9
	csinc	x21, xzr, x21, eq
	cmp	x21, x10
	b.ne	LBB0_2
LBB0_4:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.5:
	mov	x24, #0
Lloh10:
	adrp	x28, _DMA_FROM_DEVICE@GOTPAGE
Lloh11:
	ldr	x28, [x28, _DMA_FROM_DEVICE@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #32]
	add	x25, x8, x22, lsl #2
	ldr	w26, [x20, #24]
	ldr	w27, [x25]
	mov	x0, x20
	bl	_ixgbe_rx_bufsz
	mov	x2, x0
	ldr	w3, [x28]
	mov	x0, x26
	mov	x1, x27
	bl	_dma_sync_single_for_cpu
	mov	x0, x25
	mov	x1, x23
	bl	_ixgbe_check_lbtest_frame
	cbz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	ldr	w26, [x20, #24]
	ldr	w25, [x25]
	mov	x0, x20
	bl	_ixgbe_rx_bufsz
	mov	x2, x0
	ldr	w3, [x28]
	mov	x0, x26
	mov	x1, x25
	bl	_dma_sync_single_for_device
	add	x8, x22, #1
	ldr	x9, [x20, #16]
	cmp	x8, x9
	csinc	x22, xzr, x22, eq
	mov	x0, x20
	mov	x1, x22
	bl	_IXGBE_RX_DESC
	ldr	x8, [x0]
	cbnz	x8, LBB0_6
	b	LBB0_10
LBB0_8:
	mov	x24, #0
	b	LBB0_11
LBB0_9:
	mov	x24, #0
LBB0_10:
	mov	x0, x19
	bl	_txring_txq
	bl	_netdev_tx_reset_queue
	mov	x0, x20
	mov	x1, x24
	bl	_ixgbe_alloc_rx_buffers
	str	x22, [x20]
	str	x21, [x19]
LBB0_11:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_TXD_STAT_DD,4,2          ; @IXGBE_TXD_STAT_DD
	.comm	_dma,4,2                        ; @dma
	.comm	_len,4,2                        ; @len
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_ixgbe_clean_test_rings
.subsections_via_symbols
