	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_sf2_cfp_act_pol_set
_bcm_sf2_cfp_act_pol_set:               ## @bcm_sf2_cfp_act_pol_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r13
	xorl	%eax, %eax
	testl	%r9d, %r9d
	je	LBB0_2
## %bb.1:
	movl	%r8d, %ebx
	movq	_CHANGE_FWRD_MAP_IB_REP_ARL@GOTPCREL(%rip), %rax
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	(%rax), %r14d
	movl	%r15d, %edi
	movq	_DST_MAP_IB_SHIFT@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_BIT
	orl	%r14d, %eax
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	_CHANGE_TC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_NEW_TC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	orl	%eax, %ebx
	movl	%ebx, %eax
LBB0_2:
	movl	$0, %esi
	cmpl	%r15d, %r12d
	jne	LBB0_4
## %bb.3:
	movq	_LOOP_BK_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_4:
	orl	%eax, %esi
	movq	_CORE_ACT_POL_DATA0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_core_writel
	movq	_CHAIN_ID_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r14d, %esi
	shll	%cl, %esi
	movq	_CORE_ACT_POL_DATA1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_core_writel
	movq	_CORE_ACT_POL_DATA2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_core_writel
	movq	_OP_SEL_WRITE@GOTPCREL(%rip), %r15
	movq	_ACT_POL_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r15), %esi
	movq	%r13, %rdi
	callq	_bcm_sf2_cfp_op
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_8
LBB0_6:
	movq	_POLICER_MODE_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CORE_RATE_METER0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_core_writel
	movq	_RATE_METER_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r15), %esi
	movq	%r13, %rdi
	callq	_bcm_sf2_cfp_op
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
LBB0_8:
	movl	%r14d, %esi
	callq	_pr_err
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_CHANGE_FWRD_MAP_IB_REP_ARL,4,2 ## @CHANGE_FWRD_MAP_IB_REP_ARL
	.comm	_DST_MAP_IB_SHIFT,8,3           ## @DST_MAP_IB_SHIFT
	.comm	_CHANGE_TC,4,2                  ## @CHANGE_TC
	.comm	_NEW_TC_SHIFT,4,2               ## @NEW_TC_SHIFT
	.comm	_LOOP_BK_EN,4,2                 ## @LOOP_BK_EN
	.comm	_CORE_ACT_POL_DATA0,4,2         ## @CORE_ACT_POL_DATA0
	.comm	_CHAIN_ID_SHIFT,4,2             ## @CHAIN_ID_SHIFT
	.comm	_CORE_ACT_POL_DATA1,4,2         ## @CORE_ACT_POL_DATA1
	.comm	_CORE_ACT_POL_DATA2,4,2         ## @CORE_ACT_POL_DATA2
	.comm	_OP_SEL_WRITE,4,2               ## @OP_SEL_WRITE
	.comm	_ACT_POL_RAM,4,2                ## @ACT_POL_RAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Policer entry at %d failed\n"

	.comm	_POLICER_MODE_DISABLE,4,2       ## @POLICER_MODE_DISABLE
	.comm	_CORE_RATE_METER0,4,2           ## @CORE_RATE_METER0
	.comm	_RATE_METER_RAM,4,2             ## @RATE_METER_RAM
L_.str.1:                               ## @.str.1
	.asciz	"Meter entry at %d failed\n"

	.no_dead_strip	_bcm_sf2_cfp_act_pol_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_act_pol_set
_bcm_sf2_cfp_act_pol_set:               ; @bcm_sf2_cfp_act_pol_set
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	cbz	w5, LBB0_2
; %bb.1:
	mov	x23, x4
Lloh0:
	adrp	x8, _CHANGE_FWRD_MAP_IB_REP_ARL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHANGE_FWRD_MAP_IB_REP_ARL@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x8, _DST_MAP_IB_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DST_MAP_IB_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x0, x8, w21, uxtw
	bl	_BIT
	orr	w8, w0, w24
