	.file	"extr_spectrum_nve.c_mlxsw_sp_nve_mc_record_refresh.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mlxsw_sp_nve_mc_record_refresh, @function
mlxsw_sp_nve_mc_record_refresh:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15, rdi
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rsi, QWORD PTR 48[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 16[rdi]
	mov	r12d, DWORD PTR [rax]
	mov	rax, QWORD PTR 40[rdi]
	mov	rdi, rsp
	mov	QWORD PTR -72[rbp], rax
	movsx	rax, DWORD PTR MLXSW_REG_TNUMT_LEN[rip]
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rdi, rax
	and	rdx, -16
	mov	rax, rdi
	cmp	rsp, rax
	je	.L3
.L20:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L20
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L21
.L4:
	lea	rdi, 36[r15]
	mov	r14, rsp
	call	list_is_last@PLT
	xor	r8d, r8d
	xor	r9d, r9d
	test	eax, eax
	jne	.L5
	mov	esi, DWORD PTR list[rip]
	mov	rdi, r15
	call	list_next_entry@PLT
	mov	r8d, 1
	mov	r9d, DWORD PTR 32[rax]
.L5:
	mov	eax, DWORD PTR [r15]
	sub	rsp, 8
	mov	ecx, DWORD PTR 32[r15]
	mov	esi, r12d
	mov	edx, DWORD PTR MLXSW_REG_TNUMT_TUNNEL_PORT_NVE[rip]
	mov	rdi, r14
	push	rax
	call	mlxsw_reg_tnumt_pack@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 8[r15]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	ecx, DWORD PTR [rax+rdx*4]
	pop	rdx
	pop	rsi
	test	ecx, ecx
	je	.L6
	lea	eax, -1[rcx]
	xor	ebx, ebx
	xor	ecx, ecx
	lea	r13, 4[0+rax*4]
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rsi, QWORD PTR 24[r15]
	add	rsi, rbx
	mov	eax, DWORD PTR [rsi]
	test	eax, eax
	je	.L7
	mov	rax, QWORD PTR 16[r15]
	lea	r12d, 1[rcx]
	mov	rdx, r14
	mov	rdi, r15
	call	[QWORD PTR 8[rax]]
	mov	ecx, r12d
.L7:
	add	rbx, 4
	cmp	r13, rbx
	jne	.L8
.L6:
	xor	edi, edi
	cmp	DWORD PTR [r15], ecx
	setne	dil
	call	WARN_ON@PLT
	mov	edi, DWORD PTR tnumt[rip]
	call	MLXSW_REG@PLT
	mov	rdx, r14
	mov	esi, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	edi, DWORD PTR [rax]
	call	mlxsw_reg_write@PLT
	mov	rdx, QWORD PTR -56[rbp]
	xor	rdx, QWORD PTR fs:40
	jne	.L22
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mlxsw_sp_nve_mc_record_refresh, .-mlxsw_sp_nve_mc_record_refresh
	.comm	tnumt,4,4
	.comm	list,4,4
	.comm	MLXSW_REG_TNUMT_TUNNEL_PORT_NVE,4,4
	.comm	MLXSW_REG_TNUMT_LEN,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_mc_record_refresh.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlxsw_sp_nve_mc_record_refresh, %function
mlxsw_sp_nve_mc_record_refresh:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #28
	mov	r5, r0
	ldr	r3, .L19
	ldr	r2, [r0, #8]
	ldr	r3, [r3]
	ldr	r1, [r0, #28]
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L19+4
	add	r0, r0, #20
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	ldr	r4, [r2]
	ldr	r8, [r5, #24]
	bl	list_is_last
	cmp	r0, #0
	movne	r3, #0
	add	r7, sp, #16
	movne	r1, r3
	beq	.L17
.L2:
	ldr	r0, [r5]
	ldr	r2, .L19+8
	str	r1, [sp, #4]
	str	r3, [sp]
	ldr	r2, [r2]
	str	r0, [sp, #8]
	ldr	r3, [r5, #16]
	mov	r1, r4
	mov	r0, r7
	bl	mlxsw_reg_tnumt_pack
	ldr	r3, [r8, #4]
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L3
	mov	r6, r3
	mov	r3, #0
	mov	r4, r3
.L5:
	ldr	r1, [r5, #12]
	ldr	r2, [r1, r4, lsl #2]
	add	r1, r1, r4, lsl #2
	cmp	r2, #0
	beq	.L4
	ldr	r2, [r5, #8]
	add	r9, r3, #1
	ldr	r10, [r2, #4]
	mov	r0, r5
	mov	r2, r7
	blx	r10
	mov	r3, r9
.L4:
	add	r4, r4, #1
	cmp	r4, r6
	bne	.L5
.L3:
	ldr	r0, [r5]
	subs	r0, r0, r3
	movne	r0, #1
	bl	WARN_ON
	ldr	r3, .L19+12
	ldr	r4, [r8]
	ldr	r0, [r3]
	bl	MLXSW_REG
	mov	r2, r7
	mov	r1, r0
	mov	r0, r4
	bl	mlxsw_reg_write
	ldr	r3, .L19+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	ldr	r3, .L19+16
	mov	r0, r5
	ldr	r1, [r3]
	bl	list_next_entry
	mov	r3, #1
	ldr	r1, [r0, #16]
	b	.L2
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	MLXSW_REG_TNUMT_LEN
	.word	.LC0
	.word	MLXSW_REG_TNUMT_TUNNEL_PORT_NVE
	.word	tnumt
	.word	list
	.size	mlxsw_sp_nve_mc_record_refresh, .-mlxsw_sp_nve_mc_record_refresh
	.comm	tnumt,4,4
	.comm	list,4,4
	.comm	MLXSW_REG_TNUMT_TUNNEL_PORT_NVE,4,4
	.comm	MLXSW_REG_TNUMT_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
