	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvu_mbox_handler_npc_mcam_free_entry ## -- Begin function rvu_mbox_handler_npc_mcam_free_entry
	.p2align	4, 0x90
_rvu_mbox_handler_npc_mcam_free_entry:  ## @rvu_mbox_handler_npc_mcam_free_entry
	.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	%rsi, %r13
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	16(%rsi), %r15
	movq	_BLKTYPE_NPC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_rvu_get_blkaddr
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_is_nixlf_attached
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	leaq	8(%r14), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	cmpq	$0, 8(%r13)
	je	LBB0_4
## %bb.7:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	movq	%r15, %rcx
	callq	_npc_mcam_free_all_entries
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_1:
	movq	_NPC_MCAM_INVALID_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_9
LBB0_4:
	movq	(%r13), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_npc_mcam_verify_entry
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	16(%r14), %rax
	movq	(%r13), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	(%r13), %rsi
	movq	%r14, %rdi
	callq	_npc_mcam_clear_bit
	movq	(%r13), %rcx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	xorl	%r8d, %r8d
	callq	_npc_enable_mcam_entry
	movq	(%r14), %rax
	movq	(%r13), %rcx
	movq	(%rax,%rcx,8), %r8
	movq	_NPC_MCAM_INVALID_MAP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r8
	je	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_npc_unmap_mcam_entry_and_cntr
LBB0_8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLKTYPE_NPC,4,2                ## @BLKTYPE_NPC
	.comm	_NPC_MCAM_INVALID_REQ,4,2       ## @NPC_MCAM_INVALID_REQ
	.comm	_NPC_MCAM_INVALID_MAP,8,3       ## @NPC_MCAM_INVALID_MAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvu_mbox_handler_npc_mcam_free_entry ; -- Begin function rvu_mbox_handler_npc_mcam_free_entry
	.p2align	2
_rvu_mbox_handler_npc_mcam_free_entry:  ; @rvu_mbox_handler_npc_mcam_free_entry
	.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, x1
	mov	x20, x0
	ldr	x19, [x0]
	ldr	x24, [x1, #16]
Lloh0:
	adrp	x8, _BLKTYPE_NPC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLKTYPE_NPC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_rvu_get_blkaddr
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x22, x0
	mov	x0, x20
	mov	x1, x24
	bl	_is_nixlf_attached
	cbz	w0, LBB0_5
; %bb.2:
	add	x21, x19, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x24
	bl	_npc_mcam_free_all_entries
LBB0_4:
	mov	w24, #0
	b	LBB0_8
LBB0_5:
Lloh3:
	adrp	x8, _NPC_MCAM_INVALID_REQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NPC_MCAM_INVALID_REQ@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	b	LBB0_9
LBB0_6:
	ldr	x2, [x23]
	mov	x0, x19
	mov	x1, x24
	bl	_npc_mcam_verify_entry
	mov	x24, x0
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	x8, [x19, #16]
	ldr	x9, [x23]
	str	xzr, [x8, x9, lsl #3]
	ldr	x1, [x23]
	mov	x0, x19
	bl	_npc_mcam_clear_bit
	ldr	x3, [x23]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	w4, #0
	bl	_npc_enable_mcam_entry
	ldr	x8, [x19]
	ldr	x3, [x23]
	ldr	x4, [x8, x3, lsl #3]
Lloh6:
	adrp	x8, _NPC_MCAM_INVALID_MAP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NPC_MCAM_INVALID_MAP@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x4, x8
	b.ne	LBB0_10
LBB0_8:
	mov	x0, x21
	bl	_mutex_unlock
LBB0_9:
	mov	x0, x24
	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
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_npc_unmap_mcam_entry_and_cntr
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BLKTYPE_NPC,4,2                ; @BLKTYPE_NPC
	.comm	_NPC_MCAM_INVALID_REQ,4,2       ; @NPC_MCAM_INVALID_REQ
	.comm	_NPC_MCAM_INVALID_MAP,8,3       ; @NPC_MCAM_INVALID_MAP
.subsections_via_symbols
