	.file	"extr_spectrum_router.c_mlxsw_sp_fib_node_entry_add.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mlxsw_sp_fib_node_entry_add, @function
mlxsw_sp_fib_node_entry_add:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	r12, QWORD PTR [rsi]
	mov	rbp, rsi
	mov	rdi, r12
	call	mlxsw_sp_fib_node_entry_is_first@PLT
	test	eax, eax
	jne	.L6
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, r12
	call	list_is_singular@PLT
	test	eax, eax
	je	.L7
	mov	rsi, rbp
	mov	rdi, r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	mlxsw_sp_fib_entry_update@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR list[rip]
	mov	r12d, DWORD PTR MLXSW_REG_RALUE_OP_WRITE_DELETE[rip]
	mov	rdi, rbp
	call	list_next_entry@PLT
	mov	esi, r12d
	xor	edx, edx
	mov	rdi, rax
	call	mlxsw_sp_fib_entry_offload_refresh@PLT
	mov	rsi, rbp
	mov	rdi, r13
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	mlxsw_sp_fib_entry_update@PLT
	.cfi_endproc
.LFE0:
	.size	mlxsw_sp_fib_node_entry_add, .-mlxsw_sp_fib_node_entry_add
	.comm	list,4,4
	.comm	MLXSW_REG_RALUE_OP_WRITE_DELETE,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_router.c_mlxsw_sp_fib_node_entry_add.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlxsw_sp_fib_node_entry_add, %function
mlxsw_sp_fib_node_entry_add:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r1]
	mov	r6, r0
	mov	r0, r5
	mov	r4, r1
	bl	mlxsw_sp_fib_node_entry_is_first
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r0, r5
	bl	list_is_singular
	subs	r5, r0, #0
	beq	.L6
	mov	r1, r4
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	mlxsw_sp_fib_entry_update
.L6:
	ldr	r2, .L7
	ldr	r3, .L7+4
	ldr	r7, [r2]
	ldr	r1, [r3]
	mov	r0, r4
	bl	list_next_entry
	mov	r1, r7
	mov	r2, r5
	bl	mlxsw_sp_fib_entry_offload_refresh
	mov	r1, r4
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	mlxsw_sp_fib_entry_update
.L8:
	.align	2
.L7:
	.word	MLXSW_REG_RALUE_OP_WRITE_DELETE
	.word	list
	.size	mlxsw_sp_fib_node_entry_add, .-mlxsw_sp_fib_node_entry_add
	.comm	list,4,4
	.comm	MLXSW_REG_RALUE_OP_WRITE_DELETE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
