	.file	"extr_cq.c_mlx5_cq_resize_copy_cqes.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"expected cqe in sw ownership\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"resize CQ failed to get resize CQE\n"
	.text
	.p2align 4
	.globl	mlx5_cq_resize_copy_cqes
	.type	mlx5_cq_resize_copy_cqes, @function
mlx5_cq_resize_copy_cqes:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	ebp, DWORD PTR [rdi]
	mov	ebx, DWORD PTR 8[rdi]
	mov	esi, DWORD PTR 12[rdi]
	mov	r12d, DWORD PTR 4[rdi]
	mov	edi, DWORD PTR 20[rdi]
	mov	edx, ebp
	and	esi, ebx
	call	get_buf_cqe@PLT
	cmp	ebp, 64
	mov	edx, DWORD PTR 12[r15]
	mov	esi, ebx
	lea	r14, 64[rax]
	mov	QWORD PTR 24[rsp], rax
	mov	r13, rax
	cmove	r14, rax
	mov	edi, DWORD PTR [r14]
	call	is_hw@PLT
	test	rax, rax
	je	.L3
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR 16[r15]
	add	ebx, 1
	mov	edi, DWORD PTR 24[r15]
	mov	edx, r12d
	lea	esi, -1[rax]
	and	esi, ebx
	call	get_buf_cqe@PLT
	cmp	r12d, 64
	mov	esi, DWORD PTR 16[r15]
	mov	edi, ebx
	lea	rcx, 64[rax]
	mov	QWORD PTR 16[rsp], rax
	cmove	rcx, rax
	mov	r14, rcx
	call	sw_ownership_bit@PLT
	mov	r9, QWORD PTR 16[rsp]
	mov	rsi, r13
	mov	edx, ebp
	mov	DWORD PTR 12[rsp], eax
	mov	rdi, r9
	call	memcpy@PLT
	mov	esi, DWORD PTR 12[r15]
	mov	edi, DWORD PTR 20[r15]
	mov	edx, ebp
	mov	eax, DWORD PTR MLX5_CQE_OWNER_MASK[rip]
	and	esi, ebx
	not	eax
	and	eax, DWORD PTR [r14]
	or	eax, DWORD PTR 12[rsp]
	mov	DWORD PTR [r14], eax
	call	get_buf_cqe@PLT
	cmp	ebp, 64
	mov	edx, DWORD PTR 12[r15]
	mov	esi, ebx
	lea	r14, 64[rax]
	mov	r13, rax
	cmove	r14, rax
	mov	edi, DWORD PTR [r14]
	call	is_hw@PLT
	test	rax, rax
	jne	.L17
	cmp	QWORD PTR 24[rsp], r13
	je	.L19
.L3:
	mov	eax, DWORD PTR [r14]
	sar	eax, 4
	cmp	eax, DWORD PTR MLX5_CQE_RESIZE_CQ[rip]
	jne	.L7
	add	DWORD PTR 8[r15], 1
	add	rsp, 40
	.cfi_remember_state
	.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
.L17:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
.L16:
	mov	edi, DWORD PTR stderr[rip]
	add	rsp, 40
	.cfi_remember_state
	.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
	jmp	fprintf@PLT
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	jmp	.L16
	.cfi_endproc
.LFE0:
	.size	mlx5_cq_resize_copy_cqes, .-mlx5_cq_resize_copy_cqes
	.comm	stderr,4,4
	.comm	MLX5_CQE_RESIZE_CQ,4,4
	.comm	MLX5_CQE_OWNER_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_cq.c_mlx5_cq_resize_copy_cqes.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"expected cqe in sw ownership\012\000"
	.align	2
.LC1:
	.ascii	"resize CQ failed to get resize CQE\012\000"
	.text
	.align	2
	.global	mlx5_cq_resize_copy_cqes
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx5_cq_resize_copy_cqes, %function
mlx5_cq_resize_copy_cqes:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r8, [r0]
	ldr	r5, [r0, #8]
	ldr	r1, [r0, #12]
	sub	sp, sp, #20
	mov	r2, r8
	and	r1, r1, r5
	ldr	r0, [r0, #20]
	ldr	r9, [r4, #4]
	bl	get_buf_cqe
	cmp	r8, #64
	str	r0, [sp, #12]
	ldreq	r7, [sp, #12]
	addne	r7, r0, #64
	mov	r1, r5
	ldr	r2, [r4, #12]
	ldr	r0, [r7]
	bl	is_hw
	cmp	r0, #0
	bne	.L15
	ldr	r6, [sp, #12]
	ldr	r10, .L18
	ldr	fp, .L18+4
	b	.L3
.L7:
	ldr	r1, [r4, #16]
	mov	r2, r9
	sub	r1, r1, #1
	and	r1, r1, r5
	ldr	r0, [r4, #24]
	bl	get_buf_cqe
	cmp	r9, #64
	moveq	r3, r0
	addne	r3, r0, #64
	ldr	r1, [r4, #16]
	str	r0, [sp, #8]
	mov	r0, r5
	str	r3, [sp, #4]
	bl	sw_ownership_bit
	mov	r7, r0
	ldr	r2, [sp, #8]
	mov	r1, r6
	mov	r0, r2
	mov	r2, r8
	bl	memcpy
	ldr	r3, [sp, #4]
	ldr	r2, [fp]
	ldr	r0, [r3]
	ldr	r1, [r4, #12]
	bic	r0, r0, r2
	orr	r7, r0, r7
	str	r7, [r3]
	mov	r2, r8
	and	r1, r1, r5
	ldr	r0, [r4, #20]
	bl	get_buf_cqe
	cmp	r8, #64
	moveq	r7, r0
	addne	r7, r0, #64
	mov	r6, r0
	mov	r1, r5
	ldr	r2, [r4, #12]
	ldr	r0, [r7]
	bl	is_hw
	cmp	r0, #0
	bne	.L15
	ldr	r3, [sp, #12]
	cmp	r3, r6
	beq	.L17
.L3:
	ldr	r2, [r7]
	ldr	r3, [r10]
	add	r5, r5, #1
	cmp	r3, r2, asr #4
	bne	.L7
	ldr	r3, [r4, #8]
	add	r3, r3, #1
	str	r3, [r4, #8]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	ldr	r3, .L18+8
	ldr	r1, .L18+12
	ldr	r0, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	fprintf
.L17:
	ldr	r3, .L18+8
	ldr	r1, .L18+16
	ldr	r0, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	fprintf
.L19:
	.align	2
.L18:
	.word	MLX5_CQE_RESIZE_CQ
	.word	MLX5_CQE_OWNER_MASK
	.word	stderr
	.word	.LC0
	.word	.LC1
	.size	mlx5_cq_resize_copy_cqes, .-mlx5_cq_resize_copy_cqes
	.comm	stderr,4,4
	.comm	MLX5_CQE_RESIZE_CQ,4,4
	.comm	MLX5_CQE_OWNER_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
