	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_bridge_8021q_vxlan_join
_mlxsw_sp_bridge_8021q_vxlan_join:      ## @mlxsw_sp_bridge_8021q_vxlan_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %ebx
	movq	%rsi, %r12
	movl	%edx, -44(%rbp)
	movl	(%rdi), %edi
	callq	_mlxsw_sp_lower_get
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_netdev_priv
	movq	%r12, -64(%rbp)
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_MLXSW_SP_NVE_TYPE_VXLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	testl	%ebx, %ebx
	jne	LBB0_3
## %bb.1:
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_mlxsw_sp_vxlan_mapped_vid
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	movl	-44(%rbp), %ebx
	testl	%ebx, %ebx
	je	LBB0_10
LBB0_3:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_mlxsw_sp_fid_8021q_lookup
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_mlxsw_sp_fid_vni_is_set
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_9
LBB0_4:
	xorl	%r13d, %r13d
	jmp	LBB0_10
LBB0_7:
	leaq	-64(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rcx
	callq	_mlxsw_sp_nve_fid_enable
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	xorl	%r13d, %r13d
LBB0_9:
	movq	%r12, %rdi
	callq	_mlxsw_sp_fid_put
LBB0_10:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_SP_NVE_TYPE_VXLAN,4,2    ## @MLXSW_SP_NVE_TYPE_VXLAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VNI is already set on FID"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mlxsw_sp_bridge_8021q_vxlan_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_bridge_8021q_vxlan_join
_mlxsw_sp_bridge_8021q_vxlan_join:      ; @mlxsw_sp_bridge_8021q_vxlan_join
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	str	w2, [sp, #28]
	ldr	w0, [x0]
	bl	_mlxsw_sp_lower_get
	mov	x20, x0
	mov	x0, x22
	bl	_netdev_priv
	str	x22, [sp, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MLXSW_SP_NVE_TYPE_VXLAN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLXSW_SP_NVE_TYPE_VXLAN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
	cbnz	w21, LBB0_3
; %bb.1:
	add	x1, sp, #28
	mov	x0, x22
	bl	_mlxsw_sp_vxlan_mapped_vid
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.2:
	ldr	w21, [sp, #28]
	cbz	w21, LBB0_9
LBB0_3:
	mov	x0, x20
	mov	x1, x21
	bl	_mlxsw_sp_fid_8021q_lookup
	cbz	x0, LBB0_6
; %bb.4:
	mov	x21, x0
	bl	_mlxsw_sp_fid_vni_is_set
	cbz	x0, LBB0_7
; %bb.5:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_NL_SET_ERR_MSG_MOD
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_6:
	mov	w22, #0
	b	LBB0_9
LBB0_7:
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	bl	_mlxsw_sp_nve_fid_enable
	mov	x22, x0
LBB0_8:
	mov	x0, x21
	bl	_mlxsw_sp_fid_put
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_SP_NVE_TYPE_VXLAN,4,2    ; @MLXSW_SP_NVE_TYPE_VXLAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VNI is already set on FID"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mlxsw_sp_bridge_8021q_vxlan_join
.subsections_via_symbols
