	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function npc_config_mcam_entry
_npc_config_mcam_entry:                 ## @npc_config_mcam_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	%rsi, %rdi
	movl	%ecx, %esi
	callq	_npc_get_bank
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r13), %ebx
	decl	%ebx
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	andl	%r14d, %ebx
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	cmpl	$0, 4(%r13)
	jle	LBB0_3
## %bb.1:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	notl	%eax
	andl	$3, %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movl	%r13d, %esi
	movl	$1, %edx
	callq	_NPC_AF_MCAMEX_BANKX_CAMX_INTF
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	callq	_rvu_write64
	movl	%ebx, %edi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_NPC_AF_MCAMEX_BANKX_CAMX_INTF
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	callq	_rvu_write64
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_npc_get_keyword
	movl	%ebx, %edi
	movl	%r13d, %esi
	movl	$1, %edx
	callq	_NPC_AF_MCAMEX_BANKX_CAMX_W0
	movl	-48(%rbp), %ecx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_rvu_write64
	movl	%ebx, %edi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_NPC_AF_MCAMEX_BANKX_CAMX_W0
	movl	-52(%rbp), %ecx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_rvu_write64
	leal	1(%r14), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_npc_get_keyword
	movl	%ebx, %edi
	movl	%r13d, %esi
	movl	$1, %edx
	callq	_NPC_AF_MCAMEX_BANKX_CAMX_W1
	movl	-48(%rbp), %ecx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_rvu_write64
	movl	%ebx, %edi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_NPC_AF_MCAMEX_BANKX_CAMX_W1
	movl	-52(%rbp), %ecx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_rvu_write64
	incl	%r13d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	addl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	addl	$2, %r14d
	cmpl	%eax, %r13d
	jl	LBB0_2
LBB0_3:
	movl	%ebx, %edi
	movl	%ebx, %r13d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_NPC_AF_MCAMEX_BANKX_ACTION
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %ecx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_rvu_write64
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_NPC_AF_MCAMEX_BANKX_TAG_ACT
	movl	4(%r14), %ecx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_rvu_write64
	xorl	%r8d, %r8d
	cmpl	$0, 16(%rbp)
	setne	%r8b
	movq	%r12, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	callq	_npc_enable_mcam_entry
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_npc_config_mcam_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function npc_config_mcam_entry
_npc_config_mcam_entry:                 ; @npc_config_mcam_entry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	w6, [sp]                        ; 4-byte Folded Spill
	mov	x24, x5
	mov	x26, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	mov	x0, x1
	mov	x1, x3
	bl	_npc_get_bank
	mov	x19, x0
	ldp	w8, w9, [x22]
	sub	w8, w8, #1
	str	w21, [sp, #4]                   ; 4-byte Folded Spill
	and	w27, w8, w21
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w28, #0
	mvn	w8, w26
	and	w21, w8, #0x3
	mov	x25, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x27
	mov	x1, x25
	mov	w2, #1
	bl	_NPC_AF_MCAMEX_BANKX_CAMX_INTF
	mov	x2, x0
	mov	x0, x23
	mov	x1, x20
	mov	x3, x26
	bl	_rvu_write64
	mov	x0, x27
	mov	x1, x25
	mov	w2, #0
	bl	_NPC_AF_MCAMEX_BANKX_CAMX_INTF
	mov	x2, x0
	mov	x0, x23
	mov	x1, x20
	mov	x3, x21
	bl	_rvu_write64
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x24
	mov	x1, x28
	bl	_npc_get_keyword
	mov	x0, x27
	mov	x1, x25
	mov	w2, #1
	bl	_NPC_AF_MCAMEX_BANKX_CAMX_W0
	mov	x2, x0
	ldr	w3, [sp, #8]
	mov	x0, x23
	mov	x1, x20
	bl	_rvu_write64
	mov	x0, x27
	mov	x1, x25
	mov	w2, #0
	bl	_NPC_AF_MCAMEX_BANKX_CAMX_W0
	mov	x2, x0
	ldr	w3, [sp, #12]
	mov	x0, x23
	mov	x1, x20
	bl	_rvu_write64
	add	w1, w28, #1
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x24
	bl	_npc_get_keyword
	mov	x0, x27
	mov	x1, x25
	mov	w2, #1
	bl	_NPC_AF_MCAMEX_BANKX_CAMX_W1
	mov	x2, x0
	ldr	w3, [sp, #8]
	mov	x0, x23
	mov	x1, x20
	bl	_rvu_write64
	mov	x0, x27
	mov	x1, x25
	mov	w2, #0
	bl	_NPC_AF_MCAMEX_BANKX_CAMX_W1
	mov	x2, x0
	ldr	w3, [sp, #12]
	mov	x0, x23
	mov	x1, x20
	bl	_rvu_write64
	add	w25, w25, #1
	ldr	w8, [x22, #4]
	add	w28, w28, #2
	add	w8, w8, w19
	cmp	w25, w8
	b.lt	LBB0_2
LBB0_3:
	mov	x0, x27
	mov	x1, x19
	bl	_NPC_AF_MCAMEX_BANKX_ACTION
	mov	x2, x0
	ldr	w3, [x24]
	mov	x0, x23
	mov	x1, x20
	bl	_rvu_write64
	mov	x0, x27
	mov	x1, x19
	bl	_NPC_AF_MCAMEX_BANKX_TAG_ACT
	mov	x2, x0
	ldr	w3, [x24, #4]
	mov	x0, x23
	mov	x1, x20
	bl	_rvu_write64
	ldp	w8, w3, [sp]                    ; 8-byte Folded Reload
	cmp	w8, #0
	cset	w4, ne
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	bl	_npc_enable_mcam_entry
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_npc_config_mcam_entry
.subsections_via_symbols
