	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ns83820_setup_rx
_ns83820_setup_rx:                      ## @ns83820_setup_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	%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	_PRIV
	movq	%rax, %r13
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_dprintk
	movl	$1, 8(%r13)
	movq	$0, 40(%r13)
	movl	32(%r13), %eax
	movl	%eax, 36(%r13)
	movq	$0, 24(%r13)
	movq	_NR_RX_DESC@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_clear_rx_desc
	incl	%ebx
	cmpl	(%r15), %ebx
	jb	LBB0_1
LBB0_2:
	movq	_RXDP_HI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	56(%r13), %rsi
	xorl	%edi, %edi
	callq	_writel
	movl	12(%r13), %edi
	movq	_RXDP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	56(%r13), %rsi
	callq	_writel
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rx_refill
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	leaq	20(%r13), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irq
	movq	_CCSR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	56(%r13), %rsi
	movl	$1, %edi
	callq	_writel
	movq	_RFCR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	56(%r13), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	(%rbx), %rsi
	addq	56(%r13), %rsi
	movl	$2143289344, %edi               ## imm = 0x7FC00000
	callq	_writel
	movq	(%rbx), %rsi
	addq	56(%r13), %rsi
	movl	$-4194304, %edi                 ## imm = 0xFFC00000
	callq	_writel
	movl	$1, 16(%r13)
	movq	%r14, %rdi
	callq	_phy_intr
	movq	%r13, %rbx
	addq	$48, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_ISR_PHY@GOTPCREL(%rip), %rax
	movl	(%r13), %edi
	orl	(%rax), %edi
	movl	%edi, (%r13)
	movq	_ISR_RXRCMP@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	%edi, (%r13)
	movq	_ISR_RXORN@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	%edi, (%r13)
	movq	_ISR_RXSOVR@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	%edi, (%r13)
	movq	_ISR_RXDESC@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	%edi, (%r13)
	movq	_ISR_RXIDLE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	%edi, (%r13)
	movq	_ISR_TXDESC@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	%edi, (%r13)
	movq	_ISR_TXIDLE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	%edi, (%r13)
	movq	_IMR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	56(%r13), %rsi
	callq	_writel
	movq	_IER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	56(%r13), %rsi
	movl	$1, %edi
	callq	_writel
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	%r14, %rdi
	callq	_kick_rx
	movq	%r12, %rdi
	callq	_spin_unlock_irq
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ns83820_setup_rx(%p)\n"

	.comm	_NR_RX_DESC,4,2                 ## @NR_RX_DESC
	.comm	_RXDP_HI,8,3                    ## @RXDP_HI
	.comm	_RXDP,8,3                       ## @RXDP
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"starting receiver\n"

	.comm	_CCSR,8,3                       ## @CCSR
	.comm	_RFCR,8,3                       ## @RFCR
	.comm	_ISR_PHY,4,2                    ## @ISR_PHY
	.comm	_ISR_RXRCMP,4,2                 ## @ISR_RXRCMP
	.comm	_ISR_RXORN,4,2                  ## @ISR_RXORN
	.comm	_ISR_RXSOVR,4,2                 ## @ISR_RXSOVR
	.comm	_ISR_RXDESC,4,2                 ## @ISR_RXDESC
	.comm	_ISR_RXIDLE,4,2                 ## @ISR_RXIDLE
	.comm	_ISR_TXDESC,4,2                 ## @ISR_TXDESC
	.comm	_ISR_TXIDLE,4,2                 ## @ISR_TXIDLE
	.comm	_IMR,8,3                        ## @IMR
	.comm	_IER,8,3                        ## @IER
	.no_dead_strip	_ns83820_setup_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ns83820_setup_rx
