	.file	"extr_ionic_main.c_ionic_napi.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ionic_napi
	.type	ionic_napi, @function
ionic_napi:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r8
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	napi_to_qcq@PLT
	mov	ecx, r14d
	mov	edx, r12d
	mov	r8, r15
	mov	esi, ebx
	mov	rdi, rax
	mov	rbp, rax
	xor	r14d, r14d
	call	ionic_cq_service@PLT
	mov	r12d, eax
	cmp	ebx, eax
	jg	.L12
.L2:
	test	eax, eax
	jne	.L13
.L3:
	mov	esi, r12d
	mov	rdi, rbp
	call	DEBUG_STATS_NAPI_POLL@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L12:
	.cfi_restore_state
	mov	esi, eax
	mov	rdi, r13
	call	napi_complete_done@PLT
	mov	r8, rax
	mov	eax, r12d
	test	r8, r8
	je	.L2
	mov	r14d, DWORD PTR IONIC_INTR_CRED_UNMASK[rip]
	mov	rdi, QWORD PTR 0[rbp]
	call	DEBUG_STATS_INTR_REARM@PLT
	mov	eax, r14d
	or	eax, r12d
	test	eax, eax
	je	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR 8[rbp]
	mov	rsi, QWORD PTR 0[rbp]
	mov	edx, r12d
	mov	ecx, DWORD PTR IONIC_INTR_CRED_RESET_COALESCE[rip]
	mov	rax, QWORD PTR [rax]
	mov	esi, DWORD PTR [rsi]
	or	ecx, r14d
	mov	edi, DWORD PTR [rax]
	call	ionic_intr_credits@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	ionic_napi, .-ionic_napi
	.comm	IONIC_INTR_CRED_UNMASK,4,4
	.comm	IONIC_INTR_CRED_RESET_COALESCE,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_ionic_main.c_ionic_napi.c"
	.text
	.align	2
	.global	ionic_napi
	.syntax unified
	.arm
	.fpu softvfp
	.type	ionic_napi, %function
ionic_napi:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	sub	sp, sp, #8
	mov	r4, r2
	mov	r5, r3
	ldr	r7, [sp, #32]
	mov	r8, r0
	bl	napi_to_qcq
	mov	r3, r5
	mov	r2, r4
	str	r7, [sp]
	mov	r1, r6
	mov	r7, r0
	bl	ionic_cq_service
	cmp	r6, r0
	mov	r4, r0
	movle	r3, r0
	movle	r5, #0
	bgt	.L11
.L2:
	cmp	r3, #0
	bne	.L12
.L3:
	mov	r0, r7
	mov	r1, r4
	bl	DEBUG_STATS_NAPI_POLL
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	mov	r0, r8
	mov	r1, r4
	bl	napi_complete_done
	subs	r5, r0, #0
	moveq	r3, r4
	beq	.L2
	ldr	r3, .L13
	ldr	r0, [r7]
	ldr	r5, [r3]
	bl	DEBUG_STATS_INTR_REARM
	orr	r3, r5, r4
	cmp	r3, #0
	beq	.L3
.L12:
	ldr	r2, [r7, #4]
	ldr	r3, .L13+4
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r7]
	ldr	r0, [r1]
	orr	r3, r5, r3
	ldr	r1, [r2]
	mov	r2, r4
	bl	ionic_intr_credits
	b	.L3
.L14:
	.align	2
.L13:
	.word	IONIC_INTR_CRED_UNMASK
	.word	IONIC_INTR_CRED_RESET_COALESCE
	.size	ionic_napi, .-ionic_napi
	.comm	IONIC_INTR_CRED_UNMASK,4,4
	.comm	IONIC_INTR_CRED_RESET_COALESCE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
