	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_sf2_cfp_ipv6_rule_set
_bcm_sf2_cfp_ipv6_rule_set:             ## @bcm_sf2_cfp_ipv6_rule_set
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rdi, %r15
	movq	$0, -88(%rbp)
	movq	_FLOW_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%r8), %eax
	cmpl	$129, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.3:
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_be32_to_cpu
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_udf_tcpip6_layout@GOTPCREL(%rip), %rbx
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_bcm_sf2_get_slice_number
	movl	%eax, %r13d
	movq	_UDF_NUM_SLICES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_8
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_28
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_8:
	movq	(%rbx), %rax
	movl	%r13d, %ebx
	movl	4(%rax,%rbx,8), %edi
	callq	_bcm_sf2_get_num_udf_slices
	movl	%eax, %r12d
	movl	4(%r14), %eax
	movq	_RX_CLS_LOC_ANY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.9:
	movl	(%r15), %edi
	movl	8(%r15), %esi
	callq	_find_first_zero_bit
LBB0_10:
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_bcm_sf2_cfp_rule_size
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	cmpl	%eax, %edi
	jbe	LBB0_12
## %bb.11:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_28
LBB0_12:
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	movl	%r12d, -72(%rbp)                ## 4-byte Spill
	movq	%r15, %rbx
	movl	(%r15), %esi
	callq	_set_bit
	movl	(%r15), %edi
	movl	8(%r15), %esi
	callq	_find_first_zero_bit
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_bcm_sf2_cfp_rule_size
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	cmpl	%eax, %r12d
	jbe	LBB0_14