_ns83820_setup_rx:                      ; @ns83820_setup_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	_PRIV
	mov	x20, x0
	str	x19, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	mov	w8, #1
	str	w8, [x20, #8]
	str	xzr, [x20, #40]
	ldr	w8, [x20, #32]
	str	w8, [x20, #36]
	str	xzr, [x20, #24]
Lloh2:
	adrp	x22, _NR_RX_DESC@GOTPAGE
Lloh3:
	ldr	x22, [x22, _NR_RX_DESC@GOTPAGEOFF]
	ldr	w8, [x22]
	cbz	w8, LBB0_3
; %bb.1:
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_clear_rx_desc
	add	w21, w21, #1
	ldr	w8, [x22]
	cmp	w21, w8
	b.lo	LBB0_2
LBB0_3:
	ldr	x8, [x20, #56]
Lloh4:
	adrp	x9, _RXDP_HI@GOTPAGE
Lloh5:
	ldr	x9, [x9, _RXDP_HI@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	w0, [x20, #12]
	ldr	x8, [x20, #56]
Lloh7:
	adrp	x9, _RXDP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _RXDP@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh10:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rx_refill
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.4:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
	add	x22, x20, #20
	mov	x0, x22
	bl	_spin_lock_irq
	ldr	x8, [x20, #56]
Lloh15:
	adrp	x9, _CCSR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CCSR@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w23, #1
	mov	w0, #1
	bl	_writel
	ldr	x8, [x20, #56]
Lloh18:
	adrp	x24, _RFCR@GOTPAGE
Lloh19:
	ldr	x24, [x24, _RFCR@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x20, #56]
	ldr	x9, [x24]
	add	x1, x9, x8
	mov	w0, #2143289344
	bl	_writel
	ldr	x8, [x20, #56]
	ldr	x9, [x24]
	add	x1, x9, x8
	mov	w0, #-4194304
	bl	_writel
	str	w23, [x20, #16]
	mov	x0, x19
	bl	_phy_intr
	add	x23, x20, #48
	mov	x0, x23
	bl	_spin_lock
Lloh20:
	adrp	x8, _ISR_PHY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ISR_PHY@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
Lloh23:
	adrp	x9, _ISR_RXRCMP@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ISR_RXRCMP@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
Lloh26:
	adrp	x9, _ISR_RXORN@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ISR_RXORN@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
Lloh29:
	adrp	x9, _ISR_RXSOVR@GOTPAGE
Lloh30:
	ldr	x9, [x9, _ISR_RXSOVR@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh32:
	adrp	x9, _ISR_RXDESC@GOTPAGE
Lloh33:
	ldr	x9, [x9, _ISR_RXDESC@GOTPAGEOFF]
	str	w8, [x20]
Lloh34:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
Lloh35:
	adrp	x9, _ISR_RXIDLE@GOTPAGE
Lloh36:
	ldr	x9, [x9, _ISR_RXIDLE@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
Lloh38:
	adrp	x9, _ISR_TXDESC@GOTPAGE
Lloh39:
	ldr	x9, [x9, _ISR_TXDESC@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
Lloh41:
	adrp	x9, _ISR_TXIDLE@GOTPAGE
Lloh42:
	ldr	x9, [x9, _ISR_TXIDLE@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	orr	w0, w9, w8
	str	w0, [x20]
	ldr	x8, [x20, #56]
Lloh44:
	adrp	x9, _IMR@GOTPAGE
Lloh45:
	ldr	x9, [x9, _IMR@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20, #56]
Lloh47:
	adrp	x9, _IER@GOTPAGE
Lloh48:
	ldr	x9, [x9, _IER@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #1
	bl	_writel
	mov	x0, x23
	bl	_spin_unlock
	mov	x0, x19
	bl	_kick_rx
	mov	x0, x22
	bl	_spin_unlock_irq
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ns83820_setup_rx(%p)\n"

	.comm	_NR_RX_DESC,4,2                 ; @NR_RX_DESC
	.comm	_RXDP_HI,8,3                    ; @RXDP_HI
	.comm	_RXDP,8,3                       ; @RXDP
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"starting receiver\n"

	.comm	_CCSR,8,3                       ; @CCSR
	.comm	_RFCR,8,3                       ; @RFCR
	.comm	_ISR_PHY,4,2                    ; @ISR_PHY
	.comm	_ISR_RXRCMP,4,2                 ; @ISR_RXRCMP
	.comm	_ISR_RXORN,4,2                  ; @ISR_RXORN
	.comm	_ISR_RXSOVR,4,2                 ; @ISR_RXSOVR
	.comm	_ISR_RXDESC,4,2                 ; @ISR_RXDESC
	.comm	_ISR_RXIDLE,4,2                 ; @ISR_RXIDLE
	.comm	_ISR_TXDESC,4,2                 ; @ISR_TXDESC
	.comm	_ISR_TXIDLE,4,2                 ; @ISR_TXIDLE
	.comm	_IMR,8,3                        ; @IMR
	.comm	_IER,8,3                        ; @IER
	.no_dead_strip	_ns83820_setup_rx
.subsections_via_symbols
