	.file	"extr_ns83820.c_rx_refill.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"rx_refill(%p)\n"
	.text
	.p2align 4
	.type	rx_refill, @function
rx_refill:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	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, rsi
	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	rdi, rax
	mov	r14, rax
	call	nr_rx_empty@PLT
	xor	edi, edi
	cmp	eax, 2
	setle	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L2
.L19:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L2:
	.cfi_restore_state
	mov	rsi, r15
	lea	rdi, .LC0[rip]
	call	dprintk@PLT
	cmp	QWORD PTR GFP_ATOMIC[rip], r12
	je	.L4
	mov	edx, DWORD PTR NR_RX_DESC[rip]
	test	edx, edx
	je	.L6
.L5:
	xor	r13d, r13d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rbx, QWORD PTR 0[rbp]
	mov	esi, 16
	mov	rdi, rbx
	call	PTR_ALIGN@PLT
	mov	rdi, rbp
	sub	rbx, rax
	mov	rsi, rbx
	call	skb_reserve@PLT
	cmp	QWORD PTR GFP_ATOMIC[rip], r12
	je	.L8
	xor	esi, esi
	mov	rdi, r14
	call	spin_lock_irqsave@PLT
.L8:
	mov	rsi, rbp
	mov	rdi, r14
	call	ns83820_add_rx_skb@PLT
	cmp	QWORD PTR GFP_ATOMIC[rip], r12
	mov	rbx, rax
	je	.L9
	xor	esi, esi
	mov	rdi, r14
	call	spin_unlock_irqrestore@PLT
.L9:
	test	rbx, rbx
	jne	.L10
	add	r13d, 1
	cmp	DWORD PTR NR_RX_DESC[rip], r13d
	jbe	.L7
.L11:
	mov	rax, QWORD PTR REAL_RX_BUF_SIZE[rip]
	mov	rdi, r15
	mov	rdx, r12
	lea	rsi, 16[rax]
	call	__netdev_alloc_skb@PLT
	xor	edi, edi
	test	rax, rax
	mov	rbp, rax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L21
.L7:
	cmp	QWORD PTR GFP_ATOMIC[rip], r12
	je	.L22
.L12:
	test	r13d, r13d
	jne	.L19
.L6:
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
.L10:
	.cfi_restore_state
	cmp	r12, QWORD PTR GFP_ATOMIC[rip]
	jne	.L19
	xor	esi, esi
	mov	rdi, r14
	call	spin_unlock_irqrestore@PLT
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L4:
	xor	esi, esi
	mov	rdi, r14
	call	spin_lock_irqsave@PLT
	mov	eax, DWORD PTR NR_RX_DESC[rip]
	test	eax, eax
	jne	.L5
	cmp	r12, QWORD PTR GFP_ATOMIC[rip]
	jne	.L6
	xor	esi, esi
	mov	rdi, r14
	call	spin_unlock_irqrestore@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L22:
	xor	esi, esi
	mov	rdi, r14
	call	spin_unlock_irqrestore@PLT
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	rx_refill, .-rx_refill
	.comm	REAL_RX_BUF_SIZE,8,8
	.comm	NR_RX_DESC,4,4
	.comm	GFP_ATOMIC,8,8
	.comm	ENOMEM,4,4
	.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_rx_refill.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"rx_refill(%p)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rx_refill, %function
rx_refill:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r6, r1
	mov	r10, r0
	bl	PRIV
	mov	r8, r0
	bl	nr_rx_empty
	cmp	r0, #2
	movgt	r0, #0
	movle	r0, #1
	bl	unlikely
	subs	r4, r0, #0
	beq	.L2
.L13:
	mov	r5, #0
.L1:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r9, .L22
	mov	r1, r10
	ldr	r0, .L22+4
	bl	dprintk
	ldr	r5, [r9]
	ldr	fp, .L22+8
	cmp	r5, r6
	beq	.L4
	ldr	r3, [fp]
	cmp	r3, #0
	beq	.L6
.L5:
	mov	r7, #0
	b	.L11
.L20:
	ldr	r3, [r4]
	mov	r1, #16
	mov	r0, r3
	str	r3, [sp, #4]
	bl	PTR_ALIGN
	mov	r1, r0
	ldr	r3, [sp, #4]
	mov	r0, r4
	sub	r1, r3, r1
	bl	skb_reserve
	ldr	r3, [r9]
	add	r7, r7, #1
	cmp	r3, r6
	beq	.L8
	mov	r1, r5
	mov	r0, r8
	bl	spin_lock_irqsave
.L8:
	mov	r1, r4
	mov	r0, r8
	bl	ns83820_add_rx_skb
	ldr	r3, [r9]
	mov	r4, r0
	cmp	r3, r6
	beq	.L9
	mov	r1, #0
	mov	r0, r8
	bl	spin_unlock_irqrestore
.L9:
	cmp	r4, #0
	bne	.L10
	ldr	r3, [fp]
	cmp	r3, r7
	bls	.L7
.L11:
	ldr	r3, .L22+12
	mov	r2, r6
	ldr	r1, [r3]
	mov	r0, r10
	add	r1, r1, #16
	bl	__netdev_alloc_skb
	mov	r4, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	subs	r5, r0, #0
	beq	.L20
.L7:
	ldr	r3, [r9]
	cmp	r3, r6
	beq	.L21
.L12:
	cmp	r7, #0
	bne	.L13
.L6:
	ldr	r3, .L22+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	ldr	r3, [r9]
	cmp	r6, r3
	bne	.L13
	mov	r0, r8
	mov	r1, #0
	bl	spin_unlock_irqrestore
	b	.L1
.L4:
	mov	r1, r4
	mov	r0, r8
	bl	spin_lock_irqsave
	ldr	r1, [fp]
	cmp	r1, #0
	bne	.L5
	ldr	r3, [r9]
	cmp	r5, r3
	bne	.L6
	mov	r0, r8
	bl	spin_unlock_irqrestore
	b	.L6
.L21:
	mov	r0, r8
	mov	r1, #0
	bl	spin_unlock_irqrestore
	b	.L12
.L23:
	.align	2
.L22:
	.word	GFP_ATOMIC
	.word	.LC0
	.word	NR_RX_DESC
	.word	REAL_RX_BUF_SIZE
	.word	ENOMEM
	.size	rx_refill, .-rx_refill
	.comm	REAL_RX_BUF_SIZE,4,4
	.comm	NR_RX_DESC,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
