	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_prs_vid_range_find
_mvpp2_prs_vid_range_find:              ## @mvpp2_prs_vid_range_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, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movl	8(%rdi), %edi
	callq	_MVPP2_PRS_VID_PORT_FIRST
	movl	%eax, %ebx
	movl	8(%r12), %edi
	callq	_MVPP2_PRS_VID_PORT_LAST
	cmpl	%eax, %ebx
	jle	LBB0_1
LBB0_7:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movslq	%ebx, %r14
	leaq	-1(%r14), %r15
	shlq	$4, %r14
	orq	$8, %r14
	leaq	-56(%rbp), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r12), %edi
	callq	_MVPP2_PRS_VID_PORT_LAST
	cltq
	incl	%ebx
	incq	%r15
	addq	$16, %r14
	cmpq	%rax, %r15
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movq	(%rdi), %rax
	cmpl	$0, (%rax,%r14)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-8(%rax,%r14), %rax
	movq	_MVPP2_PRS_LU_VID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_mvpp2_prs_init_from_hw
	movq	%r13, %rdi
	movl	$2, %esi
	leaq	-44(%rbp), %rdx
	leaq	-42(%rbp), %rcx
	callq	_mvpp2_prs_tcam_data_byte_get
	movq	%r13, %rdi
	movl	$3, %esi
	leaq	-43(%rbp), %rdx
	leaq	-41(%rbp), %rcx
	callq	_mvpp2_prs_tcam_data_byte_get
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmpb	%al, -43(%rbp)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpb	%al, -41(%rbp)
	jne	LBB0_6
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MVPP2_PRS_LU_VID,8,3           ## @MVPP2_PRS_LU_VID
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_mvpp2_prs_vid_range_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_vid_range_find
_mvpp2_prs_vid_range_find:              ; @mvpp2_prs_vid_range_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
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w0, [x0, #8]
	bl	_MVPP2_PRS_VID_PORT_FIRST
	mov	x20, x0
	ldr	w0, [x22, #8]
	bl	_MVPP2_PRS_VID_PORT_LAST
	cmp	w20, w0
	b.le	LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_2:
	mov	x0, x20
	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:
	add	x8, sp, #14
	add	x23, x8, #1
	add	x8, sp, #12
	add	x24, x8, #1
	sxtw	x8, w20
	sub	x25, x8, #1
	sbfiz	x26, x20, #4, #32
Lloh3:
	adrp	x27, _MVPP2_PRS_LU_VID@GOTPAGE
Lloh4:
	ldr	x27, [x27, _MVPP2_PRS_LU_VID@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x22, #8]
	bl	_MVPP2_PRS_VID_PORT_LAST
	add	w20, w20, #1
	add	x25, x25, #1
	add	x26, x26, #16
	cmp	x25, w0, sxtw
	b.ge	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	ldr	x8, [x0]
	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	x2, x20
	bl	_mvpp2_prs_init_from_hw
	add	x0, sp, #8
	add	x2, sp, #14
	add	x3, sp, #12
	mov	w1, #2
	bl	_mvpp2_prs_tcam_data_byte_get
	add	x0, sp, #8
	mov	w1, #3
	mov	x2, x23
	mov	x3, x24
	bl	_mvpp2_prs_tcam_data_byte_get
	ldrb	w8, [sp, #15]
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [sp, #13]
	cmp	w8, w19
	b.ne	LBB0_4
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP2_PRS_LU_VID,8,3           ; @MVPP2_PRS_LU_VID
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_mvpp2_prs_vid_range_find
.subsections_via_symbols
