	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_port_vlans_add
_mlxsw_sp_port_vlans_add:               ## @mlxsw_sp_port_vlans_add
	.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, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	(%rsi), %r15d
	movq	_BRIDGE_VLAN_INFO_UNTAGGED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	%r15d, %r12d
	movq	_BRIDGE_VLAN_INFO_PVID@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rsi), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_netif_is_bridge_master
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	_BRIDGE_VLAN_INFO_BRENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.2:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_br_vlan_enabled
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_switchdev_trans_ph_prepare
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_mlxsw_sp_br_ban_rif_pvid_change
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_16
LBB0_5:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_16
LBB0_7:
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_switchdev_trans_ph_commit
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_8
LBB0_16:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_mlxsw_sp_bridge_port_find
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_10:
	movq	(%r12), %rax
	cmpl	$0, (%rax)
	je	LBB0_16
## %bb.11:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	movq	8(%rbx), %r12
	cmpq	16(%rbx), %r12
	jg	LBB0_16
## %bb.12:
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	callq	_mlxsw_sp_bridge_port_vlan_add
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_14 Depth=1
	leaq	1(%r12), %rax
	cmpq	16(%rbx), %r12
	movq	%rax, %r12
	jl	LBB0_14
	jmp	LBB0_16
LBB0_15:
	movl	%eax, %r13d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_BRIDGE_VLAN_INFO_UNTAGGED,4,2  ## @BRIDGE_VLAN_INFO_UNTAGGED
	.comm	_BRIDGE_VLAN_INFO_PVID,4,2      ## @BRIDGE_VLAN_INFO_PVID
	.comm	_BRIDGE_VLAN_INFO_BRENTRY,4,2   ## @BRIDGE_VLAN_INFO_BRENTRY
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mlxsw_sp_port_vlans_add
.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_vlans_add
_mlxsw_sp_port_vlans_add:               ; @mlxsw_sp_port_vlans_add
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x24, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w25, [x1]
Lloh0:
	adrp	x8, _BRIDGE_VLAN_INFO_UNTAGGED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRIDGE_VLAN_INFO_UNTAGGED@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
Lloh3:
	adrp	x8, _BRIDGE_VLAN_INFO_PVID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BRIDGE_VLAN_INFO_PVID@GOTPAGEOFF]
Lloh5:
	ldr	w27, [x8]
	ldr	x23, [x0]
	ldr	x22, [x1, #24]
	mov	x0, x22
	bl	_netif_is_bridge_master
	cbz	x0, LBB0_7
; %bb.1:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _BRIDGE_VLAN_INFO_BRENTRY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BRIDGE_VLAN_INFO_BRENTRY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	mov	x0, x22
	bl	_br_vlan_enabled
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x24
	bl	_switchdev_trans_ph_prepare
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	bl	_mlxsw_sp_br_ban_rif_pvid_change
	cbnz	w0, LBB0_9
LBB0_5:
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_7:
	mov	x0, x24
	bl	_switchdev_trans_ph_commit
	cbz	x0, LBB0_10
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w0, [x23]
	mov	x1, x22
	bl	_mlxsw_sp_bridge_port_find
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_12
; %bb.11:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_12:
	ldr	x8, [x22]
	ldr	w8, [x8]
	cbz	w8, LBB0_8
; %bb.13:
	ldp	x23, x8, [x19, #8]
	cmp	x23, x8
	b.gt	LBB0_8
; %bb.14:
	and	w24, w26, w25
	and	w25, w27, w25
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	mov	x4, x25
	mov	x5, x20
	bl	_mlxsw_sp_bridge_port_vlan_add
	cbnz	w0, LBB0_9
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x8, x23, #1
	ldr	x9, [x19, #16]
	cmp	x23, x9
	mov	x23, x8
	b.lt	LBB0_15
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BRIDGE_VLAN_INFO_UNTAGGED,4,2  ; @BRIDGE_VLAN_INFO_UNTAGGED
	.comm	_BRIDGE_VLAN_INFO_PVID,4,2      ; @BRIDGE_VLAN_INFO_PVID
	.comm	_BRIDGE_VLAN_INFO_BRENTRY,4,2   ; @BRIDGE_VLAN_INFO_BRENTRY
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mlxsw_sp_port_vlans_add
.subsections_via_symbols
