	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function myri10ge_clean_rx_done
_myri10ge_clean_rx_done:                ## @myri10ge_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	48(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	56(%rdi), %eax
	movl	60(%rdi), %r12d
	movq	64(%rdi), %rcx
	movslq	%eax, %r14
	movq	%r14, %rdx
	shlq	$4, %rdx
	movq	(%rcx,%rdx), %rdi
	xorl	%r13d, %r13d
	pxor	%xmm0, %xmm0
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	testl	%esi, %esi
	jle	LBB0_6
## %bb.2:
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	pxor	%xmm0, %xmm0
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, -80(%rbp)                ## 16-byte Spill
	callq	_ntohs
	movq	%rax, %rbx
	movq	64(%r15), %rax
	shlq	$4, %r14
	movq	$0, (%rax,%r14)
	movl	8(%rax,%r14), %edi
	callq	_csum_unfold
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_myri10ge_rx_done
	imulq	%rax, %rbx
	movq	%rax, %xmm0
	movq	%rbx, %xmm1
	punpcklqdq	%xmm1, %xmm0            ## xmm0 = xmm0[0],xmm1[0]
	paddq	-80(%rbp), %xmm0                ## 16-byte Folded Reload
	leal	(%r12,%r13), %eax
	incl	%eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx), %rcx
	decq	%rcx
	movslq	%eax, %r14
	andq	%rcx, %r14
	incl	%r13d
	movq	64(%r15), %rax
	movq	%r14, %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	-52(%rbp), %r13d                ## 4-byte Folded Reload
	jl	LBB0_3
LBB0_5:
	addl	%r13d, %r12d
	movl	%r14d, %eax
LBB0_6:
	movl	%eax, 56(%r15)
	movl	%r12d, 60(%r15)
	movdqu	32(%r15), %xmm1
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, 32(%r15)
	movq	16(%r15), %rcx
	subq	24(%r15), %rcx
	movq	_myri10ge_fill_thresh@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpq	%rax, %rcx
	jge	LBB0_8
## %bb.7:
	leaq	16(%r15), %rsi
	movq	_MXGEFW_PAD@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	16(%rdi), %rdx
	xorl	%ecx, %ecx
	callq	_myri10ge_alloc_rx_pages
	movq	(%rbx), %rax
LBB0_8:
	movq	(%r15), %rcx
	subq	8(%r15), %rcx
	cmpq	%rax, %rcx
	jge	LBB0_10
## %bb.9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	8(%rdi), %rdx
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_myri10ge_alloc_rx_pages
LBB0_10:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_myri10ge_fill_thresh,8,3       ## @myri10ge_fill_thresh
	.comm	_MXGEFW_PAD,8,3                 ## @MXGEFW_PAD
	.no_dead_strip	_myri10ge_clean_rx_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function myri10ge_clean_rx_done
_myri10ge_clean_rx_done:                ; @myri10ge_clean_rx_done
	.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	x19, x0
	ldr	x20, [x0, #48]
	ldp	w27, w24, [x0, #56]
	ldr	x8, [x0, #64]
	sbfiz	x9, x27, #4, #32
	ldr	x0, [x8, x9]
	cmp	x0, #0
	ccmp	w1, #1, #8, ne
	b.ge	LBB0_2
; %bb.1:
	mov	w21, #0
	mov	x26, #0
	mov	x25, #0
	b	LBB0_5
LBB0_2:
	mov	x22, x1
	mov	x25, #0
	mov	x26, #0
	mov	w21, #0
	sxtw	x27, w27
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_ntohs
	mov	x23, x0
	ldr	x8, [x19, #64]
	add	x8, x8, x27, lsl #4
	str	xzr, [x8]
	ldr	w0, [x8, #8]
	bl	_csum_unfold
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_myri10ge_rx_done
	add	x26, x0, x26
	madd	x25, x0, x23, x25
	add	w8, w24, w21
	add	w8, w8, #1
	ldrsw	x9, [x20]
	sub	x9, x9, #1
	sxtw	x8, w8
	and	x27, x9, x8
	add	w21, w21, #1
	ldr	x8, [x19, #64]
	lsl	x9, x27, #4
	ldr	x0, [x8, x9]
	cmp	x0, #0
	ccmp	w21, w22, #0, ne
	b.lt	LBB0_3
; %bb.4:
	add	w24, w24, w21
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
LBB0_5:
	mov	x1, x19
	ldr	x9, [x1, #16]!
	stp	w27, w24, [x1, #40]
	ldp	x10, x8, [x1, #8]
	add	x8, x8, x26
	ldr	x11, [x1, #24]
	add	x11, x11, x25
	stp	x8, x11, [x1, #16]
Lloh0:
	adrp	x22, _myri10ge_fill_thresh@GOTPAGE
Lloh1:
	ldr	x22, [x22, _myri10ge_fill_thresh@GOTPAGEOFF]
	ldr	x8, [x22]
	sub	x9, x9, x10
	cmp	x9, x8
	b.ge	LBB0_7
; %bb.6:
	ldr	x8, [x20, #16]
Lloh2:
	adrp	x9, _MXGEFW_PAD@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MXGEFW_PAD@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x2, x9, x8
	mov	x0, x20
	mov	w3, #0
	bl	_myri10ge_alloc_rx_pages
	ldr	x8, [x22]
LBB0_7:
	ldp	x9, x10, [x19]
	sub	x9, x9, x10
	cmp	x9, x8
	b.ge	LBB0_9
; %bb.8:
	ldr	x2, [x20, #8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_myri10ge_alloc_rx_pages
LBB0_9:
	mov	x0, x21
	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	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_myri10ge_fill_thresh,8,3       ; @myri10ge_fill_thresh
	.comm	_MXGEFW_PAD,8,3                 ; @MXGEFW_PAD
	.no_dead_strip	_myri10ge_clean_rx_done
.subsections_via_symbols
