	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_clean_test_rings
_igb_clean_test_rings:                  ## @igb_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, %r15d
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r12
	movq	%rbx, %rsi
	callq	_IGB_RX_DESC
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %r15
	leaq	(%r15,%rbx,4), %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %edi
	movl	(%r15,%rbx,4), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	callq	_dma_sync_single_for_cpu
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_igb_check_lbtest_frame
	cmpq	$1, %rax
	sbbq	$-1, -48(%rbp)                  ## 8-byte Folded Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %edi
	movl	(%r15,%rbx,4), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r13d, %edx
	callq	_dma_sync_single_for_device
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	24(%r13), %rax
	leaq	(%rax,%r12,4), %r14
	movl	(%rax,%r12,4), %edi
	callq	_dev_kfree_skb_any
	movl	16(%r13), %eax
	movl	%eax, -64(%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	-64(%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
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_dma_unmap_len_set
	incq	%rbx
	cmpq	8(%r14), %rbx
	movl	$0, %eax
	cmoveq	%rax, %rbx
	incq	%r12
	cmpq	8(%r13), %r12
	cmoveq	%rax, %r12
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_IGB_RX_DESC
	cmpq	$0, (%rax)
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_4:
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_txring_txq
	movl	%eax, %edi
	callq	_netdev_tx_reset_queue
	movq	%r14, %rdi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_igb_alloc_rx_buffers
	movq	%rbx, (%r14)
	movq	%r12, (%r13)
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_dma,4,2                        ## @dma
	.comm	_len,4,2                        ## @len
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_igb_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 igb_clean_test_rings
_igb_clean_test_rings:                  ; @igb_clean_test_rings
	.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
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
	ldr	x27, [x1]
	mov	x1, x21
	bl	_IGB_RX_DESC
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x22, #0
Lloh0:
	adrp	x28, _len@GOTPAGE
Lloh1:
	ldr	x28, [x28, _len@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #32]
	add	x24, x8, x21, lsl #2
	ldr	w0, [x20, #16]
	ldr	w1, [x24]
Lloh2:
	adrp	x25, _DMA_FROM_DEVICE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	w3, [x25]
	mov	x2, x23
	bl	_dma_sync_single_for_cpu
	mov	x0, x24
	mov	x1, x23
	bl	_igb_check_lbtest_frame
	cmp	x0, #0
	cinc	x22, x22, ne
	ldr	w0, [x20, #16]
	ldr	w1, [x24]
	ldr	w3, [x25]
	mov	x2, x23
	bl	_dma_sync_single_for_device
	ldr	x8, [x19, #24]
	add	x24, x8, x27, lsl #2
	ldr	w0, [x24]
	bl	_dev_kfree_skb_any
	ldr	w25, [x19, #16]
Lloh4:
	adrp	x8, _dma@GOTPAGE
Lloh5:
	ldr	x8, [x8, _dma@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_dma_unmap_addr
	mov	x26, x0
	ldr	w1, [x28]
	mov	x0, x24
	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, x25
	mov	x1, x26
	bl	_dma_unmap_single
	ldr	w1, [x28]
	mov	x0, x24
	mov	w2, #0
	bl	_dma_unmap_len_set
	add	x8, x21, #1
	ldr	x9, [x20, #8]
	cmp	x8, x9
	csinc	x21, xzr, x21, eq
	add	x8, x27, #1
	ldr	x9, [x19, #8]
	cmp	x8, x9
	csinc	x27, xzr, x27, eq
	mov	x0, x20
	mov	x1, x21
	bl	_IGB_RX_DESC
	ldr	x8, [x0]
	cbnz	x8, LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x22, #0
LBB0_4:
	mov	x0, x19
	bl	_txring_txq
	bl	_netdev_tx_reset_queue
	mov	x0, x20
	mov	x1, x22
	bl	_igb_alloc_rx_buffers
	str	x21, [x20]
	str	x27, [x19]
	mov	x0, x22
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_dma,4,2                        ; @dma
	.comm	_len,4,2                        ; @len
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_igb_clean_test_rings
.subsections_via_symbols
