	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_port_ovs_join
_mlxsw_sp_port_ovs_join:                ## @mlxsw_sp_port_ovs_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
	movq	%rdi, %r14
	movl	$1, %esi
	callq	_mlxsw_sp_port_vp_mode_set
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_mlxsw_sp_port_stp_set
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	movq	_VLAN_N_VID@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	addl	$-2, %edx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_mlxsw_sp_port_vlan_set
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_3
LBB0_8:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_mlxsw_sp_port_stp_set
LBB0_9:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_mlxsw_sp_port_vp_mode_set
	movl	%r15d, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpl	$2, (%r12)
	jl	LBB0_10
## %bb.4:
	movl	$2, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%r13), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_mlxsw_sp_port_vid_learning_set
	testl	%eax, %eax
	jne	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	leal	1(%r13), %eax
	xorl	%ebx, %ebx
	cmpl	(%r12), %r13d
	movl	%eax, %r13d
	jl	LBB0_5
	jmp	LBB0_10
LBB0_6:
	movl	%eax, %r15d
	cmpl	$2, %ebx
	jb	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%r13), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_mlxsw_sp_port_vid_learning_set
	decl	%r13d
	cmpl	$2, %r13d
	jg	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_VLAN_N_VID,4,2                 ## @VLAN_N_VID
	.no_dead_strip	_mlxsw_sp_port_ovs_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_ovs_join
_mlxsw_sp_port_ovs_join:                ; @mlxsw_sp_port_ovs_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
	mov	x19, x0
	mov	w1, #1
	bl	_mlxsw_sp_port_vp_mode_set
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_mlxsw_sp_port_stp_set
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x22, _VLAN_N_VID@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VLAN_N_VID@GOTPAGEOFF]
	ldr	w8, [x22]
	sub	w2, w8, #2
	mov	x0, x19
	mov	w1, #1
	mov	w3, #1
	mov	w4, #0
	bl	_mlxsw_sp_port_vlan_set
	mov	x20, x0
	cbz	w0, LBB0_6
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	bl	_mlxsw_sp_port_stp_set
LBB0_4:
	mov	x0, x19
	mov	w1, #0
	bl	_mlxsw_sp_port_vp_mode_set
LBB0_5:
	mov	x0, x20
	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_6:
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_10
; %bb.7:
	mov	w23, #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	w21, w23, #1
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_mlxsw_sp_port_vid_learning_set
	mov	x20, x0
	cbnz	w0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x22]
	add	w9, w23, #1
	cmp	w23, w8
	mov	x23, x9
	b.lt	LBB0_8
	b	LBB0_5
LBB0_10:
	mov	w20, #0
	b	LBB0_5
LBB0_11:
	cmp	w21, #2
	b.lo	LBB0_3
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	sub	w1, w23, #2
	mov	x0, x19
	mov	w2, #1
	bl	_mlxsw_sp_port_vid_learning_set
	sub	w23, w23, #1
	cmp	w23, #2
	b.gt	LBB0_12
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VLAN_N_VID,4,2                 ; @VLAN_N_VID
	.no_dead_strip	_mlxsw_sp_port_ovs_join
.subsections_via_symbols
