	.file	"extr_mvpp2_prs.c_mvpp2_prs_double_vlan_find.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mvpp2_prs_double_vlan_find, @function
mvpp2_prs_double_vlan_find:
.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
	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, 24
	.cfi_def_cfa_offset 80
	mov	r12d, DWORD PTR MVPP2_PE_FIRST_FREE_TID[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	r12d, DWORD PTR MVPP2_PE_LAST_FREE_TID[rip]
	jg	.L2
	movsx	rbx, r12d
	mov	r15, rdi
	mov	r13d, esi
	mov	r14d, edx
	sal	rbx, 4
	lea	rbp, 4[rsp]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	add	r12d, 1
	add	rbx, 16
	cmp	DWORD PTR MVPP2_PE_LAST_FREE_TID[rip], r12d
	jl	.L2
.L4:
	mov	rax, QWORD PTR [r15]
	add	rax, rbx
	mov	edx, DWORD PTR 8[rax]
	test	edx, edx
	je	.L5
	mov	rcx, QWORD PTR MVPP2_PRS_LU_VLAN[rip]
	cmp	QWORD PTR [rax], rcx
	jne	.L5
	mov	edx, r12d
	mov	rsi, rbp
	mov	rdi, r15
	call	mvpp2_prs_init_from_hw@PLT
	xor	esi, esi
	movzx	edx, r13w
	mov	rdi, rbp
	call	mvpp2_prs_tcam_data_cmp@PLT
	test	rax, rax
	je	.L5
	movzx	edx, r14w
	mov	esi, 4
	mov	rdi, rbp
	call	mvpp2_prs_tcam_data_cmp@PLT
	test	rax, rax
	je	.L5
	mov	rdi, rbp
	call	mvpp2_prs_sram_ri_get@PLT
	and	eax, DWORD PTR MVPP2_PRS_RI_VLAN_MASK[rip]
	cmp	DWORD PTR MVPP2_PRS_RI_VLAN_DOUBLE[rip], eax
	jne	.L5
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOENT[rip]
	neg	r12d
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mvpp2_prs_double_vlan_find, .-mvpp2_prs_double_vlan_find
	.comm	MVPP2_PRS_RI_VLAN_MASK,4,4
	.comm	MVPP2_PRS_RI_VLAN_DOUBLE,4,4
	.comm	MVPP2_PRS_LU_VLAN,8,8
	.comm	MVPP2_PE_LAST_FREE_TID,4,4
	.comm	MVPP2_PE_FIRST_FREE_TID,4,4
	.comm	ENOENT,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_mvpp2_prs.c_mvpp2_prs_double_vlan_find.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mvpp2_prs_double_vlan_find, %function
mvpp2_prs_double_vlan_find:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L18
	ldr	r6, .L18+4
	ldr	r4, [r3]
	ldr	r3, [r6]
	sub	sp, sp, #12
	cmp	r4, r3
	ldr	r3, .L18+8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bgt	.L2
	mov	r5, r0
	mov	r7, r1
	mov	r8, r2
	ldr	fp, .L18+12
	ldr	r10, .L18+16
	ldr	r9, .L18+20
	b	.L4
.L5:
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	blt	.L2
.L4:
	ldr	r3, [r5]
	add	r2, r3, r4, lsl #3
	ldr	r2, [r2, #4]
	cmp	r2, #0
	beq	.L5
	ldr	r2, [r3, r4, lsl #3]
	ldr	r3, [fp]
	cmp	r2, r3
	bne	.L5
	mov	r1, sp
	mov	r2, r4
	mov	r0, r5
	bl	mvpp2_prs_init_from_hw
	mov	r2, r7
	mov	r0, sp
	mov	r1, #0
	bl	mvpp2_prs_tcam_data_cmp
	cmp	r0, #0
	beq	.L5
	mov	r2, r8
	mov	r1, #4
	mov	r0, sp
	bl	mvpp2_prs_tcam_data_cmp
	cmp	r0, #0
	beq	.L5
	mov	r0, sp
	bl	mvpp2_prs_sram_ri_get
	ldr	r2, [r9]
	ldr	r3, [r10]
	and	r0, r0, r2
	cmp	r3, r0
	bne	.L5
.L1:
	ldr	r3, .L18+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L18+24
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	MVPP2_PE_FIRST_FREE_TID
	.word	MVPP2_PE_LAST_FREE_TID
	.word	.LC0
	.word	MVPP2_PRS_LU_VLAN
	.word	MVPP2_PRS_RI_VLAN_DOUBLE
	.word	MVPP2_PRS_RI_VLAN_MASK
	.word	ENOENT
	.size	mvpp2_prs_double_vlan_find, .-mvpp2_prs_double_vlan_find
	.comm	MVPP2_PRS_RI_VLAN_MASK,4,4
	.comm	MVPP2_PRS_RI_VLAN_DOUBLE,4,4
	.comm	MVPP2_PRS_LU_VLAN,4,4
	.comm	MVPP2_PE_LAST_FREE_TID,4,4
	.comm	MVPP2_PE_FIRST_FREE_TID,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
