	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_port_vlan_bridge_leave ## -- Begin function mlxsw_sp_port_vlan_bridge_leave
	.p2align	4, 0x90
_mlxsw_sp_port_vlan_bridge_leave:       ## @mlxsw_sp_port_vlan_bridge_leave
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r12
	movq	16(%rdi), %r15
	movl	12(%rdi), %r14d
	movq	%r15, %rdi
	callq	_mlxsw_sp_fid_type
	movq	_MLXSW_SP_FID_TYPE_8021Q@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_mlxsw_sp_fid_type
	movq	_MLXSW_SP_FID_TYPE_8021D@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
LBB0_2:
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:
	movq	(%rbx), %r13
	movq	%r13, %rdi
	callq	_list_is_singular
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_mlxsw_sp_bridge_vlan_find
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_list_is_singular
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	8(%rbx), %rdi
	callq	_list_del
	movq	%r12, %rdi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	callq	_mlxsw_sp_bridge_vlan_put
	movq	_BR_STATE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_mlxsw_sp_port_vid_stp_set
	movq	%r12, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_mlxsw_sp_port_vid_learning_set
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
	movq	%r15, %rdi
	callq	_mlxsw_sp_fid_index
	movq	%r12, %rdi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_mlxsw_sp_bridge_port_fdb_flush
LBB0_5:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_mlxsw_sp_bridge_port_mdb_flush
LBB0_7:
	movq	%rbx, %rdi
	callq	_mlxsw_sp_port_vlan_fid_leave
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_mlxsw_sp_bridge_port_put
	movq	$0, (%rbx)
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_SP_FID_TYPE_8021Q,8,3    ## @MLXSW_SP_FID_TYPE_8021Q
	.comm	_MLXSW_SP_FID_TYPE_8021D,8,3    ## @MLXSW_SP_FID_TYPE_8021D
	.comm	_BR_STATE_DISABLED,4,2          ## @BR_STATE_DISABLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_port_vlan_bridge_leave ; -- Begin function mlxsw_sp_port_vlan_bridge_leave
	.p2align	2
_mlxsw_sp_port_vlan_bridge_leave:       ; @mlxsw_sp_port_vlan_bridge_leave
	.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	x19, x0
	ldp	x21, x20, [x0, #16]
	ldr	w22, [x0, #12]
	mov	x0, x21
	bl	_mlxsw_sp_fid_type
Lloh0:
	adrp	x8, _MLXSW_SP_FID_TYPE_8021Q@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLXSW_SP_FID_TYPE_8021Q@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	bl	_WARN_ON
	cbnz	x0, LBB0_8
	b	LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_mlxsw_sp_fid_type
Lloh3:
	adrp	x8, _MLXSW_SP_FID_TYPE_8021D@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLXSW_SP_FID_TYPE_8021D@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, ne
	bl	_WARN_ON
	cbnz	x0, LBB0_8
LBB0_3:
	mov	x25, x19
	ldr	x23, [x25], #8
	mov	x0, x23
	bl	_list_is_singular
	mov	x24, x0
	mov	x0, x23
	mov	x1, x22
	bl	_mlxsw_sp_bridge_vlan_find
	mov	x26, x0
	bl	_list_is_singular
	mov	x27, x0
	mov	x0, x25
	bl	_list_del
	mov	x0, x26
	bl	_mlxsw_sp_bridge_vlan_put
Lloh6:
	adrp	x8, _BR_STATE_DISABLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BR_STATE_DISABLED@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x22
	bl	_mlxsw_sp_port_vid_stp_set
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	bl	_mlxsw_sp_port_vid_learning_set
	cbz	w27, LBB0_5
; %bb.4:
	ldr	x22, [x20]
	mov	x0, x21
	bl	_mlxsw_sp_fid_index
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_mlxsw_sp_bridge_port_fdb_flush
LBB0_5:
	cbz	w24, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x23
	bl	_mlxsw_sp_bridge_port_mdb_flush
LBB0_7:
	mov	x0, x19
	bl	_mlxsw_sp_port_vlan_fid_leave
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	x1, x23
	bl	_mlxsw_sp_bridge_port_put
	str	xzr, [x19]
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_SP_FID_TYPE_8021Q,8,3    ; @MLXSW_SP_FID_TYPE_8021Q
	.comm	_MLXSW_SP_FID_TYPE_8021D,8,3    ; @MLXSW_SP_FID_TYPE_8021D
	.comm	_BR_STATE_DISABLED,4,2          ; @BR_STATE_DISABLED
.subsections_via_symbols
