	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_check_fallback_to_cl37
_bnx2x_check_fallback_to_cl37:          ## @bnx2x_check_fallback_to_cl37
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rsi), %rbx
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	_MDIO_REG_BANK_RX0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_RX0_RX_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_CL22_RD_OVER_CL45
	movl	-44(%rbp), %edx
	movq	_MDIO_RX0_RX_STATUS_SIGDET@GOTPCREL(%rip), %rax
	movl	%edx, %ecx
	notl	%ecx
	testl	%ecx, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_MDIO_REG_BANK_CL73_USERB0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_CL73_USERB0_CL73_USTAT1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-40(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_CL22_RD_OVER_CL45
	movl	-40(%rbp), %edx
	movq	_MDIO_CL73_USERB0_CL73_USTAT1_LINK_STATUS_CHECK@GOTPCREL(%rip), %rax
	movq	_MDIO_CL73_USERB0_CL73_USTAT1_AN_GOOD_CHECK_BAM37@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%edx, %eax
	notl	%eax
	testl	%eax, %ecx
	jne	LBB0_3
## %bb.5:
	movq	_MDIO_REG_BANK_REMOTE_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_REMOTE_PHY_MISC_RX_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-36(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_CL22_RD_OVER_CL45
	movl	-36(%rbp), %edx
	movq	_MDIO_REMOTE_PHY_MISC_RX_STATUS_CL37_FSM_RECEIVED_OVER1G_MSG@GOTPCREL(%rip), %rax
	movq	_MDIO_REMOTE_PHY_MISC_RX_STATUS_CL37_FSM_RECEIVED_BRCM_OUI_MSG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%edx, %eax
	notl	%eax
	testl	%eax, %ecx
	jne	LBB0_6
## %bb.7:
	movq	_MDIO_REG_BANK_CL73_IEEEB0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_CL73_IEEEB0_CL73_AN_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	callq	_CL22_WR_OVER_CL45
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_bnx2x_restart_autoneg
	movl	(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	jmp	LBB0_8
LBB0_1:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	_MDIO_REG_BANK_CL73_IEEEB0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_CL73_IEEEB0_CL73_AN_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MDIO_CL73_IEEEB0_CL73_AN_CONTROL_AN_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_CL22_WR_OVER_CL45
	jmp	LBB0_8
LBB0_3:
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_4
LBB0_6:
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_4:
	xorl	%eax, %eax
	callq	_DP
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bnx2x_check_fallback_to_cl37\n"

	.comm	_MDIO_REG_BANK_RX0,4,2          ## @MDIO_REG_BANK_RX0
	.comm	_MDIO_RX0_RX_STATUS,4,2         ## @MDIO_RX0_RX_STATUS
	.comm	_MDIO_RX0_RX_STATUS_SIGDET,4,2  ## @MDIO_RX0_RX_STATUS_SIGDET
L_.str.1:                               ## @.str.1
	.asciz	"Signal is not detected. Restoring CL73.rx_status(0x80b0) = 0x%x\n"

	.comm	_MDIO_REG_BANK_CL73_IEEEB0,4,2  ## @MDIO_REG_BANK_CL73_IEEEB0
	.comm	_MDIO_CL73_IEEEB0_CL73_AN_CONTROL,4,2 ## @MDIO_CL73_IEEEB0_CL73_AN_CONTROL
	.comm	_MDIO_CL73_IEEEB0_CL73_AN_CONTROL_AN_EN,4,2 ## @MDIO_CL73_IEEEB0_CL73_AN_CONTROL_AN_EN
	.comm	_MDIO_REG_BANK_CL73_USERB0,4,2  ## @MDIO_REG_BANK_CL73_USERB0
	.comm	_MDIO_CL73_USERB0_CL73_USTAT1,4,2 ## @MDIO_CL73_USERB0_CL73_USTAT1
	.comm	_MDIO_CL73_USERB0_CL73_USTAT1_LINK_STATUS_CHECK,4,2 ## @MDIO_CL73_USERB0_CL73_USTAT1_LINK_STATUS_CHECK
	.comm	_MDIO_CL73_USERB0_CL73_USTAT1_AN_GOOD_CHECK_BAM37,4,2 ## @MDIO_CL73_USERB0_CL73_USTAT1_AN_GOOD_CHECK_BAM37
L_.str.2:                               ## @.str.2
	.asciz	"CL73 state-machine is not stable. ustat_val(0x8371) = 0x%x\n"

	.comm	_MDIO_REG_BANK_REMOTE_PHY,4,2   ## @MDIO_REG_BANK_REMOTE_PHY
	.comm	_MDIO_REMOTE_PHY_MISC_RX_STATUS,4,2 ## @MDIO_REMOTE_PHY_MISC_RX_STATUS
	.comm	_MDIO_REMOTE_PHY_MISC_RX_STATUS_CL37_FSM_RECEIVED_OVER1G_MSG,4,2 ## @MDIO_REMOTE_PHY_MISC_RX_STATUS_CL37_FSM_RECEIVED_OVER1G_MSG
	.comm	_MDIO_REMOTE_PHY_MISC_RX_STATUS_CL37_FSM_RECEIVED_BRCM_OUI_MSG,4,2 ## @MDIO_REMOTE_PHY_MISC_RX_STATUS_CL37_FSM_RECEIVED_BRCM_OUI_MSG
L_.str.3:                               ## @.str.3
	.asciz	"No CL37 FSM were received. misc_rx_status(0x8330) = 0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"Disabling CL73, and restarting CL37 autoneg\n"

	.no_dead_strip	_bnx2x_check_fallback_to_cl37
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_check_fallback_to_cl37
_bnx2x_check_fallback_to_cl37:          ; @bnx2x_check_fallback_to_cl37
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x1]
Lloh0:
	adrp	x22, _NETIF_MSG_LINK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NETIF_MSG_LINK@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
Lloh4:
	adrp	x8, _MDIO_REG_BANK_RX0@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MDIO_REG_BANK_RX0@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _MDIO_RX0_RX_STATUS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MDIO_RX0_RX_STATUS@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	add	x4, sp, #28
	mov	x0, x20
	mov	x1, x19
	bl	_CL22_RD_OVER_CL45
	ldr	w8, [sp, #28]
Lloh10:
	adrp	x9, _MDIO_RX0_RX_STATUS_SIGDET@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MDIO_RX0_RX_STATUS_SIGDET@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	bics	wzr, w9, w8
	b.ne	LBB0_4
; %bb.1:
Lloh13:
	adrp	x8, _MDIO_REG_BANK_CL73_USERB0@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MDIO_REG_BANK_CL73_USERB0@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x8, _MDIO_CL73_USERB0_CL73_USTAT1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MDIO_CL73_USERB0_CL73_USTAT1@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	add	x4, sp, #24
	mov	x0, x20
	mov	x1, x19
	bl	_CL22_RD_OVER_CL45
	ldr	w8, [sp, #24]
Lloh19:
	adrp	x9, _MDIO_CL73_USERB0_CL73_USTAT1_LINK_STATUS_CHECK@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MDIO_CL73_USERB0_CL73_USTAT1_LINK_STATUS_CHECK@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _MDIO_CL73_USERB0_CL73_USTAT1_AN_GOOD_CHECK_BAM37@GOTPAGE
Lloh23:
	ldr	x10, [x10, _MDIO_CL73_USERB0_CL73_USTAT1_AN_GOOD_CHECK_BAM37@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bics	wzr, w9, w8
	b.ne	LBB0_5
; %bb.2:
Lloh25:
	adrp	x8, _MDIO_REG_BANK_REMOTE_PHY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MDIO_REG_BANK_REMOTE_PHY@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x8, _MDIO_REMOTE_PHY_MISC_RX_STATUS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MDIO_REMOTE_PHY_MISC_RX_STATUS@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
	add	x4, sp, #20
	mov	x0, x20
	mov	x1, x19
	bl	_CL22_RD_OVER_CL45
	ldr	w8, [sp, #20]
Lloh31:
	adrp	x9, _MDIO_REMOTE_PHY_MISC_RX_STATUS_CL37_FSM_RECEIVED_OVER1G_MSG@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MDIO_REMOTE_PHY_MISC_RX_STATUS_CL37_FSM_RECEIVED_OVER1G_MSG@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
Lloh34:
	adrp	x10, _MDIO_REMOTE_PHY_MISC_RX_STATUS_CL37_FSM_RECEIVED_BRCM_OUI_MSG@GOTPAGE
Lloh35:
	ldr	x10, [x10, _MDIO_REMOTE_PHY_MISC_RX_STATUS_CL37_FSM_RECEIVED_BRCM_OUI_MSG@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bics	wzr, w9, w8
	b.ne	LBB0_6
; %bb.3:
Lloh37:
	adrp	x8, _MDIO_REG_BANK_CL73_IEEEB0@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MDIO_REG_BANK_CL73_IEEEB0@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
Lloh40:
	adrp	x8, _MDIO_CL73_IEEEB0_CL73_AN_CONTROL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MDIO_CL73_IEEEB0_CL73_AN_CONTROL@GOTPAGEOFF]
Lloh42:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_CL22_WR_OVER_CL45
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_bnx2x_restart_autoneg
	ldr	w0, [x22]
Lloh43:
	adrp	x1, l_.str.4@PAGE
Lloh44:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_4:
	ldr	w0, [x22]
	str	x8, [sp]
Lloh45:
	adrp	x1, l_.str.1@PAGE
Lloh46:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
Lloh47:
	adrp	x8, _MDIO_REG_BANK_CL73_IEEEB0@GOTPAGE
Lloh48:
	ldr	x8, [x8, _MDIO_REG_BANK_CL73_IEEEB0@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
Lloh50:
	adrp	x8, _MDIO_CL73_IEEEB0_CL73_AN_CONTROL@GOTPAGE
Lloh51:
	ldr	x8, [x8, _MDIO_CL73_IEEEB0_CL73_AN_CONTROL@GOTPAGEOFF]
Lloh52:
	ldr	w3, [x8]
Lloh53:
	adrp	x8, _MDIO_CL73_IEEEB0_CL73_AN_CONTROL_AN_EN@GOTPAGE
Lloh54:
	ldr	x8, [x8, _MDIO_CL73_IEEEB0_CL73_AN_CONTROL_AN_EN@GOTPAGEOFF]
Lloh55:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_CL22_WR_OVER_CL45
	b	LBB0_8
LBB0_5:
	ldr	w0, [x22]
	str	x8, [sp]
Lloh56:
	adrp	x1, l_.str.2@PAGE
Lloh57:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:
	ldr	w0, [x22]
	str	x8, [sp]
Lloh58:
	adrp	x1, l_.str.3@PAGE
Lloh59:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_7:
	bl	_DP
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bnx2x_check_fallback_to_cl37\n"

	.comm	_MDIO_REG_BANK_RX0,4,2          ; @MDIO_REG_BANK_RX0
	.comm	_MDIO_RX0_RX_STATUS,4,2         ; @MDIO_RX0_RX_STATUS
	.comm	_MDIO_RX0_RX_STATUS_SIGDET,4,2  ; @MDIO_RX0_RX_STATUS_SIGDET
l_.str.1:                               ; @.str.1
	.asciz	"Signal is not detected. Restoring CL73.rx_status(0x80b0) = 0x%x\n"

	.comm	_MDIO_REG_BANK_CL73_IEEEB0,4,2  ; @MDIO_REG_BANK_CL73_IEEEB0
	.comm	_MDIO_CL73_IEEEB0_CL73_AN_CONTROL,4,2 ; @MDIO_CL73_IEEEB0_CL73_AN_CONTROL
	.comm	_MDIO_CL73_IEEEB0_CL73_AN_CONTROL_AN_EN,4,2 ; @MDIO_CL73_IEEEB0_CL73_AN_CONTROL_AN_EN
	.comm	_MDIO_REG_BANK_CL73_USERB0,4,2  ; @MDIO_REG_BANK_CL73_USERB0
	.comm	_MDIO_CL73_USERB0_CL73_USTAT1,4,2 ; @MDIO_CL73_USERB0_CL73_USTAT1
	.comm	_MDIO_CL73_USERB0_CL73_USTAT1_LINK_STATUS_CHECK,4,2 ; @MDIO_CL73_USERB0_CL73_USTAT1_LINK_STATUS_CHECK
	.comm	_MDIO_CL73_USERB0_CL73_USTAT1_AN_GOOD_CHECK_BAM37,4,2 ; @MDIO_CL73_USERB0_CL73_USTAT1_AN_GOOD_CHECK_BAM37
l_.str.2:                               ; @.str.2
	.asciz	"CL73 state-machine is not stable. ustat_val(0x8371) = 0x%x\n"

	.comm	_MDIO_REG_BANK_REMOTE_PHY,4,2   ; @MDIO_REG_BANK_REMOTE_PHY
	.comm	_MDIO_REMOTE_PHY_MISC_RX_STATUS,4,2 ; @MDIO_REMOTE_PHY_MISC_RX_STATUS
	.comm	_MDIO_REMOTE_PHY_MISC_RX_STATUS_CL37_FSM_RECEIVED_OVER1G_MSG,4,2 ; @MDIO_REMOTE_PHY_MISC_RX_STATUS_CL37_FSM_RECEIVED_OVER1G_MSG
	.comm	_MDIO_REMOTE_PHY_MISC_RX_STATUS_CL37_FSM_RECEIVED_BRCM_OUI_MSG,4,2 ; @MDIO_REMOTE_PHY_MISC_RX_STATUS_CL37_FSM_RECEIVED_BRCM_OUI_MSG
l_.str.3:                               ; @.str.3
	.asciz	"No CL37 FSM were received. misc_rx_status(0x8330) = 0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"Disabling CL73, and restarting CL37 autoneg\n"

	.no_dead_strip	_bnx2x_check_fallback_to_cl37
.subsections_via_symbols
