	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_get_link_cfg_idx         ## -- Begin function bnx2x_get_link_cfg_idx
	.p2align	4, 0x90
_bnx2x_get_link_cfg_idx:                ## @bnx2x_get_link_cfg_idx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_bnx2x_get_cur_phy_idx
	movq	_PORT_HW_CFG_PHY_SWAPPED_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	_EXT_PHY1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_EXT_PHY2@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	cmpq	%rcx, %rax
	je	LBB0_4
## %bb.3:
	cmpq	%rdi, %rax
	cmovneq	%rax, %rcx
	movq	%rcx, %rdi
	jmp	LBB0_4
LBB0_1:
	movq	%rax, %rdi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_LINK_CONFIG_IDX                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_HW_CFG_PHY_SWAPPED_ENABLED,4,2 ## @PORT_HW_CFG_PHY_SWAPPED_ENABLED
	.comm	_EXT_PHY1,8,3                   ## @EXT_PHY1
	.comm	_EXT_PHY2,8,3                   ## @EXT_PHY2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_get_link_cfg_idx         ; -- Begin function bnx2x_get_link_cfg_idx
	.p2align	2
_bnx2x_get_link_cfg_idx:                ; @bnx2x_get_link_cfg_idx
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_bnx2x_get_cur_phy_idx
	ldr	w8, [x19]
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]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _EXT_PHY1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EXT_PHY1@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x8]
Lloh6:
	adrp	x8, _EXT_PHY2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EXT_PHY2@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x9
	b.eq	LBB0_4
; %bb.2:
	cmp	x0, x8
	csel	x8, x9, x0, eq
	b	LBB0_4
LBB0_3:
	mov	x8, x0
LBB0_4:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_LINK_CONFIG_IDX
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_HW_CFG_PHY_SWAPPED_ENABLED,4,2 ; @PORT_HW_CFG_PHY_SWAPPED_ENABLED
	.comm	_EXT_PHY1,8,3                   ; @EXT_PHY1
	.comm	_EXT_PHY2,8,3                   ; @EXT_PHY2
.subsections_via_symbols
