	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvu_npc_update_flowkey_alg_idx ## -- Begin function rvu_npc_update_flowkey_alg_idx
	.p2align	4, 0x90
_rvu_npc_update_flowkey_alg_idx:        ## @rvu_npc_update_flowkey_alg_idx
	.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
	movl	%r9d, %r15d
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	_BLKTYPE_NPC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_rvu_get_blkaddr
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	movl	%eax, %r13d
	testl	%r15d, %r15d
	js	LBB0_2
## %bb.4:
	cmpl	(%r14), %r15d
	jge	LBB0_9
LBB0_5:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_npc_get_bank
	movl	4(%r14), %r12d
	decl	%r12d
	andl	%r15d, %r12d
	movl	%eax, %r15d
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_NPC_AF_MCAMEX_BANKX_ACTION
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_rvu_read64
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_NPC_AF_MCAMEX_BANKX_ACTION
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_rvu_write64
	movq	_NIXLF_PROMISC_ENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	callq	_npc_get_nixlf_mcam_index
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_is_mcam_entry_enabled
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_npc_get_bank
	movl	4(%r14), %edi
	decl	%edi
	andl	%r15d, %edi
	movl	%eax, %esi
	callq	_NPC_AF_MCAMEX_BANKX_ACTION
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_rvu_write64
LBB0_8:
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rvu_npc_update_rxvlan          ## TAILCALL
LBB0_2:
	movq	_DEFAULT_RSS_CONTEXT_GROUP@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_9
## %bb.3:
	movq	_NIXLF_UCAST_ENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_npc_get_nixlf_mcam_index
	movl	%eax, %r15d
	cmpl	(%r14), %r15d
	jl	LBB0_5
LBB0_9:
	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	_DEFAULT_RSS_CONTEXT_GROUP,4,2  ## @DEFAULT_RSS_CONTEXT_GROUP
	.comm	_NIXLF_UCAST_ENTRY,4,2          ## @NIXLF_UCAST_ENTRY
	.comm	_NIX_RX_ACTIONOP_RSS,4,2        ## @NIX_RX_ACTIONOP_RSS
	.comm	_NIXLF_PROMISC_ENTRY,4,2        ## @NIXLF_PROMISC_ENTRY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvu_npc_update_flowkey_alg_idx ; -- Begin function rvu_npc_update_flowkey_alg_idx
	.p2align	2
_rvu_npc_update_flowkey_alg_idx:        ; @rvu_npc_update_flowkey_alg_idx
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x25, x5
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x24, [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
	tbz	w25, #31, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _DEFAULT_RSS_CONTEXT_GROUP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEFAULT_RSS_CONTEXT_GROUP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_9
; %bb.3:
Lloh6:
	adrp	x8, _NIXLF_UCAST_ENTRY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NIXLF_UCAST_ENTRY@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x24
	mov	x1, x20
	mov	x2, x19
	bl	_npc_get_nixlf_mcam_index
	mov	x25, x0
LBB0_4:
	ldr	w8, [x24]
	cmp	w25, w8
	b.ge	LBB0_9
; %bb.5:
	mov	x0, x24
	mov	x1, x25
	bl	_npc_get_bank
	mov	x26, x0
	ldr	w8, [x24, #4]
	sub	w8, w8, #1
	and	w25, w8, w25
	mov	x0, x25
	mov	x1, x26
	bl	_NPC_AF_MCAMEX_BANKX_ACTION
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_rvu_read64
	cbz	w0, LBB0_9
; %bb.6:
	mov	x0, x25
	mov	x1, x26
	bl	_NPC_AF_MCAMEX_BANKX_ACTION
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	mov	x3, x22
	bl	_rvu_write64
Lloh9:
	adrp	x8, _NIXLF_PROMISC_ENTRY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NIXLF_PROMISC_ENTRY@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x24
	mov	x1, x20
	mov	x2, x19
	bl	_npc_get_nixlf_mcam_index
	mov	x25, x0
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	mov	x3, x25
	bl	_is_mcam_entry_enabled
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x24
	mov	x1, x25
	bl	_npc_get_bank
	mov	x1, x0
	ldr	w8, [x24, #4]
	sub	w8, w8, #1
	and	w0, w8, w25
	bl	_NPC_AF_MCAMEX_BANKX_ACTION
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	mov	x3, x22
	bl	_rvu_write64
LBB0_8:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_rvu_npc_update_rxvlan
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BLKTYPE_NPC,4,2                ; @BLKTYPE_NPC
	.comm	_DEFAULT_RSS_CONTEXT_GROUP,4,2  ; @DEFAULT_RSS_CONTEXT_GROUP
	.comm	_NIXLF_UCAST_ENTRY,4,2          ; @NIXLF_UCAST_ENTRY
	.comm	_NIX_RX_ACTIONOP_RSS,4,2        ; @NIX_RX_ACTIONOP_RSS
	.comm	_NIXLF_PROMISC_ENTRY,4,2        ; @NIXLF_PROMISC_ENTRY
.subsections_via_symbols
