	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_8073_read_status
_bnx2x_8073_read_status:                ## @bnx2x_8073_read_status
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %r15
	movl	$0, -56(%rbp)
	movl	$0, -52(%rbp)
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_PMA_LASI_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %r12
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %r8
	callq	_bnx2x_cl45_read
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	_MDIO_PCS_DEVAD@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_MDIO_PCS_REG_STATUS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leaq	-48(%rbp), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_cl45_read
	movl	(%r13), %edx
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %r8
	callq	_bnx2x_cl45_read
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	_MDIO_PMA_REG_M8051_MSGOUT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %r8
	callq	_bnx2x_cl45_read
	movl	(%rbx), %edx
	movq	%rbx, %r12
	movq	_MDIO_PMA_LASI_RXSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %r8
	callq	_bnx2x_cl45_read
	movl	(%r13), %edi
	movl	-48(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	_MDIO_PCS_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_PCS_REG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %r8
	callq	_bnx2x_cl45_read
	movl	(%r13), %edi
	movl	-48(%rbp), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_STATUS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	leaq	-48(%rbp), %r8
	callq	_bnx2x_cl45_read
	movl	(%r12), %edx
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	leaq	-44(%rbp), %r8
	callq	_bnx2x_cl45_read
	movl	-44(%rbp), %ebx
	movl	(%r13), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_DP
	testb	$4, %bl
	je	LBB0_3
## %bb.1:
	movq	(%r14), %rax
	movq	_SPEED_10000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_8073_xaui_wa
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_23
LBB0_3:
	movq	_MDIO_AN_DEVAD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	_MDIO_AN_REG_LINK_STATUS@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leaq	-52(%rbp), %r12
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %r8
	callq	_bnx2x_cl45_read
	movl	(%rbx), %edx
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %r8
	callq	_bnx2x_cl45_read
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_STATUS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leaq	-48(%rbp), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_cl45_read
	movl	(%r12), %edx
	movl	(%rbx), %ecx
	leaq	-44(%rbp), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_cl45_read
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %ecx
	movl	-52(%rbp), %r8d
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movl	-44(%rbp), %eax
	andl	$4, %eax
	movl	-52(%rbp), %ecx
	andl	$2, %ecx
	orl	%eax, %ecx
	je	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_8073_is_snr_needed
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_PLL_BANDWIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$9916, %r8d                     ## imm = 0x26BC
	callq	_bnx2x_cl45_write
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_CDR_BANDWIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$819, %r8d                      ## imm = 0x333
	callq	_bnx2x_cl45_write
LBB0_6:
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_8073_SPEED_LINK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_cl45_read
	movl	-56(%rbp), %eax
	movl	%eax, %ecx
	andl	$32772, %ecx                    ## imm = 0x8004
	cmpl	$4, %ecx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.6(%rip), %rsi
	movq	_SPEED_10000@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	movl	%eax, %ecx
	andl	$16386, %ecx                    ## imm = 0x4002
	cmpl	$2, %ecx
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.7(%rip), %rsi
	movq	_SPEED_2500@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	andl	$8193, %eax                     ## imm = 0x2001
	cmpl	$1, %eax
	jne	LBB0_24
## %bb.11:
	leaq	L_.str.8(%rip), %rsi
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movl	(%rbx), %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %edx
	xorl	%eax, %eax
	callq	_DP
	movq	_PORT_HW_CFG_SWAP_PHY_POLARITY_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_17
## %bb.13:
	movq	_MDIO_XS_DEVAD@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_MDIO_XS_REG_8073_RX_CTRL_PCIE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leaq	-44(%rbp), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_cl45_read
	movq	(%r13), %rax
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.14:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movl	-44(%rbp), %r8d
	orl	$8, %r8d
	jmp	LBB0_16
LBB0_15:
	movl	-44(%rbp), %r8d
	andl	$-9, %r8d
LBB0_16:
	movl	%r8d, -44(%rbp)
	movl	(%r12), %edx
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_cl45_write
LBB0_17:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_bnx2x_ext_phy_10G_an_resolve
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_bnx2x_8073_resolve_fc
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	movl	$1, %r12d
LBB0_18:
	movq	_LINK_STATUS_AUTO_NEGOTIATE_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	je	LBB0_23
## %bb.19:
	movq	_MDIO_AN_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_AN_REG_LP_AUTO_NEG2@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_cl45_read
	movl	-44(%rbp), %eax
	testb	$32, %al
	je	LBB0_21
## %bb.20:
	movq	_LINK_STATUS_LINK_PARTNER_1000TFD_CAPABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 8(%r13)
LBB0_21:
	testb	$-128, %al
	je	LBB0_23
## %bb.22:
	movq	_LINK_STATUS_LINK_PARTNER_10GXFD_CAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r13)
