	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_flower_install_rate_limiter
_nfp_flower_install_rate_limiter:       ## @nfp_flower_install_rate_limiter
	.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	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	8(%rdx), %rax
	movq	(%rax), %r14
	movq	(%rdi), %rbx
	movq	%rsi, %rdi
	callq	_nfp_netdev_is_nfp_repr
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_netdev_priv
	movq	16(%rax), %rbx
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_5:
	movq	8(%rax), %rcx
	movq	(%rcx), %rdx
	movq	_NFP_PORT_VF_PORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_6
## %bb.7:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rdi
	callq	_flow_offload_has_one_action
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	cmpl	$1, (%r15)
	jne	LBB0_10
## %bb.11:
	movq	(%r14), %rax
	movq	_FLOW_ACTION_POLICE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.13:
	movl	8(%r14), %r15d
	movl	12(%r14), %edi
	callq	_PSCHED_NS2TICKS
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	imull	%r15d, %eax
	movq	_PSCHED_TICKS_PER_SEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_div_u64
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_nfp_repr_get_port_id
	movl	%eax, %r14d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rdi
	movq	_NFP_FLOWER_CMSG_TYPE_QOS_MOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$56, %esi
	callq	_nfp_flower_cmsg_alloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.16:
	movq	%rax, %rdi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	_nfp_flower_cmsg_get_data
	movq	%rax, %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movl	%r14d, %edi
	callq	_cpu_to_be32
	movq	%rax, 48(%r13)
	movl	%r12d, %edi
	callq	_cpu_to_be32
	movq	%rax, 40(%r13)
	movl	%r12d, %edi
	callq	_cpu_to_be32
	movq	%rax, 32(%r13)
	movl	%r12d, %edi
	callq	_cpu_to_be32
	movq	%rax, 24(%r13)
	movl	%r12d, %edi
	callq	_cpu_to_be32
	movq	%rax, 16(%r13)
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	_cpu_to_be32
	movq	%rax, 8(%r13)
	movl	%r12d, %edi
	callq	_cpu_to_be32
	movq	%rax, (%r13)
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_nfp_ctrl_tx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%rdi)
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	addq	$4, %rdi
	movq	_NFP_FL_QOS_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_schedule_delayed_work
	jmp	LBB0_18
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
LBB0_10:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_2
LBB0_12:
	leaq	L_.str.5(%rip), %rsi
LBB0_2:
	movq	%r12, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_15:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported offload: qos rate limit offload not supported on higher level port"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"unsupported offload: qos rate limit offload not supported on shared blocks"

	.comm	_NFP_PORT_VF_PORT,8,3           ## @NFP_PORT_VF_PORT
L_.str.2:                               ## @.str.2
	.asciz	"unsupported offload: qos rate limit offload not supported on non-VF ports"

L_.str.3:                               ## @.str.3
	.asciz	"unsupported offload: qos rate limit offload requires a single action"

L_.str.4:                               ## @.str.4
	.asciz	"unsupported offload: qos rate limit offload requires highest priority"

	.comm	_FLOW_ACTION_POLICE,8,3         ## @FLOW_ACTION_POLICE
L_.str.5:                               ## @.str.5
	.asciz	"unsupported offload: qos rate limit offload requires police action"

	.comm	_PSCHED_TICKS_PER_SEC,4,2       ## @PSCHED_TICKS_PER_SEC
	.comm	_NFP_FLOWER_CMSG_TYPE_QOS_MOD,4,2 ## @NFP_FLOWER_CMSG_TYPE_QOS_MOD
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NFP_FL_QOS_UPDATE,4,2          ## @NFP_FL_QOS_UPDATE
	.no_dead_strip	_nfp_flower_install_rate_limiter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_flower_install_rate_limiter
