	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_prs_mac_da_range_find
_mvpp2_prs_mac_da_range_find:           ## @mvpp2_prs_mac_da_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	_MVPP2_PE_MAC_RANGE_START@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_MVPP2_PE_MAC_RANGE_END@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jle	LBB0_1
LBB0_9:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r13
	movslq	%ebx, %r15
	leaq	-1(%r15), %r14
	shlq	$4, %r15
	orq	$12, %r15
	movq	_MVPP2_PRS_LU_MAC@GOTPCREL(%rip), %rsi
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_MVPP2_PE_MAC_RANGE_END@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movq	_MVPP2_PRS_LU_MAC@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%eax, %rcx
	incl	%ebx
	incq	%r14
	addq	$16, %r15
	cmpq	%rcx, %r14
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rcx
	cmpl	$0, (%rcx,%r15)
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-12(%rcx,%r15), %rdx
	cmpq	(%rsi), %rdx
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r8d, -4(%rcx,%r15)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	leaq	-80(%rbp), %r12
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_mvpp2_prs_init_from_hw
	movq	%r12, %rdi
	callq	_mvpp2_prs_tcam_port_map_get
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_mvpp2_prs_mac_range_equals
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_7
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MVPP2_PE_MAC_RANGE_START,4,2   ## @MVPP2_PE_MAC_RANGE_START
	.comm	_MVPP2_PE_MAC_RANGE_END,4,2     ## @MVPP2_PE_MAC_RANGE_END
	.comm	_MVPP2_PRS_LU_MAC,8,3           ## @MVPP2_PRS_LU_MAC
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_mvpp2_prs_mac_da_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_mac_da_range_find
_mvpp2_prs_mac_da_range_find:           ; @mvpp2_prs_mac_da_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
Lloh0:
	adrp	x8, _MVPP2_PE_MAC_RANGE_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MVPP2_PE_MAC_RANGE_START@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x8, _MVPP2_PE_MAC_RANGE_END@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MVPP2_PE_MAC_RANGE_END@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w19, w8
	b.le	LBB0_3
LBB0_1:
Lloh6:
	adrp	x8, _ENOENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh8:
	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, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	sxtw	x9, w19
	sub	x27, x9, #1
	lsl	x28, x9, #4
Lloh9:
	adrp	x26, _MVPP2_PRS_LU_MAC@GOTPAGE
Lloh10:
	ldr	x26, [x26, _MVPP2_PRS_LU_MAC@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh11:
	adrp	x8, _MVPP2_PE_MAC_RANGE_END@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MVPP2_PE_MAC_RANGE_END@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w19, w19, #1
	add	x27, x27, #1
	add	x28, x28, #16
	cmp	x27, w8, sxtw
	b.ge	LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24]
	add	x10, x9, x28
	ldr	w10, [x10, #12]
	cbz	w10, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x9, x28]
	ldr	x11, [x26]
	cmp	x10, x11
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, x28
	ldr	w9, [x9, #8]
	cmp	w9, w20
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #8
	mov	x0, x24
	mov	x2, x19
	bl	_mvpp2_prs_init_from_hw
	add	x0, sp, #8
	bl	_mvpp2_prs_tcam_port_map_get
	mov	x25, x0
	add	x0, sp, #8
	mov	x1, x22
	mov	x2, x21
	bl	_mvpp2_prs_mac_range_equals
	cbz	x0, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w25, w23
	b.ne	LBB0_4
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP2_PE_MAC_RANGE_START,4,2   ; @MVPP2_PE_MAC_RANGE_START
	.comm	_MVPP2_PE_MAC_RANGE_END,4,2     ; @MVPP2_PE_MAC_RANGE_END
	.comm	_MVPP2_PRS_LU_MAC,8,3           ; @MVPP2_PRS_LU_MAC
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_mvpp2_prs_mac_da_range_find
.subsections_via_symbols
