	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_flower_remove_rate_limiter
_nfp_flower_remove_rate_limiter:        ## @nfp_flower_remove_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, %r13
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	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, %r15
	movq	%rbx, %rdi
	callq	_nfp_repr_get_port_id
	movq	8(%r15), %r12
	cmpl	$0, 4(%r12)
	je	LBB0_4
## %bb.5:
	movl	%eax, %ebx
	movq	(%r15), %rdi
	movq	_NFP_FLOWER_CMSG_TYPE_QOS_DEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$8, %esi
	callq	_nfp_flower_cmsg_alloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%rax, %r13
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	decl	4(%r14)
	jne	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_cancel_delayed_work_sync
LBB0_10:
	movq	%r13, %rdi
	callq	_nfp_flower_cmsg_get_data
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_be32
	movl	%eax, (%r14)
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_nfp_ctrl_tx
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r13, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.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 remove qos entry that does not exist"

	.comm	_NFP_FLOWER_CMSG_TYPE_QOS_DEL,4,2 ## @NFP_FLOWER_CMSG_TYPE_QOS_DEL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_nfp_flower_remove_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_remove_rate_limiter
_nfp_flower_remove_rate_limiter:        ; @nfp_flower_remove_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	x22, x3
	mov	x21, x1
	ldr	x20, [x0]
	mov	x0, x1
	bl	_nfp_netdev_is_nfp_repr
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x21
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x21
	bl	_nfp_repr_get_port_id
	ldr	x23, [x19, #8]
	ldr	w8, [x23, #4]
	cbz	w8, LBB0_7
; %bb.2:
	mov	x21, x0
	ldr	x0, [x19]
Lloh0:
	adrp	x8, _NFP_FLOWER_CMSG_TYPE_QOS_DEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_FLOWER_CMSG_TYPE_QOS_DEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	w1, #8
	bl	_nfp_flower_cmsg_alloc
	cbz	x0, LBB0_11
; %bb.3:
	mov	x22, x0
	mov	x0, x23
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w8, [x20, #4]
	subs	w8, w8, #1
	str	w8, [x20, #4]
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_cancel_delayed_work_sync
LBB0_5:
	mov	x0, x22
	bl	_nfp_flower_cmsg_get_data
	mov	x20, x0
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	x0, x21
	bl	_cpu_to_be32
	str	w0, [x20]
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x22
	bl	_nfp_ctrl_tx
	mov	w0, #0
	b	LBB0_10
LBB0_6:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x22
	bl	_NL_SET_ERR_MSG_MOD
Lloh10:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
LBB0_11:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.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 remove qos entry that does not exist"

	.comm	_NFP_FLOWER_CMSG_TYPE_QOS_DEL,4,2 ; @NFP_FLOWER_CMSG_TYPE_QOS_DEL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_nfp_flower_remove_rate_limiter
.subsections_via_symbols
