	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function npc_mcam_alloc_entries
_npc_mcam_alloc_entries:                ## @npc_mcam_alloc_entries
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movl	%esi, -76(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NPC_MAX_NONCONTIG_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	$0, -60(%rbp)
	leaq	48(%r15), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	cmpl	$0, (%r15)
	je	LBB0_1
## %bb.2:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%r12)
	je	LBB0_4
## %bb.3:
	leaq	-56(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	leaq	-60(%rbp), %r8
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_npc_get_mcam_search_range_priority
	movl	-60(%rbp), %r13d
	testl	%r13d, %r13d
	jne	LBB0_12
	jmp	LBB0_13
LBB0_1:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	_NPC_MCAM_ALLOC_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_55
LBB0_4:
	movq	8(%r15), %rdi
	movl	16(%r15), %esi
	movl	20(%r15), %edx
	callq	_npc_mcam_get_free_count
	movl	%eax, %ebx
	movq	8(%r15), %rdi
	movl	24(%r15), %edx
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	callq	_npc_mcam_get_free_count
                                        ## kill: def $eax killed $eax def $rax
	movl	(%r15), %ecx
	subl	%eax, %ecx
	subl	%ebx, %ecx
	movl	8(%r12), %edx
	cmpl	%edx, %ecx
	jle	LBB0_6
## %bb.5:
	movl	24(%r15), %eax
	movl	%eax, -56(%rbp)
	movl	16(%r15), %eax
	movl	%eax, -52(%rbp)
	testl	%r13d, %r13d
	jne	LBB0_12
	jmp	LBB0_13
LBB0_6:
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	movl	%ebx, %eax
	shrl	$31, %eax
	addl	%ebx, %eax
	sarl	%eax
	addl	%esi, %eax
	addl	%ecx, %eax
	cmpl	%edx, %eax
	jle	LBB0_8
## %bb.7:
	movl	24(%r15), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, -56(%rbp)
	movl	20(%r15), %eax
	movl	28(%r15), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	subl	%edx, %eax
	jmp	LBB0_36
LBB0_8:
	movl	$1, -60(%rbp)
	movl	$0, -56(%rbp)
	movl	20(%r15), %eax
LBB0_9:
	movl	%eax, -52(%rbp)
LBB0_10:
	movl	$1, %r13d
	testl	%r13d, %r13d
	je	LBB0_13
LBB0_12:
	movq	32(%r15), %r13
	movl	20(%r15), %eax
	movl	%eax, %ecx
	subl	-56(%rbp), %ecx
	subl	-52(%rbp), %eax
	movl	%eax, -56(%rbp)
	movl	%ecx, -52(%rbp)
	cmpq	$0, 16(%r12)
	je	LBB0_18
LBB0_15:
	movl	-52(%rbp), %esi
	movl	-56(%rbp), %edx
	movl	8(%r12), %ecx
	movq	%r13, %rdi
	leaq	-80(%rbp), %r8
	callq	_npc_mcam_find_zero_area
	movl	-80(%rbp), %ecx
	movl	%ecx, (%r14)
	cmpl	$0, -60(%rbp)
	je	LBB0_17
## %bb.16:
	addl	%eax, %ecx
	movl	20(%r15), %eax
	subl	%ecx, %eax
LBB0_17:
	movl	%eax, 4(%r14)
LBB0_25:
	movq	(%r12), %rax
	movl	(%r14), %r10d
	movl	8(%r12), %ecx
	testq	%rax, %rax
	je	LBB0_26
## %bb.29:
	cmpl	%ecx, %r10d
	jge	LBB0_37
## %bb.30:
	movq	_NPC_MCAM_LOWER_PRIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_33
## %bb.31:
	movl	12(%r12), %ecx
	incl	%ecx
	cmpl	%ecx, -56(%rbp)
	je	LBB0_33
## %bb.32:
	movl	%ecx, -56(%rbp)
	movl	20(%r15), %eax
	movl	%eax, -52(%rbp)
	movl	$0, -60(%rbp)
	xorl	%r13d, %r13d
	testl	%r13d, %r13d
	jne	LBB0_12
	.p2align	4, 0x90
LBB0_13:
	movq	8(%r15), %r13
	cmpq	$0, 16(%r12)
	jne	LBB0_15
LBB0_18:
	movl	$0, (%r14)
	cmpl	$0, 8(%r12)
	jle	LBB0_25
## %bb.19:
	movl	-56(%rbp), %eax
	movl	-52(%rbp), %esi
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	%eax, %ecx
	notl	%ecx
	addl	20(%r15), %ecx
LBB0_24:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx,%rbx,4)
	incl	(%r14)
	incl	%eax
	incq	%rbx
	movslq	8(%r12), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_25
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_find_next_zero_bit
	movl	-52(%rbp), %esi
	cmpl	%esi, %eax
	jge	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpl	$0, -60(%rbp)
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	%eax, %ecx
	jmp	LBB0_24
LBB0_33:
	movq	_NPC_MCAM_HIGHER_PRIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_37
## %bb.34:
	movl	-52(%rbp), %ecx
	subl	-56(%rbp), %ecx
	movl	12(%r12), %eax
	cmpl	%eax, %ecx
	je	LBB0_37
## %bb.35:
	movl	$0, -56(%rbp)
LBB0_36:
	movl	%eax, -52(%rbp)
	movl	$1, -60(%rbp)
	jmp	LBB0_10
LBB0_26:
	cmpl	%ecx, %r10d
	jge	LBB0_37
## %bb.27:
	movl	-52(%rbp), %ecx
	subl	-56(%rbp), %ecx
	movl	20(%r15), %eax
	cmpl	%eax, %ecx
	je	LBB0_37
## %bb.28:
	movl	$1, -60(%rbp)
	movl	$0, -56(%rbp)
	jmp	LBB0_9
LBB0_37:
	movq	16(%r12), %r13
	testq	%r13, %r13
	je	LBB0_38
## %bb.47:
	testl	%r10d, %r10d
	jg	LBB0_48
	jmp	LBB0_54
LBB0_38:
	testl	%r10d, %r10d
	jle	LBB0_54
## %bb.39:
	xorl	%edx, %edx
	cmpl	$1, %r10d
	jne	LBB0_41
## %bb.40:
	movq	%r10, %rsi
	testb	$1, %r10b
	jne	LBB0_45
	jmp	LBB0_46
LBB0_41:
	movl	%r10d, %eax
	andl	$-2, %eax
	movq	8(%r14), %r9
	movq	%r10, %rsi
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	.p2align	4, 0x90
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	xorl	%ebx, %ebx
	cmpl	$0, -60(%rbp)
	movl	$4294967295, %ecx               ## imm = 0xFFFFFFFF
	leal	(%rsi,%rcx), %edi
	setne	%bl
	movl	(%r8,%rdi,4), %r11d
	movl	%edx, %ecx
	cmoveq	%rdi, %rcx
	addl	%edx, %ebx
	movl	%r11d, (%r9,%rcx,4)
	addq	$-2, %rsi
	xorl	%edx, %edx
	cmpl	$0, -60(%rbp)
	movl	%esi, %ecx
	movl	(%r8,%rcx,4), %edi
	cmovneq	%rbx, %rcx
	setne	%dl
	addl	%ebx, %edx
	movl	%edi, (%r9,%rcx,4)
	addq	$-2, %rax
	jne	LBB0_42
## %bb.43:
	movl	%edx, %edx
	testb	$1, %r10b
	je	LBB0_46
LBB0_45:
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	addl	%eax, %esi
	cmpl	$0, -60(%rbp)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rsi,4), %eax
	movq	8(%r14), %rcx
	cmoveq	%rsi, %rdx
	movl	%eax, (%rcx,%rdx,4)
