	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gve_clean_rx_done              ## -- Begin function gve_clean_rx_done
	.p2align	4, 0x90
_gve_clean_rx_done:                     ## @gve_clean_rx_done
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	48(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %eax
	movl	4(%rdi), %r14d
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	andl	%eax, %r14d
	movslq	%r14d, %r15
	movq	32(%rdi), %r13
	movl	4(%r13,%r15,8), %edi
	callq	_GVE_SEQNO
	cmpl	24(%rbx), %eax
	jne	LBB0_8
## %bb.1:
	testl	%r12d, %r12d
	jle	LBB0_8
## %bb.2:
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	leaq	4(,%r15,8), %r12
	addq	%r13, %r12
	leaq	(,%r15,8), %r10
	addq	%r13, %r10
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r10, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	_rx_status@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edx
	movl	40(%r13), %r8d
	movl	(%r12), %ebx
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rcx
	movl	%r14d, %r9d
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r10
	callq	_netif_info
	addq	$16, %rsp
	movq	_rx_status@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	(%r15), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	40(%r13), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	(%r12), %edi
	callq	_GVE_SEQNO
	movslq	24(%r13), %rbx
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	leaq	L_.str.1(%rip), %rcx
	movl	-76(%rbp), %r8d                 ## 4-byte Reload
	movl	%eax, %r9d
	xorl	%eax, %eax
	pushq	%rbx
	callq	_netif_info
	addq	$16, %rsp
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movl	(%rbx), %edi
	callq	_be16_to_cpu
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	%rax, %rcx
	movq	_GVE_RX_PAD@GOTPCREL(%rip), %rax
	subq	(%rax), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	callq	_gve_rx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_gve_schedule_reset
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	leal	(%rax,%rbx), %r14d
	incl	%r14d
	andl	4(%r13), %r14d
	movslq	%r14d, %r12
	movq	32(%r13), %r15
	movl	24(%r13), %edi
	callq	_gve_next_seqno
	movl	%eax, 24(%r13)
	incl	%ebx
	movl	4(%r15,%r12,8), %edi
	callq	_GVE_SEQNO
	cmpl	24(%r13), %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r15,%r12,8), %r10
	leaq	(%r15,%r12,8), %r12
	addq	$4, %r12
	cmpl	-60(%rbp), %ebx                 ## 4-byte Folded Reload
	jl	LBB0_3
LBB0_7:
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	leaq	16(%r15), %r14
	movq	%r14, %rdi
	callq	_u64_stats_update_begin
	addl	%ebx, 8(%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	%eax, 20(%r15)
	movq	%r14, %rdi
	callq	_u64_stats_update_end
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	addl	%ebx, %eax
	movl	%eax, (%r15)
	addl	%ebx, 12(%r15)
	xorl	%eax, %eax
	callq	_dma_wmb
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_gve_rx_write_doorbell
	movq	%r15, %rdi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gve_rx_work_pending            ## TAILCALL
LBB0_8:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rx_status,4,2                  ## @rx_status
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[%d] idx=%d desc=%p desc->flags_seq=0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"[%d] seqno=%d rx->desc.seqno=%d\n"

	.comm	_GVE_RX_PAD,8,3                 ## @GVE_RX_PAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gve_clean_rx_done              ; -- Begin function gve_clean_rx_done
	.p2align	2
_gve_clean_rx_done:                     ; @gve_clean_rx_done
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x1
	mov	x19, x0
	ldr	x20, [x0, #48]
	ldp	w9, w8, [x0]
	stp	w2, w9, [sp, #24]               ; 8-byte Folded Spill
	and	w23, w8, w9
	ldr	x22, [x0, #32]
	add	x26, x22, w23, sxtw #3
	ldr	w0, [x26, #4]!
	bl	_GVE_SEQNO
	ldr	w8, [x19, #24]
	cmp	w0, w8
	str	w21, [sp, #20]                  ; 4-byte Folded Spill
	ccmp	w21, #1, #8, eq
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_2:
	mov	x25, #0
	mov	w21, #0
	sxtw	x8, w23
	add	x22, x22, x8, lsl #3
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	add	w8, w8, w21
	add	w8, w8, #1
	ldr	w9, [x19, #4]
	and	w23, w9, w8
	ldr	x8, [x19, #32]
	add	x22, x8, w23, sxtw #3
	ldr	w0, [x19, #24]
	bl	_gve_next_seqno
	str	w0, [x19, #24]
	add	w21, w21, #1
	mov	x26, x22
	ldr	w0, [x26, #4]!
	bl	_GVE_SEQNO
	ldr	w8, [x19, #24]
	cmp	w0, w8
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	ccmp	w21, w8, #0, eq
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
Lloh0:
	adrp	x24, _rx_status@GOTPAGE
Lloh1:
	ldr	x24, [x24, _rx_status@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	w2, [x20]
	ldr	w4, [x19, #40]
	ldr	w8, [x26]
	str	x8, [sp]
	mov	x0, x20
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	x5, x23
	mov	x6, x22
	bl	_netif_info
	ldr	w27, [x24]
	ldr	w28, [x20]
	ldr	w24, [x19, #40]
	ldr	w0, [x26]
	bl	_GVE_SEQNO
	mov	x5, x0
	ldrsw	x6, [x19, #24]
	mov	x0, x20
	mov	x1, x27
	mov	x2, x28
Lloh4:
	adrp	x3, l_.str.1@PAGE
Lloh5:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x4, x24
	bl	_netif_info
	ldr	w0, [x22]
	bl	_be16_to_cpu
Lloh6:
	adrp	x8, _GVE_RX_PAD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GVE_RX_PAD@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x9, x0, x25
	sub	x25, x9, x8
	mov	x0, x19
	mov	x1, x22
	ldr	w2, [sp, #24]                   ; 4-byte Folded Reload
	mov	x3, x23
	bl	_gve_rx
	cbnz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_gve_schedule_reset
	b	LBB0_3
LBB0_6:
	add	x22, x19, #16
	mov	x0, x22
	bl	_u64_stats_update_begin
	ldr	w8, [x19, #8]
	add	w8, w8, w21
	str	w8, [x19, #8]
	ldr	w8, [x19, #20]
	add	w8, w8, w25
	str	w8, [x19, #20]
	mov	x0, x22
	bl	_u64_stats_update_end
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	add	w8, w8, w21
	str	w8, [x19]
	ldr	w8, [x19, #12]
	add	w8, w8, w21
	str	w8, [x19, #12]
	bl	_dma_wmb
	mov	x0, x20
	mov	x1, x19
	bl	_gve_rx_write_doorbell
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_gve_rx_work_pending
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_rx_status,4,2                  ; @rx_status
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%d] idx=%d desc=%p desc->flags_seq=0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"[%d] seqno=%d rx->desc.seqno=%d\n"

	.comm	_GVE_RX_PAD,8,3                 ; @GVE_RX_PAD
.subsections_via_symbols