LBB0_23:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movl	(%rbx), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edx
	leaq	L_.str.9(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DP
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_PMA_DEVAD,4,2             ## @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_LASI_STAT,4,2         ## @MDIO_PMA_LASI_STAT
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"8703 LASI status 0x%x\n"

	.comm	_MDIO_PCS_DEVAD,4,2             ## @MDIO_PCS_DEVAD
	.comm	_MDIO_PCS_REG_STATUS,4,2        ## @MDIO_PCS_REG_STATUS
L_.str.1:                               ## @.str.1
	.asciz	"807x PCS status 0x%x->0x%x\n"

	.comm	_MDIO_PMA_REG_M8051_MSGOUT_REG,4,2 ## @MDIO_PMA_REG_M8051_MSGOUT_REG
	.comm	_MDIO_PMA_LASI_RXSTAT,4,2       ## @MDIO_PMA_LASI_RXSTAT
L_.str.2:                               ## @.str.2
	.asciz	"KR 0x9003 0x%x\n"

L_.str.3:                               ## @.str.3
	.asciz	"KR PCS status 0x%x\n"

	.comm	_MDIO_PMA_REG_STATUS,4,2        ## @MDIO_PMA_REG_STATUS
L_.str.4:                               ## @.str.4
	.asciz	"PMA_REG_STATUS=0x%x\n"

	.comm	_SPEED_10000,8,3                ## @SPEED_10000
	.comm	_MDIO_AN_DEVAD,4,2              ## @MDIO_AN_DEVAD
	.comm	_MDIO_AN_REG_LINK_STATUS,4,2    ## @MDIO_AN_REG_LINK_STATUS
L_.str.5:                               ## @.str.5
	.asciz	"KR PMA status 0x%x->0x%x,an_link_status=0x%x\n"

	.comm	_MDIO_PMA_REG_PLL_BANDWIDTH,4,2 ## @MDIO_PMA_REG_PLL_BANDWIDTH
	.comm	_MDIO_PMA_REG_CDR_BANDWIDTH,4,2 ## @MDIO_PMA_REG_CDR_BANDWIDTH
	.comm	_MDIO_PMA_REG_8073_SPEED_LINK_STATUS,4,2 ## @MDIO_PMA_REG_8073_SPEED_LINK_STATUS
L_.str.6:                               ## @.str.6
	.asciz	"port %x: External link up in 10G\n"

	.comm	_SPEED_2500,8,3                 ## @SPEED_2500
L_.str.7:                               ## @.str.7
	.asciz	"port %x: External link up in 2.5G\n"

	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
L_.str.8:                               ## @.str.8
	.asciz	"port %x: External link up in 1G\n"

L_.str.9:                               ## @.str.9
	.asciz	"port %x: External link is down\n"

	.comm	_PORT_HW_CFG_SWAP_PHY_POLARITY_ENABLED,4,2 ## @PORT_HW_CFG_SWAP_PHY_POLARITY_ENABLED
	.comm	_MDIO_XS_DEVAD,4,2              ## @MDIO_XS_DEVAD
	.comm	_MDIO_XS_REG_8073_RX_CTRL_PCIE,4,2 ## @MDIO_XS_REG_8073_RX_CTRL_PCIE
L_.str.10:                              ## @.str.10
	.asciz	"Swapping 1G polarity forthe 8073\n"

	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_LINK_STATUS_AUTO_NEGOTIATE_COMPLETE,4,2 ## @LINK_STATUS_AUTO_NEGOTIATE_COMPLETE
	.comm	_MDIO_AN_REG_LP_AUTO_NEG2,4,2   ## @MDIO_AN_REG_LP_AUTO_NEG2
	.comm	_LINK_STATUS_LINK_PARTNER_1000TFD_CAPABLE,4,2 ## @LINK_STATUS_LINK_PARTNER_1000TFD_CAPABLE
	.comm	_LINK_STATUS_LINK_PARTNER_10GXFD_CAPABLE,4,2 ## @LINK_STATUS_LINK_PARTNER_10GXFD_CAPABLE
	.no_dead_strip	_bnx2x_8073_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_8073_read_status
_bnx2x_8073_read_status:                ; @bnx2x_8073_read_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x21, [x1, #8]
	str	xzr, [sp, #32]
Lloh0:
	adrp	x24, _MDIO_PMA_DEVAD@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MDIO_PMA_DEVAD@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh2:
	adrp	x8, _MDIO_PMA_LASI_STAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MDIO_PMA_LASI_STAT@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	add	x4, sp, #44
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
Lloh5:
	adrp	x23, _NETIF_MSG_LINK@GOTPAGE
Lloh6:
	ldr	x23, [x23, _NETIF_MSG_LINK@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w8, [sp, #44]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
Lloh9:
	adrp	x25, _MDIO_PCS_DEVAD@GOTPAGE
Lloh10:
	ldr	x25, [x25, _MDIO_PCS_DEVAD@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh11:
	adrp	x26, _MDIO_PCS_REG_STATUS@GOTPAGE
Lloh12:
	ldr	x26, [x26, _MDIO_PCS_REG_STATUS@GOTPAGEOFF]
	ldr	w3, [x26]
	add	x4, sp, #40
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w2, [x25]
	ldr	w3, [x26]
	add	x4, sp, #44
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w0, [x23]
	ldp	w8, w9, [sp, #40]
	stp	x8, x9, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
	ldr	w2, [x24]
Lloh15:
	adrp	x8, _MDIO_PMA_REG_M8051_MSGOUT_REG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MDIO_PMA_REG_M8051_MSGOUT_REG@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	add	x4, sp, #44
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w2, [x24]
Lloh18:
	adrp	x8, _MDIO_PMA_LASI_RXSTAT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MDIO_PMA_LASI_RXSTAT@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	add	x4, sp, #40
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w0, [x23]
	ldr	w8, [sp, #40]
	str	x8, [sp]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DP
	ldr	w2, [x25]
	ldr	w3, [x26]
	add	x4, sp, #40
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w0, [x23]
	ldr	w8, [sp, #40]
	str	x8, [sp]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DP
	ldr	w2, [x24]
Lloh25:
	adrp	x26, _MDIO_PMA_REG_STATUS@GOTPAGE
Lloh26:
	ldr	x26, [x26, _MDIO_PMA_REG_STATUS@GOTPAGEOFF]
	ldr	w3, [x26]
	add	x4, sp, #40
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w2, [x24]
	ldr	w3, [x26]
	add	x4, sp, #44
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w0, [x23]
	ldr	w25, [sp, #44]
	str	x25, [sp]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_DP
	tbz	w25, #2, LBB0_4
; %bb.1:
	ldr	x8, [x20]
Lloh29:
	adrp	x9, _SPEED_10000@GOTPAGE
Lloh30:
	ldr	x9, [x9, _SPEED_10000@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_8073_xaui_wa
	cbz	x0, LBB0_4
; %bb.3:
	mov	w22, #0
	b	LBB0_24
LBB0_4:
Lloh32:
	adrp	x25, _MDIO_AN_DEVAD@GOTPAGE
Lloh33:
	ldr	x25, [x25, _MDIO_AN_DEVAD@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh34:
	adrp	x27, _MDIO_AN_REG_LINK_STATUS@GOTPAGE
Lloh35:
	ldr	x27, [x27, _MDIO_AN_REG_LINK_STATUS@GOTPAGEOFF]
	ldr	w3, [x27]
	add	x4, sp, #32
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w2, [x25]
	ldr	w3, [x27]
	add	x4, sp, #32
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w2, [x24]
	ldr	w3, [x26]
	add	x4, sp, #40
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w2, [x24]
	ldr	w3, [x26]
	add	x4, sp, #44
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w0, [x23]
	ldp	w8, w9, [sp, #40]
	ldr	w10, [sp, #32]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh36:
	adrp	x1, l_.str.5@PAGE
Lloh37:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_DP
	ldr	w8, [sp, #44]
	and	w8, w8, #0x4
	ldr	w9, [sp, #32]
	and	w9, w9, #0x2
	orr	w8, w8, w9
	cbz	w8, LBB0_7
; %bb.5:
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_8073_is_snr_needed
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w2, [x24]
Lloh38:
	adrp	x8, _MDIO_PMA_REG_PLL_BANDWIDTH@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MDIO_PMA_REG_PLL_BANDWIDTH@GOTPAGEOFF]
Lloh40:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	w4, #9916
	bl	_bnx2x_cl45_write
	ldr	w2, [x24]
Lloh41:
	adrp	x8, _MDIO_PMA_REG_CDR_BANDWIDTH@GOTPAGE
Lloh42:
	ldr	x8, [x8, _MDIO_PMA_REG_CDR_BANDWIDTH@GOTPAGEOFF]
Lloh43:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	w4, #819
	bl	_bnx2x_cl45_write
LBB0_7:
	ldr	w2, [x24]
Lloh44:
	adrp	x8, _MDIO_PMA_REG_8073_SPEED_LINK_STATUS@GOTPAGE
Lloh45:
	ldr	x8, [x8, _MDIO_PMA_REG_8073_SPEED_LINK_STATUS@GOTPAGEOFF]
Lloh46:
	ldr	w3, [x8]
	add	x4, sp, #36
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w8, [sp, #36]
	mov	w9, #32772
	and	w9, w8, w9
	cmp	w9, #4
	b.ne	LBB0_9
; %bb.8:
Lloh47:
	adrp	x1, l_.str.6@PAGE
Lloh48:
	add	x1, x1, l_.str.6@PAGEOFF
Lloh49:
	adrp	x8, _SPEED_10000@GOTPAGE
Lloh50:
	ldr	x8, [x8, _SPEED_10000@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
	mov	w9, #16386
	and	w9, w8, w9
	cmp	w9, #2
	b.ne	LBB0_11
; %bb.10:
Lloh51:
	adrp	x1, l_.str.7@PAGE
Lloh52:
	add	x1, x1, l_.str.7@PAGEOFF
Lloh53:
	adrp	x8, _SPEED_2500@GOTPAGE
Lloh54:
	ldr	x8, [x8, _SPEED_2500@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
	mov	w9, #8193
	and	w8, w8, w9
	cmp	w8, #1
	b.ne	LBB0_25
; %bb.12:
Lloh55:
	adrp	x1, l_.str.8@PAGE
Lloh56:
	add	x1, x1, l_.str.8@PAGEOFF
Lloh57:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh58:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
LBB0_13:
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	w0, [x23]
	ldr	w8, [x22, #4]
	str	x8, [sp]
	bl	_DP
	ldr	w8, [x22]
Lloh59:
	adrp	x9, _PORT_HW_CFG_SWAP_PHY_POLARITY_ENABLED@GOTPAGE
Lloh60:
	ldr	x9, [x9, _PORT_HW_CFG_SWAP_PHY_POLARITY_ENABLED@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.14:
Lloh62:
	adrp	x24, _MDIO_XS_DEVAD@GOTPAGE
Lloh63:
	ldr	x24, [x24, _MDIO_XS_DEVAD@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh64:
	adrp	x26, _MDIO_XS_REG_8073_RX_CTRL_PCIE@GOTPAGE
Lloh65:
	ldr	x26, [x26, _MDIO_XS_REG_8073_RX_CTRL_PCIE@GOTPAGEOFF]
	ldr	w3, [x26]
	add	x4, sp, #44
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	x8, [x19]
Lloh66:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh67:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
Lloh68:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
	ldr	w0, [x23]
Lloh69:
	adrp	x1, l_.str.10@PAGE
Lloh70:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_DP
	ldr	w8, [sp, #44]
	orr	w4, w8, #0x8
	b	LBB0_17
LBB0_16:
	ldr	w8, [sp, #44]
	and	w4, w8, #0xfffffff7
LBB0_17:
	str	w4, [sp, #44]
	ldr	w2, [x24]
	ldr	w3, [x26]
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_write
LBB0_18:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_bnx2x_ext_phy_10G_an_resolve
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_bnx2x_8073_resolve_fc
Lloh71:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh72:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
Lloh73:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	mov	w22, #1
LBB0_19:
	ldr	w8, [x19, #8]
Lloh74:
	adrp	x9, _LINK_STATUS_AUTO_NEGOTIATE_COMPLETE@GOTPAGE
Lloh75:
	ldr	x9, [x9, _LINK_STATUS_AUTO_NEGOTIATE_COMPLETE@GOTPAGEOFF]
Lloh76:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.20:
	ldr	w2, [x25]
Lloh77:
	adrp	x8, _MDIO_AN_REG_LP_AUTO_NEG2@GOTPAGE
Lloh78:
	ldr	x8, [x8, _MDIO_AN_REG_LP_AUTO_NEG2@GOTPAGEOFF]
Lloh79:
	ldr	w3, [x8]
	add	x4, sp, #44
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w8, [sp, #44]
	tbz	w8, #5, LBB0_22
; %bb.21:
Lloh80:
	adrp	x9, _LINK_STATUS_LINK_PARTNER_1000TFD_CAPABLE@GOTPAGE
Lloh81:
	ldr	x9, [x9, _LINK_STATUS_LINK_PARTNER_1000TFD_CAPABLE@GOTPAGEOFF]
Lloh82:
	ldr	w9, [x9]
	ldr	w10, [x19, #8]
	orr	w9, w10, w9
	str	w9, [x19, #8]
LBB0_22:
	tbz	w8, #7, LBB0_24
; %bb.23:
Lloh83:
	adrp	x8, _LINK_STATUS_LINK_PARTNER_10GXFD_CAPABLE@GOTPAGE
Lloh84:
	ldr	x8, [x8, _LINK_STATUS_LINK_PARTNER_10GXFD_CAPABLE@GOTPAGEOFF]
Lloh85:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_24:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_25:
	ldr	w0, [x23]
	ldr	w8, [x22, #4]
	str	x8, [sp]
Lloh86:
	adrp	x1, l_.str.9@PAGE
Lloh87:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_DP
	mov	w22, #0
	b	LBB0_19
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpAdd	Lloh86, Lloh87
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_PMA_DEVAD,4,2             ; @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_LASI_STAT,4,2         ; @MDIO_PMA_LASI_STAT
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"8703 LASI status 0x%x\n"

	.comm	_MDIO_PCS_DEVAD,4,2             ; @MDIO_PCS_DEVAD
	.comm	_MDIO_PCS_REG_STATUS,4,2        ; @MDIO_PCS_REG_STATUS
l_.str.1:                               ; @.str.1
	.asciz	"807x PCS status 0x%x->0x%x\n"

	.comm	_MDIO_PMA_REG_M8051_MSGOUT_REG,4,2 ; @MDIO_PMA_REG_M8051_MSGOUT_REG
	.comm	_MDIO_PMA_LASI_RXSTAT,4,2       ; @MDIO_PMA_LASI_RXSTAT
l_.str.2:                               ; @.str.2
	.asciz	"KR 0x9003 0x%x\n"

l_.str.3:                               ; @.str.3
	.asciz	"KR PCS status 0x%x\n"

	.comm	_MDIO_PMA_REG_STATUS,4,2        ; @MDIO_PMA_REG_STATUS
l_.str.4:                               ; @.str.4
	.asciz	"PMA_REG_STATUS=0x%x\n"

	.comm	_SPEED_10000,8,3                ; @SPEED_10000
	.comm	_MDIO_AN_DEVAD,4,2              ; @MDIO_AN_DEVAD
	.comm	_MDIO_AN_REG_LINK_STATUS,4,2    ; @MDIO_AN_REG_LINK_STATUS
l_.str.5:                               ; @.str.5
	.asciz	"KR PMA status 0x%x->0x%x,an_link_status=0x%x\n"

	.comm	_MDIO_PMA_REG_PLL_BANDWIDTH,4,2 ; @MDIO_PMA_REG_PLL_BANDWIDTH
	.comm	_MDIO_PMA_REG_CDR_BANDWIDTH,4,2 ; @MDIO_PMA_REG_CDR_BANDWIDTH
	.comm	_MDIO_PMA_REG_8073_SPEED_LINK_STATUS,4,2 ; @MDIO_PMA_REG_8073_SPEED_LINK_STATUS
l_.str.6:                               ; @.str.6
	.asciz	"port %x: External link up in 10G\n"

	.comm	_SPEED_2500,8,3                 ; @SPEED_2500
l_.str.7:                               ; @.str.7
	.asciz	"port %x: External link up in 2.5G\n"

	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
l_.str.8:                               ; @.str.8
	.asciz	"port %x: External link up in 1G\n"

l_.str.9:                               ; @.str.9
	.asciz	"port %x: External link is down\n"

	.comm	_PORT_HW_CFG_SWAP_PHY_POLARITY_ENABLED,4,2 ; @PORT_HW_CFG_SWAP_PHY_POLARITY_ENABLED
	.comm	_MDIO_XS_DEVAD,4,2              ; @MDIO_XS_DEVAD
	.comm	_MDIO_XS_REG_8073_RX_CTRL_PCIE,4,2 ; @MDIO_XS_REG_8073_RX_CTRL_PCIE
l_.str.10:                              ; @.str.10
	.asciz	"Swapping 1G polarity forthe 8073\n"

	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_LINK_STATUS_AUTO_NEGOTIATE_COMPLETE,4,2 ; @LINK_STATUS_AUTO_NEGOTIATE_COMPLETE
	.comm	_MDIO_AN_REG_LP_AUTO_NEG2,4,2   ; @MDIO_AN_REG_LP_AUTO_NEG2
	.comm	_LINK_STATUS_LINK_PARTNER_1000TFD_CAPABLE,4,2 ; @LINK_STATUS_LINK_PARTNER_1000TFD_CAPABLE
	.comm	_LINK_STATUS_LINK_PARTNER_10GXFD_CAPABLE,4,2 ; @LINK_STATUS_LINK_PARTNER_10GXFD_CAPABLE
	.no_dead_strip	_bnx2x_8073_read_status
.subsections_via_symbols
