	.file	"extr_xdp.c_mlx5e_xmit_xdp_frame_check_mpwqe.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mlx5e_xmit_xdp_frame_check_mpwqe, @function
mlx5e_xmit_xdp_frame_check_mpwqe:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	eax, DWORD PTR 20[rdi]
	mov	rbx, rdi
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	unlikely@PLT
	mov	r8, rax
	mov	eax, DWORD PTR MLX5E_XDP_CHECK_OK[rip]
	test	r8, r8
	jne	.L9
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edx, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR 12[rbx]
	lea	rdi, 16[rbx]
	mov	ecx, DWORD PTR MLX5E_XDPSQ_STOP_ROOM[rip]
	call	mlx5e_wqc_has_room_for@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	unlikely@PLT
	mov	r8, rax
	mov	eax, DWORD PTR MLX5E_XDP_CHECK_START_MPWQE[rip]
	test	r8, r8
	je	.L1
	mov	rdi, rbx
	call	mlx5e_xmit_xdp_doorbell@PLT
	mov	rax, QWORD PTR [rbx]
	add	DWORD PTR [rax], 1
	mov	eax, DWORD PTR EBUSY[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	mlx5e_xmit_xdp_frame_check_mpwqe, .-mlx5e_xmit_xdp_frame_check_mpwqe
	.comm	MLX5E_XDP_CHECK_START_MPWQE,4,4
	.comm	MLX5E_XDP_CHECK_OK,4,4
	.comm	MLX5E_XDPSQ_STOP_ROOM,4,4
	.comm	EBUSY,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_xdp.c_mlx5e_xmit_xdp_frame_check_mpwqe.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx5e_xmit_xdp_frame_check_mpwqe, %function
mlx5e_xmit_xdp_frame_check_mpwqe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r0, [r0, #16]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	bne	.L7
	ldr	r3, .L9
	ldr	r0, [r3]
	pop	{r4, pc}
.L7:
	ldr	r3, .L9+4
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	ldr	r1, [r4, #8]
	add	r0, r4, #12
	bl	mlx5e_wqc_has_room_for
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	bne	.L8
	ldr	r3, .L9+8
	ldr	r0, [r3]
	pop	{r4, pc}
.L8:
	mov	r0, r4
	bl	mlx5e_xmit_xdp_doorbell
	ldr	r2, [r4]
	ldr	r1, .L9+12
	ldr	r3, [r2]
	add	r3, r3, #1
	str	r3, [r2]
	ldr	r0, [r1]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L10:
	.align	2
.L9:
	.word	MLX5E_XDP_CHECK_OK
	.word	MLX5E_XDPSQ_STOP_ROOM
	.word	MLX5E_XDP_CHECK_START_MPWQE
	.word	EBUSY
	.size	mlx5e_xmit_xdp_frame_check_mpwqe, .-mlx5e_xmit_xdp_frame_check_mpwqe
	.comm	MLX5E_XDP_CHECK_START_MPWQE,4,4
	.comm	MLX5E_XDP_CHECK_OK,4,4
	.comm	MLX5E_XDPSQ_STOP_ROOM,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
