	.file	"extr_xdp.c_mlx5e_xdp_handle.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mlx5e_xdp_handle
	.type	mlx5e_xdp_handle, @function
mlx5e_xdp_handle:
.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, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r8
	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
	mov	rbx, rdx
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	edi, DWORD PTR 32[rdi]
	mov	QWORD PTR 16[rsp], rcx
	mov	DWORD PTR 12[rsp], r9d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	READ_ONCE@PLT
	mov	r15, rax
	xor	eax, eax
	test	r15, r15
	je	.L1
	mov	rax, QWORD PTR 24[rbp]
	mov	QWORD PTR 24[rsp], rax
	movsx	rax, DWORD PTR 0[r13]
	lea	r13, 32[rsp]
	mov	rdi, r13
	add	rax, rbx
	mov	QWORD PTR 32[rsp], rax
	call	xdp_set_data_meta_invalid@PLT
	mov	edx, DWORD PTR 12[rsp]
	movsx	rax, DWORD PTR [r12]
	mov	QWORD PTR 48[rsp], rbx
	add	rax, QWORD PTR 32[rsp]
	mov	QWORD PTR 40[rsp], rax
	lea	rax, 20[rbp]
	test	edx, edx
	jne	.L20
	mov	rsi, r13
	mov	rdi, r15
	mov	QWORD PTR 64[rsp], rax
	call	bpf_prog_run_xdp@PLT
	mov	ebx, eax
