	.file	"extr_ehea_main.c_ehea_proc_cqes.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Bad send completion status=0x%04X"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Send CQE"
.LC2:
	.string	"Resetting port"
.LC3:
	.string	"CQE"
	.text
	.p2align 4
	.type	ehea_proc_cqes, @function
ehea_proc_cqes:
.LFB0:
	.cfi_startproc
	endbr64
	movabs	rdx, -6148914691236517205
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	mov	rsi, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR 16[rdi]
	mov	r13, QWORD PTR 40[rdi]
	sub	rsi, QWORD PTR 8[rax]
	mov	edi, DWORD PTR 16[rax]
	sar	rsi, 4
	imul	rsi, rdx
	call	netdev_get_tx_queue@PLT
	mov	rdi, r13
	mov	QWORD PTR 8[rsp], rax
	call	ehea_poll_cq@PLT
	mov	r12, rax
	test	r15d, r15d
	jg	.L47
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR EHEA_WR_ID_TYPE[rip]
	mov	rsi, QWORD PTR [r12]
	call	EHEA_BMASK_GET@PLT
	xor	edi, edi
	cmp	DWORD PTR EHEA_SWQE2_TYPE[rip], eax
	sete	dil
	call	likely@PLT
	test	rax, rax
	jne	.L49
.L7:
	mov	rsi, QWORD PTR [r12]
	mov	edi, DWORD PTR EHEA_WR_ID_REFILL[rip]
	call	EHEA_BMASK_GET@PLT
	mov	rdi, r13
	add	r14d, eax
	call	ehea_poll_cq@PLT
	mov	r12, rax
	mov	eax, r15d
	sub	eax, ebp
	test	eax, eax
	jle	.L2
.L47:
	test	r12, r12
	je	.L2
	mov	rdi, r13
	add	ebp, 1
	call	ehea_inc_cq@PLT
	xor	eax, eax
	call	rmb@PLT
	mov	rax, QWORD PTR SWQE_RESTART_CHECK[rip]
	cmp	QWORD PTR [r12], rax
	je	.L50
	mov	esi, DWORD PTR 8[r12]
	test	DWORD PTR EHEA_CQE_STAT_ERR_MASK[rip], esi
	je	.L4
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	ehea_error@PLT
	mov	rdi, QWORD PTR 16[rbx]
	call	netif_msg_tx_err@PLT
	test	rax, rax
	jne	.L51
	mov	eax, DWORD PTR 8[r12]
	test	DWORD PTR EHEA_CQE_STAT_RESET_MASK[rip], eax
	jne	.L52
.L4:
	mov	rdi, QWORD PTR 16[rbx]
	call	netif_msg_tx_done@PLT
	test	rax, rax
	je	.L6
	lea	rdx, .LC3[rip]
	mov	esi, 16
	mov	rdi, r12
	call	ehea_dump@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L49:
	mov	rsi, QWORD PTR [r12]
	mov	edi, DWORD PTR EHEA_WR_ID_INDEX[rip]
	call	EHEA_BMASK_GET@PLT
	movsx	rdx, eax
	mov	rax, QWORD PTR 32[rbx]
	mov	QWORD PTR [rsp], rdx
	mov	rdi, QWORD PTR [rax+rdx*8]
	call	dev_kfree_skb@PLT
	mov	rax, QWORD PTR 32[rbx]
	mov	rdx, QWORD PTR [rsp]
	mov	QWORD PTR [rax+rdx*8], 0
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L51:
	lea	rdx, .LC1[rip]
	mov	esi, 16
	mov	rdi, r12
	call	ehea_dump@PLT
	mov	eax, DWORD PTR 8[r12]
	test	DWORD PTR EHEA_CQE_STAT_RESET_MASK[rip], eax
	je	.L4
.L52:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	ehea_error@PLT
	mov	rdi, QWORD PTR 16[rbx]
	call	ehea_schedule_port_reset@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, ebp
	mov	rdi, r13
	lea	rbp, 24[rbx]
	call	ehea_update_feca@PLT
	mov	rsi, rbp
	mov	edi, r14d
	call	atomic_add@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	netif_tx_queue_stopped@PLT
	xor	edi, edi
	test	rax, rax
	jne	.L53
