	.file	"extr_spectrum.c_mlxsw_sp1_from_ptys_speed.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mlxsw_sp1_from_ptys_speed, @function
mlxsw_sp1_from_ptys_speed:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR MLXSW_SP1_PORT_LINK_MODE_LEN[rip]
	test	edx, edx
	jle	.L2
	mov	rax, QWORD PTR mlxsw_sp1_port_link_mode[rip]
	sub	edx, 1
	lea	rdx, 8[rax+rdx*8]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	add	rax, 8
	cmp	rax, rdx
	je	.L2
.L5:
	test	DWORD PTR [rax], esi
	je	.L3
	mov	eax, DWORD PTR 4[rax]
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR SPEED_UNKNOWN[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	mlxsw_sp1_from_ptys_speed, .-mlxsw_sp1_from_ptys_speed
	.comm	mlxsw_sp1_port_link_mode,8,8
	.comm	SPEED_UNKNOWN,4,4
	.comm	MLXSW_SP1_PORT_LINK_MODE_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_sp1_from_ptys_speed.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlxsw_sp1_from_ptys_speed, %function
mlxsw_sp1_from_ptys_speed:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L9
	str	lr, [sp, #-4]!
	ldr	lr, [r3]
	cmp	lr, #0
	ble	.L2
	ldr	r2, .L9+4
	mov	r3, #0
	ldr	ip, [r2]
	mov	r2, ip
	b	.L5
.L3:
	cmp	r3, lr
	add	r2, r2, #8
	beq	.L2
.L5:
	ldr	r0, [ip, r3, lsl #3]
	add	r3, r3, #1
	tst	r1, r0
	beq	.L3
	ldr	r0, [r2, #4]
	ldr	pc, [sp], #4
.L2:
	ldr	r3, .L9+8
	ldr	r0, [r3]
	ldr	pc, [sp], #4
.L10:
	.align	2
.L9:
	.word	MLXSW_SP1_PORT_LINK_MODE_LEN
	.word	mlxsw_sp1_port_link_mode
	.word	SPEED_UNKNOWN
	.size	mlxsw_sp1_from_ptys_speed, .-mlxsw_sp1_from_ptys_speed
	.comm	mlxsw_sp1_port_link_mode,4,4
	.comm	SPEED_UNKNOWN,4,4
	.comm	MLXSW_SP1_PORT_LINK_MODE_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
