	.file	"extr_ns83820.c_ns83820_setup_rx.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ns83820_setup_rx(%p)\n"
.LC1:
	.string	"starting receiver\n"
	.text
	.p2align 4
	.type	ns83820_setup_rx, @function
ns83820_setup_rx:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	PRIV@PLT
	mov	rsi, r12
	lea	rdi, .LC0[rip]
	mov	rbp, rax
	xor	eax, eax
	call	dprintk@PLT
	mov	eax, DWORD PTR 32[rbp]
	mov	DWORD PTR 8[rbp], 1
	mov	QWORD PTR 40[rbp], 0
	mov	DWORD PTR 36[rbp], eax
	mov	eax, DWORD PTR NR_RX_DESC[rip]
	mov	QWORD PTR 24[rbp], 0
	test	eax, eax
	je	.L2
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, ebx
	mov	rdi, rbp
	add	ebx, 1
	call	clear_rx_desc@PLT
	cmp	DWORD PTR NR_RX_DESC[rip], ebx
	ja	.L3
.L2:
	mov	rsi, QWORD PTR RXDP_HI[rip]
	xor	edi, edi
	add	rsi, QWORD PTR 56[rbp]
	call	writel@PLT
	mov	edi, DWORD PTR 12[rbp]
	mov	rsi, QWORD PTR RXDP[rip]
	add	rsi, QWORD PTR 56[rbp]
	call	writel@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, r12
	call	rx_refill@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L8
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	r14, 20[rbp]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	dprintk@PLT
	mov	rdi, r14
	lea	r15, 48[rbp]
	call	spin_lock_irq@PLT
	mov	rsi, QWORD PTR CCSR[rip]
	mov	edi, 1
	add	rsi, QWORD PTR 56[rbp]
	call	writel@PLT
	xor	edi, edi
	mov	rsi, QWORD PTR RFCR[rip]
	add	rsi, QWORD PTR 56[rbp]
	call	writel@PLT
	mov	rsi, QWORD PTR RFCR[rip]
	mov	edi, 2143289344
	add	rsi, QWORD PTR 56[rbp]
	call	writel@PLT
	mov	rsi, QWORD PTR RFCR[rip]
	mov	edi, -4194304
	add	rsi, QWORD PTR 56[rbp]
	call	writel@PLT
	mov	DWORD PTR 16[rbp], 1
	mov	rdi, r12
	call	phy_intr@PLT
	mov	rdi, r15
	call	spin_lock@PLT
	mov	edi, DWORD PTR ISR_PHY[rip]
	or	edi, DWORD PTR ISR_RXRCMP[rip]
	or	edi, DWORD PTR ISR_RXORN[rip]
	or	edi, DWORD PTR ISR_RXSOVR[rip]
	or	edi, DWORD PTR ISR_RXDESC[rip]
	or	edi, DWORD PTR ISR_RXIDLE[rip]
	or	edi, DWORD PTR ISR_TXDESC[rip]
	or	edi, DWORD PTR ISR_TXIDLE[rip]
	or	edi, DWORD PTR 0[rbp]
	mov	rsi, QWORD PTR IMR[rip]
	mov	DWORD PTR 0[rbp], edi
	add	rsi, QWORD PTR 56[rbp]
	call	writel@PLT
	mov	rsi, QWORD PTR IER[rip]
	mov	edi, 1
	add	rsi, QWORD PTR 56[rbp]
	call	writel@PLT
	mov	rdi, r15
	call	spin_unlock@PLT
	mov	rdi, r12
	call	kick_rx@PLT
	mov	rdi, r14
	call	spin_unlock_irq@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ns83820_setup_rx, .-ns83820_setup_rx
	.comm	RXDP_HI,8,8
	.comm	RXDP,8,8
	.comm	RFCR,8,8
	.comm	NR_RX_DESC,4,4
	.comm	ISR_TXIDLE,4,4
	.comm	ISR_TXDESC,4,4
	.comm	ISR_RXSOVR,4,4
	.comm	ISR_RXRCMP,4,4
	.comm	ISR_RXORN,4,4
	.comm	ISR_RXIDLE,4,4
	.comm	ISR_RXDESC,4,4
	.comm	ISR_PHY,4,4
	.comm	IMR,8,8
	.comm	IER,8,8
	.comm	GFP_KERNEL,4,4
	.comm	CCSR,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ns83820.c_ns83820_setup_rx.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ns83820_setup_rx(%p)\012\000"
	.align	2
.LC1:
	.ascii	"starting receiver\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ns83820_setup_rx, %function
