	.file	"extr_bnx2x_link.c_bnx2x_phy_selection.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bnx2x_phy_selection
	.type	bnx2x_phy_selection, @function
bnx2x_phy_selection:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR [rdi]
	mov	eax, DWORD PTR PORT_HW_CFG_PHY_SELECTION_MASK[rip]
	and	eax, edx
	test	DWORD PTR PORT_HW_CFG_PHY_SWAPPED_ENABLED[rip], edx
	je	.L1
	lea	edx, -128[rax]
	mov	eax, DWORD PTR PORT_HW_CFG_PHY_SELECTION_HARDWARE_DEFAULT[rip]
	cmp	edx, 3
	ja	.L1
	lea	rax, CSWTCH.3[rip]
	mov	eax, DWORD PTR [rax+rdx*4]
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	bnx2x_phy_selection, .-bnx2x_phy_selection
	.section	.rodata
	.align 16
	.type	CSWTCH.3, @object
	.size	CSWTCH.3, 16
CSWTCH.3:
	.long	130
	.long	131
	.long	128
	.long	129
	.comm	PORT_HW_CFG_PHY_SWAPPED_ENABLED,4,4
	.comm	PORT_HW_CFG_PHY_SELECTION_MASK,4,4
	.comm	PORT_HW_CFG_PHY_SELECTION_HARDWARE_DEFAULT,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_bnx2x_link.c_bnx2x_phy_selection.c"
	.text
	.align	2
	.global	bnx2x_phy_selection
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnx2x_phy_selection, %function
bnx2x_phy_selection:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r2, .L8
	ldr	r3, .L8+4
	ldr	r0, [r0]
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r0, r2
	and	r0, r0, r3
	bxeq	lr
	ldr	r2, .L8+8
	sub	r3, r0, #128
	cmp	r3, #3
	ldr	r0, [r2]
	ldrls	r2, .L8+12
	ldrls	r0, [r2, r3, lsl #2]
	bx	lr
.L9:
	.align	2
.L8:
	.word	PORT_HW_CFG_PHY_SWAPPED_ENABLED
	.word	PORT_HW_CFG_PHY_SELECTION_MASK
	.word	PORT_HW_CFG_PHY_SELECTION_HARDWARE_DEFAULT
	.word	.LANCHOR0
	.size	bnx2x_phy_selection, .-bnx2x_phy_selection
	.comm	PORT_HW_CFG_PHY_SWAPPED_ENABLED,4,4
	.comm	PORT_HW_CFG_PHY_SELECTION_MASK,4,4
	.comm	PORT_HW_CFG_PHY_SELECTION_HARDWARE_DEFAULT,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	CSWTCH.3, %object
	.size	CSWTCH.3, 16
CSWTCH.3:
	.word	130
	.word	131
	.word	128
	.word	129
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
