	.file	"extr_spectrum.c_mlxsw_sp_port_vid_learning_set.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mlxsw_sp_port_vid_learning_set
	.type	mlxsw_sp_port_vid_learning_set, @function
mlxsw_sp_port_vid_learning_set:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	r14, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR MLXSW_REG_SPVMLR_LEN[rip]
	call	kmalloc@PLT
	test	rax, rax
	je	.L6
	mov	esi, DWORD PTR [rbx]
	mov	r8d, r13d
	mov	ecx, r12d
	mov	edx, r12d
	mov	rdi, rax
	mov	rbp, rax
	call	mlxsw_reg_spvmlr_pack@PLT
	mov	edi, DWORD PTR spvmlr[rip]
	call	MLXSW_REG@PLT
	mov	edi, DWORD PTR [r14]
	mov	rdx, rbp
	mov	esi, eax
	call	mlxsw_reg_write@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	kfree@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mlxsw_sp_port_vid_learning_set, .-mlxsw_sp_port_vid_learning_set
	.comm	spvmlr,4,4
	.comm	MLXSW_REG_SPVMLR_LEN,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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.c_mlxsw_sp_port_vid_learning_set.c"
	.text
	.align	2
	.global	mlxsw_sp_port_vid_learning_set
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlxsw_sp_port_vid_learning_set, %function
mlxsw_sp_port_vid_learning_set:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	mov	r4, r1
	ldr	r0, .L7
	ldr	r1, .L7+4
	ldr	r0, [r0]
	ldr	r1, [r1]
	sub	sp, sp, #8
	mov	r5, r2
	ldr	r8, [r7, #4]
	bl	kmalloc
	subs	r6, r0, #0
	beq	.L6
	str	r5, [sp]
	mov	r2, r4
	ldr	r1, [r7]
	mov	r3, r4
	bl	mlxsw_reg_spvmlr_pack
	ldr	r3, .L7+8
	ldr	r4, [r8]
	ldr	r0, [r3]
	bl	MLXSW_REG
	mov	r2, r6
	mov	r1, r0
	mov	r0, r4
	bl	mlxsw_reg_write
	mov	r4, r0
	mov	r0, r6
	bl	kfree
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r3, .L7+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	MLXSW_REG_SPVMLR_LEN
	.word	GFP_KERNEL
	.word	spvmlr
	.word	ENOMEM
	.size	mlxsw_sp_port_vid_learning_set, .-mlxsw_sp_port_vid_learning_set
	.comm	spvmlr,4,4
	.comm	MLXSW_REG_SPVMLR_LEN,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
