	.file	"extr_cq.c_mlx4_ib_cq_resize_copy_cqes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mlx4_ib_cq_resize_copy_cqes, @function
mlx4_ib_cq_resize_copy_cqes:
.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
	xor	r13d, r13d
	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, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	ebp, DWORD PTR [rdi]
	mov	esi, DWORD PTR 4[rdi]
	mov	r14d, DWORD PTR 16[rdi]
	and	esi, ebp
	mov	DWORD PTR 12[rsp], r14d
	call	get_cqe@PLT
	cmp	r14d, 64
	sete	r13b
	sal	r13, 2
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, QWORD PTR 8[rbx]
	mov	r14d, ebp
	add	ebp, 1
	mov	esi, DWORD PTR [rdi]
	add	rdi, 4
	and	esi, ebp
	call	get_cqe_from_buf@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	rdi, rbx
	mov	r12, rax
	and	esi, r14d
	call	get_cqe@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	rdi, r12
	mov	rsi, rax
	call	memcpy@PLT
	mov	rcx, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR [r15]
	mov	rdi, rbx
	mov	edx, DWORD PTR MLX4_CQE_OWNER_MASK[rip]
	mov	ecx, DWORD PTR [rcx]
	mov	eax, edx
	or	edx, esi
	not	eax
	add	ecx, 1
	and	eax, esi
	test	ecx, ebp
	mov	esi, DWORD PTR 4[rbx]
	cmovne	eax, edx
	and	esi, ebp
	mov	DWORD PTR [r12+r13], eax
	call	get_cqe@PLT
.L12:
	lea	r15, [rax+r13]
	mov	eax, DWORD PTR [r15]
	and	eax, DWORD PTR MLX4_CQE_OPCODE_MASK[rip]
	cmp	eax, DWORD PTR MLX4_CQE_OPCODE_RESIZE[rip]
	jne	.L2
	add	DWORD PTR [rbx], 1
	add	rsp, 24
	.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
	.cfi_endproc
.LFE0:
	.size	mlx4_ib_cq_resize_copy_cqes, .-mlx4_ib_cq_resize_copy_cqes
	.comm	MLX4_CQE_OWNER_MASK,4,4
	.comm	MLX4_CQE_OPCODE_RESIZE,4,4
	.comm	MLX4_CQE_OPCODE_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_mlx4_ib_cq_resize_copy_cqes.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_ib_cq_resize_copy_cqes, %function
mlx4_ib_cq_resize_copy_cqes:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, [r0, #12]
	ldr	r5, [r0]
	ldr	r1, [r0, #4]
	sub	fp, r7, #64
	and	r1, r1, r5
	clz	fp, fp
	sub	sp, sp, #12
	mov	r4, r0
	bl	get_cqe
	ldr	r8, .L14
	lsr	fp, fp, #5
	ldr	r9, .L14+4
	ldr	r1, [r0, fp, lsl #2]
	ldr	r3, [r8]
	ldr	r2, [r9]
	and	r3, r3, r1
	cmp	r3, r2
	add	r10, r0, fp, lsl #2
	lslne	fp, fp, #2
	beq	.L4
.L2:
	ldr	r0, [r4, #8]
	str	r5, [sp, #4]
	ldr	r1, [r0], #4
	add	r5, r5, #1
	and	r1, r1, r5
	bl	get_cqe_from_buf
	ldr	r2, [sp, #4]
	ldr	r1, [r4, #4]
	mov	r6, r0
	and	r1, r1, r2
	mov	r0, r4
	bl	get_cqe
	mov	r2, r7
	mov	r1, r0
	mov	r0, r6
	bl	memcpy
	ldr	r2, [r4, #8]
	ldr	r1, [r10]
	ldr	r3, [r2]
	ldr	r2, .L14+8
	add	r3, r3, #1
	ldr	r2, [r2]
	tst	r3, r5
	bic	r3, r1, r2
	orrne	r3, r1, r2
	ldr	r1, [r4, #4]
	mov	r0, r4
	str	r3, [r6, fp]
	and	r1, r1, r5
	bl	get_cqe
	ldr	r1, [r8]
	ldr	r3, [r0, fp]
	ldr	r2, [r9]
	and	r3, r3, r1
	cmp	r3, r2
	add	r10, r0, fp
	bne	.L2
.L4:
	ldr	r3, [r4]
	add	r3, r3, #1
	str	r3, [r4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	.align	2
.L14:
	.word	MLX4_CQE_OPCODE_MASK
	.word	MLX4_CQE_OPCODE_RESIZE
	.word	MLX4_CQE_OWNER_MASK
	.size	mlx4_ib_cq_resize_copy_cqes, .-mlx4_ib_cq_resize_copy_cqes
	.comm	MLX4_CQE_OWNER_MASK,4,4
	.comm	MLX4_CQE_OPCODE_RESIZE,4,4
	.comm	MLX4_CQE_OPCODE_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
