	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mvpp2_prs_add_flow             ## -- Begin function mvpp2_prs_add_flow
	.p2align	4, 0x90
_mvpp2_prs_add_flow:                    ## @mvpp2_prs_add_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_MVPP2_PE_LAST_FREE_TID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MVPP2_PE_FIRST_FREE_TID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_mvpp2_prs_tcam_first_free
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, -48(%rbp)
	movq	_MVPP2_PRS_FLOW_ID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_mvpp2_prs_sram_ai_update
	movq	_MVPP2_PRS_SRAM_LU_DONE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_mvpp2_prs_sram_bits_set
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_mvpp2_prs_tcam_data_byte_set
	movq	%r13, %rdi
	movl	$1, %esi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_mvpp2_prs_tcam_data_byte_set
	movq	%r13, %rdi
	movl	$2, %esi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_mvpp2_prs_tcam_data_byte_set
	movq	%r13, %rdi
	movl	$3, %esi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_mvpp2_prs_tcam_data_byte_set
	movl	-48(%rbp), %esi
	movq	_MVPP2_PRS_LU_FLOWS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_mvpp2_prs_shadow_set
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_mvpp2_prs_tcam_lu_set
	movq	_MVPP2_PRS_PORT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_mvpp2_prs_tcam_port_map_set
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%ebx, %ebx
	callq	_mvpp2_prs_hw_write
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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
	.comm	_MVPP2_PRS_PORT_MASK,4,2        ## @MVPP2_PRS_PORT_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mvpp2_prs_add_flow             ; -- Begin function mvpp2_prs_add_flow
	.p2align	2
_mvpp2_prs_add_flow:                    ; @mvpp2_prs_add_flow
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x8, _MVPP2_PE_LAST_FREE_TID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MVPP2_PE_LAST_FREE_TID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _MVPP2_PE_FIRST_FREE_TID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MVPP2_PE_FIRST_FREE_TID@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mvpp2_prs_tcam_first_free
	tbnz	w0, #31, LBB0_2
; %bb.1:
	str	w0, [sp, #8]
Lloh6:
	adrp	x8, _MVPP2_PRS_FLOW_ID_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MVPP2_PRS_FLOW_ID_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x1, x22
	bl	_mvpp2_prs_sram_ai_update
Lloh9:
	adrp	x8, _MVPP2_PRS_SRAM_LU_DONE_BIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MVPP2_PRS_SRAM_LU_DONE_BIT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #1
	bl	_mvpp2_prs_sram_bits_set
	add	x0, sp, #8
	mov	w1, #0
	mov	x2, x21
	mov	x3, x20
	bl	_mvpp2_prs_tcam_data_byte_set
	add	x0, sp, #8
	mov	w1, #1
	mov	x2, x21
	mov	x3, x20
	bl	_mvpp2_prs_tcam_data_byte_set
	add	x0, sp, #8
	mov	w1, #2
	mov	x2, x21
	mov	x3, x20
	bl	_mvpp2_prs_tcam_data_byte_set
	add	x0, sp, #8
	mov	w1, #3
	mov	x2, x21
	mov	x3, x20
	bl	_mvpp2_prs_tcam_data_byte_set
	ldr	w1, [sp, #8]
Lloh12:
	adrp	x20, _MVPP2_PRS_LU_FLOWS@GOTPAGE
Lloh13:
	ldr	x20, [x20, _MVPP2_PRS_LU_FLOWS@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_mvpp2_prs_shadow_set
	ldr	w1, [x20]
	add	x0, sp, #8
	bl	_mvpp2_prs_tcam_lu_set
Lloh14:
	adrp	x8, _MVPP2_PRS_PORT_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MVPP2_PRS_PORT_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_mvpp2_prs_tcam_port_map_set
	add	x1, sp, #8
	mov	x0, x19
	bl	_mvpp2_prs_hw_write
	mov	w0, #0
LBB0_2:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.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
	.comm	_MVPP2_PRS_PORT_MASK,4,2        ; @MVPP2_PRS_PORT_MASK
.subsections_via_symbols
