	.file	"extr_spectrum_nve.c_mlxsw_sp_nve_fid_disable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mlxsw_sp_nve_fid_disable
	.type	mlxsw_sp_nve_fid_disable, @function
mlxsw_sp_nve_fid_disable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	mov	rdi, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	mlxsw_sp_fid_index@PLT
	mov	rsi, rbp
	mov	rdi, r12
	mov	r13d, eax
	call	mlxsw_sp_nve_flood_ip_flush@PLT
	mov	esi, r13d
	mov	rdi, r12
	call	mlxsw_sp_nve_fdb_flush_by_fid@PLT
	mov	rdi, rbp
	mov	rsi, rsp
	call	mlxsw_sp_fid_nve_ifindex@PLT
	mov	edi, 1
	test	rax, rax
	je	.L14
.L2:
	call	WARN_ON@PLT
	test	rax, rax
	je	.L15
.L4:
	mov	rdi, rbp
	call	mlxsw_sp_fid_vni_clear@PLT
	mov	rdi, r12
	call	mlxsw_sp_nve_tunnel_fini@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	esi, DWORD PTR [rsp]
	lea	rdi, init_net[rip]
	call	dev_get_by_index@PLT
	mov	r13, rax
	test	rax, rax
	je	.L4
	mov	ecx, DWORD PTR 4[rsp]
	mov	rdx, rax
	mov	rsi, rbp
	mov	rdi, r12
	call	mlxsw_sp_nve_fdb_clear_offload@PLT
	mov	rdi, rbp
	mov	rsi, r13
	call	mlxsw_sp_fid_fdb_clear_offload@PLT
	mov	rdi, r13
	call	dev_put@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, rbp
	lea	rsi, 4[rsp]
	call	mlxsw_sp_fid_vni@PLT
	xor	edi, edi
	test	rax, rax
	setne	dil
	jmp	.L2
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mlxsw_sp_nve_fid_disable, .-mlxsw_sp_nve_fid_disable
	.comm	init_net,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_spectrum_nve.c_mlxsw_sp_nve_fid_disable.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mlxsw_sp_nve_fid_disable
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlxsw_sp_nve_fid_disable, %function
mlxsw_sp_nve_fid_disable:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L16
	sub	sp, sp, #16
	mov	r5, r0
	mov	r0, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r4, r1
	bl	mlxsw_sp_fid_index
	mov	r6, r0
	mov	r1, r4
	mov	r0, r5
	bl	mlxsw_sp_nve_flood_ip_flush
	mov	r1, r6
	mov	r0, r5
	bl	mlxsw_sp_nve_fdb_flush_by_fid
	mov	r0, r4
	add	r1, sp, #4
	bl	mlxsw_sp_fid_nve_ifindex
	cmp	r0, #0
	movne	r0, #1
	beq	.L13
.L2:
	bl	WARN_ON
	cmp	r0, #0
	beq	.L14
.L4:
	mov	r0, r4
	bl	mlxsw_sp_fid_vni_clear
	mov	r0, r5
	bl	mlxsw_sp_nve_tunnel_fini
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L14:
	ldr	r1, [sp, #4]
	ldr	r0, .L16+4
	bl	dev_get_by_index
	subs	r6, r0, #0
	beq	.L4
	mov	r2, r6
	mov	r1, r4
	ldr	r3, [sp, #8]
	mov	r0, r5
	bl	mlxsw_sp_nve_fdb_clear_offload
	mov	r1, r6
	mov	r0, r4
	bl	mlxsw_sp_fid_fdb_clear_offload
	mov	r0, r6
	bl	dev_put
	b	.L4
.L13:
	mov	r0, r4
	add	r1, sp, #8
	bl	mlxsw_sp_fid_vni
	subs	r0, r0, #0
	movne	r0, #1
	b	.L2
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	init_net
	.size	mlxsw_sp_nve_fid_disable, .-mlxsw_sp_nve_fid_disable
	.comm	init_net,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
