	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvu_mbox_handler_npc_mcam_write_entry ## -- Begin function rvu_mbox_handler_npc_mcam_write_entry
	.p2align	4, 0x90
_rvu_mbox_handler_npc_mcam_write_entry: ## @rvu_mbox_handler_npc_mcam_write_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
	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, %r13
	movq	%rdi, %r15
	movq	(%rdi), %r14
	movl	28(%rsi), %r12d
	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, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	4(%r13), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_npc_mcam_verify_entry
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	cmpq	$0, 8(%r13)
	je	LBB0_6
## %bb.4:
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_npc_mcam_verify_counter
	testq	%rax, %rax
	jne	LBB0_5
LBB0_6:
	movl	24(%r13), %r8d
	movq	_NIX_INTF_RX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	je	LBB0_8
## %bb.7:
	movq	_NIX_INTF_TX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	je	LBB0_8
LBB0_5:
	movq	_NPC_MCAM_INVALID_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_1:
	movq	_NPC_MCAM_INVALID_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_8:
	leaq	20(%r13), %r9
	movl	4(%r13), %ecx
	movl	16(%r13), %eax
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	callq	_npc_config_mcam_entry
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r13)
	je	LBB0_10
## %bb.9:
	movl	(%r13), %r8d
	movl	4(%r13), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_npc_map_mcam_entry_and_cntr
LBB0_10:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_11:
	movl	%ebx, %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
	.comm	_NIX_INTF_RX,4,2                ## @NIX_INTF_RX
	.comm	_NIX_INTF_TX,4,2                ## @NIX_INTF_TX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvu_mbox_handler_npc_mcam_write_entry ; -- Begin function rvu_mbox_handler_npc_mcam_write_entry
	.p2align	2
_rvu_mbox_handler_npc_mcam_write_entry: ; @rvu_mbox_handler_npc_mcam_write_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	x21, x1
	mov	x20, x0
	ldr	x19, [x0]
	ldr	w23, [x1, #28]
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_8
; %bb.1:
	mov	x22, x0
	mov	x0, x19
	bl	_mutex_lock
	ldr	w2, [x21, #4]
	mov	x0, x19
	mov	x1, x23
	bl	_npc_mcam_verify_entry
	mov	x24, x0
	cbnz	w0, LBB0_10
; %bb.2:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x23
	bl	_npc_mcam_verify_counter
	cbnz	x0, LBB0_9
LBB0_4:
	ldr	w4, [x21, #24]
Lloh3:
	adrp	x8, _NIX_INTF_RX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NIX_INTF_RX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _NIX_INTF_TX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NIX_INTF_TX@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w4, w8
	ccmp	w4, w9, #4, ne
	b.ne	LBB0_9
; %bb.5:
	ldr	w3, [x21, #4]
	add	x5, x21, #20
	ldr	w6, [x21, #16]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_npc_config_mcam_entry
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_7
; %bb.6:
	ldp	w4, w3, [x21]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_npc_map_mcam_entry_and_cntr
LBB0_7:
	mov	w24, #0
	b	LBB0_10
LBB0_8:
Lloh9:
	adrp	x8, _NPC_MCAM_INVALID_REQ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NPC_MCAM_INVALID_REQ@GOTPAGEOFF]
Lloh11:
	ldr	w24, [x8]
	b	LBB0_11
LBB0_9:
Lloh12:
	adrp	x8, _NPC_MCAM_INVALID_REQ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NPC_MCAM_INVALID_REQ@GOTPAGEOFF]
Lloh14:
	ldr	w24, [x8]
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_11:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BLKTYPE_NPC,4,2                ; @BLKTYPE_NPC
	.comm	_NPC_MCAM_INVALID_REQ,4,2       ; @NPC_MCAM_INVALID_REQ
	.comm	_NIX_INTF_RX,4,2                ; @NIX_INTF_RX
	.comm	_NIX_INTF_TX,4,2                ; @NIX_INTF_TX
.subsections_via_symbols