ns83820_setup_rx:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	bl	PRIV
	mov	r5, r0
	mov	r4, #0
	mov	r1, r7
	ldr	r0, .L12
	bl	dprintk
	mov	r1, #1
	ldr	r6, .L12+4
	ldr	r3, [r5, #24]
	ldr	r2, [r6]
	str	r1, [r5, #4]
	cmp	r2, r4
	str	r3, [r5, #28]
	str	r4, [r5, #32]
	str	r4, [r5, #20]
	beq	.L2
.L3:
	mov	r1, r4
	mov	r0, r5
	bl	clear_rx_desc
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bhi	.L3
.L2:
	ldr	r3, .L12+8
	ldr	r1, [r5, #40]
	ldr	r3, [r3]
	mov	r0, #0
	add	r1, r1, r3
	bl	writel
	ldr	r3, .L12+12
	ldr	r1, [r5, #40]
	ldr	r3, [r3]
	ldr	r0, [r5, #8]
	add	r1, r1, r3
	bl	writel
	ldr	r3, .L12+16
	mov	r0, r7
	ldr	r1, [r3]
	bl	rx_refill
	subs	r4, r0, #0
	beq	.L11
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	mov	r6, #1
	add	r8, r5, #16
	ldr	r0, .L12+20
	bl	dprintk
	mov	r0, r8
	bl	spin_lock_irq
	ldr	r3, .L12+24
	ldr	r1, [r5, #40]
	ldr	r3, [r3]
	ldr	r9, .L12+28
	add	r1, r1, r3
	mov	r0, r6
	bl	writel
	ldr	r3, [r9]
	ldr	r1, [r5, #40]
	mov	r0, r4
	add	r1, r1, r3
	bl	writel
	ldr	r3, [r9]
	ldr	r1, [r5, #40]
	ldr	r0, .L12+32
	add	r1, r1, r3
	bl	writel
	ldr	r3, [r9]
	ldr	r1, [r5, #40]
	ldr	r0, .L12+36
	add	r1, r1, r3
	bl	writel
	add	r9, r5, #36
	mov	r0, r7
	str	r6, [r5, #12]
	bl	phy_intr
	mov	r0, r9
	bl	spin_lock
	ldr	r3, .L12+40
	ldr	r2, .L12+44
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L12+48
	ldr	r0, .L12+52
	ldr	r1, [r1]
	orr	r3, r3, r2
	ldr	r2, .L12+56
	ldr	r0, [r0]
	ldr	r2, [r2]
	orr	r3, r3, r1
	ldr	r1, .L12+60
	orr	r3, r3, r0
	ldr	r0, .L12+64
	ldr	r1, [r1]
	orr	r3, r3, r2
	ldr	r2, .L12+68
	ldr	r0, [r0]
	orr	r3, r3, r1
	ldr	r1, [r2]
	ldr	r2, .L12+72
	orr	r3, r3, r0
	ldr	r0, [r5]
	ldr	r2, [r2]
	orr	r3, r3, r1
	ldr	r1, [r5, #40]
	orr	r0, r3, r0
	add	r1, r1, r2
	str	r0, [r5]
	bl	writel
	ldr	r3, .L12+76
	ldr	r1, [r5, #40]
	ldr	r3, [r3]
	mov	r0, r6
	add	r1, r1, r3
	bl	writel
	mov	r0, r9
	bl	spin_unlock
	mov	r0, r7
	bl	kick_rx
	mov	r0, r8
	bl	spin_unlock_irq
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	NR_RX_DESC
	.word	RXDP_HI
	.word	RXDP
	.word	GFP_KERNEL
	.word	.LC1
	.word	CCSR
	.word	RFCR
	.word	2143289344
	.word	-4194304
	.word	ISR_PHY
	.word	ISR_RXRCMP
	.word	ISR_RXORN
	.word	ISR_RXSOVR
	.word	ISR_RXDESC
	.word	ISR_RXIDLE
	.word	ISR_TXDESC
	.word	ISR_TXIDLE
	.word	IMR
	.word	IER
	.size	ns83820_setup_rx, .-ns83820_setup_rx
	.comm	RXDP_HI,4,4
	.comm	RXDP,4,4
	.comm	RFCR,4,4
	.comm	NR_RX_DESC,4,4
	.comm	ISR_TXIDLE,4,4
	.comm	ISR_TXDESC,4,4
	.comm	ISR_RXSOVR,4,4
	.comm	ISR_RXRCMP,4,4
	.comm	ISR_RXORN,4,4
	.comm	ISR_RXIDLE,4,4
	.comm	ISR_RXDESC,4,4
	.comm	ISR_PHY,4,4
	.comm	IMR,4,4
	.comm	IER,4,4
	.comm	GFP_KERNEL,4,4
	.comm	CCSR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
