	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function npc_get_mcam_search_range_priority
_npc_get_mcam_search_range_priority:    ## @npc_get_mcam_search_range_priority
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rsi), %rax
	movq	_NPC_MCAM_HIGHER_PRIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.5:
	movl	$1, (%r13)
	movq	$0, (%r14)
	movq	8(%rbx), %rax
	movq	%rax, (%r12)
	movq	16(%r15), %rdx
	cmpq	%rdx, 8(%rbx)
	jle	LBB0_8
## %bb.6:
	movl	24(%r15), %edi
	movq	8(%r15), %rsi
	callq	_npc_mcam_get_free_count
	cmpq	16(%rbx), %rax
	jl	LBB0_8
## %bb.7:
	movq	8(%r15), %rax
	movq	%rax, (%r14)
	movq	16(%r15), %rax
	movq	%rax, (%r12)
	jmp	LBB0_8
LBB0_1:
	movl	$0, (%r13)
	movq	8(%rbx), %rax
	incq	%rax
	movq	%rax, (%r14)
	movq	(%r15), %rax
	movq	%rax, (%r12)
	movq	8(%r15), %rsi
	cmpq	%rsi, 8(%rbx)
	jge	LBB0_8
## %bb.2:
	movl	24(%r15), %edi
	movq	(%r15), %rdx
	callq	_npc_mcam_get_free_count
	cmpq	16(%rbx), %rax
	jle	LBB0_4
## %bb.3:
	movq	8(%r15), %rax
	movq	%rax, (%r14)
	jmp	LBB0_8
LBB0_4:
	movl	$1, (%r13)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NPC_MCAM_HIGHER_PRIO,8,3       ## @NPC_MCAM_HIGHER_PRIO
	.no_dead_strip	_npc_get_mcam_search_range_priority
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function npc_get_mcam_search_range_priority
_npc_get_mcam_search_range_priority:    ; @npc_get_mcam_search_range_priority
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x4
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _NPC_MCAM_HIGHER_PRIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NPC_MCAM_HIGHER_PRIO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	w8, #1
	str	w8, [x23]
	str	xzr, [x19]
	ldr	x8, [x21, #8]
	str	x8, [x22]
	ldr	x8, [x21, #8]
	ldr	x2, [x20, #16]
	cmp	x8, x2
	b.le	LBB0_8
; %bb.2:
	ldr	w0, [x20, #24]
	ldr	x1, [x20, #8]
	bl	_npc_mcam_get_free_count
	ldr	x8, [x21, #16]
	cmp	x0, x8
	b.lt	LBB0_8
; %bb.3:
	ldr	x8, [x20, #8]
	str	x8, [x19]
	ldr	x8, [x20, #16]
	str	x8, [x22]
	b	LBB0_8
LBB0_4:
	str	wzr, [x23]
	ldr	x8, [x21, #8]
	add	x8, x8, #1
	str	x8, [x19]
	ldr	x8, [x20]
	str	x8, [x22]
	ldr	x8, [x21, #8]
	ldr	x1, [x20, #8]
	cmp	x8, x1
	b.ge	LBB0_8
; %bb.5:
	ldr	w0, [x20, #24]
	ldr	x2, [x20]
	bl	_npc_mcam_get_free_count
	ldr	x8, [x21, #16]
	cmp	x0, x8
	b.le	LBB0_7
; %bb.6:
	ldr	x8, [x20, #8]
	str	x8, [x19]
	b	LBB0_8
LBB0_7:
	mov	w8, #1
	str	w8, [x23]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NPC_MCAM_HIGHER_PRIO,8,3       ; @NPC_MCAM_HIGHER_PRIO
	.no_dead_strip	_npc_get_mcam_search_range_priority
.subsections_via_symbols
