	.file	"extr_spectrum.c_mlxsw_sp_feature_loopback.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mlxsw_sp_feature_loopback, @function
mlxsw_sp_feature_loopback:
.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
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13d, esi
	push	r12
	.cfi_offset 12, -48
	mov	r12, rdi
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	call	netdev_priv@PLT
	mov	rcx, rsp
	mov	r14, rax
	movsx	rax, DWORD PTR MLXSW_REG_PPLR_LEN[rip]
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L19:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L19
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L20
.L4:
	mov	rdi, r12
	mov	r15, rsp
	call	netif_running@PLT
	test	rax, rax
	je	.L5
	xor	esi, esi
	mov	rdi, r14
	call	mlxsw_sp_port_admin_status_set@PLT
.L5:
	mov	esi, DWORD PTR 8[r14]
	mov	edx, r13d
	mov	rdi, r15
	call	mlxsw_reg_pplr_pack@PLT
	mov	edi, DWORD PTR pplr[rip]
	call	MLXSW_REG@PLT
	mov	rdx, r15
	mov	esi, eax
	mov	rax, QWORD PTR [r14]
	mov	edi, DWORD PTR [rax]
	call	mlxsw_reg_write@PLT
	mov	rdi, r12
	mov	r13d, eax
	call	netif_running@PLT
	test	rax, rax
	jne	.L21
.L1:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	lea	rsp, -32[rbp]
	mov	eax, r13d
	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
	mov	esi, 1
	mov	rdi, r14
	call	mlxsw_sp_port_admin_status_set@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mlxsw_sp_feature_loopback, .-mlxsw_sp_feature_loopback
	.comm	pplr,4,4
	.comm	MLXSW_REG_PPLR_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.c_mlxsw_sp_feature_loopback.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_feature_loopback, %function
mlxsw_sp_feature_loopback:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #8
	ldr	r3, .L16
	mov	r5, r0
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	bl	netdev_priv
	ldr	r3, .L16+4
	mov	r4, r0
	ldr	r3, [r3]
	mov	r0, r5
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	bl	netif_running
	cmp	r0, #0
	mov	r7, sp
	bne	.L13
.L2:
	mov	r2, r6
	ldr	r1, [r4, #4]
	mov	r0, r7
	bl	mlxsw_reg_pplr_pack
	ldr	r3, .L16+8
	ldr	r2, [r4]
	ldr	r0, [r3]
	ldr	r6, [r2]
	bl	MLXSW_REG
	mov	r2, r7
	mov	r1, r0
	mov	r0, r6
	bl	mlxsw_reg_write
	mov	r3, r0
	mov	r0, r5
	mov	r5, r3
	bl	netif_running
	cmp	r0, #0
	bne	.L14
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r5
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L13:
	mov	r1, #0
	mov	r0, r4
	bl	mlxsw_sp_port_admin_status_set
	b	.L2
.L14:
	mov	r0, r4
	mov	r1, #1
	bl	mlxsw_sp_port_admin_status_set
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	MLXSW_REG_PPLR_LEN
	.word	pplr
	.size	mlxsw_sp_feature_loopback, .-mlxsw_sp_feature_loopback
	.comm	pplr,4,4
	.comm	MLXSW_REG_PPLR_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
