	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_port_vlan_bridge_join
_mlxsw_sp_port_vlan_bridge_join:        ## @mlxsw_sp_port_vlan_bridge_join
	.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
	xorl	%ebx, %ebx
	cmpq	$0, (%rdi)
	jne	LBB0_8
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	16(%rdi), %r14
	movl	12(%rdi), %r12d
	callq	_mlxsw_sp_port_vlan_fid_join
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movq	_BR_LEARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	(%r15), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_mlxsw_sp_port_vid_learning_set
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movl	8(%r15), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_mlxsw_sp_port_vid_stp_set
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
LBB0_6:
	movq	%r14, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_mlxsw_sp_port_vid_learning_set
LBB0_7:
	movq	%r13, %rdi
	callq	_mlxsw_sp_port_vlan_fid_leave
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_mlxsw_sp_bridge_vlan_get
	testq	%rax, %rax
	je	LBB0_5
## %bb.9:
	leaq	8(%r13), %rdi
	movq	%rax, %rsi
	callq	_list_add
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	4(%r15), %esi
	callq	_mlxsw_sp_bridge_port_get
	movq	%r15, (%r13)
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_BR_STATE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_mlxsw_sp_port_vid_stp_set
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_BR_LEARNING,4,2                ## @BR_LEARNING
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BR_STATE_DISABLED,4,2          ## @BR_STATE_DISABLED
	.no_dead_strip	_mlxsw_sp_port_vlan_bridge_join
.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_vlan_bridge_join
_mlxsw_sp_port_vlan_bridge_join:        ; @mlxsw_sp_port_vlan_bridge_join
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w23, #0
	b	LBB0_7
LBB0_2:
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	w22, [x0, #12]
	bl	_mlxsw_sp_port_vlan_fid_join
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.3:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _BR_LEARNING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BR_LEARNING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w2, w9, w8
	mov	x0, x20
	mov	x1, x22
	bl	_mlxsw_sp_port_vid_learning_set
	mov	x23, x0
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	w2, [x21, #8]
	mov	x0, x20
	mov	x1, x22
	bl	_mlxsw_sp_port_vid_stp_set
	mov	x23, x0
	cbz	w0, LBB0_8
LBB0_5:
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	bl	_mlxsw_sp_port_vid_learning_set
LBB0_6:
	mov	x0, x19
	bl	_mlxsw_sp_port_vlan_fid_leave
LBB0_7:
	mov	x0, x23
	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_8:
	mov	x0, x21
	mov	x1, x22
	bl	_mlxsw_sp_bridge_vlan_get
	cbz	x0, LBB0_10
; %bb.9:
	mov	x1, x0
	add	x0, x19, #8
	bl	_list_add
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	w1, [x21, #4]
	bl	_mlxsw_sp_bridge_port_get
	mov	w23, #0
	str	x21, [x19]
	b	LBB0_7
LBB0_10:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w23, w8
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
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BR_LEARNING,4,2                ; @BR_LEARNING
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BR_STATE_DISABLED,4,2          ; @BR_STATE_DISABLED
	.no_dead_strip	_mlxsw_sp_port_vlan_bridge_join
.subsections_via_symbols
