	.file	"extr_enic_main.c_enic_poll.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	enic_poll, @function
enic_poll:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r15d, r15d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rdi, QWORD PTR [rdi]
	call	netdev_priv@PLT
	xor	esi, esi
	mov	rbx, rax
	mov	rdi, rax
	call	enic_cq_rq@PLT
	xor	esi, esi
	mov	rdi, rbx
	mov	r14d, eax
	call	enic_cq_wq@PLT
	mov	ebp, eax
	xor	eax, eax
	call	enic_legacy_io_intr@PLT
	mov	edx, DWORD PTR enic_wq_service[rip]
	mov	esi, DWORD PTR ENIC_WQ_NAPI_BUDGET[rip]
	xor	ecx, ecx
	mov	DWORD PTR 12[rsp], eax
	mov	rax, QWORD PTR 24[rbx]
	lea	rdi, [rax+rbp*4]
	call	vnic_cq_service@PLT
	mov	ebp, eax
	test	r12d, r12d
	jle	.L2
	mov	rax, QWORD PTR 24[rbx]
	mov	edx, DWORD PTR enic_rq_service[rip]
	xor	ecx, ecx
	mov	esi, r12d
	lea	rdi, [rax+r14*4]
	call	vnic_cq_service@PLT
	mov	r15d, eax
	add	ebp, eax
.L2:
	test	ebp, ebp
	jne	.L20
.L3:
	mov	rdi, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR enic_rq_alloc_buf[rip]
	call	vnic_rq_fill@PLT
	test	eax, eax
	jne	.L4
	cmp	QWORD PTR 16[rbx], 0
	mov	r14d, r15d
	jne	.L8
	cmp	r12d, r15d
	ja	.L21
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L4:
	.cfi_restore_state
	cmp	QWORD PTR 16[rbx], 0
	mov	r14d, r12d
	je	.L1
	mov	r15d, r12d
.L8:
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdi, rbx
	call	enic_calc_int_moderation@PLT
	cmp	r12d, r15d
	jbe	.L1
.L21:
	mov	esi, r15d
	mov	rdi, r13
	call	napi_complete_done@PLT
	test	rax, rax
	je	.L1
	cmp	QWORD PTR 16[rbx], 0
	jne	.L22
.L7:
	mov	r15d, DWORD PTR 12[rsp]
	mov	rdx, QWORD PTR [rbx]
	lea	rdi, [rdx+r15*4]
	call	vnic_intr_unmask@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdx, QWORD PTR [rbx]
	mov	eax, DWORD PTR 12[rsp]
	xor	ecx, ecx
	mov	esi, ebp
	lea	rdi, [rdx+rax*4]
	xor	edx, edx
	call	vnic_intr_return_credits@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdi, rbx
	call	enic_set_int_moderation@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	enic_poll, .-enic_poll
	.comm	enic_wq_service,4,4
	.comm	enic_rq_service,4,4
	.comm	enic_rq_alloc_buf,4,4
	.comm	ENIC_WQ_NAPI_BUDGET,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_enic_main.c_enic_poll.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	enic_poll, %function
enic_poll:
	@ 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
	ldr	r0, [r0]
	mov	r5, r1
	bl	netdev_priv
	mov	r1, #0
	mov	r4, r0
	bl	enic_cq_rq
	mov	r1, #0
	mov	r8, r0
	mov	r0, r4
	bl	enic_cq_wq
	mov	r6, r0
	bl	enic_legacy_io_intr
	ldr	r3, .L28
	mov	r9, r0
	ldr	r2, .L28+4
	ldr	r0, [r4, #12]
	ldr	r1, [r3]
	add	r0, r0, r6, lsl #2
	mov	r3, #0
	ldr	r2, [r2]
	bl	vnic_cq_service
	cmp	r5, #0
	mov	r6, r0
	movle	r8, #0
	ble	.L2
	ldr	r3, .L28+8
	ldr	r0, [r4, #12]
	ldr	r2, [r3]
	add	r0, r0, r8, lsl #2
	mov	r3, #0
	mov	r1, r5
	bl	vnic_cq_service
	mov	r8, r0
	add	r6, r6, r0
.L2:
	cmp	r6, #0
	bne	.L25
.L3:
	ldr	r3, .L28+12
	ldr	r0, [r4, #4]
	ldr	r1, [r3]
	bl	vnic_rq_fill
	cmp	r0, #0
	ldr	r3, [r4, #8]
	bne	.L4
	cmp	r3, #0
	mov	r6, r8
	bne	.L8
	cmp	r5, r8
	bhi	.L26
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	cmp	r3, #0
	mov	r6, r5
	beq	.L1
	mov	r8, r5
.L8:
	mov	r0, r4
	ldr	r1, [r4, #4]
	bl	enic_calc_int_moderation
	cmp	r5, r8
	bls	.L1
.L26:
	mov	r1, r8
	mov	r0, r7
	bl	napi_complete_done
	cmp	r0, #0
	beq	.L1
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L27
.L7:
	ldr	r0, [r4]
	add	r0, r0, r9, lsl #2
	bl	vnic_intr_unmask
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L25:
	mov	r3, #0
	ldr	r0, [r4]
	mov	r1, r6
	mov	r2, r3
	add	r0, r0, r9, lsl #2
	bl	vnic_intr_return_credits
	b	.L3
.L27:
	mov	r0, r4
	ldr	r1, [r4, #4]
	bl	enic_set_int_moderation
	b	.L7
.L29:
	.align	2
.L28:
	.word	ENIC_WQ_NAPI_BUDGET
	.word	enic_wq_service
	.word	enic_rq_service
	.word	enic_rq_alloc_buf
	.size	enic_poll, .-enic_poll
	.comm	enic_wq_service,4,4
	.comm	enic_rq_service,4,4
	.comm	enic_rq_alloc_buf,4,4
	.comm	ENIC_WQ_NAPI_BUDGET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
