	.file	"extr_sky2.c_sky2_phy_speed.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sky2_phy_speed, @function
sky2_phy_speed:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR SKY2_HW_FIBRE_PHY[rip], eax
	jne	.L11
	test	DWORD PTR SKY2_HW_GIGABIT[rip], eax
	je	.L12
	and	esi, DWORD PTR PHY_M_PS_SPEED_MSK[rip]
	mov	eax, DWORD PTR SPEED_1000[rip]
	cmp	esi, 128
	je	.L1
	mov	eax, DWORD PTR SPEED_10[rip]
	cmp	esi, 129
	cmove	eax, DWORD PTR SPEED_100[rip]
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR SPEED_100[rip]
	and	esi, 129
	cmove	eax, DWORD PTR SPEED_10[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR SPEED_1000[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	sky2_phy_speed, .-sky2_phy_speed
	.comm	SPEED_1000,4,4
	.comm	SPEED_100,4,4
	.comm	SPEED_10,4,4
	.comm	SKY2_HW_GIGABIT,4,4
	.comm	SKY2_HW_FIBRE_PHY,4,4
	.comm	PHY_M_PS_SPEED_MSK,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_sky2.c_sky2_phy_speed.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sky2_phy_speed, %function
sky2_phy_speed:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r2, .L12
	ldr	r3, [r0]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L6
	ldr	r2, .L12+4
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L11
	ldr	r3, .L12+8
	ldr	r3, [r3]
	and	r1, r1, r3
	cmp	r1, #128
	beq	.L6
	cmp	r1, #129
	beq	.L7
.L9:
	ldr	r3, .L12+12
	ldr	r0, [r3]
	bx	lr
.L11:
	tst	r1, #129
	beq	.L9
.L7:
	ldr	r3, .L12+16
	ldr	r0, [r3]
	bx	lr
.L6:
	ldr	r3, .L12+20
	ldr	r0, [r3]
	bx	lr
.L13:
	.align	2
.L12:
	.word	SKY2_HW_FIBRE_PHY
	.word	SKY2_HW_GIGABIT
	.word	PHY_M_PS_SPEED_MSK
	.word	SPEED_10
	.word	SPEED_100
	.word	SPEED_1000
	.size	sky2_phy_speed, .-sky2_phy_speed
	.comm	SPEED_1000,4,4
	.comm	SPEED_100,4,4
	.comm	SPEED_10,4,4
	.comm	SKY2_HW_GIGABIT,4,4
	.comm	SKY2_HW_FIBRE_PHY,4,4
	.comm	PHY_M_PS_SPEED_MSK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