## %bb.13:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_16
LBB0_14:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)
	leaq	-88(%rbp), %rdi
	callq	_ethtool_rx_flow_rule_create
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_17:
	movl	(%rbx), %edi
	leaq	-120(%rbp), %rsi
	callq	_flow_rule_match_ipv6_addrs
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	movl	(%rbx), %edi
	leaq	-104(%rbp), %rsi
	callq	_flow_rule_match_ports
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	_udf_tcpip6_layout@GOTPCREL(%rip), %rsi
	movl	%r13d, %edx
	callq	_bcm_sf2_cfp_udf_set
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_BIT
	movl	%eax, %r15d
	movl	$7, %edi
	callq	_CORE_CFP_DATA_PORT
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_core_writel
	movl	$7, %edi
	callq	_CORE_CFP_MASK_PORT
	movq	%rbx, %rdi
	movl	$255, %esi
	movl	%eax, %edx
	callq	_core_writel
	movq	_L3_FRAMING_SHIFT@GOTPCREL(%rip), %rax
	movq	_IPPROTO_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	shll	%cl, %edx
	movb	(%rax), %al
	btsl	%eax, %edx
	movq	_IP_FRAG_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	shll	%cl, %r15d
	orl	%edx, %r15d
	movl	-72(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	_udf_upper_bits
	orl	%eax, %r15d
	movl	$6, %edi
	callq	_CORE_CFP_DATA_PORT
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_core_writel
	movq	_udf_tcpip6_layout@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movl	(%rax,%rcx,8), %r15d
	movl	%r12d, %edi
	callq	_udf_upper_bits
	orl	%eax, %r15d
	movl	$6, %edi
	callq	_CORE_CFP_MASK_PORT
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_core_writel
	movl	%r12d, %edi
	callq	_udf_lower_bits
	movl	%eax, %r15d
	shll	$24, %r15d
	movl	$5, %edi
	callq	_CORE_CFP_DATA_PORT
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_core_writel
	movl	%r12d, %edi
	callq	_udf_lower_bits
	movl	%eax, %r15d
	shll	$24, %r15d
	movl	$5, %edi
	callq	_CORE_CFP_MASK_PORT
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_core_writel
	movq	-112(%rbp), %rax
	movl	4(%rax), %esi
	movq	-104(%rbp), %rax
	movl	4(%rax), %edx
	movq	%rbx, %rdi
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	callq	_bcm_sf2_cfp_slice_ipv6
	movq	-120(%rbp), %rax
	movl	4(%rax), %esi
	movq	-96(%rbp), %rax
	movl	(%rax), %edx
	movq	_SLICE_NUM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	$1, %r8d
	callq	_bcm_sf2_cfp_slice_ipv6
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_bcm_sf2_cfp_rule_addr_set
	movq	_OP_SEL_WRITE@GOTPCREL(%rip), %rax
	movq	_TCAM_SEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %r15
	movq	%rbx, %rdi
	callq	_bcm_sf2_cfp_op
	testl	%eax, %eax
	je	LBB0_21
## %bb.18:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_19:
	callq	_pr_err
	jmp	LBB0_20
LBB0_21:
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	xorl	%r9d, %r9d
	callq	_bcm_sf2_cfp_act_pol_set
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_20
## %bb.22:
	incl	%r13d
	movq	_udf_tcpip6_layout@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_bcm_sf2_get_slice_number
	movl	%eax, %ebx
	movq	_UDF_NUM_SLICES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_24
## %bb.23:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_20:
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_ethtool_rx_flow_rule_destroy
LBB0_16:
	movl	(%r15), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_clear_bit
LBB0_28:
	movl	%r12d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	(%r12), %rax
	movl	%ebx, %ecx
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	movl	4(%rax,%rcx,8), %edi
	callq	_bcm_sf2_get_num_udf_slices
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%r15, %r13
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_bcm_sf2_cfp_udf_set
	movl	$7, %edi
	callq	_CORE_CFP_DATA_PORT
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_core_writel
	movl	$7, %edi
	callq	_CORE_CFP_MASK_PORT
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_core_writel
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	shll	$24, %ebx
	movl	-64(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	_udf_upper_bits
	shll	$16, %eax
	orl	%eax, %ebx
	movl	%r12d, %edi
	callq	_udf_lower_bits
	shll	$8, %eax
	orl	%eax, %ebx
	movl	$6, %edi
	callq	_CORE_CFP_DATA_PORT
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_core_writel
	movq	_XCESS_ADDR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shll	$24, %ebx
	movl	%r12d, %edi
	callq	_udf_upper_bits
	shll	$16, %eax
	orl	%eax, %ebx
	movl	%r12d, %edi
	callq	_udf_lower_bits
	shll	$8, %eax
	orl	%eax, %ebx
	movl	$6, %edi
	callq	_CORE_CFP_MASK_PORT
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_core_writel
	movl	$5, %edi
	callq	_CORE_CFP_DATA_PORT
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_core_writel
	movl	$5, %edi
	callq	_CORE_CFP_MASK_PORT
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_core_writel
	movq	-112(%rbp), %rax
	movl	(%rax), %esi
	movq	-104(%rbp), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	callq	_bcm_sf2_cfp_slice_ipv6
	movq	-120(%rbp), %rax
	movl	(%rax), %esi
	movq	-104(%rbp), %rax
	movl	(%rax), %edx
	movq	_SLICE_NUM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	$1, %r8d
	callq	_bcm_sf2_cfp_slice_ipv6
	movq	%r15, %rdi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_bcm_sf2_cfp_rule_addr_set
	movq	_TCAM_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OP_SEL_WRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r15, %rdi
	callq	_bcm_sf2_cfp_op
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	jmp	LBB0_19
LBB0_26:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	movl	$1, %r9d
	callq	_bcm_sf2_cfp_act_pol_set
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_20
## %bb.27:
	movq	_CORE_CFP_CTL_REG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %r13
	movq	%r15, %rdi
	callq	_core_readl
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_BIT
	orl	%eax, %r15d
	movl	(%r12), %edx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_core_writel
	movl	(%r13), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_set_bit
	movl	4(%r13), %esi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_set_bit
	movl	%ebx, 4(%r14)
	xorl	%r12d, %r12d
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_FLOW_EXT,4,2                   ## @FLOW_EXT
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_udf_tcpip6_layout,8,3          ## @udf_tcpip6_layout
	.comm	_UDF_NUM_SLICES,4,2             ## @UDF_NUM_SLICES
	.comm	_RX_CLS_LOC_ANY,4,2             ## @RX_CLS_LOC_ANY
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_L3_FRAMING_SHIFT,4,2           ## @L3_FRAMING_SHIFT
	.comm	_IPPROTO_SHIFT,4,2              ## @IPPROTO_SHIFT
	.comm	_IP_FRAG_SHIFT,4,2              ## @IP_FRAG_SHIFT
	.comm	_SLICE_NUM_MASK,4,2             ## @SLICE_NUM_MASK
	.comm	_OP_SEL_WRITE,4,2               ## @OP_SEL_WRITE
	.comm	_TCAM_SEL,4,2                   ## @TCAM_SEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TCAM entry at addr %d failed\n"

	.comm	_XCESS_ADDR_MASK,4,2            ## @XCESS_ADDR_MASK
	.comm	_CORE_CFP_CTL_REG,4,2           ## @CORE_CFP_CTL_REG
	.no_dead_strip	_bcm_sf2_cfp_ipv6_rule_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_sf2_cfp_ipv6_rule_set
_bcm_sf2_cfp_ipv6_rule_set:             ; @bcm_sf2_cfp_ipv6_rule_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x28, x3
	mov	x24, x2
	mov	x21, x1
	mov	x19, x0
	str	xzr, [sp, #72]
	ldr	w8, [x4]
Lloh0:
	adrp	x9, _FLOW_EXT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FLOW_EXT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	bic	w8, w8, w9
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _IPPROTO_UDP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPPROTO_UDP@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _IPPROTO_TCP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IPPROTO_TCP@GOTPAGEOFF]
LBB0_4:
	ldr	w23, [x8]
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_be32_to_cpu
	mov	x25, x0
Lloh7:
	adrp	x26, _udf_tcpip6_layout@GOTPAGE
Lloh8:
	ldr	x26, [x26, _udf_tcpip6_layout@GOTPAGEOFF]
	mov	x0, x26
	mov	w1, #0
	bl	_bcm_sf2_get_slice_number
Lloh9:
	adrp	x22, _UDF_NUM_SLICES@GOTPAGE
Lloh10:
	ldr	x22, [x22, _UDF_NUM_SLICES@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_8
LBB0_5:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_7:
	mov	x0, x25
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_8:
	mov	x27, x0
	stp	w28, w21, [sp, #32]             ; 8-byte Folded Spill
	ldr	x8, [x26]
	add	x8, x8, w0, uxtw #3
	ldr	w0, [x8, #4]
	bl	_bcm_sf2_get_num_udf_slices
	mov	x28, x0
	ldr	w21, [x20, #4]
Lloh13:
	adrp	x8, _RX_CLS_LOC_ANY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RX_CLS_LOC_ANY@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_10
; %bb.9:
	ldr	w0, [x19]
	ldr	w1, [x19, #8]
	bl	_find_first_zero_bit
	mov	x21, x0
LBB0_10:
	mov	x0, x19
	bl	_bcm_sf2_cfp_rule_size
	cmp	w21, w0
	b.ls	LBB0_12
; %bb.11:
Lloh16:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_6
LBB0_12:
	str	w24, [sp, #24]                  ; 4-byte Folded Spill
	ldr	w1, [x19]
	mov	x0, x21
	bl	_set_bit
	ldr	w0, [x19]
	ldr	w1, [x19, #8]
	bl	_find_first_zero_bit
	mov	x24, x0
	mov	x0, x19
	bl	_bcm_sf2_cfp_rule_size
	str	w24, [sp, #28]                  ; 4-byte Folded Spill
	cmp	w24, w0
	b.ls	LBB0_14
; %bb.13:
Lloh18:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_23
LBB0_14:
	str	x20, [sp, #72]
	add	x0, sp, #72
	bl	_ethtool_rx_flow_rule_create
	mov	x24, x0
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x24
	bl	_PTR_ERR
	mov	x25, x0
	b	LBB0_23
LBB0_16:
	mov	w8, w27
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	ldr	w0, [x24]
	add	x1, sp, #56
	bl	_flow_rule_match_ipv6_addrs
	str	x24, [sp]                       ; 8-byte Folded Spill
	ldr	w0, [x24]
	add	x1, sp, #40
	bl	_flow_rule_match_ports
	mov	x0, x19
	mov	x1, x26
	mov	x2, x27
	bl	_bcm_sf2_cfp_udf_set
	ldr	w0, [sp, #36]                   ; 4-byte Folded Reload
	mov	x24, x0
	bl	_BIT
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	mov	w0, #7
	bl	_CORE_CFP_DATA_PORT
	mov	x2, x0
	mov	x0, x19
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_core_writel
	mov	w0, #7
	bl	_CORE_CFP_MASK_PORT
	mov	x2, x0
	mov	x0, x19
	mov	w1, #255
	bl	_core_writel
Lloh21:
	adrp	x8, _L3_FRAMING_SHIFT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _L3_FRAMING_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
Lloh24:
	adrp	x9, _IPPROTO_SHIFT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IPPROTO_SHIFT@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	lsl	w9, w23, w9
	orr	w8, w9, w8
Lloh27:
	adrp	x9, _IP_FRAG_SHIFT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IP_FRAG_SHIFT@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	lsl	w9, w25, w9
	orr	w23, w8, w9
	mov	x0, x28
	bl	_udf_upper_bits
	orr	w25, w23, w0
	mov	w0, #6
	bl	_CORE_CFP_DATA_PORT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x25
	bl	_core_writel
	ldr	x8, [x26]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	lsl	x9, x9, #3
	ldr	w23, [x8, x9]
	mov	x0, x28
	bl	_udf_upper_bits
	orr	w25, w0, w23
	mov	w0, #6
	bl	_CORE_CFP_MASK_PORT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x25
	bl	_core_writel
	mov	x0, x28
	bl	_udf_lower_bits
	lsl	w25, w0, #24
	mov	w0, #5
	bl	_CORE_CFP_DATA_PORT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x25
	bl	_core_writel
	mov	x0, x28
	bl	_udf_lower_bits
	lsl	w25, w0, #24
	mov	w0, #5
	bl	_CORE_CFP_MASK_PORT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x25
	bl	_core_writel
	ldr	x8, [sp, #64]
	ldr	w1, [x8, #4]
	ldr	x8, [sp, #40]
	ldr	w2, [x8, #4]
	mov	x0, x19
	mov	x3, x27
	mov	w4, #0
	bl	_bcm_sf2_cfp_slice_ipv6
	ldr	x8, [sp, #56]
	ldr	w1, [x8, #4]
	ldr	x8, [sp, #48]
	ldr	w2, [x8]
Lloh30:
	adrp	x28, _SLICE_NUM_MASK@GOTPAGE
Lloh31:
	ldr	x28, [x28, _SLICE_NUM_MASK@GOTPAGEOFF]
	ldr	w3, [x28]
	mov	x0, x19
	mov	w4, #1
	bl	_bcm_sf2_cfp_slice_ipv6
	mov	x0, x19
	ldr	w23, [sp, #28]                  ; 4-byte Folded Reload
	mov	x1, x23
	bl	_bcm_sf2_cfp_rule_addr_set
Lloh32:
	adrp	x8, _OP_SEL_WRITE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _OP_SEL_WRITE@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x26, _TCAM_SEL@GOTPAGE
Lloh36:
	ldr	x26, [x26, _TCAM_SEL@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_bcm_sf2_cfp_op
	cbz	w0, LBB0_19
; %bb.17:
	mov	x25, x0
Lloh37:
	adrp	x0, l_.str@PAGE
Lloh38:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
LBB0_18:
	bl	_pr_err
	b	LBB0_22
LBB0_19:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	ldr	w3, [sp, #24]                   ; 4-byte Folded Reload
	ldr	w4, [sp, #32]                   ; 4-byte Folded Reload
	mov	w5, #0
	bl	_bcm_sf2_cfp_act_pol_set
	mov	x25, x0
	cbnz	w0, LBB0_22
; %bb.20:
	add	w1, w27, #1
Lloh39:
	adrp	x27, _udf_tcpip6_layout@GOTPAGE
Lloh40:
	ldr	x27, [x27, _udf_tcpip6_layout@GOTPAGEOFF]
	mov	x0, x27
	bl	_bcm_sf2_get_slice_number
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_24
; %bb.21:
Lloh41:
	adrp	x8, _EINVAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_22:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_ethtool_rx_flow_rule_destroy
LBB0_23:
	ldr	w1, [x19]
	mov	x0, x21
	bl	_clear_bit
	b	LBB0_7
LBB0_24:
	mov	x25, x0
	ldr	x8, [x27]
	add	x8, x8, w0, uxtw #3
	ldr	w0, [x8, #4]
	bl	_bcm_sf2_get_num_udf_slices
	mov	x22, x0
	mov	x0, x19
	mov	x1, x27
	mov	x2, x25
	bl	_bcm_sf2_cfp_udf_set
	mov	w0, #7
	bl	_CORE_CFP_DATA_PORT
	mov	x2, x0
	mov	x0, x19
	mov	w1, #0
	bl	_core_writel
	mov	w0, #7
	bl	_CORE_CFP_MASK_PORT
	mov	x2, x0
	mov	x0, x19
	mov	w1, #0
	bl	_core_writel
	mov	x0, x22
	bl	_udf_upper_bits
	lsl	w8, w0, #16
	mov	x24, x23
	orr	w23, w8, w23, lsl #24
	mov	x0, x22
	bl	_udf_lower_bits
	orr	w27, w23, w0, lsl #8
	mov	w0, #6
	bl	_CORE_CFP_DATA_PORT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x27
	bl	_core_writel
Lloh44:
	adrp	x8, _XCESS_ADDR_MASK@GOTPAGE
Lloh45:
	ldr	x8, [x8, _XCESS_ADDR_MASK@GOTPAGEOFF]
Lloh46:
	ldr	w23, [x8]
	mov	x0, x22
	bl	_udf_upper_bits
	lsl	w8, w0, #16
	orr	w23, w8, w23, lsl #24
	mov	x0, x22
	bl	_udf_lower_bits
	orr	w22, w23, w0, lsl #8
	mov	w0, #6
	bl	_CORE_CFP_MASK_PORT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_core_writel
	mov	w0, #5
	bl	_CORE_CFP_DATA_PORT
	mov	x2, x0
	mov	x0, x19
	mov	w1, #0
	bl	_core_writel
	mov	w0, #5
	bl	_CORE_CFP_MASK_PORT
	mov	x2, x0
	mov	x0, x19
	mov	w1, #0
	bl	_core_writel
	ldr	x8, [sp, #64]
	ldr	w1, [x8]
	ldr	x8, [sp, #40]
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x25
	mov	w4, #0
	bl	_bcm_sf2_cfp_slice_ipv6
	ldr	x8, [sp, #56]
	ldr	w1, [x8]
	ldr	x8, [sp, #40]
	ldr	w2, [x8]
	ldr	w3, [x28]
	mov	x0, x19
	mov	w4, #1
	bl	_bcm_sf2_cfp_slice_ipv6
	mov	x0, x19
	mov	x1, x21
	bl	_bcm_sf2_cfp_rule_addr_set
Lloh47:
	adrp	x8, _OP_SEL_WRITE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _OP_SEL_WRITE@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	ldr	w9, [x26]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_bcm_sf2_cfp_op
	cbz	w0, LBB0_26
; %bb.25:
	mov	x25, x0
Lloh50:
	adrp	x0, l_.str@PAGE
Lloh51:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	b	LBB0_18
LBB0_26:
	mov	x0, x19
	mov	x1, x21
	ldp	w4, w26, [sp, #32]              ; 8-byte Folded Reload
	mov	x2, x26
	ldr	w3, [sp, #24]                   ; 4-byte Folded Reload
	mov	w5, #1
	bl	_bcm_sf2_cfp_act_pol_set
	mov	x25, x0
	cbnz	w0, LBB0_22
; %bb.27:
Lloh52:
	adrp	x22, _CORE_CFP_CTL_REG@GOTPAGE
Lloh53:
	ldr	x22, [x22, _CORE_CFP_CTL_REG@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_core_readl
	mov	x23, x0
	mov	x0, x26
	bl	_BIT
	orr	w1, w0, w23
	ldr	w2, [x22]
	mov	x0, x19
	bl	_core_writel
	ldr	w1, [x19]
	mov	x0, x24
	bl	_set_bit
	ldr	w1, [x19, #4]
	mov	x0, x21
	bl	_set_bit
	str	w21, [x20, #4]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_FLOW_EXT,4,2                   ; @FLOW_EXT
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_udf_tcpip6_layout,8,3          ; @udf_tcpip6_layout
	.comm	_UDF_NUM_SLICES,4,2             ; @UDF_NUM_SLICES
	.comm	_RX_CLS_LOC_ANY,4,2             ; @RX_CLS_LOC_ANY
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_L3_FRAMING_SHIFT,4,2           ; @L3_FRAMING_SHIFT
	.comm	_IPPROTO_SHIFT,4,2              ; @IPPROTO_SHIFT
	.comm	_IP_FRAG_SHIFT,4,2              ; @IP_FRAG_SHIFT
	.comm	_SLICE_NUM_MASK,4,2             ; @SLICE_NUM_MASK
	.comm	_OP_SEL_WRITE,4,2               ; @OP_SEL_WRITE
	.comm	_TCAM_SEL,4,2                   ; @TCAM_SEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TCAM entry at addr %d failed\n"

	.comm	_XCESS_ADDR_MASK,4,2            ; @XCESS_ADDR_MASK
	.comm	_CORE_CFP_CTL_REG,4,2           ; @CORE_CFP_CTL_REG
	.no_dead_strip	_bcm_sf2_cfp_ipv6_rule_set
.subsections_via_symbols
