	.file	"extr_hinic_hw_wq.c_copy_wqe_to_shadow.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	copy_wqe_to_shadow, @function
copy_wqe_to_shadow:
.LFB0:
	.cfi_startproc
	endbr64
	test	edx, edx
	jle	.L6
	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	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	mov	esi, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbp
	add	r15d, 1
	call	MASKED_WQE_IDX@PLT
	mov	rdi, rbp
	mov	ebx, eax
	mov	esi, eax
	call	WQ_PAGE_ADDR@PLT
	mov	esi, ebx
	mov	rdi, rbp
	mov	r14, rax
	call	WQE_PAGE_OFF@PLT
	mov	edx, DWORD PTR 0[rbp]
	mov	rdi, r12
	movsx	rsi, eax
	add	rsi, r14
	call	memcpy@PLT
	movsx	rax, DWORD PTR 0[rbp]
	lea	esi, 1[rbx]
	add	r12, rax
	cmp	r13d, r15d
	jne	.L3
	add	rsp, 8
	.cfi_def_cfa_offset 56
	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
.L6:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.cfi_endproc
.LFE0:
	.size	copy_wqe_to_shadow, .-copy_wqe_to_shadow
	.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_hinic_hw_wq.c_copy_wqe_to_shadow.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy_wqe_to_shadow, %function
copy_wqe_to_shadow:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r8, r2, #0
	pople	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r7, r1
	mov	r5, r0
	mov	r1, r3
	mov	r9, #0
.L3:
	mov	r0, r5
	bl	MASKED_WQE_IDX
	mov	r4, r0
	mov	r0, r5
	mov	r1, r4
	bl	WQ_PAGE_ADDR
	mov	r1, r4
	mov	r6, r0
	mov	r0, r5
	bl	WQE_PAGE_OFF
	ldr	r2, [r5]
	add	r1, r6, r0
	mov	r0, r7
	bl	memcpy
	add	r9, r9, #1
	ldr	r3, [r5]
	cmp	r8, r9
	add	r1, r4, #1
	add	r7, r7, r3
	bne	.L3
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	copy_wqe_to_shadow, .-copy_wqe_to_shadow
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