.L10:
	call	unlikely@PLT
	test	rax, rax
	jne	.L54
.L11:
	mov	rdi, QWORD PTR 16[rbx]
	call	wake_up@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L50:
	.cfi_restore_state
	mov	DWORD PTR [rbx], 1
	add	r14d, 1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L54:
	xor	eax, eax
	call	smp_processor_id@PLT
	mov	r15, QWORD PTR 8[rsp]
	mov	esi, eax
	mov	rdi, r15
	call	__netif_tx_lock@PLT
	mov	rdi, r15
	call	netif_tx_queue_stopped@PLT
	test	rax, rax
	jne	.L55
.L13:
	mov	rdi, QWORD PTR 8[rsp]
	call	__netif_tx_unlock@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L53:
	mov	rdi, rbp
	call	atomic_read@PLT
	xor	edi, edi
	cmp	rax, QWORD PTR 8[rbx]
	setge	dil
	jmp	.L10
.L55:
	mov	rdi, rbp
	call	atomic_read@PLT
	cmp	rax, QWORD PTR 8[rbx]
	jl	.L13
	mov	rdi, QWORD PTR 8[rsp]
	call	netif_tx_wake_queue@PLT
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	ehea_proc_cqes, .-ehea_proc_cqes
	.comm	SWQE_RESTART_CHECK,8,8
	.comm	EHEA_WR_ID_TYPE,4,4
	.comm	EHEA_WR_ID_REFILL,4,4
	.comm	EHEA_WR_ID_INDEX,4,4
	.comm	EHEA_SWQE2_TYPE,4,4
	.comm	EHEA_CQE_STAT_RESET_MASK,4,4
	.comm	EHEA_CQE_STAT_ERR_MASK,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_ehea_main.c_ehea_proc_cqes.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Bad send completion status=0x%04X\000"
	.align	2
.LC1:
	.ascii	"Send CQE\000"
	.align	2
.LC2:
	.ascii	"Resetting port\000"
	.align	2
.LC3:
	.ascii	"CQE\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ehea_proc_cqes, %function
