	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function npc_copy_mcam_entry
_npc_copy_mcam_entry:                   ## @npc_copy_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
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	movl	%r8d, %esi
	callq	_npc_get_bank
	movl	%eax, %r13d
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_npc_get_bank
	movl	%r15d, %ecx
                                        ## kill: def $eax killed $eax def $rax
	movl	(%r12), %edx
	decl	%edx
	andl	%edx, %ecx
	andl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, 4(%r12)
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_3
## %bb.1:
	xorl	%r15d, %r15d
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r15), %esi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	xorl	%edx, %edx
	callq	_NPC_AF_MCAMEX_BANKX_CAMX_INTF
	movq	%rax, %r12
	leal	(%r15,%r13), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%edx, %edx
	callq	_NPC_AF_MCAMEX_BANKX_CAMX_INTF
	movq	%rax, %r13
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_rvu_read64
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	movq	%rax, %rcx
	callq	_rvu_write64
	leaq	8(%r12), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_rvu_read64
	leaq	8(%r13), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%rax, %rcx
	callq	_rvu_write64
	leaq	16(%r12), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_rvu_read64
	leaq	16(%r13), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%rax, %rcx
	callq	_rvu_write64
	leaq	24(%r12), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_rvu_read64
	leaq	24(%r13), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%rax, %rcx
	callq	_rvu_write64
	leaq	32(%r12), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_rvu_read64
	leaq	32(%r13), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%rax, %rcx
	callq	_rvu_write64
	addq	$40, %r12
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_rvu_read64
	addq	$40, %r13
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%rax, %rcx
	callq	_rvu_write64
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	incl	%r15d
	cmpl	4(%r12), %r15d
	jl	LBB0_2
LBB0_3:
	movl	%ecx, %r15d
	movl	%ecx, %edi
	movq	%rax, %rsi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_NPC_AF_MCAMEX_BANKX_ACTION
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_rvu_read64
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	movl	%r13d, %esi
	callq	_NPC_AF_MCAMEX_BANKX_ACTION
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_rvu_write64
	movl	%r15d, %edi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_NPC_AF_MCAMEX_BANKX_TAG_ACT
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_rvu_read64
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	movl	%r13d, %esi
	callq	_NPC_AF_MCAMEX_BANKX_TAG_ACT
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_rvu_write64
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	callq	_NPC_AF_MCAMEX_BANKX_CFG
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_rvu_read64
	movq	%rax, %r15
	movl	%r12d, %edi
	movl	%r13d, %esi
	callq	_NPC_AF_MCAMEX_BANKX_CFG
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	movq	%r15, %rcx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rvu_write64                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_npc_copy_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_copy_mcam_entry
_npc_copy_mcam_entry:                   ; @npc_copy_mcam_entry
	.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
	mov	x22, x4
	mov	x24, x3
	mov	x19, x2
	mov	x25, x1
	mov	x20, x0
	mov	x0, x1
	mov	x1, x4
	bl	_npc_get_bank
	mov	x21, x0
	mov	x0, x25
	mov	x1, x24
	bl	_npc_get_bank
	mov	x23, x0
	ldp	w8, w9, [x25]
	sub	w8, w8, #1
	and	w24, w8, w24
	and	w22, w8, w22
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w28, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w23, w28
	mov	x0, x24
	mov	w2, #0
	bl	_NPC_AF_MCAMEX_BANKX_CAMX_INTF
	mov	x26, x0
	add	w1, w21, w28
	mov	x0, x22
	mov	w2, #0
	bl	_NPC_AF_MCAMEX_BANKX_CAMX_INTF
	mov	x27, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x26
	bl	_rvu_read64
	mov	x3, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x27
	bl	_rvu_write64
	add	x2, x26, #8
	mov	x0, x20
	mov	x1, x19
	bl	_rvu_read64
	mov	x3, x0
	add	x2, x27, #8
	mov	x0, x20
	mov	x1, x19
	bl	_rvu_write64
	add	x2, x26, #16
	mov	x0, x20
	mov	x1, x19
	bl	_rvu_read64
	mov	x3, x0
	add	x2, x27, #16
	mov	x0, x20
	mov	x1, x19
	bl	_rvu_write64
	add	x2, x26, #24
	mov	x0, x20
	mov	x1, x19
	bl	_rvu_read64
	mov	x3, x0
	add	x2, x27, #24
	mov	x0, x20
	mov	x1, x19
	bl	_rvu_write64
	add	x2, x26, #32
	mov	x0, x20
	mov	x1, x19
	bl	_rvu_read64
	mov	x3, x0
	add	x2, x27, #32
	mov	x0, x20
	mov	x1, x19
	bl	_rvu_write64
	add	x2, x26, #40
	mov	x0, x20
	mov	x1, x19
	bl	_rvu_read64
	mov	x3, x0
	add	x2, x27, #40
	mov	x0, x20
	mov	x1, x19
	bl	_rvu_write64
	add	w28, w28, #1
	ldr	w8, [x25, #4]
	cmp	w28, w8
	b.lt	LBB0_2
LBB0_3:
	mov	x0, x24
	mov	x1, x23
	bl	_NPC_AF_MCAMEX_BANKX_ACTION
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_rvu_read64
	mov	x25, x0
	mov	x0, x22
	mov	x1, x21
	bl	_NPC_AF_MCAMEX_BANKX_ACTION
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	mov	x3, x25
	bl	_rvu_write64
	mov	x0, x24
	mov	x1, x23
	bl	_NPC_AF_MCAMEX_BANKX_TAG_ACT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_rvu_read64
	mov	x25, x0
	mov	x0, x22
	mov	x1, x21
	bl	_NPC_AF_MCAMEX_BANKX_TAG_ACT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	mov	x3, x25
	bl	_rvu_write64
	mov	x0, x24
	mov	x1, x23
	bl	_NPC_AF_MCAMEX_BANKX_CFG
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_rvu_read64
	mov	x23, x0
	mov	x0, x22
	mov	x1, x21
	bl	_NPC_AF_MCAMEX_BANKX_CFG
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	mov	x3, x23
	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
	b	_rvu_write64
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_npc_copy_mcam_entry
.subsections_via_symbols
