	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mvpp2_ethtool_cls_rule_ins     ## -- Begin function mvpp2_ethtool_cls_rule_ins
	.p2align	4, 0x90
_mvpp2_ethtool_cls_rule_ins:            ## @mvpp2_ethtool_cls_rule_ins
	.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
	movq	$0, -64(%rbp)
	movq	(%rsi), %rax
	movq	_MVPP2_N_RFS_ENTRIES_PER_FLOW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_6
## %bb.1:
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r15
	movq	%r13, -56(%rbp)
	movq	_FLOW_RSS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	je	LBB0_4
## %bb.3:
	movl	16(%r13), %eax
	movl	%eax, -64(%rbp)
LBB0_4:
	leaq	-64(%rbp), %rdi
	callq	_ethtool_rx_flow_rule_create
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%r12, %rdi
	callq	_PTR_ERR
LBB0_12:
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_9:
	movq	(%r12), %rax
	movq	%rax, 16(%r15)
	movl	8(%r13), %edi
	callq	_mvpp2_cls_ethtool_flow_to_type
	movl	%eax, (%r15)
	testl	%eax, %eax
	js	LBB0_12
## %bb.10:
	movq	%r15, %rdi
	callq	_mvpp2_cls_rfs_parse_rule
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_15
LBB0_11:
	movq	%r12, %rdi
	callq	_ethtool_rx_flow_rule_destroy
LBB0_13:
	movq	%r15, %rdi
	callq	_kfree
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	(%r13), %rax
	movq	%rax, 8(%r15)
	movq	8(%r14), %rcx
	movq	(%rcx,%rax,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.16:
	movq	%r14, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_mvpp2_port_cls_rfs_rule_remove
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.17:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	decl	(%r14)
LBB0_18:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mvpp2_port_flt_rfs_rule_insert
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.19:
	movq	%r12, %rdi
	callq	_ethtool_rx_flow_rule_destroy
	movq	$0, 16(%r15)
	movq	%r15, %rdi
	addq	$24, %rdi
	movq	%r13, %rsi
	movl	$24, %edx
	callq	_memcpy
	movq	8(%r14), %rax
	movq	8(%r15), %rcx
	movq	%r15, (%rax,%rcx,8)
	incl	(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_MVPP2_N_RFS_ENTRIES_PER_FLOW,8,3 ## @MVPP2_N_RFS_ENTRIES_PER_FLOW
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FLOW_RSS,4,2                   ## @FLOW_RSS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mvpp2_ethtool_cls_rule_ins     ; -- Begin function mvpp2_ethtool_cls_rule_ins
	.p2align	2
_mvpp2_ethtool_cls_rule_ins:            ; @mvpp2_ethtool_cls_rule_ins
	.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
	str	xzr, [sp]
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _MVPP2_N_RFS_ENTRIES_PER_FLOW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MVPP2_N_RFS_ENTRIES_PER_FLOW@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_7
; %bb.1:
	mov	x21, x1
	mov	x20, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.2:
	mov	x19, x0
	str	x21, [sp, #8]
	ldr	w8, [x21, #8]
Lloh6:
	adrp	x9, _FLOW_RSS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FLOW_RSS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x21, #16]
	str	w8, [sp]
LBB0_4:
	mov	x0, sp
	bl	_ethtool_rx_flow_rule_create
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.5:
	mov	x0, x22
	bl	_PTR_ERR
LBB0_6:
	mov	x23, x0
	b	LBB0_13
LBB0_7:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
LBB0_10:
	ldr	x8, [x22]
	str	x8, [x19, #16]
	ldr	w0, [x21, #8]
	bl	_mvpp2_cls_ethtool_flow_to_type
	str	w0, [x19]
	tbnz	w0, #31, LBB0_6
; %bb.11:
	mov	x0, x19
	bl	_mvpp2_cls_rfs_parse_rule
	mov	x23, x0
	cbz	w0, LBB0_15
LBB0_12:
	mov	x0, x22
	bl	_ethtool_rx_flow_rule_destroy
LBB0_13:
	mov	x0, x19
	bl	_kfree
LBB0_14:
	mov	x0, x23
	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_15:
	ldr	x8, [x21]
	str	x8, [x19, #8]
	ldr	x9, [x20, #8]
	ldr	x24, [x9, x8, lsl #3]
	cbz	x24, LBB0_18
; %bb.16:
	mov	x0, x20
	mov	x1, x24
	bl	_mvpp2_port_cls_rfs_rule_remove
	mov	x23, x0
	cbnz	w0, LBB0_12
; %bb.17:
	mov	x0, x24
	bl	_kfree
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
LBB0_18:
	mov	x0, x20
	mov	x1, x19
	bl	_mvpp2_port_flt_rfs_rule_insert
	mov	x23, x0
	cbnz	w0, LBB0_12
; %bb.19:
	mov	x0, x22
	bl	_ethtool_rx_flow_rule_destroy
	str	xzr, [x19, #16]
	add	x0, x19, #24
	mov	x1, x21
	mov	w2, #24
	bl	_memcpy
	ldr	x8, [x20, #8]
	ldr	x9, [x19, #8]
	str	x19, [x8, x9, lsl #3]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP2_N_RFS_ENTRIES_PER_FLOW,8,3 ; @MVPP2_N_RFS_ENTRIES_PER_FLOW
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FLOW_RSS,4,2                   ; @FLOW_RSS
.subsections_via_symbols
