	.file	"extr_qlcnic_io.c_qlcnic_82xx_napi_add.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	qlcnic_82xx_napi_add
	.type	qlcnic_82xx_napi_add, @function
qlcnic_82xx_napi_add:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r12, QWORD PTR 8[rdi]
	mov	esi, DWORD PTR [rdi]
	mov	rdi, r12
	call	qlcnic_alloc_sds_rings@PLT
	test	rax, rax
	jne	.L13
	mov	r13d, DWORD PTR 0[rbp]
	xor	ebx, ebx
	mov	esi, r13d
	test	r13d, r13d
	jg	.L4
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, DWORD PTR qlcnic_rx_poll[rip]
	mov	rsi, r8
	add	ecx, ecx
	mov	rdi, r14
	add	rbx, 1
	call	netif_napi_add@PLT
	mov	esi, DWORD PTR 0[rbp]
	cmp	esi, ebx
	jle	.L8
.L4:
	mov	rdx, QWORD PTR [r12]
	sub	esi, 1
	mov	ecx, DWORD PTR QLCNIC_NETDEV_WEIGHT[rip]
	lea	r8, [rdx+rbx*4]
	cmp	esi, ebx
	jne	.L6
	mov	eax, ecx
	mov	rsi, r8
	mov	rdi, r14
	add	rbx, 1
	cdq
	idiv	r13d
	mov	edx, DWORD PTR qlcnic_poll[rip]
	mov	ecx, eax
	call	netif_napi_add@PLT
	mov	esi, DWORD PTR 0[rbp]
	cmp	esi, ebx
	jg	.L4
.L8:
	mov	rsi, r14
	mov	rdi, rbp
	call	qlcnic_alloc_tx_rings@PLT
	test	rax, rax
	jne	.L5
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, r12
	call	qlcnic_free_sds_rings@PLT
.L13:
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	qlcnic_82xx_napi_add, .-qlcnic_82xx_napi_add
	.comm	qlcnic_rx_poll,4,4
	.comm	qlcnic_poll,4,4
	.comm	QLCNIC_NETDEV_WEIGHT,4,4
	.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_qlcnic_io.c_qlcnic_82xx_napi_add.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.global	qlcnic_82xx_napi_add
	.syntax unified
	.arm
	.fpu softvfp
	.type	qlcnic_82xx_napi_add, %function
qlcnic_82xx_napi_add:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	mov	r6, r1
	ldm	r0, {r1, r7}
	mov	r0, r7
	bl	qlcnic_alloc_sds_rings
	subs	r4, r0, #0
	bne	.L12
	ldr	r10, [r5]
	cmp	r10, #0
	ble	.L8
	mov	r3, r10
	ldr	r8, .L14
	ldr	r9, .L14+4
	b	.L4
.L6:
	lsl	r3, r0, #1
	mov	r1, fp
	mov	r0, r6
	ldr	r2, [r9]
	bl	netif_napi_add
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L8
.L4:
	ldr	r1, [r7]
	sub	r3, r3, #1
	cmp	r3, r4
	ldr	r0, [r8]
	add	fp, r1, r4, lsl #2
	bne	.L6
	mov	r1, r10
	bl	__aeabi_idiv
	ldr	r2, .L14+8
	mov	r3, r0
	mov	r1, fp
	mov	r0, r6
	ldr	r2, [r2]
	bl	netif_napi_add
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L4
.L8:
	mov	r1, r6
	mov	r0, r5
	bl	qlcnic_alloc_tx_rings
	cmp	r0, #0
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r0, r7
	bl	qlcnic_free_sds_rings
.L12:
	ldr	r3, .L14+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	.align	2
.L14:
	.word	QLCNIC_NETDEV_WEIGHT
	.word	qlcnic_rx_poll
	.word	qlcnic_poll
	.word	ENOMEM
	.size	qlcnic_82xx_napi_add, .-qlcnic_82xx_napi_add
	.comm	qlcnic_rx_poll,4,4
	.comm	qlcnic_poll,4,4
	.comm	QLCNIC_NETDEV_WEIGHT,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
