	.file	"extr_ecore_spq.c_ecore_eq_completion.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"fw_cons_idx %x\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"op %x prot %x res0 %x echo %x fwret %x flags %x\n"
	.text
	.p2align 4
	.globl	ecore_eq_completion
	.type	ecore_eq_completion, @function
ecore_eq_completion:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	lea	r12, 8[rsi]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	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 [rsi]
	mov	edi, DWORD PTR [rax]
	call	OSAL_LE16_TO_CPU@PLT
	mov	esi, DWORD PTR ECORE_MSG_SPQ[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, rbx
	mov	ecx, eax
	mov	DWORD PTR 12[rsp], eax
	mov	r14d, eax
	xor	eax, eax
	call	DP_VERBOSE@PLT
	mov	rdi, r12
	call	ecore_chain_get_usable_per_page@PLT
	mov	rdi, r12
	and	eax, r14d
	mov	ebp, eax
	call	ecore_chain_get_usable_per_page@PLT
	cmp	ebp, eax
	je	.L13
.L2:
	lea	r14, .LC1[rip]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rsi, rbp
	mov	rdi, rbx
	call	ecore_async_event_completion@PLT
.L6:
	mov	rdi, r12
	call	ecore_chain_recycle_consumed@PLT
.L7:
	mov	rdi, r12
	call	ecore_chain_get_cons_idx@PLT
	cmp	eax, DWORD PTR 12[rsp]
	je	.L9
	mov	rdi, r12
	call	ecore_chain_consume@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L9
	mov	edi, DWORD PTR 16[rax]
	mov	r13d, DWORD PTR 20[rax]
	mov	r15d, DWORD PTR 12[rax]
	call	OSAL_LE16_TO_CPU@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	r9d, DWORD PTR 24[rbp]
	mov	ecx, DWORD PTR 28[rbp]
	push	r13
	.cfi_def_cfa_offset 96
	mov	r8, QWORD PTR 0[rbp]
	mov	rdx, r14
	mov	rdi, rbx
	push	r15
	.cfi_def_cfa_offset 104
	mov	esi, DWORD PTR ECORE_MSG_SPQ[rip]
	push	rax
	.cfi_def_cfa_offset 112
	xor	eax, eax
	call	DP_VERBOSE@PLT
	mov	rax, QWORD PTR PROTOCOLID_ISCSI[rip]
	add	rsp, 32
	.cfi_def_cfa_offset 80
	cmp	QWORD PTR 0[rbp], rax
	je	.L14
.L4:
	mov	edi, DWORD PTR 20[rbp]
	mov	esi, DWORD PTR EVENT_RING_ENTRY_ASYNC[rip]
	call	GET_FIELD@PLT
	test	rax, rax
	jne	.L15
	mov	edx, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR 16[rbp]
	lea	rcx, 8[rbp]
	mov	rdi, rbx
	call	ecore_spq_completion@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rsi, rbp
	mov	rdi, rbx
	call	ecore_iscsi_eq_dump@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r12
	call	ecore_chain_get_prod_idx@PLT
	mov	rdi, rbx
	mov	esi, eax
	call	ecore_eq_prod_update@PLT
	mov	rdi, QWORD PTR [rbx]
	call	OSAL_SPIN_LOCK@PLT
	mov	rdi, rbx
	call	ecore_spq_pend_post@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	r12d, eax
	call	OSAL_SPIN_UNLOCK@PLT
	add	rsp, 24
	.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
.L13:
	.cfi_restore_state
	mov	rdi, r12
	call	ecore_chain_get_unusable_per_page@PLT
	add	DWORD PTR 12[rsp], eax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ecore_eq_completion, .-ecore_eq_completion
	.comm	PROTOCOLID_ISCSI,8,8
	.comm	EVENT_RING_ENTRY_ASYNC,4,4
	.comm	ECORE_MSG_SPQ,4,4
	.comm	ECORE_INVAL,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_ecore_spq.c_ecore_eq_completion.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"fw_cons_idx %x\012\000"
	.align	2
.LC1:
	.ascii	"op %x prot %x res0 %x echo %x fwret %x flags %x\012"
	.ascii	"\000"
	.text
	.align	2
	.global	ecore_eq_completion
	.syntax unified
	.arm
	.fpu softvfp
	.type	ecore_eq_completion, %function
ecore_eq_completion:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	ldr	r3, [r5], #4
	sub	sp, sp, #36
	mov	r6, r0
	ldr	r0, [r3]
	bl	OSAL_LE16_TO_CPU
	ldr	r2, .L16
	mov	r3, r0
	ldr	r1, [r2]
	mov	r8, r0
	ldr	r2, .L16+4
	mov	r0, r6
	bl	DP_VERBOSE
	mov	r0, r5
	bl	ecore_chain_get_usable_per_page
	mov	r4, r0
	mov	r0, r5
	bl	ecore_chain_get_usable_per_page
	and	r4, r4, r8
	cmp	r4, r0
	beq	.L13
.L2:
	ldr	fp, .L16+8
	ldr	r10, .L16+12
	str	r8, [sp, #28]
	b	.L7
.L15:
	mov	r1, r4
	mov	r0, r6
	bl	ecore_async_event_completion
.L6:
	mov	r0, r5
	bl	ecore_chain_recycle_consumed
.L7:
	mov	r0, r5
	bl	ecore_chain_get_cons_idx
	ldr	r3, [sp, #28]
	cmp	r0, r3
	beq	.L9
	mov	r0, r5
	bl	ecore_chain_consume
	subs	r4, r0, #0
	beq	.L9
	ldr	r3, .L16
	ldr	r0, [r4, #12]
	ldr	r8, [r3]
	ldr	r3, [r4, #24]
	ldr	r7, [r4]
	ldr	r9, [r4, #20]
	str	r3, [sp, #24]
	bl	OSAL_LE16_TO_CPU
	ldr	r2, [r4, #16]
	ldr	r3, [sp, #24]
	str	r2, [sp, #16]
	ldr	r2, [r4, #8]
	mov	r1, r8
	str	r0, [sp, #8]
	str	r2, [sp, #12]
	mov	r0, r6
	mov	r2, fp
	stm	sp, {r7, r9}
	bl	DP_VERBOSE
	ldr	r2, [r4]
	ldr	r3, [r10]
	cmp	r2, r3
	beq	.L14
.L4:
	ldr	r3, .L16+16
	ldr	r0, [r4, #16]
	ldr	r1, [r3]
	bl	GET_FIELD
	cmp	r0, #0
	add	r3, r4, #4
	bne	.L15
	mov	r0, r6
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #12]
	bl	ecore_spq_completion
	b	.L6
.L14:
	mov	r1, r4
	mov	r0, r6
	bl	ecore_iscsi_eq_dump
	b	.L4
.L9:
	mov	r0, r5
	bl	ecore_chain_get_prod_idx
	mov	r1, r0
	mov	r0, r6
	bl	ecore_eq_prod_update
	ldr	r0, [r6]
	bl	OSAL_SPIN_LOCK
	mov	r0, r6
	bl	ecore_spq_pend_post
	mov	r4, r0
	ldr	r0, [r6]
	bl	OSAL_SPIN_UNLOCK
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	mov	r0, r5
	bl	ecore_chain_get_unusable_per_page
	add	r8, r8, r0
	b	.L2
.L17:
	.align	2
.L16:
	.word	ECORE_MSG_SPQ
	.word	.LC0
	.word	.LC1
	.word	PROTOCOLID_ISCSI
	.word	EVENT_RING_ENTRY_ASYNC
	.size	ecore_eq_completion, .-ecore_eq_completion
	.comm	PROTOCOLID_ISCSI,4,4
	.comm	EVENT_RING_ENTRY_ASYNC,4,4
	.comm	ECORE_MSG_SPQ,4,4
	.comm	ECORE_INVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
