	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_switchdev_vxlan_vlan_add
_mlxsw_sp_switchdev_vxlan_vlan_add:     ## @mlxsw_sp_switchdev_vxlan_vlan_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, %ebx
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_netdev_priv
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	%ebx, -76(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	setne	%al
	movl	%r15d, -80(%rbp)                ## 4-byte Spill
	testl	%r15d, %r15d
	setne	%r15b
	andb	%al, %r15b
	cmpb	$1, %r15b
	jne	LBB0_3
## %bb.1:
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_mlxsw_sp_bridge_8021q_vxlan_dev_find
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_NL_SET_ERR_MSG_MOD
	jmp	LBB0_10
LBB0_3:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_netif_running
	xorl	%r13d, %r13d
	testl	%eax, %eax
	je	LBB0_17
## %bb.4:
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	callq	_mlxsw_sp_fid_lookup_by_vni
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mlxsw_sp_fid_8021q_vid
	cmpq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	jne	LBB0_12
## %bb.8:
	movzbl	%r15b, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rbx, %rdi
	callq	_mlxsw_sp_fid_put
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_17
LBB0_5:
	testb	%r15b, %r15b
	je	LBB0_17
## %bb.6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlxsw_sp_bridge_8021q_vxlan_join ## TAILCALL
LBB0_12:
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_13
## %bb.14:
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_mlxsw_sp_bridge_vxlan_leave
	movq	%rbx, %rdi
	callq	_mlxsw_sp_fid_put
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_17
## %bb.15:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_mlxsw_sp_bridge_8021q_vxlan_join
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_mlxsw_sp_bridge_8021q_vxlan_join
	movl	%ebx, %r13d
	jmp	LBB0_17
LBB0_11:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_mlxsw_sp_bridge_vxlan_leave
LBB0_13:
	movq	%rbx, %rdi
	callq	_mlxsw_sp_fid_put
LBB0_17:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VLAN already mapped to a different VNI"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mlxsw_sp_switchdev_vxlan_vlan_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_switchdev_vxlan_vlan_add
_mlxsw_sp_switchdev_vxlan_vlan_add:     ; @mlxsw_sp_switchdev_vxlan_vlan_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, x6
	mov	x25, x5
	mov	x23, x4
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x24, x0
	mov	x0, x2
	bl	_netdev_priv
	ldr	w27, [x0]
	cmp	w23, #0
	ccmp	w25, #0, #4, ne
	cset	w26, ne
	b.eq	LBB0_3
; %bb.1:
	ldr	w0, [x21]
	mov	x1, x22
	bl	_mlxsw_sp_bridge_8021q_vxlan_dev_find
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_NL_SET_ERR_MSG_MOD
	b	LBB0_8
LBB0_3:
	mov	x0, x19
	bl	_netif_running
	cbz	w0, LBB0_17
; %bb.4:
	mov	x0, x24
	mov	x1, x27
	bl	_mlxsw_sp_fid_lookup_by_vni
	cbz	x0, LBB0_9
; %bb.5:
	mov	x27, x0
	bl	_mlxsw_sp_fid_8021q_vid
	cmp	x0, x22
	b.ne	LBB0_11
; %bb.6:
	mov	x0, x26
	bl	_WARN_ON
	cbz	x0, LBB0_15
; %bb.7:
	mov	x0, x27
	bl	_mlxsw_sp_fid_put
LBB0_8:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_18
LBB0_9:
	cbz	w26, LBB0_17
; %bb.10:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	mov	x3, x20
	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
	b	_mlxsw_sp_bridge_8021q_vxlan_join
LBB0_11:
	cbz	w25, LBB0_16
; %bb.12:
	mov	x28, x0
	mov	x0, x24
	mov	x1, x19
	bl	_mlxsw_sp_bridge_vxlan_leave
	mov	x0, x27
	bl	_mlxsw_sp_fid_put
	cbz	w23, LBB0_17
; %bb.13:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	mov	x3, x20
	bl	_mlxsw_sp_bridge_8021q_vxlan_join
	mov	x20, x0
	cbz	w0, LBB0_18
; %bb.14:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x28
	mov	x3, #0
	bl	_mlxsw_sp_bridge_8021q_vxlan_join
	b	LBB0_18
LBB0_15:
	mov	x0, x24
	mov	x1, x19
	bl	_mlxsw_sp_bridge_vxlan_leave
LBB0_16:
	mov	x0, x27
	bl	_mlxsw_sp_fid_put
LBB0_17:
	mov	w20, #0
LBB0_18:
	mov	x0, x20
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VLAN already mapped to a different VNI"

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