LBB0_46:
	movl	(%r14), %r10d
	testl	%r10d, %r10d
	jle	LBB0_54
LBB0_48:
	xorl	%ebx, %ebx
	testq	%r13, %r13
	je	LBB0_51
	.p2align	4, 0x90
LBB0_50:
	movl	4(%r14), %r13d
	addl	%ebx, %r13d
	jmp	LBB0_52
	.p2align	4, 0x90
LBB0_51:
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %r13d
LBB0_52:
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_npc_mcam_set_bit
	movq	40(%r15), %rax
	movslq	%r13d, %rcx
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, (%rax,%rcx,4)
	movq	_NPC_MCAM_INVALID_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	56(%r15), %rdx
	movl	%eax, (%rdx,%rcx,4)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_54
## %bb.53:
	movq	16(%r12), %r13
	testq	%r13, %r13
	jne	LBB0_50
	jmp	LBB0_51
LBB0_54:
	movl	(%r15), %eax
	movl	%eax, 16(%r14)
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	xorl	%eax, %eax
LBB0_55:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_57
## %bb.56:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_57:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NPC_MAX_NONCONTIG_ENTRIES,4,2  ## @NPC_MAX_NONCONTIG_ENTRIES
	.comm	_NPC_MCAM_ALLOC_FAILED,4,2      ## @NPC_MCAM_ALLOC_FAILED
	.comm	_NPC_MCAM_LOWER_PRIO,8,3        ## @NPC_MCAM_LOWER_PRIO
	.comm	_NPC_MCAM_HIGHER_PRIO,8,3       ## @NPC_MCAM_HIGHER_PRIO
	.comm	_NPC_MCAM_INVALID_MAP,4,2       ## @NPC_MCAM_INVALID_MAP
	.no_dead_strip	_npc_mcam_alloc_entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function npc_mcam_alloc_entries
