	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ave_rx_receive
_ave_rx_receive:                        ## @ave_rx_receive
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r15
	movl	(%rax), %ebx
	movl	4(%rax), %r12d
	movl	8(%rax), %r13d
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_11
## %bb.1:
	movl	%r12d, %eax
	notl	%eax
	addl	%ebx, %eax
	addl	%r13d, %eax
	cltd
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	idivl	%r13d
	movl	%edx, %eax
	sarl	$31, %eax
	notl	%eax
	andl	%edx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	xorl	%r13d, %r13d
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	incl	%r14d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	addl	-72(%rbp), %ebx                 ## 4-byte Folded Reload
	callq	_netif_receive_skb
	movl	%ebx, %ecx
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	movl	%ebx, %eax
	cltd
	idivl	-56(%rbp)                       ## 4-byte Folded Reload
	incl	%r13d
	movl	%edx, %ebx
	cmpl	%r13d, -68(%rbp)                ## 4-byte Folded Reload
	je	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	cmpl	%r13d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_AVE_DESCID_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_ave_desc_read_cmdsts
	movl	%eax, %r14d
	movq	_AVE_STS_OWN@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_AVE_STS_OK@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_AVE_STS_PKTLEN_RX_MASK@GOTPCREL(%rip), %rax
	movq	%r15, %rcx
	movl	(%rax), %r15d
	andl	%r14d, %r15d
	movq	16(%rcx), %rax
	movl	%ebx, -76(%rbp)                 ## 4-byte Spill
	movslq	%ebx, %rcx
	leaq	(%rax,%rcx,8), %rsi
	movq	(%rax,%rcx,8), %rbx
	movq	$0, (%rax,%rcx,8)
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ave_dma_unmap
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	movl	%r15d, -72(%rbp)                ## 4-byte Spill
	movl	%r15d, %esi
	callq	_skb_put
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_eth_type_trans
	movq	%rbx, %rdi
	movl	%eax, 4(%rbx)
	movq	_AVE_STS_CSSV@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_AVE_STS_CSER@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_CHECKSUM_UNNECESSARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	36(%r15)
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_3
LBB0_11:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_16
LBB0_12:
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_16
LBB0_14:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
LBB0_15:
	movl	-56(%rbp), %r13d                ## 4-byte Reload
LBB0_16:
	movl	%ebx, (%r15)
	movq	%r15, %r14
	addq	$32, %r14
	movq	%r14, %rdi
	callq	_u64_stats_update_begin
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, 24(%r15)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, 28(%r15)
	movq	%r14, %rdi
	callq	_u64_stats_update_end
	cmpl	%r12d, %ebx
	je	LBB0_20
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_ave_rxdesc_prepare
	testq	%rax, %rax
	jne	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	incl	%r12d
	movl	%r12d, %eax
	cltd
	idivl	%r13d
	movl	%edx, %r12d
	cmpl	%edx, %ebx
	jne	LBB0_17
## %bb.19:
	movl	%ebx, %r12d
LBB0_20:
	movl	%r12d, 4(%r15)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVE_DESCID_RX,4,2              ## @AVE_DESCID_RX
	.comm	_AVE_STS_OWN,4,2                ## @AVE_STS_OWN
	.comm	_AVE_STS_OK,4,2                 ## @AVE_STS_OK
	.comm	_AVE_STS_PKTLEN_RX_MASK,4,2     ## @AVE_STS_PKTLEN_RX_MASK
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_AVE_STS_CSSV,4,2               ## @AVE_STS_CSSV
	.comm	_AVE_STS_CSER,4,2               ## @AVE_STS_CSER
	.comm	_CHECKSUM_UNNECESSARY,4,2       ## @CHECKSUM_UNNECESSARY
	.no_dead_strip	_ave_rx_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ave_rx_receive
