	.file	"extr_spectrum_router.c_mlxsw_sp_fib4_entry_offload_set.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mlxsw_sp_fib4_entry_offload_set, @function
mlxsw_sp_fib4_entry_offload_set:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR [rdi]
	cmp	rax, QWORD PTR MLXSW_SP_FIB_ENTRY_TYPE_LOCAL[rip]
	mov	rdx, QWORD PTR 8[rdi]
	je	.L2
	cmp	rax, QWORD PTR MLXSW_SP_FIB_ENTRY_TYPE_BLACKHOLE[rip]
	je	.L2
	cmp	rax, QWORD PTR MLXSW_SP_FIB_ENTRY_TYPE_IPIP_DECAP[rip]
	je	.L2
	cmp	rax, QWORD PTR MLXSW_SP_FIB_ENTRY_TYPE_NVE_DECAP[rip]
	je	.L2
	mov	eax, DWORD PTR [rdx]
	test	eax, eax
	jle	.L11
	mov	rcx, QWORD PTR 8[rdx]
	lea	r8d, -1[rax]
	sal	r8, 4
	lea	rdx, 16[rcx]
	add	r8, rdx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L12:
	or	eax, edi
	mov	rcx, rdx
	mov	DWORD PTR [rsi], eax
	cmp	r8, rdx
	je	.L1
.L13:
	add	rdx, 16
.L7:
	mov	rsi, QWORD PTR [rcx]
	cmp	QWORD PTR 8[rcx], 0
	mov	eax, DWORD PTR RTNH_F_OFFLOAD[rip]
	mov	edi, DWORD PTR [rsi]
	jne	.L12
	not	eax
	mov	rcx, rdx
	and	eax, edi
	mov	DWORD PTR [rsi], eax
	cmp	r8, rdx
	jne	.L13
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR 8[rdx]
	mov	edx, DWORD PTR RTNH_F_OFFLOAD[rip]
	mov	rax, QWORD PTR [rax]
	or	DWORD PTR [rax], edx
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	ret
	.cfi_endproc
.LFE0:
	.size	mlxsw_sp_fib4_entry_offload_set, .-mlxsw_sp_fib4_entry_offload_set
	.comm	RTNH_F_OFFLOAD,4,4
	.comm	MLXSW_SP_FIB_ENTRY_TYPE_NVE_DECAP,8,8
	.comm	MLXSW_SP_FIB_ENTRY_TYPE_LOCAL,8,8
	.comm	MLXSW_SP_FIB_ENTRY_TYPE_IPIP_DECAP,8,8
	.comm	MLXSW_SP_FIB_ENTRY_TYPE_BLACKHOLE,8,8
	.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_fib4_entry_offload_set.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlxsw_sp_fib4_entry_offload_set, %function
mlxsw_sp_fib4_entry_offload_set:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L15
	ldr	r3, [r0]
	ldr	r1, [r2]
	ldr	r2, [r0, #4]
	cmp	r3, r1
	beq	.L2
	ldr	r1, .L15+4
	ldr	r1, [r1]
	cmp	r3, r1
	beq	.L2
	ldr	r1, .L15+8
	ldr	r1, [r1]
	cmp	r3, r1
	beq	.L2
	ldr	r1, .L15+12
	ldr	r1, [r1]
	cmp	r3, r1
	beq	.L2
	ldr	ip, [r2]
	cmp	ip, #0
	bxle	lr
	ldr	r3, [r2, #4]
	str	lr, [sp, #-4]!
	ldr	lr, .L15+16
	add	ip, r3, ip, lsl #3
.L7:
	ldm	r3, {r1, r2}
	ldr	r0, [lr]
	cmp	r2, #0
	ldr	r2, [r1]
	add	r3, r3, #8
	orrne	r2, r2, r0
	biceq	r2, r2, r0
	cmp	r3, ip
	str	r2, [r1]
	bne	.L7
	ldr	pc, [sp], #4
.L2:
	ldr	r2, [r2, #4]
	ldr	r3, .L15+16
	ldr	r2, [r2]
	ldr	r1, [r3]
	ldr	r3, [r2]
	orr	r3, r3, r1
	str	r3, [r2]
	bx	lr
.L16:
	.align	2
.L15:
	.word	MLXSW_SP_FIB_ENTRY_TYPE_LOCAL
	.word	MLXSW_SP_FIB_ENTRY_TYPE_BLACKHOLE
	.word	MLXSW_SP_FIB_ENTRY_TYPE_IPIP_DECAP
	.word	MLXSW_SP_FIB_ENTRY_TYPE_NVE_DECAP
	.word	RTNH_F_OFFLOAD
	.size	mlxsw_sp_fib4_entry_offload_set, .-mlxsw_sp_fib4_entry_offload_set
	.comm	RTNH_F_OFFLOAD,4,4
	.comm	MLXSW_SP_FIB_ENTRY_TYPE_NVE_DECAP,4,4
	.comm	MLXSW_SP_FIB_ENTRY_TYPE_LOCAL,4,4
	.comm	MLXSW_SP_FIB_ENTRY_TYPE_IPIP_DECAP,4,4
	.comm	MLXSW_SP_FIB_ENTRY_TYPE_BLACKHOLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