.L14:
	lea	edx, -128[rbx]
	cmp	edx, 4
	ja	.L4
	lea	rsi, .L6[rip]
	movsx	rax, DWORD PTR [rsi+rdx*4]
	add	rax, rsi
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L10-.L6
	.long	.L9-.L6
	.long	.L8-.L6
	.long	.L7-.L6
	.long	.L5-.L6
	.text
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR 16[rbp]
	mov	rcx, r13
	mov	rdx, r14
	mov	rsi, rbp
	call	mlx5e_xmit_xdp_buff@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	unlikely@PLT
	test	eax, eax
	jne	.L5
	mov	esi, DWORD PTR 12[rbp]
	mov	edi, DWORD PTR MLX5E_RQ_FLAG_XDP_XMIT[rip]
	call	__set_bit@PLT
	mov	eax, 1
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rbx, QWORD PTR 72[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L21
	add	rsp, 88
	.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
.L20:
	.cfi_restore_state
	mov	edx, DWORD PTR [r14]
	mov	rsi, r13
	mov	rdi, r15
	mov	QWORD PTR 64[rsp], rax
	mov	DWORD PTR 56[rsp], edx
	call	bpf_prog_run_xdp@PLT
	mov	esi, DWORD PTR 56[rsp]
	mov	rdi, QWORD PTR 24[rsp]
	mov	rdx, QWORD PTR 32[rsp]
	sub	rdx, QWORD PTR 48[rsp]
	mov	ebx, eax
	call	xsk_umem_adjust_offset@PLT
	mov	DWORD PTR 56[rsp], eax
	jmp	.L14
.L4:
	mov	edi, ebx
	call	bpf_warn_invalid_xdp_action@PLT
.L5:
	mov	edi, DWORD PTR 8[rbp]
	mov	edx, ebx
	mov	rsi, r15
	call	trace_xdp_exception@PLT
.L7:
	mov	rax, QWORD PTR 0[rbp]
	add	DWORD PTR [rax], 1
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR 32[rsp]
	mov	rcx, QWORD PTR 16[rsp]
	mov	rdx, rax
	sub	rdx, QWORD PTR 48[rsp]
	mov	DWORD PTR [rcx], edx
	mov	rcx, QWORD PTR 40[rsp]
	sub	rcx, rax
	xor	eax, eax
	mov	DWORD PTR [r12], ecx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR 8[rbp]
	mov	rdx, r15
	mov	rsi, r13
	call	xdp_do_redirect@PLT
	mov	edi, eax
	call	unlikely@PLT
	test	eax, eax
	jne	.L5
	mov	esi, DWORD PTR 12[rbp]
	mov	edi, DWORD PTR MLX5E_RQ_FLAG_XDP_XMIT[rip]
	call	__set_bit@PLT
	mov	esi, DWORD PTR 12[rbp]
	mov	edi, DWORD PTR MLX5E_RQ_FLAG_XDP_REDIRECT[rip]
	call	__set_bit@PLT
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	je	.L22
.L13:
	mov	rax, QWORD PTR 0[rbp]
	add	DWORD PTR 4[rax], 1
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rsi, r14
	mov	rdi, rbp
	call	mlx5e_page_dma_unmap@PLT
	jmp	.L13
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mlx5e_xdp_handle, .-mlx5e_xdp_handle
	.comm	MLX5E_RQ_FLAG_XDP_XMIT,4,4
	.comm	MLX5E_RQ_FLAG_XDP_REDIRECT,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_xdp_handle.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mlx5e_xdp_handle
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx5e_xdp_handle, %function
mlx5e_xdp_handle:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r3
	ldr	r3, .L22
	sub	sp, sp, #24
	mov	r6, r0
	ldr	r0, [r0, #24]
	mov	r9, r1
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r8, [sp, #56]
	bl	READ_ONCE
	subs	r5, r0, #0
	moveq	r0, r5
	beq	.L1
	ldr	r3, [r7]
	mov	r0, sp
	add	r3, r4, r3
	str	r3, [sp]
	ldr	r10, [r6, #20]
	bl	xdp_set_data_meta_invalid
	ldr	r3, [sp]
	ldr	r2, [r8]
	ldr	r1, [sp, #60]
	add	r3, r3, r2
	cmp	r1, #0
	stmib	sp, {r3, r4}
	add	r3, r6, #16
	bne	.L19
	mov	r1, sp
	mov	r0, r5
	str	r3, [sp, #16]
	bl	bpf_prog_run_xdp
	mov	r4, r0
.L14:
	sub	r3, r4, #128
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L10:
	mov	r3, sp
	mov	r2, r9
	mov	r1, r6
	ldr	r0, [r6, #12]
	bl	mlx5e_xmit_xdp_buff
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	bne	.L5
	ldr	r3, .L22+4
	ldr	r1, [r6, #8]
	ldr	r0, [r3]
	bl	__set_bit
	mov	r0, #1
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	ldr	r2, [r9]
	mov	r1, sp
	mov	r0, r5
	str	r3, [sp, #16]
	str	r2, [sp, #12]
	bl	bpf_prog_run_xdp
	ldr	r2, [sp]
	ldr	r3, [sp, #8]
	mov	r4, r0
	ldr	r1, [sp, #12]
	mov	r0, r10
	sub	r2, r2, r3
	bl	xsk_umem_adjust_offset
	str	r0, [sp, #12]
	b	.L14
.L4:
	mov	r0, r4
	bl	bpf_warn_invalid_xdp_action
.L5:
	mov	r2, r4
	mov	r1, r5
	ldr	r0, [r6, #4]
	bl	trace_xdp_exception
.L7:
	mov	r0, #1
	ldr	r2, [r6]
	ldr	r3, [r2]
	add	r3, r3, r0
	str	r3, [r2]
	b	.L1
.L8:
	ldr	r1, [sp]
	ldr	r2, [sp, #8]
	ldr	r3, [sp, #4]
	sub	r2, r1, r2
	sub	r3, r3, r1
	str	r2, [r7]
	mov	r0, #0
	str	r3, [r8]
	b	.L1
.L9:
	mov	r1, sp
	mov	r2, r5
	ldr	r0, [r6, #4]
	bl	xdp_do_redirect
	bl	unlikely
	cmp	r0, #0
	bne	.L5
	ldr	r3, .L22+4
	ldr	r1, [r6, #8]
	ldr	r0, [r3]
	bl	__set_bit
	ldr	r3, .L22+8
	ldr	r1, [r6, #8]
	ldr	r0, [r3]
	bl	__set_bit
	ldr	r3, [sp, #60]
	cmp	r3, #0
	beq	.L21
.L13:
	mov	r0, #1
	ldr	r2, [r6]
	ldr	r3, [r2, #4]
	add	r3, r3, r0
	str	r3, [r2, #4]
	b	.L1
.L21:
	mov	r1, r9
	mov	r0, r6
	bl	mlx5e_page_dma_unmap
	b	.L13
.L20:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	MLX5E_RQ_FLAG_XDP_XMIT
	.word	MLX5E_RQ_FLAG_XDP_REDIRECT
	.size	mlx5e_xdp_handle, .-mlx5e_xdp_handle
	.comm	MLX5E_RQ_FLAG_XDP_XMIT,4,4
	.comm	MLX5E_RQ_FLAG_XDP_REDIRECT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