_ave_rx_receive:                        ; @ave_rx_receive
	.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	x23, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldp	w22, w21, [x0]
	ldr	w28, [x0, #8]
	str	w23, [sp, #12]                  ; 4-byte Folded Spill
	cmp	w23, #1
	b.lt	LBB0_11
; %bb.1:
	mov	w23, #0
	mvn	w8, w21
	add	w8, w22, w8
	add	w8, w8, w28
	sdiv	w9, w8, w28
	msub	w8, w9, w28, w8
	cmp	w8, #0
	csel	w9, w8, wzr, lt
	sub	w26, w8, w9
	movi.2d	v0, #0000000000000000
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	movi.2s	v0, #1
	mov.s	v0[1], w27
	ldr	q1, [sp, #16]                   ; 16-byte Folded Reload
	add.2s	v1, v0, v1
	str	q1, [sp, #16]                   ; 16-byte Folded Spill
	mov	x0, x26
	bl	_netif_receive_skb
	ldr	q0, [sp, #16]                   ; 16-byte Folded Reload
	mov	x26, x24
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w22, #1
	sdiv	w9, w8, w28
	msub	w22, w9, w28, w8
	add	w23, w23, #1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, w23
	b.eq	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	q0, [sp, #16]                   ; 16-byte Folded Spill
	cmp	w26, w23
	b.eq	LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh0:
	adrp	x8, _AVE_DESCID_RX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVE_DESCID_RX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_ave_desc_read_cmdsts
Lloh3:
	adrp	x8, _AVE_STS_OWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVE_STS_OWN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x0
Lloh6:
	adrp	x8, _AVE_STS_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVE_STS_OK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x26
Lloh9:
	adrp	x8, _AVE_STS_PKTLEN_RX_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVE_STS_PKTLEN_RX_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w27, w8, w25
	ldr	x8, [x19, #16]
	add	x1, x8, w22, sxtw #3
	ldr	x26, [x1]
	str	xzr, [x1]
Lloh12:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_ave_dma_unmap
	str	x20, [x26, #8]
	mov	x0, x26
	mov	x1, x27
	bl	_skb_put
	mov	x0, x26
	mov	x1, x20
	bl	_eth_type_trans
	str	w0, [x26, #4]
Lloh15:
	adrp	x8, _AVE_STS_CSSV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVE_STS_CSSV@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh18:
	adrp	x8, _AVE_STS_CSER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AVE_STS_CSER@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w25
	b.ne	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh21:
	adrp	x8, _CHECKSUM_UNNECESSARY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CHECKSUM_UNNECESSARY@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x26]
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #36]
	add	w8, w8, #1
	str	w8, [x19, #36]
	ldr	q0, [sp, #16]                   ; 16-byte Folded Reload
	b	LBB0_3
LBB0_11:
	mov	w26, #0
	movi.2d	v0, #0000000000000000
	b	LBB0_13
LBB0_12:
	ldr	w26, [sp, #12]                  ; 4-byte Folded Reload
LBB0_13:
	str	q0, [sp, #16]                   ; 16-byte Folded Spill
	b	LBB0_15
LBB0_14:
	mov	x26, x23
LBB0_15:
	str	w22, [x19]
	add	x24, x19, #32
	mov	x0, x24
	bl	_u64_stats_update_begin
	ldr	d0, [x19, #24]
	ldr	q1, [sp, #16]                   ; 16-byte Folded Reload
	add.2s	v0, v0, v1
	str	d0, [x19, #24]
	mov	x0, x24
	bl	_u64_stats_update_end
	cmp	w22, w21
	b.eq	LBB0_19
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_ave_rxdesc_prepare
	cbnz	x0, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	w8, w21, #1
	sdiv	w9, w8, w28
	msub	w21, w9, w28, w8
	cmp	w22, w21
	b.ne	LBB0_16
; %bb.18:
	mov	x21, x22
LBB0_19:
	str	w21, [x19, #4]
	mov	x0, x26
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_AVE_DESCID_RX,4,2              ; @AVE_DESCID_RX
	.comm	_AVE_STS_OWN,4,2                ; @AVE_STS_OWN
	.comm	_AVE_STS_OK,4,2                 ; @AVE_STS_OK
	.comm	_AVE_STS_PKTLEN_RX_MASK,4,2     ; @AVE_STS_PKTLEN_RX_MASK
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_AVE_STS_CSSV,4,2               ; @AVE_STS_CSSV
	.comm	_AVE_STS_CSER,4,2               ; @AVE_STS_CSER
	.comm	_CHECKSUM_UNNECESSARY,4,2       ; @CHECKSUM_UNNECESSARY
	.no_dead_strip	_ave_rx_receive
.subsections_via_symbols
