	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_prs_double_vlan_find
_mvpp2_prs_double_vlan_find:            ## @mvpp2_prs_double_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
	movq	_MVPP2_PE_FIRST_FREE_TID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_MVPP2_PE_LAST_FREE_TID@GOTPCREL(%rip), %r13
	cmpl	(%r13), %ebx
	jle	LBB0_1
LBB0_8:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r14
	movslq	%ebx, %r12
	leaq	-1(%r12), %r15
	shlq	$4, %r12
	orq	$8, %r12
	movzwl	%si, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movzwl	%dx, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r13), %rax
	incl	%ebx
	incq	%r15
	addq	$16, %r12
	cmpq	%rax, %r15
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	cmpl	$0, (%rax,%r12)
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-8(%rax,%r12), %rax
	movq	_MVPP2_PRS_LU_VLAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r13, %r14
	leaq	-48(%rbp), %r13
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_mvpp2_prs_init_from_hw
	movq	%r13, %rdi
	movq	%r14, %r13
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_mvpp2_prs_tcam_data_cmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	-48(%rbp), %rdi
	movl	$4, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_mvpp2_prs_tcam_data_cmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	-48(%rbp), %rdi
	callq	_mvpp2_prs_sram_ri_get
	movq	_MVPP2_PRS_RI_VLAN_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_MVPP2_PRS_RI_VLAN_DOUBLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
	jmp	LBB0_9
	.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_RI_VLAN_DOUBLE,4,2   ## @MVPP2_PRS_RI_VLAN_DOUBLE
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_mvpp2_prs_double_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_double_vlan_find
_mvpp2_prs_double_vlan_find:            ; @mvpp2_prs_double_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	x23, _MVPP2_PE_LAST_FREE_TID@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MVPP2_PE_LAST_FREE_TID@GOTPAGEOFF]
	ldr	w8, [x23]
	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	x24, x8, #1
	lsl	x25, x8, #4
Lloh8:
	adrp	x26, _MVPP2_PRS_LU_VLAN@GOTPAGE
Lloh9:
	ldr	x26, [x26, _MVPP2_PRS_LU_VLAN@GOTPAGEOFF]
Lloh10:
	adrp	x27, _MVPP2_PRS_RI_VLAN_MASK@GOTPAGE
Lloh11:
	ldr	x27, [x27, _MVPP2_PRS_RI_VLAN_MASK@GOTPAGEOFF]
Lloh12:
	adrp	x28, _MVPP2_PRS_RI_VLAN_DOUBLE@GOTPAGE
Lloh13:
	ldr	x28, [x28, _MVPP2_PRS_RI_VLAN_DOUBLE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrsw	x8, [x23]
	add	w19, w19, #1
	add	x24, x24, #1
	add	x25, x25, #16
	cmp	x24, x8
	b.ge	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x9, x8, x25
	ldr	w9, [x9, #8]
	cbz	w9, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x8, x25]
	ldr	x9, [x26]
	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	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #8
	mov	w1, #4
	mov	x2, x20
	bl	_mvpp2_prs_tcam_data_cmp
	cbz	x0, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #8
	bl	_mvpp2_prs_sram_ri_get
	ldr	w8, [x27]
	and	w8, w8, w0
	ldr	w9, [x28]
	cmp	w8, w9
	b.ne	LBB0_4
	b	LBB0_2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.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_RI_VLAN_DOUBLE,4,2   ; @MVPP2_PRS_RI_VLAN_DOUBLE
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_mvpp2_prs_double_vlan_find
.subsections_via_symbols
