	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_flower_stats_rate_limiter
_nfp_flower_stats_rate_limiter:         ## @nfp_flower_stats_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	(%rdi), %r12
	movq	%rsi, %rdi
	callq	_nfp_netdev_is_nfp_repr
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	(%rax), %rbx
	cmpl	$0, 40(%rbx)
	je	LBB0_4
## %bb.5:
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	24(%rbx), %rax
	movq	32(%rbx), %rcx
	movq	%rcx, %r15
	subq	16(%rbx), %r15
	movq	%rax, %r13
	subq	8(%rbx), %r13
	movq	%rcx, 16(%rbx)
	movq	%rax, 8(%rbx)
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_flow_stats_update
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r15, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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: cannot find qos entry for stats update"

	.no_dead_strip	_nfp_flower_stats_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_stats_rate_limiter
_nfp_flower_stats_rate_limiter:         ; @nfp_flower_stats_rate_limiter
	.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	x19, x2
	mov	x22, x1
	ldr	x20, [x0]
	mov	x0, x1
	bl	_nfp_netdev_is_nfp_repr
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x22
	bl	_netdev_priv
	ldr	x23, [x0]
	ldr	w8, [x23, #40]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_spin_lock_bh
	ldp	x9, x8, [x23, #24]
	ldp	x11, x10, [x23, #8]
	sub	x21, x8, x10
	sub	x22, x9, x11
	stp	x9, x8, [x23, #8]
	mov	x0, x20
	bl	_spin_unlock_bh
	ldr	w3, [x23]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_flow_stats_update
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x21
	bl	_NL_SET_ERR_MSG_MOD
Lloh4:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.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: cannot find qos entry for stats update"

	.no_dead_strip	_nfp_flower_stats_rate_limiter
.subsections_via_symbols