ehea_proc_cqes:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	ldr	r3, [r0, #8]
	mov	r9, r1
	ldr	r1, [r3, #4]
	ldr	r0, [r3, #8]
	sub	r1, r6, r1
	asr	r1, r1, #3
	add	r3, r1, r1, lsl #2
	add	r3, r3, r3, lsl #4
	add	r3, r3, r3, lsl #8
	add	r3, r3, r3, lsl #16
	sub	sp, sp, #12
	add	r1, r1, r3, lsl #1
	ldr	r8, [r6, #20]
	bl	netdev_get_tx_queue
	mov	r3, r0
	mov	r0, r8
	str	r3, [sp, #4]
	bl	ehea_poll_cq
	cmp	r0, #0
	cmpne	r9, #0
	mov	r4, r0
	movgt	r7, #1
	movle	r7, #0
	ble	.L14
	mov	r7, #0
	ldr	r10, .L46
	mov	r5, r7
	ldr	fp, .L46+4
	b	.L8
.L6:
	ldr	r3, .L46+8
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	EHEA_BMASK_GET
	ldr	r3, .L46+12
	ldr	r3, [r3]
	sub	r0, r3, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	likely
	cmp	r0, #0
	bne	.L39
.L7:
	ldr	r3, .L46+16
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	EHEA_BMASK_GET
	mov	r3, r0
	mov	r0, r8
	add	r7, r7, r3
	bl	ehea_poll_cq
	sub	r3, r9, r5
	cmp	r0, #0
	cmpne	r3, #0
	mov	r4, r0
	ble	.L2
.L8:
	mov	r0, r8
	bl	ehea_inc_cq
	bl	rmb
	ldr	r2, [r4]
	ldr	r3, [r10]
	add	r5, r5, #1
	cmp	r2, r3
	beq	.L40
	ldr	r1, [r4, #4]
	ldr	r3, [fp]
	tst	r1, r3
	beq	.L4
	ldr	r0, .L46+20
	bl	ehea_error
	ldr	r0, [r6, #8]
	bl	netif_msg_tx_err
	cmp	r0, #0
	bne	.L41
.L5:
	ldr	r3, .L46+24
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L42
.L4:
	ldr	r0, [r6, #8]
	bl	netif_msg_tx_done
	cmp	r0, #0
	beq	.L6
	mov	r1, #8
	mov	r0, r4
	ldr	r2, .L46+28
	bl	ehea_dump
	b	.L6
.L39:
	ldr	r3, .L46+32
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	EHEA_BMASK_GET
	mov	r3, r0
	ldr	r2, [r6, #16]
	str	r3, [sp]
	ldr	r0, [r2, r0, lsl #2]
	bl	dev_kfree_skb
	mov	r1, #0
	ldr	r2, [r6, #16]
	ldr	r3, [sp]
	str	r1, [r2, r3, lsl #2]
	b	.L7
.L41:
	mov	r1, #8
	mov	r0, r4
	ldr	r2, .L46+36
	bl	ehea_dump
	b	.L5
.L42:
	ldr	r0, .L46+40
	bl	ehea_error
	ldr	r0, [r6, #8]
	bl	ehea_schedule_port_reset
.L2:
	mov	r1, r5
	mov	r0, r8
	add	r5, r6, #12
	bl	ehea_update_feca
	mov	r1, r5
	mov	r0, r7
	bl	atomic_add
	ldr	r0, [sp, #4]
	bl	netif_tx_queue_stopped
	cmp	r0, #0
	bne	.L43
.L9:
	bl	unlikely
	cmp	r0, #0
	bne	.L44
.L10:
	ldr	r0, [r6, #8]
	bl	wake_up
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L40:
	mov	r3, #1
	add	r7, r7, r3
	str	r3, [r6]
	b	.L2
.L44:
	bl	smp_processor_id
	ldr	r7, [sp, #4]
	mov	r1, r0
	mov	r0, r7
	bl	__netif_tx_lock
	mov	r0, r7
	bl	netif_tx_queue_stopped
	cmp	r0, #0
	bne	.L45
.L12:
	ldr	r0, [sp, #4]
	bl	__netif_tx_unlock
	b	.L10
.L43:
	mov	r0, r5
	bl	atomic_read
	ldr	r3, [r6, #4]
	cmp	r0, r3
	movlt	r0, #0
	movge	r0, #1
	b	.L9
.L45:
	mov	r0, r5
	bl	atomic_read
	ldr	r3, [r6, #4]
	cmp	r0, r3
	blt	.L12
	ldr	r0, [sp, #4]
	bl	netif_tx_wake_queue
	b	.L12
.L14:
	mov	r5, r7
	b	.L2
.L47:
	.align	2
.L46:
	.word	SWQE_RESTART_CHECK
	.word	EHEA_CQE_STAT_ERR_MASK
	.word	EHEA_WR_ID_TYPE
	.word	EHEA_SWQE2_TYPE
	.word	EHEA_WR_ID_REFILL
	.word	.LC0
	.word	EHEA_CQE_STAT_RESET_MASK
	.word	.LC3
	.word	EHEA_WR_ID_INDEX
	.word	.LC1
	.word	.LC2
	.size	ehea_proc_cqes, .-ehea_proc_cqes
	.comm	SWQE_RESTART_CHECK,4,4
	.comm	EHEA_WR_ID_TYPE,4,4
	.comm	EHEA_WR_ID_REFILL,4,4
	.comm	EHEA_WR_ID_INDEX,4,4
	.comm	EHEA_SWQE2_TYPE,4,4
	.comm	EHEA_CQE_STAT_RESET_MASK,4,4
	.comm	EHEA_CQE_STAT_ERR_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
