	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movq	(%rsi), %r14
	movq	%rbx, %rsi
	callq	_IGB_RX_DESC
	movq	_E1000_RXD_STAT_DD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_igb_test_staterr
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %r15
	leaq	(%r15,%rbx,4), %r13
	movl	24(%r12), %edi
	movl	(%r15,%rbx,4), %esi
	movq	_IGB_RX_BUFSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_sync_single_for_cpu
	movq	%r13, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_igb_check_lbtest_frame
	cmpq	$1, %rax
	sbbq	$-1, -48(%rbp)                  ## 8-byte Folded Spill
	movl	24(%r12), %edi
	movl	(%r15,%rbx,4), %esi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	_IGB_RX_BUFSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_sync_single_for_device
	leaq	(,%r14,4), %rsi
	addq	16(%r15), %rsi
	movq	%r15, %rdi
	callq	_igb_unmap_and_free_tx_resource
	incq	%rbx
	cmpq	8(%r12), %rbx
	movl	$0, %eax
	cmoveq	%rax, %rbx
	incq	%r14
	cmpq	8(%r15), %r14
	cmoveq	%rax, %r14
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_IGB_RX_DESC
	movq	_E1000_RXD_STAT_DD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_igb_test_staterr
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_4:
	movq	%r12, %rdi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_igb_alloc_rx_buffers
	movq	%rbx, (%r12)
	movq	%r14, (%r15)
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_RXD_STAT_DD,4,2          ## @E1000_RXD_STAT_DD
	.comm	_IGB_RX_BUFSZ,4,2               ## @IGB_RX_BUFSZ
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_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	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
	ldr	x25, [x1]
	mov	x1, x21
	bl	_IGB_RX_DESC
Lloh0:
	adrp	x26, _E1000_RXD_STAT_DD@GOTPAGE
Lloh1:
	ldr	x26, [x26, _E1000_RXD_STAT_DD@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_igb_test_staterr
	mov	x23, #0
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x27, _IGB_RX_BUFSZ@GOTPAGE
Lloh3:
	ldr	x27, [x27, _IGB_RX_BUFSZ@GOTPAGEOFF]
Lloh4:
	adrp	x28, _DMA_FROM_DEVICE@GOTPAGE
Lloh5:
	ldr	x28, [x28, _DMA_FROM_DEVICE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #32]
	add	x24, x8, x21, lsl #2
	ldr	w0, [x20, #24]
	ldr	w1, [x24]
	ldr	w2, [x27]
	ldr	w3, [x28]
	bl	_dma_sync_single_for_cpu
	mov	x0, x24
	mov	x1, x22
	bl	_igb_check_lbtest_frame
	cmp	x0, #0
	cinc	x23, x23, ne
	ldr	w0, [x20, #24]
	ldr	w1, [x24]
	ldr	w2, [x27]
	ldr	w3, [x28]
	bl	_dma_sync_single_for_device
	ldr	x8, [x19, #16]
	add	x1, x8, x25, lsl #2
	mov	x0, x19
	bl	_igb_unmap_and_free_tx_resource
	add	x8, x21, #1
	ldr	x9, [x20, #8]
	cmp	x8, x9
	csinc	x21, xzr, x21, eq
	add	x8, x25, #1
	ldr	x9, [x19, #8]
	cmp	x8, x9
	csinc	x25, xzr, x25, eq
	mov	x0, x20
	mov	x1, x21
	bl	_IGB_RX_DESC
	ldr	w1, [x26]
	bl	_igb_test_staterr
	cbnz	x0, LBB0_2
LBB0_3:
	mov	x0, x20
	mov	x1, x23
	bl	_igb_alloc_rx_buffers
	str	x21, [x20]
	str	x25, [x19]
	mov	x0, x23
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_RXD_STAT_DD,4,2          ; @E1000_RXD_STAT_DD
	.comm	_IGB_RX_BUFSZ,4,2               ; @IGB_RX_BUFSZ
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_igb_clean_test_rings
.subsections_via_symbols
