	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_port_add_cls_matchall_sample
_mlxsw_sp_port_add_cls_matchall_sample: ## @mlxsw_sp_port_add_cls_matchall_sample
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rdx, %r14
	movq	%rdi, %r15
	movl	8(%rax), %edi
	callq	_rtnl_dereference
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movq	_EEXIST@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	movq	(%r14), %rax
	movq	_MLXSW_REG_MPSC_RATE_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_7
## %bb.6:
	movl	8(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_err
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r15), %rax
	movl	8(%rax), %edi
	movl	16(%r14), %esi
	callq	_rcu_assign_pointer
	movl	12(%r14), %eax
	movq	(%r15), %rcx
	movl	%eax, 16(%rcx)
	movl	8(%r14), %eax
	movl	%eax, 12(%rcx)
	movq	(%r14), %rdx
	movq	%rdx, (%rcx)
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_mlxsw_sp_port_sample_set
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %ebx
	movq	(%r15), %rax
	movl	8(%rax), %edi
	xorl	%esi, %esi
	callq	_RCU_INIT_POINTER
	jmp	LBB0_10
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sample already active\n"

	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_MLXSW_REG_MPSC_RATE_MAX,8,3    ## @MLXSW_REG_MPSC_RATE_MAX
L_.str.1:                               ## @.str.1
	.asciz	"sample rate not supported\n"

	.no_dead_strip	_mlxsw_sp_port_add_cls_matchall_sample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_port_add_cls_matchall_sample
_mlxsw_sp_port_add_cls_matchall_sample: ; @mlxsw_sp_port_add_cls_matchall_sample
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x20, x2
	mov	x19, x0
	ldr	w0, [x8, #8]
	bl	_rtnl_dereference
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
Lloh2:
	adrp	x8, _EEXIST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	ldr	x8, [x20]
Lloh4:
	adrp	x9, _MLXSW_REG_MPSC_RATE_MAX@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MLXSW_REG_MPSC_RATE_MAX@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_8
; %bb.4:
	ldr	w0, [x19, #8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_err
LBB0_5:
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	ldr	w1, [x20, #16]
	bl	_rcu_assign_pointer
	ldr	x8, [x19]
	ldr	d0, [x20, #8]
	stur	d0, [x8, #12]
	ldr	x2, [x20]
	str	x2, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_mlxsw_sp_port_sample_set
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.9:
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	mov	x1, #0
	bl	_RCU_INIT_POINTER
	b	LBB0_7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sample already active\n"

	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_MLXSW_REG_MPSC_RATE_MAX,8,3    ; @MLXSW_REG_MPSC_RATE_MAX
l_.str.1:                               ; @.str.1
	.asciz	"sample rate not supported\n"

	.no_dead_strip	_mlxsw_sp_port_add_cls_matchall_sample
.subsections_via_symbols
