	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_nve_fid_enable        ## -- Begin function mlxsw_sp_nve_fid_enable
	.p2align	4, 0x90
_mlxsw_sp_nve_fid_enable:               ## @mlxsw_sp_nve_fid_enable
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	movq	16(%r12), %rax
	movq	(%rdx), %rcx
	movq	16(%rdx), %rsi
	movq	(%rax,%rcx,8), %r14
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	*16(%r14)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	16(%r13), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	*8(%r14)
	cmpq	$0, 8(%r12)
	je	LBB0_5
## %bb.3:
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_NL_SET_ERR_MSG_MOD
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_13
LBB0_5:
	leaq	-48(%rbp), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlxsw_sp_nve_tunnel_init
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_NL_SET_ERR_MSG_MOD
	jmp	LBB0_13
LBB0_7:
	movq	(%r13), %rsi
	movl	8(%r13), %edx
	movq	16(%r13), %rax
	movl	(%rax), %ecx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_mlxsw_sp_fid_vni_set
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_NL_SET_ERR_MSG_MOD
	jmp	LBB0_12
LBB0_9:
	movl	-48(%rbp), %eax
	movl	%eax, (%r12)
	movq	16(%r13), %rdi
	movl	8(%r13), %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	*(%r14)
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_mlxsw_sp_fid_vni_clear
LBB0_12:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlxsw_sp_nve_tunnel_fini
LBB0_13:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%r15d, %r15d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Conflicting NVE tunnels configuration"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to initialize NVE tunnel"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to set VNI on FID"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_nve_fid_enable        ; -- Begin function mlxsw_sp_nve_fid_enable
	.p2align	2
_mlxsw_sp_nve_fid_enable:               ; @mlxsw_sp_nve_fid_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x23, [x0]
	ldr	x8, [x23, #16]
	ldr	x9, [x2]
	ldr	x25, [x8, x9, lsl #3]
	ldr	x8, [x25, #16]
	ldr	x1, [x2, #16]
	mov	x0, x23
	mov	x2, x3
	blr	x8
	cbz	w0, LBB0_4
; %bb.1:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x25, #8]
	ldr	x1, [x22, #16]
	add	x2, sp, #8
	mov	x0, x23
	blr	x8
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_5
; %bb.2:
	add	x0, sp, #8
	mov	x1, x23
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_5
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_NL_SET_ERR_MSG_MOD
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_12
LBB0_5:
	add	x1, sp, #8
	mov	x0, x19
	bl	_mlxsw_sp_nve_tunnel_init
	cbz	w0, LBB0_7
; %bb.6:
	mov	x24, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_NL_SET_ERR_MSG_MOD
	b	LBB0_12
LBB0_7:
	ldr	x1, [x22]
	ldr	w2, [x22, #8]
	ldr	x8, [x22, #16]
	ldr	w3, [x8]
	mov	x0, x21
	bl	_mlxsw_sp_fid_vni_set
	cbz	w0, LBB0_9
; %bb.8:
	mov	x24, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_NL_SET_ERR_MSG_MOD
	b	LBB0_11
LBB0_9:
	ldr	w8, [sp, #8]
	str	w8, [x23]
	ldr	x8, [x25]
	ldr	x0, [x22, #16]
	ldr	w1, [x22, #8]
	mov	x2, x20
	blr	x8
	mov	x24, x0
	cbz	w0, LBB0_12
; %bb.10:
	mov	x0, x21
	bl	_mlxsw_sp_fid_vni_clear
LBB0_11:
	mov	x0, x19
	bl	_mlxsw_sp_nve_tunnel_fini
LBB0_12:
	mov	x0, x24
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Conflicting NVE tunnels configuration"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to initialize NVE tunnel"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to set VNI on FID"

.subsections_via_symbols
