	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_phy_selection            ## -- Begin function bnx2x_phy_selection
	.p2align	4, 0x90
_bnx2x_phy_selection:                   ## @bnx2x_phy_selection
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	movq	_PORT_HW_CFG_PHY_SWAPPED_ENABLED@GOTPCREL(%rip), %rdx
	movq	_PORT_HW_CFG_PHY_SELECTION_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	testl	%ecx, (%rdx)
	je	LBB0_4
## %bb.1:
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_2
## %bb.3:
	cltq
	leaq	L_switch.table.bnx2x_phy_selection(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
LBB0_4:
	popq	%rbp
	retq
LBB0_2:
	movq	_PORT_HW_CFG_PHY_SELECTION_HARDWARE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_HW_CFG_PHY_SELECTION_HARDWARE_DEFAULT,4,2 ## @PORT_HW_CFG_PHY_SELECTION_HARDWARE_DEFAULT
	.comm	_PORT_HW_CFG_PHY_SWAPPED_ENABLED,4,2 ## @PORT_HW_CFG_PHY_SWAPPED_ENABLED
	.comm	_PORT_HW_CFG_PHY_SELECTION_MASK,4,2 ## @PORT_HW_CFG_PHY_SELECTION_MASK
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.bnx2x_phy_selection
L_switch.table.bnx2x_phy_selection:
	.long	130                             ## 0x82
	.long	131                             ## 0x83
	.long	128                             ## 0x80
	.long	129                             ## 0x81

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_phy_selection            ; -- Begin function bnx2x_phy_selection
	.p2align	2
_bnx2x_phy_selection:                   ; @bnx2x_phy_selection
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _PORT_HW_CFG_PHY_SWAPPED_ENABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PORT_HW_CFG_PHY_SWAPPED_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _PORT_HW_CFG_PHY_SELECTION_MASK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PORT_HW_CFG_PHY_SELECTION_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	and	w0, w10, w8
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.2:
Lloh6:
	adrp	x9, l_switch.table.bnx2x_phy_selection@PAGE
Lloh7:
	add	x9, x9, l_switch.table.bnx2x_phy_selection@PAGEOFF
	ldr	w0, [x9, w8, sxtw #2]
LBB0_3:
	ret
LBB0_4:
Lloh8:
	adrp	x8, _PORT_HW_CFG_PHY_SELECTION_HARDWARE_DEFAULT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PORT_HW_CFG_PHY_SELECTION_HARDWARE_DEFAULT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_HW_CFG_PHY_SELECTION_HARDWARE_DEFAULT,4,2 ; @PORT_HW_CFG_PHY_SELECTION_HARDWARE_DEFAULT
	.comm	_PORT_HW_CFG_PHY_SWAPPED_ENABLED,4,2 ; @PORT_HW_CFG_PHY_SWAPPED_ENABLED
	.comm	_PORT_HW_CFG_PHY_SELECTION_MASK,4,2 ; @PORT_HW_CFG_PHY_SELECTION_MASK
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.bnx2x_phy_selection
l_switch.table.bnx2x_phy_selection:
	.long	130                             ; 0x82
	.long	131                             ; 0x83
	.long	128                             ; 0x80
	.long	129                             ; 0x81

.subsections_via_symbols
