	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_848xx_read_status
_bnx2x_848xx_read_status:               ## @bnx2x_848xx_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, %r15
	movq	%rdi, %r13
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r12
	movq	_MDIO_AN_DEVAD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-68(%rbp), %r8
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$65530, %ecx                    ## imm = 0xFFFA
	callq	_bnx2x_cl45_read
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_PMA_REG_8481_PMD_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-52(%rbp), %r8
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_cl45_read
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	-52(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	testb	$8, -51(%rbp)
	jne	LBB0_1
## %bb.20:
	movl	(%rbx), %edx
	movq	_MDIO_AN_REG_8481_EXPANSION_REG_ACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$3906, %r8d                     ## imm = 0xF42
	callq	_bnx2x_cl45_write
	movl	(%rbx), %edx
	movq	_MDIO_AN_REG_8481_EXPANSION_REG_RD_RW@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %r8
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_cl45_read
	movl	(%r14), %edi
	movl	-48(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movl	-48(%rbp), %eax
	movl	%eax, %ecx
	andl	$1536, %ecx                     ## imm = 0x600
	je	LBB0_21
## %bb.22:
	cmpl	$1024, %ecx                     ## imm = 0x400
	je	LBB0_25
## %bb.23:
	cmpl	$512, %ecx                      ## imm = 0x200
	jne	LBB0_33
## %bb.24:
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
	jmp	LBB0_26
LBB0_1:
	movq	_SPEED_10000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_bnx2x_ext_phy_10G_an_resolve
LBB0_2:
	movl	(%r14), %edi
	movl	(%r15), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	%r13, %rdi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_bnx2x_ext_phy_resolve_fc
	movl	(%rbx), %edx
	movq	_MDIO_AN_REG_CL37_FC_LP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %r8
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_cl45_read
	movl	-44(%rbp), %eax
	testb	$32, %al
	jne	LBB0_3
## %bb.4:
	testb	$64, %al
	jne	LBB0_5
LBB0_6:
	testb	$-128, %al
	jne	LBB0_7
LBB0_8:
	testl	$256, %eax                      ## imm = 0x100
	jne	LBB0_9
LBB0_10:
	testl	$512, %eax                      ## imm = 0x200
	je	LBB0_12
LBB0_11:
	movq	_LINK_STATUS_LINK_PARTNER_100T4_CAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
LBB0_12:
	movl	(%rbx), %edx
	movq	_MDIO_AN_REG_1000T_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %r8
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_cl45_read
	movl	-44(%rbp), %eax
	testl	$1024, %eax                     ## imm = 0x400
	je	LBB0_14
## %bb.13:
	movq	_LINK_STATUS_LINK_PARTNER_1000THD_CAPABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 16(%r15)
LBB0_14:
	testl	$2048, %eax                     ## imm = 0x800
	je	LBB0_16
## %bb.15:
	movq	_LINK_STATUS_LINK_PARTNER_1000TFD_CAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
LBB0_16:
	movl	(%rbx), %edx
	movq	_MDIO_AN_REG_MASTER_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %r8
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_cl45_read
	testb	$8, -43(%rbp)
	je	LBB0_18
## %bb.17:
	movq	_LINK_STATUS_LINK_PARTNER_10GXFD_CAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
LBB0_18:
	movq	%r13, %rdi
	callq	_bnx2x_is_8483x_8485x
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_35
## %bb.19:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_bnx2x_eee_an_resolve
	jmp	LBB0_35
LBB0_3:
	movq	_LINK_STATUS_LINK_PARTNER_10THD_CAPABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 16(%r15)
	testb	$64, %al
	je	LBB0_6
LBB0_5:
	movq	_LINK_STATUS_LINK_PARTNER_10TFD_CAPABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 16(%r15)
	testb	$-128, %al
	je	LBB0_8
LBB0_7:
	movq	_LINK_STATUS_LINK_PARTNER_100TXHD_CAPABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 16(%r15)
	testl	$256, %eax                      ## imm = 0x100
	je	LBB0_10
LBB0_9:
	movq	_LINK_STATUS_LINK_PARTNER_100TXFD_CAPABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 16(%r15)
	testl	$512, %eax                      ## imm = 0x200
	jne	LBB0_11
	jmp	LBB0_12
LBB0_21:
	movq	_SPEED_10@GOTPCREL(%rip), %rcx
	jmp	LBB0_26
LBB0_25:
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
LBB0_26:
	movl	(%rcx), %edx
	movl	%edx, (%r15)
	testl	$2048, %eax                     ## imm = 0x800
	je	LBB0_34
## %bb.27:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	movq	%rbx, %rsi
	testl	$256, %eax                      ## imm = 0x100
	jne	LBB0_29
## %bb.28:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_29:
	movq	%rsi, 8(%r15)
	movl	(%r14), %edi
	xorl	%ecx, %ecx
	cmpq	%rbx, %rsi
	sete	%cl
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	_MDIO_AN_DEVAD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	_MDIO_AN_REG_8481_LEGACY_MII_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %r8
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_cl45_read
	testb	$32, -44(%rbp)
	je	LBB0_31
## %bb.30:
	movq	_LINK_STATUS_AUTO_NEGOTIATE_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
LBB0_31:
	movl	(%rbx), %edx
	movq	_MDIO_AN_REG_8481_LEGACY_AN_EXPANSION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %r8
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_cl45_read
	testb	$1, -44(%rbp)
	jne	LBB0_2
## %bb.32:
	movq	_LINK_STATUS_PARALLEL_DETECTION_USED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
	jmp	LBB0_2
LBB0_33:
	movl	$0, (%r15)
LBB0_34:
	xorl	%ebx, %ebx
LBB0_35:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_AN_DEVAD,4,2              ## @MDIO_AN_DEVAD
	.comm	_MDIO_PMA_DEVAD,4,2             ## @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_REG_8481_PMD_SIGNAL,4,2 ## @MDIO_PMA_REG_8481_PMD_SIGNAL
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BCM848xx: PMD_SIGNAL 1.a811 = 0x%x\n"

	.comm	_SPEED_10000,4,2                ## @SPEED_10000
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_MDIO_AN_REG_8481_EXPANSION_REG_ACCESS,4,2 ## @MDIO_AN_REG_8481_EXPANSION_REG_ACCESS
	.comm	_MDIO_AN_REG_8481_EXPANSION_REG_RD_RW,4,2 ## @MDIO_AN_REG_8481_EXPANSION_REG_RD_RW
L_.str.1:                               ## @.str.1
	.asciz	"Legacy speed status = 0x%x\n"

	.comm	_SPEED_10,4,2                   ## @SPEED_10
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_DUPLEX_HALF,8,3                ## @DUPLEX_HALF
L_.str.2:                               ## @.str.2
	.asciz	"Link is up in %dMbps, is_duplex_full= %d\n"

	.comm	_MDIO_AN_REG_8481_LEGACY_MII_STATUS,4,2 ## @MDIO_AN_REG_8481_LEGACY_MII_STATUS
	.comm	_LINK_STATUS_AUTO_NEGOTIATE_COMPLETE,4,2 ## @LINK_STATUS_AUTO_NEGOTIATE_COMPLETE
	.comm	_MDIO_AN_REG_8481_LEGACY_AN_EXPANSION,4,2 ## @MDIO_AN_REG_8481_LEGACY_AN_EXPANSION
	.comm	_LINK_STATUS_PARALLEL_DETECTION_USED,4,2 ## @LINK_STATUS_PARALLEL_DETECTION_USED
L_.str.3:                               ## @.str.3
	.asciz	"BCM848x3: link speed is %d\n"

	.comm	_MDIO_AN_REG_CL37_FC_LP,4,2     ## @MDIO_AN_REG_CL37_FC_LP
	.comm	_LINK_STATUS_LINK_PARTNER_10THD_CAPABLE,4,2 ## @LINK_STATUS_LINK_PARTNER_10THD_CAPABLE
	.comm	_LINK_STATUS_LINK_PARTNER_10TFD_CAPABLE,4,2 ## @LINK_STATUS_LINK_PARTNER_10TFD_CAPABLE
	.comm	_LINK_STATUS_LINK_PARTNER_100TXHD_CAPABLE,4,2 ## @LINK_STATUS_LINK_PARTNER_100TXHD_CAPABLE
	.comm	_LINK_STATUS_LINK_PARTNER_100TXFD_CAPABLE,4,2 ## @LINK_STATUS_LINK_PARTNER_100TXFD_CAPABLE
	.comm	_LINK_STATUS_LINK_PARTNER_100T4_CAPABLE,4,2 ## @LINK_STATUS_LINK_PARTNER_100T4_CAPABLE
	.comm	_MDIO_AN_REG_1000T_STATUS,4,2   ## @MDIO_AN_REG_1000T_STATUS
	.comm	_LINK_STATUS_LINK_PARTNER_1000THD_CAPABLE,4,2 ## @LINK_STATUS_LINK_PARTNER_1000THD_CAPABLE
	.comm	_LINK_STATUS_LINK_PARTNER_1000TFD_CAPABLE,4,2 ## @LINK_STATUS_LINK_PARTNER_1000TFD_CAPABLE
	.comm	_MDIO_AN_REG_MASTER_STATUS,4,2  ## @MDIO_AN_REG_MASTER_STATUS
	.comm	_LINK_STATUS_LINK_PARTNER_10GXFD_CAPABLE,4,2 ## @LINK_STATUS_LINK_PARTNER_10GXFD_CAPABLE
	.no_dead_strip	_bnx2x_848xx_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_848xx_read_status
_bnx2x_848xx_read_status:               ; @bnx2x_848xx_read_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x1]
Lloh0:
	adrp	x23, _MDIO_AN_DEVAD@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MDIO_AN_DEVAD@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x4, sp, #24
	mov	x0, x22
	mov	x1, x21
	mov	w3, #65530
	bl	_bnx2x_cl45_read
Lloh2:
	adrp	x8, _MDIO_PMA_DEVAD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MDIO_PMA_DEVAD@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _MDIO_PMA_REG_8481_PMD_SIGNAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MDIO_PMA_REG_8481_PMD_SIGNAL@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	add	x4, sp, #20
	mov	x0, x22
	mov	x1, x21
	bl	_bnx2x_cl45_read
Lloh8:
	adrp	x24, _NETIF_MSG_LINK@GOTPAGE
Lloh9:
	ldr	x24, [x24, _NETIF_MSG_LINK@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	w2, [sp, #20]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	ldrb	w8, [sp, #21]
	tbnz	w8, #3, LBB0_5
; %bb.1:
	ldr	w2, [x23]
Lloh12:
	adrp	x8, _MDIO_AN_REG_8481_EXPANSION_REG_ACCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MDIO_AN_REG_8481_EXPANSION_REG_ACCESS@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	w4, #3906
	bl	_bnx2x_cl45_write
	ldr	w2, [x23]
Lloh15:
	adrp	x8, _MDIO_AN_REG_8481_EXPANSION_REG_RD_RW@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MDIO_AN_REG_8481_EXPANSION_REG_RD_RW@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	add	x4, sp, #16
	mov	x0, x22
	mov	x1, x21
	bl	_bnx2x_cl45_read
	ldr	w0, [x24]
	ldr	w2, [sp, #16]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
	ldr	w8, [sp, #16]
	ands	w9, w8, #0x600
	b.eq	LBB0_25
; %bb.2:
	cmp	w9, #1024
	b.eq	LBB0_26
; %bb.3:
	cmp	w9, #512
	b.ne	LBB0_32
; %bb.4:
Lloh20:
	adrp	x9, _SPEED_100@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SPEED_100@GOTPAGEOFF]
	b	LBB0_27
LBB0_5:
Lloh22:
	adrp	x8, _SPEED_10000@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SPEED_10000@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh25:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_bnx2x_ext_phy_10G_an_resolve
LBB0_6:
	ldr	w0, [x24]
	ldr	w2, [x19]
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DP
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_bnx2x_ext_phy_resolve_fc
	ldr	w2, [x23]
Lloh30:
	adrp	x8, _MDIO_AN_REG_CL37_FC_LP@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MDIO_AN_REG_CL37_FC_LP@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	add	x4, sp, #28
	mov	x0, x22
	mov	x1, x21
	bl	_bnx2x_cl45_read
	ldr	w8, [sp, #28]
	tbnz	w8, #5, LBB0_21
; %bb.7:
	tbnz	w8, #6, LBB0_22
LBB0_8:
	tbnz	w8, #7, LBB0_23
LBB0_9:
	tbnz	w8, #8, LBB0_24
LBB0_10:
	tbz	w8, #9, LBB0_12
LBB0_11:
Lloh33:
	adrp	x8, _LINK_STATUS_LINK_PARTNER_100T4_CAPABLE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _LINK_STATUS_LINK_PARTNER_100T4_CAPABLE@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_12:
	ldr	w2, [x23]
Lloh36:
	adrp	x8, _MDIO_AN_REG_1000T_STATUS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MDIO_AN_REG_1000T_STATUS@GOTPAGEOFF]
Lloh38:
	ldr	w3, [x8]
	add	x4, sp, #28
	mov	x0, x22
	mov	x1, x21
	bl	_bnx2x_cl45_read
	ldr	w8, [sp, #28]
	tbz	w8, #10, LBB0_14
; %bb.13:
Lloh39:
	adrp	x9, _LINK_STATUS_LINK_PARTNER_1000THD_CAPABLE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _LINK_STATUS_LINK_PARTNER_1000THD_CAPABLE@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	ldr	w10, [x19, #16]
	orr	w9, w10, w9
	str	w9, [x19, #16]
LBB0_14:
	tbz	w8, #11, LBB0_16
; %bb.15:
Lloh42:
	adrp	x8, _LINK_STATUS_LINK_PARTNER_1000TFD_CAPABLE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _LINK_STATUS_LINK_PARTNER_1000TFD_CAPABLE@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_16:
	ldr	w2, [x23]
Lloh45:
	adrp	x8, _MDIO_AN_REG_MASTER_STATUS@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MDIO_AN_REG_MASTER_STATUS@GOTPAGEOFF]
Lloh47:
	ldr	w3, [x8]
	add	x4, sp, #28
	mov	x0, x22
	mov	x1, x21
	bl	_bnx2x_cl45_read
	ldrb	w8, [sp, #29]
	tbz	w8, #3, LBB0_18
; %bb.17:
Lloh48:
	adrp	x8, _LINK_STATUS_LINK_PARTNER_10GXFD_CAPABLE@GOTPAGE
Lloh49:
	ldr	x8, [x8, _LINK_STATUS_LINK_PARTNER_10GXFD_CAPABLE@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_18:
	mov	x0, x21
	bl	_bnx2x_is_8483x_8485x
	cbz	x0, LBB0_20
; %bb.19:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_bnx2x_eee_an_resolve
LBB0_20:
	mov	w0, #1
	b	LBB0_34
LBB0_21:
Lloh51:
	adrp	x9, _LINK_STATUS_LINK_PARTNER_10THD_CAPABLE@GOTPAGE
Lloh52:
	ldr	x9, [x9, _LINK_STATUS_LINK_PARTNER_10THD_CAPABLE@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	ldr	w10, [x19, #16]
	orr	w9, w10, w9
	str	w9, [x19, #16]
	tbz	w8, #6, LBB0_8
LBB0_22:
Lloh54:
	adrp	x9, _LINK_STATUS_LINK_PARTNER_10TFD_CAPABLE@GOTPAGE
Lloh55:
	ldr	x9, [x9, _LINK_STATUS_LINK_PARTNER_10TFD_CAPABLE@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	ldr	w10, [x19, #16]
	orr	w9, w10, w9
	str	w9, [x19, #16]
	tbz	w8, #7, LBB0_9
LBB0_23:
Lloh57:
	adrp	x9, _LINK_STATUS_LINK_PARTNER_100TXHD_CAPABLE@GOTPAGE
Lloh58:
	ldr	x9, [x9, _LINK_STATUS_LINK_PARTNER_100TXHD_CAPABLE@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
	ldr	w10, [x19, #16]
	orr	w9, w10, w9
	str	w9, [x19, #16]
	tbz	w8, #8, LBB0_10
LBB0_24:
Lloh60:
	adrp	x9, _LINK_STATUS_LINK_PARTNER_100TXFD_CAPABLE@GOTPAGE
Lloh61:
	ldr	x9, [x9, _LINK_STATUS_LINK_PARTNER_100TXFD_CAPABLE@GOTPAGEOFF]
Lloh62:
	ldr	w9, [x9]
	ldr	w10, [x19, #16]
	orr	w9, w10, w9
	str	w9, [x19, #16]
	tbnz	w8, #9, LBB0_11
	b	LBB0_12
LBB0_25:
Lloh63:
	adrp	x9, _SPEED_10@GOTPAGE
Lloh64:
	ldr	x9, [x9, _SPEED_10@GOTPAGEOFF]
	b	LBB0_27
LBB0_26:
Lloh65:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh66:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
LBB0_27:
	ldr	w2, [x9]
	str	w2, [x19]
	tbz	w8, #11, LBB0_33
; %bb.28:
Lloh67:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh68:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh69:
	ldr	x9, [x9]
Lloh70:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh71:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
Lloh72:
	ldr	x10, [x10]
	tst	w8, #0x100
	csel	x8, x9, x10, eq
	str	x8, [x19, #8]
	ldr	w0, [x24]
	cmp	x8, x10
	cset	w8, eq
	str	x8, [sp]
Lloh73:
	adrp	x1, l_.str.2@PAGE
Lloh74:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DP
	ldr	w2, [x23]
Lloh75:
	adrp	x8, _MDIO_AN_REG_8481_LEGACY_MII_STATUS@GOTPAGE
Lloh76:
	ldr	x8, [x8, _MDIO_AN_REG_8481_LEGACY_MII_STATUS@GOTPAGEOFF]
Lloh77:
	ldr	w3, [x8]
	add	x4, sp, #28
	mov	x0, x22
	mov	x1, x21
	bl	_bnx2x_cl45_read
	ldrb	w8, [sp, #28]
	tbz	w8, #5, LBB0_30
; %bb.29:
Lloh78:
	adrp	x8, _LINK_STATUS_AUTO_NEGOTIATE_COMPLETE@GOTPAGE
Lloh79:
	ldr	x8, [x8, _LINK_STATUS_AUTO_NEGOTIATE_COMPLETE@GOTPAGEOFF]
Lloh80:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_30:
	ldr	w2, [x23]
Lloh81:
	adrp	x8, _MDIO_AN_REG_8481_LEGACY_AN_EXPANSION@GOTPAGE
Lloh82:
	ldr	x8, [x8, _MDIO_AN_REG_8481_LEGACY_AN_EXPANSION@GOTPAGEOFF]
Lloh83:
	ldr	w3, [x8]
	add	x4, sp, #28
	mov	x0, x22
	mov	x1, x21
	bl	_bnx2x_cl45_read
	ldrb	w8, [sp, #28]
	tbnz	w8, #0, LBB0_6
; %bb.31:
Lloh84:
	adrp	x8, _LINK_STATUS_PARALLEL_DETECTION_USED@GOTPAGE
Lloh85:
	ldr	x8, [x8, _LINK_STATUS_PARALLEL_DETECTION_USED@GOTPAGEOFF]
Lloh86:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
	b	LBB0_6
LBB0_32:
	str	wzr, [x19]
LBB0_33:
	mov	w0, #0
LBB0_34:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_AN_DEVAD,4,2              ; @MDIO_AN_DEVAD
	.comm	_MDIO_PMA_DEVAD,4,2             ; @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_REG_8481_PMD_SIGNAL,4,2 ; @MDIO_PMA_REG_8481_PMD_SIGNAL
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BCM848xx: PMD_SIGNAL 1.a811 = 0x%x\n"

	.comm	_SPEED_10000,4,2                ; @SPEED_10000
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_MDIO_AN_REG_8481_EXPANSION_REG_ACCESS,4,2 ; @MDIO_AN_REG_8481_EXPANSION_REG_ACCESS
	.comm	_MDIO_AN_REG_8481_EXPANSION_REG_RD_RW,4,2 ; @MDIO_AN_REG_8481_EXPANSION_REG_RD_RW
l_.str.1:                               ; @.str.1
	.asciz	"Legacy speed status = 0x%x\n"

	.comm	_SPEED_10,4,2                   ; @SPEED_10
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_DUPLEX_HALF,8,3                ; @DUPLEX_HALF
l_.str.2:                               ; @.str.2
	.asciz	"Link is up in %dMbps, is_duplex_full= %d\n"

	.comm	_MDIO_AN_REG_8481_LEGACY_MII_STATUS,4,2 ; @MDIO_AN_REG_8481_LEGACY_MII_STATUS
	.comm	_LINK_STATUS_AUTO_NEGOTIATE_COMPLETE,4,2 ; @LINK_STATUS_AUTO_NEGOTIATE_COMPLETE
	.comm	_MDIO_AN_REG_8481_LEGACY_AN_EXPANSION,4,2 ; @MDIO_AN_REG_8481_LEGACY_AN_EXPANSION
	.comm	_LINK_STATUS_PARALLEL_DETECTION_USED,4,2 ; @LINK_STATUS_PARALLEL_DETECTION_USED
l_.str.3:                               ; @.str.3
	.asciz	"BCM848x3: link speed is %d\n"

	.comm	_MDIO_AN_REG_CL37_FC_LP,4,2     ; @MDIO_AN_REG_CL37_FC_LP
	.comm	_LINK_STATUS_LINK_PARTNER_10THD_CAPABLE,4,2 ; @LINK_STATUS_LINK_PARTNER_10THD_CAPABLE
	.comm	_LINK_STATUS_LINK_PARTNER_10TFD_CAPABLE,4,2 ; @LINK_STATUS_LINK_PARTNER_10TFD_CAPABLE
	.comm	_LINK_STATUS_LINK_PARTNER_100TXHD_CAPABLE,4,2 ; @LINK_STATUS_LINK_PARTNER_100TXHD_CAPABLE
	.comm	_LINK_STATUS_LINK_PARTNER_100TXFD_CAPABLE,4,2 ; @LINK_STATUS_LINK_PARTNER_100TXFD_CAPABLE
	.comm	_LINK_STATUS_LINK_PARTNER_100T4_CAPABLE,4,2 ; @LINK_STATUS_LINK_PARTNER_100T4_CAPABLE
	.comm	_MDIO_AN_REG_1000T_STATUS,4,2   ; @MDIO_AN_REG_1000T_STATUS
	.comm	_LINK_STATUS_LINK_PARTNER_1000THD_CAPABLE,4,2 ; @LINK_STATUS_LINK_PARTNER_1000THD_CAPABLE
	.comm	_LINK_STATUS_LINK_PARTNER_1000TFD_CAPABLE,4,2 ; @LINK_STATUS_LINK_PARTNER_1000TFD_CAPABLE
	.comm	_MDIO_AN_REG_MASTER_STATUS,4,2  ; @MDIO_AN_REG_MASTER_STATUS
	.comm	_LINK_STATUS_LINK_PARTNER_10GXFD_CAPABLE,4,2 ; @LINK_STATUS_LINK_PARTNER_10GXFD_CAPABLE
	.no_dead_strip	_bnx2x_848xx_read_status
.subsections_via_symbols
