	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_5706_serdes_has_link
_bnx2_5706_serdes_has_link:             ## @bnx2_5706_serdes_has_link
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_BNX2_PHY_FLAG_NO_PARALLEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	testl	%eax, (%rdi)
	je	LBB0_1
LBB0_4:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movq	_MII_BNX2_MISC_SHADOW@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_MISC_SHDW_MODE_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_bnx2_write_phy
	movl	(%r12), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_bnx2_read_phy
	movq	_MISC_SHDW_MODE_CTL_SIG_DET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_4
## %bb.2:
	movl	(%r12), %esi
	movq	_MISC_SHDW_AN_DBG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_bnx2_write_phy
	movl	(%r12), %esi
	leaq	-40(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_bnx2_read_phy
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_bnx2_read_phy
	movq	_MISC_SHDW_AN_DBG_NOSYNC@GOTPCREL(%rip), %rax
	movq	_MISC_SHDW_AN_DBG_RUDI_INVALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, -40(%rbp)
	jne	LBB0_4
## %bb.3:
	movq	_MII_BNX2_DSP_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MII_EXPAND_REG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_bnx2_write_phy
	movq	_MII_BNX2_DSP_RW_PORT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-36(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_bnx2_read_phy
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_bnx2_read_phy
	movq	_MII_EXPAND_REG1_RUDI_C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	testl	%eax, -36(%rbp)
	sete	%r14b
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2_PHY_FLAG_NO_PARALLEL,4,2  ## @BNX2_PHY_FLAG_NO_PARALLEL
	.comm	_MII_BNX2_MISC_SHADOW,4,2       ## @MII_BNX2_MISC_SHADOW
	.comm	_MISC_SHDW_MODE_CTL,4,2         ## @MISC_SHDW_MODE_CTL
	.comm	_MISC_SHDW_MODE_CTL_SIG_DET,4,2 ## @MISC_SHDW_MODE_CTL_SIG_DET
	.comm	_MISC_SHDW_AN_DBG,4,2           ## @MISC_SHDW_AN_DBG
	.comm	_MISC_SHDW_AN_DBG_NOSYNC,4,2    ## @MISC_SHDW_AN_DBG_NOSYNC
	.comm	_MISC_SHDW_AN_DBG_RUDI_INVALID,4,2 ## @MISC_SHDW_AN_DBG_RUDI_INVALID
	.comm	_MII_BNX2_DSP_ADDRESS,4,2       ## @MII_BNX2_DSP_ADDRESS
	.comm	_MII_EXPAND_REG1,4,2            ## @MII_EXPAND_REG1
	.comm	_MII_BNX2_DSP_RW_PORT,4,2       ## @MII_BNX2_DSP_RW_PORT
	.comm	_MII_EXPAND_REG1_RUDI_C,4,2     ## @MII_EXPAND_REG1_RUDI_C
	.no_dead_strip	_bnx2_5706_serdes_has_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_5706_serdes_has_link
_bnx2_5706_serdes_has_link:             ; @bnx2_5706_serdes_has_link
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _BNX2_PHY_FLAG_NO_PARALLEL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNX2_PHY_FLAG_NO_PARALLEL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_3:
	mov	x19, x0
Lloh3:
	adrp	x20, _MII_BNX2_MISC_SHADOW@GOTPAGE
Lloh4:
	ldr	x20, [x20, _MII_BNX2_MISC_SHADOW@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh5:
	adrp	x8, _MISC_SHDW_MODE_CTL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MISC_SHDW_MODE_CTL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_bnx2_write_phy
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_bnx2_read_phy
	ldr	w8, [sp, #12]
Lloh8:
	adrp	x9, _MISC_SHDW_MODE_CTL_SIG_DET@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MISC_SHDW_MODE_CTL_SIG_DET@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.4:
	ldr	w1, [x20]
Lloh11:
	adrp	x8, _MISC_SHDW_AN_DBG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MISC_SHDW_AN_DBG@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_bnx2_write_phy
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	x0, x19
	bl	_bnx2_read_phy
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	x0, x19
	bl	_bnx2_read_phy
	ldr	w8, [sp, #8]
Lloh14:
	adrp	x9, _MISC_SHDW_AN_DBG_NOSYNC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MISC_SHDW_AN_DBG_NOSYNC@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _MISC_SHDW_AN_DBG_RUDI_INVALID@GOTPAGE
Lloh18:
	ldr	x10, [x10, _MISC_SHDW_AN_DBG_RUDI_INVALID@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_1
; %bb.5:
Lloh20:
	adrp	x8, _MII_BNX2_DSP_ADDRESS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MII_BNX2_DSP_ADDRESS@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _MII_EXPAND_REG1@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MII_EXPAND_REG1@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_bnx2_write_phy
Lloh26:
	adrp	x20, _MII_BNX2_DSP_RW_PORT@GOTPAGE
Lloh27:
	ldr	x20, [x20, _MII_BNX2_DSP_RW_PORT@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #4
	mov	x0, x19
	bl	_bnx2_read_phy
	ldr	w1, [x20]
	add	x2, sp, #4
	mov	x0, x19
	bl	_bnx2_read_phy
	ldr	w8, [sp, #4]
Lloh28:
	adrp	x9, _MII_EXPAND_REG1_RUDI_C@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MII_EXPAND_REG1_RUDI_C@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2_PHY_FLAG_NO_PARALLEL,4,2  ; @BNX2_PHY_FLAG_NO_PARALLEL
	.comm	_MII_BNX2_MISC_SHADOW,4,2       ; @MII_BNX2_MISC_SHADOW
	.comm	_MISC_SHDW_MODE_CTL,4,2         ; @MISC_SHDW_MODE_CTL
	.comm	_MISC_SHDW_MODE_CTL_SIG_DET,4,2 ; @MISC_SHDW_MODE_CTL_SIG_DET
	.comm	_MISC_SHDW_AN_DBG,4,2           ; @MISC_SHDW_AN_DBG
	.comm	_MISC_SHDW_AN_DBG_NOSYNC,4,2    ; @MISC_SHDW_AN_DBG_NOSYNC
	.comm	_MISC_SHDW_AN_DBG_RUDI_INVALID,4,2 ; @MISC_SHDW_AN_DBG_RUDI_INVALID
	.comm	_MII_BNX2_DSP_ADDRESS,4,2       ; @MII_BNX2_DSP_ADDRESS
	.comm	_MII_EXPAND_REG1,4,2            ; @MII_EXPAND_REG1
	.comm	_MII_BNX2_DSP_RW_PORT,4,2       ; @MII_BNX2_DSP_RW_PORT
	.comm	_MII_EXPAND_REG1_RUDI_C,4,2     ; @MII_EXPAND_REG1_RUDI_C
	.no_dead_strip	_bnx2_5706_serdes_has_link
.subsections_via_symbols
