	.file	"extr_ql_inline.h_qla_get_optics.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qla_get_optics, @function
qla_get_optics:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	esi, DWORD PTR Q8_LINK_SPEED_0[rip]
	mov	rbx, rdi
	call	READ_REG32@PLT
	cmp	QWORD PTR [rbx], 0
	mov	r8d, DWORD PTR IFM_100_FX[rip]
	movzx	edx, al
	movzx	eax, ah
	cmove	eax, edx
	cmp	eax, 1
	je	.L1
	mov	r8d, DWORD PTR IFM_1000_SX[rip]
	cmp	eax, 16
	je	.L1
	mov	eax, DWORD PTR 8[rbx]
	mov	r8d, DWORD PTR IFM_10G_TWINAX[rip]
	sub	eax, 4
	cmp	eax, 2
	jbe	.L1
	mov	r8d, DWORD PTR IFM_10G_LR[rip]
	or	r8d, DWORD PTR IFM_10G_SR[rip]
.L1:
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	qla_get_optics, .-qla_get_optics
	.comm	Q8_LINK_SPEED_0,4,4
	.comm	IFM_10G_TWINAX,4,4
	.comm	IFM_10G_SR,4,4
	.comm	IFM_10G_LR,4,4
	.comm	IFM_100_FX,4,4
	.comm	IFM_1000_SX,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_ql_inline.h_qla_get_optics.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qla_get_optics, %function
qla_get_optics:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L12
	push	{r4, lr}
	mov	r4, r0
	ldr	r1, [r3]
	bl	READ_REG32
	ldr	r3, [r4]
	cmp	r3, #0
	asrne	r3, r0, #8
	andeq	r3, r0, #255
	andne	r3, r3, #255
	cmp	r3, #1
	beq	.L4
	cmp	r3, #16
	beq	.L5
	ldr	r3, [r4, #4]
	sub	r3, r3, #4
	cmp	r3, #2
	ldrhi	r3, .L12+4
	ldrls	r3, .L12+8
	ldrhi	r2, .L12+12
	ldrls	r0, [r3]
	ldrhi	r3, [r3]
	ldrhi	r0, [r2]
	orrhi	r0, r0, r3
	pop	{r4, pc}
.L4:
	ldr	r3, .L12+16
	ldr	r0, [r3]
	pop	{r4, pc}
.L5:
	ldr	r3, .L12+20
	ldr	r0, [r3]
	pop	{r4, pc}
.L13:
	.align	2
.L12:
	.word	Q8_LINK_SPEED_0
	.word	IFM_10G_SR
	.word	IFM_10G_TWINAX
	.word	IFM_10G_LR
	.word	IFM_100_FX
	.word	IFM_1000_SX
	.size	qla_get_optics, .-qla_get_optics
	.comm	Q8_LINK_SPEED_0,4,4
	.comm	IFM_10G_TWINAX,4,4
	.comm	IFM_10G_SR,4,4
	.comm	IFM_10G_LR,4,4
	.comm	IFM_100_FX,4,4
	.comm	IFM_1000_SX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
