	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_cls_flow_init
_mvpp2_cls_flow_init:                   ## @mvpp2_cls_flow_init
	.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	%rsi, %r14
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %edi
	callq	_MVPP2_CLS_FLT_FIRST
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_MVPP2_CLS_FLT_LAST
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpl	%eax, %ebx
	jle	LBB0_1
LBB0_5:
	movl	(%r14), %edi
	callq	_MVPP2_CLS_FLT_C2_RSS_ENTRY
	leaq	-48(%rbp), %rbx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_mvpp2_cls_flow_read
	movq	_MVPP22_CLS_ENGINE_C2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mvpp2_cls_flow_eng_set
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_mvpp2_cls_flow_port_id_sel
	movq	_MVPP22_CLS_LU_TYPE_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mvpp2_cls_flow_lu_type_set
	movq	_MVPP2_MAX_PORTS@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_BIT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mvpp2_cls_flow_port_add
	incl	%ebx
	cmpl	(%r13), %ebx
	jl	LBB0_7
LBB0_8:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_mvpp2_cls_flow_write
	cmpl	$0, (%r13)
	jle	LBB0_11
## %bb.9:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movl	%ebx, %edi
	callq	_MVPP2_CLS_FLT_HASH_ENTRY
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_mvpp2_cls_flow_read
	movq	_MVPP22_CLS_ENGINE_C3HA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mvpp2_cls_flow_eng_set
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_mvpp2_cls_flow_port_id_sel
	movl	%ebx, %edi
	callq	_BIT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mvpp2_cls_flow_port_add
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_mvpp2_cls_flow_write
	incl	%ebx
	cmpl	(%r13), %ebx
	jl	LBB0_10
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	decl	%eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	leaq	-48(%rbp), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_mvpp2_cls_flow_write
	movl	(%r12), %edi
	callq	_MVPP2_CLS_FLT_LAST
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addl	%r15d, %ecx
	cmpl	%eax, %ecx
	movq	%r12, %r14
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %ebx
	movq	%r14, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%rbx), %r14d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	%r14d, -48(%rbp)
	leal	1(%rbx), %r15d
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_mvpp2_cls_flow_pri_set
	movl	(%r12), %edi
	callq	_MVPP2_CLS_FLT_LAST
	cmpl	%eax, %r14d
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_mvpp2_cls_flow_last_set
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_MVPP22_CLS_ENGINE_C2,4,2       ## @MVPP22_CLS_ENGINE_C2
	.comm	_MVPP22_CLS_LU_TYPE_ALL,4,2     ## @MVPP22_CLS_LU_TYPE_ALL
	.comm	_MVPP2_MAX_PORTS,4,2            ## @MVPP2_MAX_PORTS
	.comm	_MVPP22_CLS_ENGINE_C3HA,4,2     ## @MVPP22_CLS_ENGINE_C3HA
	.no_dead_strip	_mvpp2_cls_flow_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_cls_flow_init
_mvpp2_cls_flow_init:                   ; @mvpp2_cls_flow_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1]
	bl	_MVPP2_CLS_FLT_FIRST
	mov	x21, x0
	ldr	w0, [x19]
	bl	_MVPP2_CLS_FLT_LAST
	cmp	w21, w0
	b.le	LBB0_8
LBB0_1:
	ldr	w0, [x19]
	bl	_MVPP2_CLS_FLT_C2_RSS_ENTRY
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x20
	bl	_mvpp2_cls_flow_read
Lloh0:
	adrp	x8, _MVPP22_CLS_ENGINE_C2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MVPP22_CLS_ENGINE_C2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_mvpp2_cls_flow_eng_set
	add	x0, sp, #8
	mov	w1, #1
	bl	_mvpp2_cls_flow_port_id_sel
Lloh3:
	adrp	x8, _MVPP22_CLS_LU_TYPE_ALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MVPP22_CLS_LU_TYPE_ALL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_mvpp2_cls_flow_lu_type_set
Lloh6:
	adrp	x22, _MVPP2_MAX_PORTS@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MVPP2_MAX_PORTS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_BIT
	mov	x1, x0
	add	x0, sp, #8
	bl	_mvpp2_cls_flow_port_add
	add	w21, w21, #1
	ldr	w8, [x22]
	cmp	w21, w8
	b.lt	LBB0_3
LBB0_4:
	add	x1, sp, #8
	mov	x0, x20
	bl	_mvpp2_cls_flow_write
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	w21, #0
Lloh8:
	adrp	x23, _MVPP22_CLS_ENGINE_C3HA@GOTPAGE
Lloh9:
	ldr	x23, [x23, _MVPP22_CLS_ENGINE_C3HA@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19]
	mov	x0, x21
	bl	_MVPP2_CLS_FLT_HASH_ENTRY
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x20
	bl	_mvpp2_cls_flow_read
	ldr	w1, [x23]
	add	x0, sp, #8
	bl	_mvpp2_cls_flow_eng_set
	add	x0, sp, #8
	mov	w1, #1
	bl	_mvpp2_cls_flow_port_id_sel
	mov	x0, x21
	bl	_BIT
	mov	x1, x0
	add	x0, sp, #8
	bl	_mvpp2_cls_flow_port_add
	add	x1, sp, #8
	mov	x0, x20
	bl	_mvpp2_cls_flow_write
	add	w21, w21, #1
	ldr	w8, [x22]
	cmp	w21, w8
	b.lt	LBB0_6
LBB0_7:
	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
	add	sp, sp, #80
	ret
LBB0_8:
	mov	w22, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w22, w22, #1
	add	x1, sp, #8
	mov	x0, x20
	bl	_mvpp2_cls_flow_write
	ldr	w0, [x19]
	bl	_MVPP2_CLS_FLT_LAST
	add	w8, w21, w22
	sub	w8, w8, #1
	cmp	w8, w0
	b.ge	LBB0_1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	w23, w21, w22
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	str	w23, [sp, #8]
	add	x0, sp, #8
	mov	x1, x22
	bl	_mvpp2_cls_flow_pri_set
	ldr	w0, [x19]
	bl	_MVPP2_CLS_FLT_LAST
	cmp	w23, w0
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x0, sp, #8
	mov	w1, #1
	bl	_mvpp2_cls_flow_last_set
	b	LBB0_9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP22_CLS_ENGINE_C2,4,2       ; @MVPP22_CLS_ENGINE_C2
	.comm	_MVPP22_CLS_LU_TYPE_ALL,4,2     ; @MVPP22_CLS_LU_TYPE_ALL
	.comm	_MVPP2_MAX_PORTS,4,2            ; @MVPP2_MAX_PORTS
	.comm	_MVPP22_CLS_ENGINE_C3HA,4,2     ; @MVPP22_CLS_ENGINE_C3HA
	.no_dead_strip	_mvpp2_cls_flow_init
.subsections_via_symbols
