	.file	"extr_hns_roce_hw_v2.c_hns_roce_handle_recv_inl_wqe.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hns_roce_handle_recv_inl_wqe, @function
hns_roce_handle_recv_inl_wqe:
.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
	mov	r14, rdx
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR V2_CQE_BYTE_4_WQE_INDX_M[rip]
	mov	edi, DWORD PTR [rdi]
	mov	QWORD PTR 8[rsp], rdx
	mov	edx, DWORD PTR V2_CQE_BYTE_4_WQE_INDX_S[rip]
	call	roce_get_field@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	r8d, eax
	mov	eax, DWORD PTR 8[rdi]
	sub	eax, 1
	and	eax, r8d
	movzx	esi, ax
	movzx	eax, ax
	sal	rax, 4
	add	rax, QWORD PTR [rdi]
	mov	r15, QWORD PTR 8[rax]
	mov	r12d, DWORD PTR [rax]
	call	get_recv_wqe@PLT
	mov	r14d, DWORD PTR [r14]
	test	r14d, r14d
	je	.L1
	test	r12d, r12d
	jle	.L2
	mov	rbp, rax
	xor	r13d, r13d
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR 8[r15]
	mov	esi, r14d
	add	r13d, 1
	add	r15, 16
	call	min@PLT
	mov	rdi, QWORD PTR -16[r15]
	mov	rsi, rbp
	movsx	rbx, eax
	mov	edx, ebx
	sub	r14d, ebx
	add	rbp, rbx
	call	memcpy@PLT
	cmp	r12d, r13d
	jle	.L2
	test	r14d, r14d
	jne	.L3
.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
.L2:
	.cfi_restore_state
	test	r14d, r14d
	je	.L1
	mov	eax, DWORD PTR IB_WC_LOC_LEN_ERR[rip]
	mov	rcx, QWORD PTR 8[rsp]
	mov	r14d, DWORD PTR EAGAIN[rip]
	mov	DWORD PTR 4[rcx], eax
	neg	r14d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	hns_roce_handle_recv_inl_wqe, .-hns_roce_handle_recv_inl_wqe
	.comm	V2_CQE_BYTE_4_WQE_INDX_S,4,4
	.comm	V2_CQE_BYTE_4_WQE_INDX_M,4,4
	.comm	IB_WC_LOC_LEN_ERR,4,4
	.comm	EAGAIN,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_hns_roce_hw_v2.c_hns_roce_handle_recv_inl_wqe.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hns_roce_handle_recv_inl_wqe, %function
hns_roce_handle_recv_inl_wqe:
	@ 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	r4, r1
	ldr	r3, .L14
	mov	r10, r2
	ldr	r2, .L14+4
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r0, [r0]
	bl	roce_get_field
	ldr	r3, [r4]
	ldr	r1, [r3, #4]
	ldr	r2, [r3]
	sub	r1, r1, #1
	and	r1, r1, r0
	lsl	r1, r1, #16
	lsr	r1, r1, #16
	mov	r0, r3
	add	r3, r2, r1, lsl #3
	ldr	r7, [r2, r1, lsl #3]
	ldr	r8, [r3, #4]
	bl	get_recv_wqe
	ldr	fp, [r10]
	cmp	fp, #0
	cmpne	r7, #0
	ble	.L2
	mov	r6, r0
	mov	r5, #0
	add	r9, r8, #4
.L3:
	mov	r1, fp
	ldr	r0, [r9, r5, lsl #3]
	bl	min
	mov	r4, r0
	mov	r1, r6
	mov	r2, r0
	ldr	r0, [r8, r5, lsl #3]
	bl	memcpy
	subs	fp, fp, r4
	movne	r3, #1
	moveq	r3, #0
	add	r5, r5, #1
	cmp	r7, r5
	movle	r3, #0
	andgt	r3, r3, #1
	cmp	r3, #0
	add	r6, r6, r4
	bne	.L3
.L2:
	cmp	fp, #0
	beq	.L1
	ldr	r3, .L14+8
	ldr	r2, .L14+12
	ldr	r3, [r3]
	ldr	fp, [r2]
	str	r3, [r10, #4]
	rsb	fp, fp, #0
.L1:
	mov	r0, fp
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	.align	2
.L14:
	.word	V2_CQE_BYTE_4_WQE_INDX_M
	.word	V2_CQE_BYTE_4_WQE_INDX_S
	.word	IB_WC_LOC_LEN_ERR
	.word	EAGAIN
	.size	hns_roce_handle_recv_inl_wqe, .-hns_roce_handle_recv_inl_wqe
	.comm	V2_CQE_BYTE_4_WQE_INDX_S,4,4
	.comm	V2_CQE_BYTE_4_WQE_INDX_M,4,4
	.comm	IB_WC_LOC_LEN_ERR,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
