	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_prs_vlan_find
_mvpp2_prs_vlan_find:                   ## @mvpp2_prs_vlan_find
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	_MVPP2_PE_FIRST_FREE_TID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_MVPP2_PE_LAST_FREE_TID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jle	LBB0_1
LBB0_9:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movslq	%ebx, %r13
	leaq	-1(%r13), %r12
	shlq	$4, %r13
	orq	$8, %r13
	movzwl	%si, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%rcx), %rax
	incl	%ebx
	incq	%r12
	addq	$16, %r13
	cmpq	%rax, %r12
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rax
	cmpl	$0, (%rax,%r13)
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-8(%rax,%r13), %rax
	movq	_MVPP2_PRS_LU_VLAN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, %r15
	leaq	-48(%rbp), %r14
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_mvpp2_prs_init_from_hw
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_mvpp2_prs_tcam_data_cmp
	movq	%r15, %rdi
	movq	_MVPP2_PE_LAST_FREE_TID@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	-48(%rbp), %rdi
	callq	_mvpp2_prs_sram_ri_get
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_MVPP2_PRS_RI_VLAN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	-48(%rbp), %rdi
	callq	_mvpp2_prs_tcam_ai_get
	movq	%r15, %rdi
	movq	_MVPP2_PRS_DBL_VLAN_AI_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	cmpl	-52(%rbp), %ecx                 ## 4-byte Folded Reload
	movq	_MVPP2_PE_LAST_FREE_TID@GOTPCREL(%rip), %rcx
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	andl	-56(%rbp), %r14d                ## 4-byte Folded Reload
	movq	_MVPP2_PRS_RI_VLAN_SINGLE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MVPP2_PRS_RI_VLAN_TRIPLE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_8
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MVPP2_PE_FIRST_FREE_TID,4,2    ## @MVPP2_PE_FIRST_FREE_TID
	.comm	_MVPP2_PE_LAST_FREE_TID,4,2     ## @MVPP2_PE_LAST_FREE_TID
	.comm	_MVPP2_PRS_LU_VLAN,8,3          ## @MVPP2_PRS_LU_VLAN
	.comm	_MVPP2_PRS_RI_VLAN_MASK,4,2     ## @MVPP2_PRS_RI_VLAN_MASK
	.comm	_MVPP2_PRS_DBL_VLAN_AI_BIT,4,2  ## @MVPP2_PRS_DBL_VLAN_AI_BIT
	.comm	_MVPP2_PRS_RI_VLAN_SINGLE,4,2   ## @MVPP2_PRS_RI_VLAN_SINGLE
	.comm	_MVPP2_PRS_RI_VLAN_TRIPLE,4,2   ## @MVPP2_PRS_RI_VLAN_TRIPLE
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_mvpp2_prs_vlan_find
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_prs_vlan_find
_mvpp2_prs_vlan_find:                   ; @mvpp2_prs_vlan_find
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _MVPP2_PE_FIRST_FREE_TID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MVPP2_PE_FIRST_FREE_TID@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x24, _MVPP2_PE_LAST_FREE_TID@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MVPP2_PE_LAST_FREE_TID@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w19, w8
	b.le	LBB0_3
LBB0_1:
Lloh5:
	adrp	x8, _ENOENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_3:
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	sxtw	x8, w19
	sub	x25, x8, #1
	lsl	x26, x8, #4
Lloh8:
	adrp	x27, _MVPP2_PRS_LU_VLAN@GOTPAGE
Lloh9:
	ldr	x27, [x27, _MVPP2_PRS_LU_VLAN@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrsw	x8, [x24]
	add	w19, w19, #1
	add	x25, x25, #1
	add	x26, x26, #16
	cmp	x25, x8
	b.ge	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x9, x8, x26
	ldr	w9, [x9, #8]
	cbz	w9, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x8, x26]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #8
	mov	x0, x22
	mov	x2, x19
	bl	_mvpp2_prs_init_from_hw
	add	x0, sp, #8
	mov	w1, #0
	mov	x2, x21
	bl	_mvpp2_prs_tcam_data_cmp
	cbz	w0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #8
	bl	_mvpp2_prs_sram_ri_get
	mov	x23, x0
Lloh10:
	adrp	x8, _MVPP2_PRS_RI_VLAN_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MVPP2_PRS_RI_VLAN_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w28, [x8]
	add	x0, sp, #8
	bl	_mvpp2_prs_tcam_ai_get
Lloh13:
	adrp	x8, _MVPP2_PRS_DBL_VLAN_AI_BIT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MVPP2_PRS_DBL_VLAN_AI_BIT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	bic	w8, w0, w8
	cmp	w8, w20
	b.ne	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w8, w28, w23
Lloh16:
	adrp	x9, _MVPP2_PRS_RI_VLAN_SINGLE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MVPP2_PRS_RI_VLAN_SINGLE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	adrp	x10, _MVPP2_PRS_RI_VLAN_TRIPLE@GOTPAGE
Lloh20:
	ldr	x10, [x10, _MVPP2_PRS_RI_VLAN_TRIPLE@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_4
	b	LBB0_2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP2_PE_FIRST_FREE_TID,4,2    ; @MVPP2_PE_FIRST_FREE_TID
	.comm	_MVPP2_PE_LAST_FREE_TID,4,2     ; @MVPP2_PE_LAST_FREE_TID
	.comm	_MVPP2_PRS_LU_VLAN,8,3          ; @MVPP2_PRS_LU_VLAN
	.comm	_MVPP2_PRS_RI_VLAN_MASK,4,2     ; @MVPP2_PRS_RI_VLAN_MASK
	.comm	_MVPP2_PRS_DBL_VLAN_AI_BIT,4,2  ; @MVPP2_PRS_DBL_VLAN_AI_BIT
	.comm	_MVPP2_PRS_RI_VLAN_SINGLE,4,2   ; @MVPP2_PRS_RI_VLAN_SINGLE
	.comm	_MVPP2_PRS_RI_VLAN_TRIPLE,4,2   ; @MVPP2_PRS_RI_VLAN_TRIPLE
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_mvpp2_prs_vlan_find
.subsections_via_symbols