_nfp_flower_install_rate_limiter:       ; @nfp_flower_install_rate_limiter
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	ldr	x8, [x2, #8]
	ldr	x23, [x8]
	ldr	x25, [x0]
	mov	x0, x1
	bl	_nfp_netdev_is_nfp_repr
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_netdev_priv
	ldr	x26, [x0, #16]
	ldr	x8, [x26, #8]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_15
LBB0_4:
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh4:
	adrp	x9, _NFP_PORT_VF_PORT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _NFP_PORT_VF_PORT@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.5:
	ldr	x0, [x22, #8]
	bl	_flow_offload_has_one_action
	cbz	w0, LBB0_12
; %bb.6:
	ldr	w8, [x22]
	cmp	w8, #1
	b.ne	LBB0_13
; %bb.7:
	ldr	x8, [x23]
Lloh7:
	adrp	x9, _FLOW_ACTION_POLICE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FLOW_ACTION_POLICE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.8:
	ldp	w20, w0, [x23, #8]
	bl	_PSCHED_NS2TICKS
	mul	w0, w0, w20
Lloh10:
	adrp	x8, _PSCHED_TICKS_PER_SEC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PSCHED_TICKS_PER_SEC@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_div_u64
	mov	x23, x0
	mov	x0, x21
	bl	_nfp_repr_get_port_id
	mov	x21, x0
	ldr	x0, [x19]
Lloh13:
	adrp	x8, _NFP_FLOWER_CMSG_TYPE_QOS_MOD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NFP_FLOWER_CMSG_TYPE_QOS_MOD@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	w1, #56
	bl	_nfp_flower_cmsg_alloc
	cbz	x0, LBB0_18
; %bb.9:
	mov	x22, x0
	bl	_nfp_flower_cmsg_get_data
	mov	x24, x0
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	mov	x0, x21
	bl	_cpu_to_be32
	str	x0, [x24, #48]
	mov	x0, x23
	bl	_cpu_to_be32
	str	x0, [x24, #40]
	mov	x0, x23
	bl	_cpu_to_be32
	str	x0, [x24, #32]
	mov	x0, x23
	bl	_cpu_to_be32
	str	x0, [x24, #24]
	mov	x0, x23
	bl	_cpu_to_be32
	str	x0, [x24, #16]
	mov	x0, x20
	bl	_cpu_to_be32
	str	x0, [x24, #8]
	mov	x0, x20
	bl	_cpu_to_be32
	str	x0, [x24]
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x22
	bl	_nfp_ctrl_tx
	mov	w0, #0
	str	w21, [x26]
	ldr	w8, [x25]
	add	w9, w8, #1
	str	w9, [x25]
	cbnz	w8, LBB0_17
; %bb.10:
	add	x0, x25, #4
Lloh19:
	adrp	x8, _NFP_FL_QOS_UPDATE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NFP_FL_QOS_UPDATE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_schedule_delayed_work
	mov	w0, #0
	b	LBB0_17
LBB0_11:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_12:
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_13:
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_15:
	mov	x0, x20
	bl	_NL_SET_ERR_MSG_MOD
Lloh30:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_18:
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported offload: qos rate limit offload not supported on higher level port"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"unsupported offload: qos rate limit offload not supported on shared blocks"

	.comm	_NFP_PORT_VF_PORT,8,3           ; @NFP_PORT_VF_PORT
l_.str.2:                               ; @.str.2
	.asciz	"unsupported offload: qos rate limit offload not supported on non-VF ports"

l_.str.3:                               ; @.str.3
	.asciz	"unsupported offload: qos rate limit offload requires a single action"

l_.str.4:                               ; @.str.4
	.asciz	"unsupported offload: qos rate limit offload requires highest priority"

	.comm	_FLOW_ACTION_POLICE,8,3         ; @FLOW_ACTION_POLICE
l_.str.5:                               ; @.str.5
	.asciz	"unsupported offload: qos rate limit offload requires police action"

	.comm	_PSCHED_TICKS_PER_SEC,4,2       ; @PSCHED_TICKS_PER_SEC
	.comm	_NFP_FLOWER_CMSG_TYPE_QOS_MOD,4,2 ; @NFP_FLOWER_CMSG_TYPE_QOS_MOD
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NFP_FL_QOS_UPDATE,4,2          ; @NFP_FL_QOS_UPDATE
	.no_dead_strip	_nfp_flower_install_rate_limiter
.subsections_via_symbols
