	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mvpp2_prs_def_flow             ## -- Begin function mvpp2_prs_def_flow
	.p2align	4, 0x90
_mvpp2_prs_def_flow:                    ## @mvpp2_prs_def_flow
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	-24(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_mvpp2_prs_flow_find
	movl	4(%rbx), %edi
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	leaq	-24(%rbp), %rsi
	movl	%eax, %edx
	callq	_mvpp2_prs_init_from_hw
	jmp	LBB0_4
LBB0_1:
	movq	_MVPP2_PE_LAST_FREE_TID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MVPP2_PE_FIRST_FREE_TID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_mvpp2_prs_tcam_first_free
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movl	%eax, -24(%rbp)
	movl	(%rbx), %esi
	movq	_MVPP2_PRS_FLOW_ID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %r14
	movq	%r14, %rdi
	callq	_mvpp2_prs_sram_ai_update
	movq	_MVPP2_PRS_SRAM_LU_DONE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_mvpp2_prs_sram_bits_set
	movl	4(%rbx), %edi
	movl	-24(%rbp), %esi
	movq	_MVPP2_PRS_LU_FLOWS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_mvpp2_prs_shadow_set
LBB0_4:
	movq	_MVPP2_PRS_LU_FLOWS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %r14
	movq	%r14, %rdi
	callq	_mvpp2_prs_tcam_lu_set
	movb	(%rbx), %cl
	movl	$1, %esi
	shll	%cl, %esi
	movq	%r14, %rdi
	callq	_mvpp2_prs_tcam_port_map_set
	movl	4(%rbx), %edi
	movq	%r14, %rsi
	callq	_mvpp2_prs_hw_write
	xorl	%eax, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVPP2_PE_LAST_FREE_TID,4,2     ## @MVPP2_PE_LAST_FREE_TID
	.comm	_MVPP2_PE_FIRST_FREE_TID,4,2    ## @MVPP2_PE_FIRST_FREE_TID
	.comm	_MVPP2_PRS_FLOW_ID_MASK,4,2     ## @MVPP2_PRS_FLOW_ID_MASK
	.comm	_MVPP2_PRS_SRAM_LU_DONE_BIT,4,2 ## @MVPP2_PRS_SRAM_LU_DONE_BIT
	.comm	_MVPP2_PRS_LU_FLOWS,4,2         ## @MVPP2_PRS_LU_FLOWS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mvpp2_prs_def_flow             ; -- Begin function mvpp2_prs_def_flow
	.p2align	2
_mvpp2_prs_def_flow:                    ; @mvpp2_prs_def_flow
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldp	w1, w0, [x19]
	bl	_mvpp2_prs_flow_find
	mov	x2, x0
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x20, _MVPP2_PRS_LU_FLOWS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MVPP2_PRS_LU_FLOWS@GOTPAGEOFF]
	tbnz	w2, #31, LBB0_2
; %bb.1:
	add	x1, sp, #8
	bl	_mvpp2_prs_init_from_hw
	b	LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _MVPP2_PE_LAST_FREE_TID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MVPP2_PE_LAST_FREE_TID@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _MVPP2_PE_FIRST_FREE_TID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MVPP2_PE_FIRST_FREE_TID@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_mvpp2_prs_tcam_first_free
	tbnz	w0, #31, LBB0_5
; %bb.3:
	str	w0, [sp, #8]
	ldr	w1, [x19]
Lloh8:
	adrp	x8, _MVPP2_PRS_FLOW_ID_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MVPP2_PRS_FLOW_ID_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x0, sp, #8
	bl	_mvpp2_prs_sram_ai_update
Lloh11:
	adrp	x8, _MVPP2_PRS_SRAM_LU_DONE_BIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MVPP2_PRS_SRAM_LU_DONE_BIT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #1
	bl	_mvpp2_prs_sram_bits_set
	ldr	w0, [x19, #4]
	ldr	w1, [sp, #8]
	ldr	w2, [x20]
	bl	_mvpp2_prs_shadow_set
LBB0_4:
	ldr	w1, [x20]
	add	x0, sp, #8
	bl	_mvpp2_prs_tcam_lu_set
	ldr	w8, [x19]
	mov	w9, #1
	lsl	w1, w9, w8
	add	x0, sp, #8
	bl	_mvpp2_prs_tcam_port_map_set
	ldr	w0, [x19, #4]
	add	x1, sp, #8
	bl	_mvpp2_prs_hw_write
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP2_PE_LAST_FREE_TID,4,2     ; @MVPP2_PE_LAST_FREE_TID
	.comm	_MVPP2_PE_FIRST_FREE_TID,4,2    ; @MVPP2_PE_FIRST_FREE_TID
	.comm	_MVPP2_PRS_FLOW_ID_MASK,4,2     ; @MVPP2_PRS_FLOW_ID_MASK
	.comm	_MVPP2_PRS_SRAM_LU_DONE_BIT,4,2 ; @MVPP2_PRS_SRAM_LU_DONE_BIT
	.comm	_MVPP2_PRS_LU_FLOWS,4,2         ; @MVPP2_PRS_LU_FLOWS
.subsections_via_symbols
