	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ave_rxfifo_reset
_ave_rxfifo_reset:                      ## @ave_rxfifo_reset
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_AVE_RXCR@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%rax), %rdi
	callq	_readl
	movl	%eax, %r15d
	movq	_AVE_RXCR_RXEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	andl	%r15d, %edi
	movq	(%r12), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	_AVE_DESC_RX_SUSPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ave_desc_switch
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_ave_rx_receive
	movq	_AVE_GRR_RXFFR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AVE_GRR@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movl	$50, %edi
	callq	_udelay
	movq	(%r13), %rsi
	addq	(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movl	$20, %edi
	callq	_udelay
	movq	_AVE_GI_RXOVF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AVE_GISR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	_AVE_DESC_RX_PERMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ave_desc_switch
	movq	(%r12), %rsi
	addq	(%rbx), %rsi
	movl	%r15d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AVE_RXCR,8,3                   ## @AVE_RXCR
	.comm	_AVE_RXCR_RXEN,4,2              ## @AVE_RXCR_RXEN
	.comm	_AVE_DESC_RX_SUSPEND,4,2        ## @AVE_DESC_RX_SUSPEND
	.comm	_AVE_GRR_RXFFR,4,2              ## @AVE_GRR_RXFFR
	.comm	_AVE_GRR,8,3                    ## @AVE_GRR
	.comm	_AVE_GI_RXOVF,4,2               ## @AVE_GI_RXOVF
	.comm	_AVE_GISR,8,3                   ## @AVE_GISR
	.comm	_AVE_DESC_RX_PERMIT,4,2         ## @AVE_DESC_RX_PERMIT
	.no_dead_strip	_ave_rxfifo_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ave_rxfifo_reset
_ave_rxfifo_reset:                      ; @ave_rxfifo_reset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x22, _AVE_RXCR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AVE_RXCR@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
Lloh2:
	adrp	x8, _AVE_RXCR_RXEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVE_RXCR_RXEN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w0, w0, w8
	ldr	x8, [x20]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
Lloh5:
	adrp	x8, _AVE_DESC_RX_SUSPEND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVE_DESC_RX_SUSPEND@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ave_desc_switch
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_ave_rx_receive
Lloh8:
	adrp	x8, _AVE_GRR_RXFFR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVE_GRR_RXFFR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x8, [x20]
Lloh11:
	adrp	x23, _AVE_GRR@GOTPAGE
Lloh12:
	ldr	x23, [x23, _AVE_GRR@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #50
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x23]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	mov	w0, #20
	bl	_udelay
Lloh13:
	adrp	x8, _AVE_GI_RXOVF@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVE_GI_RXOVF@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	x8, [x20]
Lloh16:
	adrp	x9, _AVE_GISR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AVE_GISR@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh19:
	adrp	x8, _AVE_DESC_RX_PERMIT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AVE_DESC_RX_PERMIT@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ave_desc_switch
	ldr	x8, [x20]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AVE_RXCR,8,3                   ; @AVE_RXCR
	.comm	_AVE_RXCR_RXEN,4,2              ; @AVE_RXCR_RXEN
	.comm	_AVE_DESC_RX_SUSPEND,4,2        ; @AVE_DESC_RX_SUSPEND
	.comm	_AVE_GRR_RXFFR,4,2              ; @AVE_GRR_RXFFR
	.comm	_AVE_GRR,8,3                    ; @AVE_GRR
	.comm	_AVE_GI_RXOVF,4,2               ; @AVE_GI_RXOVF
	.comm	_AVE_GISR,8,3                   ; @AVE_GISR
	.comm	_AVE_DESC_RX_PERMIT,4,2         ; @AVE_DESC_RX_PERMIT
	.no_dead_strip	_ave_rxfifo_reset
.subsections_via_symbols
