	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvu_mbox_handler_npc_mcam_unmap_counter ## -- Begin function rvu_mbox_handler_npc_mcam_unmap_counter
	.p2align	4, 0x90
_rvu_mbox_handler_npc_mcam_unmap_counter: ## @rvu_mbox_handler_npc_mcam_unmap_counter
	.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
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movq	_BLKTYPE_NPC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_rvu_get_blkaddr
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	16(%rbx), %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movl	16(%r12), %esi
	movq	(%r12), %rdx
	movq	%rbx, %rdi
	callq	_npc_mcam_verify_counter
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.5:
	cmpl	$0, 20(%r12)
	je	LBB0_12
## %bb.6:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	(%rbx), %rsi
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, %r13
	jae	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	24(%rbx), %rax
	movq	(%r12), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	20(%rbx), %edi
	movq	%r13, %rdx
	callq	_find_next_bit
	movq	(%rbx), %rsi
	cmpq	%rsi, %rax
	jae	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rbx), %rcx
	movq	(%rcx,%rax,8), %r8
	cmpq	(%r12), %r8
	jne	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r13
	incq	%r13
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%rax, %rcx
	callq	_npc_unmap_mcam_entry_and_cntr
	movq	(%rbx), %rsi
	jmp	LBB0_7
LBB0_3:
	movq	_NPC_MCAM_INVALID_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_4
LBB0_14:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_2
LBB0_12:
	movl	16(%r12), %esi
	movq	8(%r12), %rdx
	movq	%rbx, %rdi
	callq	_npc_mcam_verify_entry
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.13:
	movq	(%r12), %r8
	movq	8(%r12), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_npc_unmap_mcam_entry_and_cntr
	xorl	%r14d, %r14d
LBB0_2:
	movq	%r13, %rdi
	callq	_mutex_unlock
LBB0_4:
	movl	%r14d, %eax
	addq	$24, %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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvu_mbox_handler_npc_mcam_unmap_counter ; -- Begin function rvu_mbox_handler_npc_mcam_unmap_counter
	.p2align	2
_rvu_mbox_handler_npc_mcam_unmap_counter: ; @rvu_mbox_handler_npc_mcam_unmap_counter
	.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	x22, x1
	mov	x21, x0
	ldr	x20, [x0]
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_9
; %bb.1:
	mov	x23, x0
	add	x19, x20, #16
	mov	x0, x19
	bl	_mutex_lock
	ldr	w1, [x22, #16]
	ldr	x2, [x22]
	mov	x0, x20
	bl	_npc_mcam_verify_counter
	mov	x24, x0
	cbnz	w0, LBB0_13
; %bb.2:
	ldr	w8, [x22, #20]
	cbz	w8, LBB0_11
; %bb.3:
	mov	x24, #0
	ldr	x1, [x20]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x24, x1
	b.hs	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #24]
	ldr	x9, [x22]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #20]
	mov	x2, x24
	bl	_find_next_bit
	ldr	x1, [x20]
	cmp	x0, x1
	b.hs	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x3, x0
	ldr	x8, [x20, #8]
	ldr	x4, [x8, x0, lsl #3]
	ldr	x8, [x22]
	cmp	x4, x8
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x3, #1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_npc_unmap_mcam_entry_and_cntr
	ldr	x1, [x20]
	b	LBB0_4
LBB0_9:
Lloh3:
	adrp	x8, _NPC_MCAM_INVALID_REQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NPC_MCAM_INVALID_REQ@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	b	LBB0_14
LBB0_10:
	mov	w24, #0
	b	LBB0_13
LBB0_11:
	ldr	w1, [x22, #16]
	ldr	x2, [x22, #8]
	mov	x0, x20
	bl	_npc_mcam_verify_entry
	mov	x24, x0
	cbnz	w0, LBB0_13
; %bb.12:
	ldp	x4, x3, [x22]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_npc_unmap_mcam_entry_and_cntr
LBB0_13:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_14:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BLKTYPE_NPC,4,2                ; @BLKTYPE_NPC
	.comm	_NPC_MCAM_INVALID_REQ,4,2       ; @NPC_MCAM_INVALID_REQ
.subsections_via_symbols