Lloh6:
	adrp	x9, _CHANGE_TC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CHANGE_TC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _NEW_TC_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NEW_TC_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	lsl	w9, w23, w9
	orr	w8, w8, w9
	b	LBB0_3
LBB0_2:
	mov	w8, #0
LBB0_3:
Lloh12:
	adrp	x9, _LOOP_BK_EN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LOOP_BK_EN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w22, w21
	csel	w9, w9, wzr, eq
	orr	w1, w9, w8
Lloh15:
	adrp	x8, _CORE_ACT_POL_DATA0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CORE_ACT_POL_DATA0@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_core_writel
Lloh18:
	adrp	x8, _CHAIN_ID_SHIFT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CHAIN_ID_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	lsl	w1, w19, w8
Lloh21:
	adrp	x8, _CORE_ACT_POL_DATA1@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CORE_ACT_POL_DATA1@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_core_writel
Lloh24:
	adrp	x8, _CORE_ACT_POL_DATA2@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CORE_ACT_POL_DATA2@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_core_writel
Lloh27:
	adrp	x22, _OP_SEL_WRITE@GOTPAGE
Lloh28:
	ldr	x22, [x22, _OP_SEL_WRITE@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh29:
	adrp	x9, _ACT_POL_RAM@GOTPAGE
Lloh30:
	ldr	x9, [x9, _ACT_POL_RAM@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_bcm_sf2_cfp_op
	cbz	w0, LBB0_5
; %bb.4:
	mov	x21, x0
Lloh32:
	adrp	x0, l_.str@PAGE
Lloh33:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh34:
	adrp	x8, _POLICER_MODE_DISABLE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _POLICER_MODE_DISABLE@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x8, _CORE_RATE_METER0@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CORE_RATE_METER0@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_core_writel
	ldr	w8, [x22]
Lloh40:
	adrp	x9, _RATE_METER_RAM@GOTPAGE
Lloh41:
	ldr	x9, [x9, _RATE_METER_RAM@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_bcm_sf2_cfp_op
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.6:
Lloh43:
	adrp	x0, l_.str.1@PAGE
Lloh44:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	mov	x1, x19
	bl	_pr_err
LBB0_8:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_CHANGE_FWRD_MAP_IB_REP_ARL,4,2 ; @CHANGE_FWRD_MAP_IB_REP_ARL
	.comm	_DST_MAP_IB_SHIFT,8,3           ; @DST_MAP_IB_SHIFT
	.comm	_CHANGE_TC,4,2                  ; @CHANGE_TC
	.comm	_NEW_TC_SHIFT,4,2               ; @NEW_TC_SHIFT
	.comm	_LOOP_BK_EN,4,2                 ; @LOOP_BK_EN
	.comm	_CORE_ACT_POL_DATA0,4,2         ; @CORE_ACT_POL_DATA0
	.comm	_CHAIN_ID_SHIFT,4,2             ; @CHAIN_ID_SHIFT
	.comm	_CORE_ACT_POL_DATA1,4,2         ; @CORE_ACT_POL_DATA1
	.comm	_CORE_ACT_POL_DATA2,4,2         ; @CORE_ACT_POL_DATA2
	.comm	_OP_SEL_WRITE,4,2               ; @OP_SEL_WRITE
	.comm	_ACT_POL_RAM,4,2                ; @ACT_POL_RAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Policer entry at %d failed\n"

	.comm	_POLICER_MODE_DISABLE,4,2       ; @POLICER_MODE_DISABLE
	.comm	_CORE_RATE_METER0,4,2           ; @CORE_RATE_METER0
	.comm	_RATE_METER_RAM,4,2             ; @RATE_METER_RAM
l_.str.1:                               ; @.str.1
	.asciz	"Meter entry at %d failed\n"

	.no_dead_strip	_bcm_sf2_cfp_act_pol_set
.subsections_via_symbols
