	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_br_ban_rif_pvid_change
_mlxsw_sp_br_ban_rif_pvid_change:       ## @mlxsw_sp_br_ban_rif_pvid_change
	.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	%rdx, %rbx
	movq	%rsi, %r14
	callq	_mlxsw_sp_rif_find_by_dev
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rdi
	callq	_mlxsw_sp_rif_fid
	movq	%rax, %rdi
	callq	_mlxsw_sp_fid_8021q_vid
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdx
	cmpq	%rdx, %rcx
	jg	LBB0_9
## %bb.2:
	movq	_BRIDGE_VLAN_INFO_PVID@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	andl	16(%rbx), %edi
	incq	%rdx
	leaq	L_.str.1(%rip), %rbx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rcx, %rax
	je	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	cmpq	%rcx, %rdx
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testl	%edi, %edi
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rcx, %rax
	je	LBB0_5
	jmp	LBB0_8
LBB0_7:
	movq	%rbx, %rsi
LBB0_8:
	movq	%r14, %rdi
	callq	_netdev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRIDGE_VLAN_INFO_PVID,4,2      ## @BRIDGE_VLAN_INFO_PVID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't change PVID, it's used by router interface\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.1:                               ## @.str.1
	.asciz	"Can't remove PVID, it's used by router interface\n"

	.no_dead_strip	_mlxsw_sp_br_ban_rif_pvid_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_br_ban_rif_pvid_change
_mlxsw_sp_br_ban_rif_pvid_change:       ; @mlxsw_sp_br_ban_rif_pvid_change
	.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
	mov	x20, x2
	mov	x19, x1
	bl	_mlxsw_sp_rif_find_by_dev
	cbz	x0, LBB0_10
; %bb.1:
	bl	_mlxsw_sp_rif_fid
	bl	_mlxsw_sp_fid_8021q_vid
	ldp	x10, x9, [x20]
	cmp	x10, x9
	b.le	LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_10
LBB0_3:
	ldr	w8, [x20, #16]
Lloh0:
	adrp	x11, _BRIDGE_VLAN_INFO_PVID@GOTPAGE
Lloh1:
	ldr	x11, [x11, _BRIDGE_VLAN_INFO_PVID@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	and	w8, w11, w8
	sub	x9, x9, x10
	add	x9, x9, #1
	sub	x11, x0, x10
Lloh3:
	adrp	x10, l_.str.1@PAGE
Lloh4:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	cbz	x11, LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	x11, x11, #1
	sub	x9, x9, #1
	cbz	x9, LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w8, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x11, LBB0_5
	b	LBB0_9
LBB0_8:
	mov	x1, x10
LBB0_9:
	mov	x0, x19
	bl	_netdev_err
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_BRIDGE_VLAN_INFO_PVID,4,2      ; @BRIDGE_VLAN_INFO_PVID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't change PVID, it's used by router interface\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.1:                               ; @.str.1
	.asciz	"Can't remove PVID, it's used by router interface\n"

	.no_dead_strip	_mlxsw_sp_br_ban_rif_pvid_change
.subsections_via_symbols
