	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ns83820_cleanup_rx
_ns83820_cleanup_rx:                    ## @ns83820_cleanup_rx
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_dprintk
	leaq	40(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_ISR_RXOK@GOTPCREL(%rip), %rax
	movq	_ISR_RXDESC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_ISR_RXERR@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_ISR_RXEARLY@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_ISR_RXIDLE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	notl	%edi
	andl	(%r15), %edi
	movl	%edi, (%r15)
	movq	_IMR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	24(%r15), %rsi
	callq	_writel
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	$0, 16(%r15)
	movq	32(%r15), %rax
	movl	(%rax), %edi
	callq	_synchronize_irq
	movq	(%rbx), %rdi
	addq	24(%r15), %rdi
	callq	_readl
	movq	_RXDP_HI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r15), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_RXDP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r15), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_NR_RX_DESC@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %r14
	movq	$0, (%rax,%rbx,8)
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_clear_rx_desc
	movq	%r14, %rdi
	callq	_kfree_skb
	incq	%rbx
	movl	(%r12), %eax
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ns83820_cleanup_rx(%p)\n"

	.comm	_ISR_RXOK,4,2                   ## @ISR_RXOK
	.comm	_ISR_RXDESC,4,2                 ## @ISR_RXDESC
	.comm	_ISR_RXERR,4,2                  ## @ISR_RXERR
	.comm	_ISR_RXEARLY,4,2                ## @ISR_RXEARLY
	.comm	_ISR_RXIDLE,4,2                 ## @ISR_RXIDLE
	.comm	_IMR,8,3                        ## @IMR
	.comm	_RXDP_HI,8,3                    ## @RXDP_HI
	.comm	_RXDP,8,3                       ## @RXDP
	.comm	_NR_RX_DESC,4,2                 ## @NR_RX_DESC
	.no_dead_strip	_ns83820_cleanup_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ns83820_cleanup_rx
_ns83820_cleanup_rx:                    ; @ns83820_cleanup_rx
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_dprintk
	add	x20, x19, #40
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x8, _ISR_RXOK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ISR_RXOK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _ISR_RXDESC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ISR_RXDESC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _ISR_RXERR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ISR_RXERR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _ISR_RXEARLY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ISR_RXEARLY@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _ISR_RXIDLE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ISR_RXIDLE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x19]
	bic	w0, w9, w8
	str	w0, [x19]
	ldr	x8, [x19, #24]
Lloh17:
	adrp	x21, _IMR@GOTPAGE
Lloh18:
	ldr	x21, [x21, _IMR@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	str	xzr, [x19, #16]
	ldr	x8, [x19, #32]
	ldr	w0, [x8]
	bl	_synchronize_irq
	ldr	x8, [x19, #24]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	ldr	x8, [x19, #24]
Lloh19:
	adrp	x9, _RXDP_HI@GOTPAGE
Lloh20:
	ldr	x9, [x9, _RXDP_HI@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #24]
Lloh22:
	adrp	x9, _RXDP@GOTPAGE
Lloh23:
	ldr	x9, [x9, _RXDP@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
Lloh25:
	adrp	x22, _NR_RX_DESC@GOTPAGE
Lloh26:
	ldr	x22, [x22, _NR_RX_DESC@GOTPAGEOFF]
	ldr	w8, [x22]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	lsl	x9, x20, #3
	ldr	x21, [x8, x9]
	str	xzr, [x8, x9]
	mov	x0, x19
	mov	x1, x20
	bl	_clear_rx_desc
	mov	x0, x21
	bl	_kfree_skb
	add	x20, x20, #1
	ldr	w8, [x22]
	cmp	x20, x8
	b.lo	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ns83820_cleanup_rx(%p)\n"

	.comm	_ISR_RXOK,4,2                   ; @ISR_RXOK
	.comm	_ISR_RXDESC,4,2                 ; @ISR_RXDESC
	.comm	_ISR_RXERR,4,2                  ; @ISR_RXERR
	.comm	_ISR_RXEARLY,4,2                ; @ISR_RXEARLY
	.comm	_ISR_RXIDLE,4,2                 ; @ISR_RXIDLE
	.comm	_IMR,8,3                        ; @IMR
	.comm	_RXDP_HI,8,3                    ; @RXDP_HI
	.comm	_RXDP,8,3                       ; @RXDP
	.comm	_NR_RX_DESC,4,2                 ; @NR_RX_DESC
	.no_dead_strip	_ns83820_cleanup_rx
.subsections_via_symbols
