	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enetc_clean_rx_ring
_enetc_clean_rx_ring:                   ## @enetc_clean_rx_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_enetc_bd_unused
	movl	%eax, %r13d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r12d
	xorl	%edi, %edi
	movl	%r14d, -76(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	setg	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	addl	(%rbx), %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_enetc_process_skb
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_napi_gro_receive
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	incl	%ebx
	xorl	%edi, %edi
	cmpl	-76(%rbp), %ebx                 ## 4-byte Folded Reload
	setl	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_28
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	_ENETC_RXBD_BUNDLE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_enetc_refill_rx_ring
	subl	%eax, %r13d
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movups	(%r14), %xmm0
	movups	16(%r14), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	%r12d, %r15d
	movl	%r12d, %edi
	callq	_ENETC_RXBD
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	24(%r14), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	28(%rax), %r14d
	callq	_BIT
	movl	%r14d, %edi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_enetc_wr_reg
	xorl	%eax, %eax
	callq	_dma_rmb
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_le16_to_cpu
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_enetc_map_rx_buff_to_skb
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, %rdx
	callq	_enetc_get_offloads
	incl	%r15d
	xorl	%edi, %edi
	cmpl	4(%r14), %r15d
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movups	(%r14), %xmm0
	movups	16(%r14), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	callq	_ENETC_RXBD
	movq	%rax, %r15
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %r12d
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	addq	$8, %r15
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_ENETC_RXBD_LSTATUS_F@GOTPCREL(%rip), %rbx
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	movq	_ENETC_RXBD_ERR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ENETC_RXBD_LSTATUS
	movl	%r14d, %edi
	andl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_13
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	%rbx, %r15
	addq	$8, %r15
	movq	_ENETC_RXBD_LSTATUS_F@GOTPCREL(%rip), %rbx
LBB0_13:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	%r13d
	testl	%r14d, (%rbx)
	jne	LBB0_27
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	4(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, %r14d
	testl	%eax, (%rbx)
	je	LBB0_15
## %bb.22:                              ##   in Loop: Header=BB0_13 Depth=2
	xorl	%eax, %eax
	callq	_dma_rmb
	movq	%r15, %rbx
	movl	(%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, %edx
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	%r15, %rbx
	movq	_ENETC_RXB_DMA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_23:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_enetc_add_rx_buff_to_skb
	incl	%r12d
	xorl	%edi, %edi
	cmpl	4(%r15), %r12d
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_13 Depth=2
	movups	(%r15), %xmm0
	movups	16(%r15), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	callq	_ENETC_RXBD
	movq	%rax, %r15
	movq	_ENETC_RXBD_LSTATUS_F@GOTPCREL(%rip), %rbx
	jmp	LBB0_13
LBB0_1:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_28
LBB0_16:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_kfree_skb
	testl	%r14d, (%rbx)
	je	LBB0_17
LBB0_21:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	incl	4(%rax)
	incl	(%rax)
LBB0_7:
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
LBB0_28:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	addl	%ebx, 8(%rax)
	addl	%r14d, 12(%rax)
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	movups	(%r15), %xmm0
	movups	16(%r15), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	callq	_ENETC_RXBD
	movq	%rax, %r15
	movq	_ENETC_RXBD_LSTATUS_F@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_21
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_dma_rmb
	movl	4(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, %r14d
	incl	%r12d
	xorl	%edi, %edi
	movq	%r15, %rbx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	cmpl	4(%r15), %r12d
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	addq	$8, %rbx
	movq	_ENETC_RXBD_LSTATUS_F@GOTPCREL(%rip), %rax
	movq	%rbx, %r15
	testl	%r14d, (%rax)
	je	LBB0_17
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_ENETC_RXBD_BUNDLE,4,2          ## @ENETC_RXBD_BUNDLE
	.comm	_ENETC_RXBD_ERR_MASK,4,2        ## @ENETC_RXBD_ERR_MASK
	.comm	_ENETC_RXBD_LSTATUS_F,4,2       ## @ENETC_RXBD_LSTATUS_F
	.comm	_ENETC_RXB_DMA_SIZE,4,2         ## @ENETC_RXB_DMA_SIZE
	.no_dead_strip	_enetc_clean_rx_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enetc_clean_rx_ring
_enetc_clean_rx_ring:                   ; @enetc_clean_rx_ring
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_enetc_bd_unused
	mov	x23, x0
	ldr	w20, [x19]
	cmp	w21, #0
	cset	w0, gt
	bl	_likely
	movi.2d	v0, #0000000000000000
	cbz	x0, LBB0_18
; %bb.1:
	str	q0, [sp, #16]                   ; 16-byte Folded Spill
Lloh0:
	adrp	x27, _ENETC_RXBD_LSTATUS_F@GOTPAGE
Lloh1:
	ldr	x27, [x27, _ENETC_RXBD_LSTATUS_F@GOTPAGEOFF]
Lloh2:
	adrp	x28, _ENETC_RXB_DMA_SIZE@GOTPAGE
Lloh3:
	ldr	x28, [x28, _ENETC_RXB_DMA_SIZE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	movi.2s	v0, #1
	ld1.s	{ v0 }[1], [x24]
	str	q0, [sp]                        ; 16-byte Folded Spill
	mov	x0, x19
	mov	x1, x24
	bl	_enetc_process_skb
	mov	x0, x22
	mov	x1, x24
	bl	_napi_gro_receive
	ldp	q1, q0, [sp]                    ; 32-byte Folded Reload
	add.2s	v0, v0, v1
	str	q0, [sp, #16]                   ; 16-byte Folded Spill
	fmov	w8, s0
	cmp	w8, w21
	cset	w0, lt
	bl	_likely
	cbz	x0, LBB0_21
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
Lloh4:
	adrp	x8, _ENETC_RXBD_BUNDLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENETC_RXBD_BUNDLE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w23, w8
	b.lt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_enetc_refill_rx_ring
	sub	w23, w23, w0
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldp	q0, q1, [x19]
	stp	q0, q1, [sp, #32]
	add	x0, sp, #32
	mov	x1, x20
	bl	_ENETC_RXBD
	mov	x25, x0
	ldr	w0, [x0, #4]
	bl	_le32_to_cpu
	cbz	w0, LBB0_21
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x0
	ldp	w0, w24, [x19, #24]
	bl	_BIT
	mov	x1, x0
	mov	x0, x24
	bl	_enetc_wr_reg
	bl	_dma_rmb
	ldr	w0, [x25]
	bl	_le16_to_cpu
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_enetc_map_rx_buff_to_skb
	cbz	x0, LBB0_21
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	mov	x0, x19
	mov	x1, x25
	mov	x2, x24
	bl	_enetc_get_offloads
	add	w20, w20, #1
	ldr	w8, [x19, #4]
	cmp	w20, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	q0, q1, [x19]
	stp	q0, q1, [sp, #32]
	add	x0, sp, #32
	mov	w1, #0
	bl	_ENETC_RXBD
	mov	x25, x0
	mov	w20, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #8
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh7:
	adrp	x8, _ENETC_RXBD_ERR_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENETC_RXBD_ERR_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_ENETC_RXBD_LSTATUS
	and	w0, w0, w26
	bl	_unlikely
	cbz	x0, LBB0_12
	b	LBB0_19
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	ldp	q0, q1, [x19]
	stp	q0, q1, [sp, #32]
	add	x0, sp, #32
	mov	w1, #0
	bl	_ENETC_RXBD
	mov	x25, x0
	mov	w20, #0
LBB0_12:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w23, w23, #1
	ldr	w8, [x27]
	tst	w8, w26
	b.ne	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	w0, [x25, #4]
	bl	_le32_to_cpu
	mov	x26, x0
	ldr	w8, [x27]
	tst	w8, w0
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	bl	_dma_rmb
	ldr	w0, [x25]
	bl	_le16_to_cpu
	mov	x2, x0
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	w2, [x28]
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x19
	mov	x1, x20
	mov	x3, x24
	bl	_enetc_add_rx_buff_to_skb
	add	w20, w20, #1
	ldr	w8, [x19, #4]
	cmp	w20, w8
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_11
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=2
	add	x25, x25, #8
	b	LBB0_12
LBB0_18:
	str	q0, [sp, #16]                   ; 16-byte Folded Spill
	b	LBB0_21
LBB0_19:
	mov	x0, x24
	bl	_dev_kfree_skb
	ldr	w8, [x27]
	tst	w8, w26
	b.eq	LBB0_24
LBB0_20:
	ldr	x8, [x19, #16]
	ldr	d0, [x8]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x8]
LBB0_21:
	str	w20, [x19]
	ldr	d0, [x19, #8]
	ldr	q1, [sp, #16]                   ; 16-byte Folded Reload
	add.2s	v0, v0, v1
	str	d0, [x19, #8]
	fmov	w0, s1
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_22:                                ;   in Loop: Header=BB0_24 Depth=1
	ldp	q0, q1, [x19]
	stp	q0, q1, [sp, #32]
	add	x0, sp, #32
	mov	w1, #0
	bl	_ENETC_RXBD
	mov	x25, x0
	mov	w20, #0
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	ldr	w8, [x27]
	tst	w8, w21
	b.ne	LBB0_20
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	bl	_dma_rmb
	ldr	w0, [x25, #4]
	bl	_le32_to_cpu
	mov	x21, x0
	add	w20, w20, #1
	ldr	w8, [x19, #4]
	cmp	w20, w8
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_22
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x25, x25, #8
	b	LBB0_23
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENETC_RXBD_BUNDLE,4,2          ; @ENETC_RXBD_BUNDLE
	.comm	_ENETC_RXBD_ERR_MASK,4,2        ; @ENETC_RXBD_ERR_MASK
	.comm	_ENETC_RXBD_LSTATUS_F,4,2       ; @ENETC_RXBD_LSTATUS_F
	.comm	_ENETC_RXB_DMA_SIZE,4,2         ; @ENETC_RXB_DMA_SIZE
	.no_dead_strip	_enetc_clean_rx_ring
.subsections_via_symbols