_npc_mcam_alloc_entries:                ; @npc_mcam_alloc_entries
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #32
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _NPC_MAX_NONCONTIG_ENTRIES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NPC_MAX_NONCONTIG_ENTRIES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x25, x9, x8
	mov	sp, x25
	stur	wzr, [x29, #-100]
	add	x23, x0, #48
	mov	x0, x23
	bl	_mutex_lock
	ldr	w8, [x21]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.2:
	sub	x2, x29, #92
	sub	x3, x29, #96
	sub	x4, x29, #100
	mov	x0, x21
	mov	x1, x20
	bl	_npc_get_mcam_search_range_priority
	ldur	w8, [x29, #-100]
	b	LBB0_10
LBB0_3:
	mov	x0, x23
	bl	_mutex_unlock
Lloh8:
	adrp	x8, _NPC_MCAM_ALLOC_FAILED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NPC_MCAM_ALLOC_FAILED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_47
LBB0_4:
	ldr	x0, [x21, #8]
	ldp	w1, w2, [x21, #16]
	bl	_npc_mcam_get_free_count
	mov	x24, x0
	ldr	x0, [x21, #8]
	ldr	w2, [x21, #24]
	mov	w1, #0
	bl	_npc_mcam_get_free_count
	ldr	w8, [x21]
	add	w9, w0, w24
	sub	w8, w8, w9
	ldr	w9, [x20, #8]
	cmp	w8, w9
	b.le	LBB0_6
; %bb.5:
	mov	w8, #0
	ldr	w9, [x21, #24]
	stur	w9, [x29, #-92]
	ldr	w9, [x21, #16]
	b	LBB0_9
LBB0_6:
	cmp	w0, #0
	cinc	w10, w0, lt
	asr	w10, w10, #1
	cmp	w24, #0
	cinc	w11, w24, lt
	add	w10, w10, w11, asr #1
	add	w8, w10, w8
	cmp	w8, w9
	b.le	LBB0_8
; %bb.7:
	ldp	w9, w8, [x21, #20]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w10, w8, #1
	ldr	w8, [x21, #28]
	cmp	w8, #0
	cinc	w8, w8, lt
	sub	w8, w9, w8, asr #1
	stp	w8, w10, [x29, #-96]
	mov	w8, #1
	stur	w8, [x29, #-100]
	b	LBB0_10
LBB0_8:
	mov	w8, #1
	stur	w8, [x29, #-100]
	stur	wzr, [x29, #-92]
	ldr	w9, [x21, #20]
LBB0_9:
	stur	w9, [x29, #-96]
LBB0_10:
Lloh11:
	adrp	x26, _NPC_MCAM_LOWER_PRIO@GOTPAGE
Lloh12:
	ldr	x26, [x26, _NPC_MCAM_LOWER_PRIO@GOTPAGEOFF]
Lloh13:
	adrp	x27, _NPC_MCAM_HIGHER_PRIO@GOTPAGE
Lloh14:
	ldr	x27, [x27, _NPC_MCAM_HIGHER_PRIO@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w8, #0
	ldr	w9, [x21, #20]
	stp	w9, w10, [x29, #-96]
	stur	wzr, [x29, #-100]
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_29 Depth 2
	cbz	w8, LBB0_24
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x24, [x21, #32]
	ldr	w8, [x21, #20]
	ldp	w10, w9, [x29, #-96]
	sub	w9, w8, w9
	sub	w8, w8, w10
	stp	w9, w8, [x29, #-96]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_25
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	ldp	w1, w2, [x29, #-96]
	ldr	w3, [x20, #8]
	sub	x4, x29, #104
	mov	x0, x24
	bl	_npc_mcam_find_zero_area
	ldp	w8, w9, [x29, #-104]
	str	w8, [x19]
	cbz	w9, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w9, [x21, #20]
	add	w8, w8, w0
	sub	w0, w9, w8
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	str	w0, [x19, #4]
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20]
	ldr	w9, [x19]
	ldr	w10, [x20, #8]
	cmp	w9, w10
	cbz	x8, LBB0_32
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	b.ge	LBB0_35
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x10, [x26]
	cmp	x8, x10
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_12 Depth=1
	ldur	w11, [x29, #-92]
	ldr	w10, [x20, #12]
	add	w10, w10, #1
	cmp	w11, w10
	b.ne	LBB0_11
LBB0_21:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x10, [x27]
	cmp	x8, x10
	b.ne	LBB0_35
; %bb.22:                               ;   in Loop: Header=BB0_12 Depth=1
	ldp	w10, w11, [x29, #-96]
	ldr	w8, [x20, #12]
	sub	w10, w10, w11
	cmp	w10, w8
	b.eq	LBB0_35
; %bb.23:                               ;   in Loop: Header=BB0_12 Depth=1
	stp	w8, wzr, [x29, #-96]
	mov	w8, #1
	stur	w8, [x29, #-100]
	b	LBB0_12
LBB0_24:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x24, [x21, #8]
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_14
LBB0_25:                                ;   in Loop: Header=BB0_12 Depth=1
	str	wzr, [x19]
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.26:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x28, #0
	ldp	w1, w2, [x29, #-96]
	b	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_29 Depth=2
	ldr	w8, [x21, #20]
	mvn	w9, w0
	add	w8, w8, w9
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=2
	add	w2, w0, #1
	str	w8, [x25, x28, lsl #2]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	add	x28, x28, #1
	ldrsw	x8, [x20, #8]
	cmp	x28, x8
	b.ge	LBB0_17
LBB0_29:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	bl	_find_next_zero_bit
	ldur	w1, [x29, #-96]
	cmp	w0, w1
	b.ge	LBB0_17
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=2
	ldur	w8, [x29, #-100]
	cbnz	w8, LBB0_27
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=2
	mov	x8, x0
	b	LBB0_28
LBB0_32:                                ;   in Loop: Header=BB0_12 Depth=1
	b.ge	LBB0_35
; %bb.33:                               ;   in Loop: Header=BB0_12 Depth=1
	ldp	w8, w11, [x29, #-96]
	ldr	w10, [x21, #20]
	sub	w8, w8, w11
	cmp	w8, w10
	b.eq	LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w8, #1
	stp	w8, w10, [x29, #-100]
	stur	wzr, [x29, #-92]
	b	LBB0_12
LBB0_35:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_37
; %bb.36:
	cmp	w9, #1
	b.ge	LBB0_41
	b	LBB0_46
LBB0_37:
	cmp	w9, #1
	b.lt	LBB0_46
; %bb.38:
	mov	w10, #0
	ldr	x11, [x19, #8]
	add	x9, x9, #1
LBB0_39:                                ; =>This Inner Loop Header: Depth=1
	sub	w12, w9, #2
	ldur	w13, [x29, #-100]
	ldr	w14, [x25, w12, uxtw #2]
	mov	w15, w10
	cmp	w13, #0
	csel	x12, x12, x15, eq
	cinc	w10, w10, ne
	str	w14, [x11, x12, lsl #2]
	sub	x9, x9, #1
	cmp	x9, #1
	b.hi	LBB0_39
; %bb.40:
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_46
LBB0_41:
	mov	x25, #0
Lloh15:
	adrp	x26, _NPC_MCAM_INVALID_MAP@GOTPAGE
Lloh16:
	ldr	x26, [x26, _NPC_MCAM_INVALID_MAP@GOTPAGEOFF]
	cbz	x8, LBB0_43
LBB0_42:
	ldr	w8, [x19, #4]
	add	w24, w25, w8
	b	LBB0_44
LBB0_43:
	ldr	x8, [x19, #8]
	ldr	w24, [x8, x25, lsl #2]
LBB0_44:
	mov	x0, x21
	mov	x1, x24
	bl	_npc_mcam_set_bit
	ldr	x8, [x21, #40]
	sbfiz	x9, x24, #2, #32
	str	w22, [x8, x9]
	ldr	w8, [x26]
	ldr	x10, [x21, #56]
	str	w8, [x10, x9]
	add	x25, x25, #1
	ldrsw	x8, [x19]
	cmp	x25, x8
	b.ge	LBB0_46
; %bb.45:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_42
	b	LBB0_43
LBB0_46:
	ldr	w8, [x21]
	str	w8, [x19, #16]
	mov	x0, x23
	bl	_mutex_unlock
	mov	w0, #0
LBB0_47:
	ldur	x8, [x29, #-88]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_49
; %bb.48:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_49:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_NPC_MAX_NONCONTIG_ENTRIES,4,2  ; @NPC_MAX_NONCONTIG_ENTRIES
	.comm	_NPC_MCAM_ALLOC_FAILED,4,2      ; @NPC_MCAM_ALLOC_FAILED
	.comm	_NPC_MCAM_LOWER_PRIO,8,3        ; @NPC_MCAM_LOWER_PRIO
	.comm	_NPC_MCAM_HIGHER_PRIO,8,3       ; @NPC_MCAM_HIGHER_PRIO
	.comm	_NPC_MCAM_INVALID_MAP,4,2       ; @NPC_MCAM_INVALID_MAP
	.no_dead_strip	_npc_mcam_alloc_entries
.subsections_via_symbols
