	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_7101_read_status
_bnx2x_7101_read_status:                ## @bnx2x_7101_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r12
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_MDIO_PMA_LASI_STAT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leaq	-44(%rbp), %r8
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_cl45_read
	movl	(%r15), %edx
	movl	(%rbx), %ecx
	leaq	-48(%rbp), %r8
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_cl45_read
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	-44(%rbp), %edx
	movl	-48(%rbp), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movl	(%r15), %edx
	movq	_MDIO_PMA_REG_STATUS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	movq	%r13, %rsi
	leaq	-44(%rbp), %r8
	callq	_bnx2x_cl45_read
	movl	(%r15), %edx
	movq	%r14, %r15
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	movq	%r13, %rsi
	leaq	-48(%rbp), %r8
	callq	_bnx2x_cl45_read
	movl	(%r14), %edi
	movl	-44(%rbp), %edx
	movl	-48(%rbp), %ecx
	leaq	L_.str.1(%rip), %rsi
	callq	_DP
	movl	-48(%rbp), %ebx
	andl	$4, %ebx
	je	LBB0_3
## %bb.1:
	movq	_MDIO_AN_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %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
	movq	_SPEED_10000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, 8(%r14)
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movl	(%r15), %edi
	movl	-44(%rbp), %edx
	movl	%edx, %ecx
	andl	$16384, %ecx                    ## imm = 0x4000
	leaq	L_.str.2(%rip), %rsi
	callq	_DP
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_bnx2x_ext_phy_10G_an_resolve
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_bnx2x_ext_phy_resolve_fc
	testb	$8, -43(%rbp)
	je	LBB0_3
## %bb.2:
	movq	_LINK_STATUS_LINK_PARTNER_10GXFD_CAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
LBB0_3:
	shrl	$2, %ebx
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	"10G-base-T LASI status 0x%x->0x%x\n"

	.comm	_MDIO_PMA_REG_STATUS,4,2        ## @MDIO_PMA_REG_STATUS
L_.str.1:                               ## @.str.1
	.asciz	"10G-base-T PMA status 0x%x->0x%x\n"

	.comm	_MDIO_AN_DEVAD,4,2              ## @MDIO_AN_DEVAD
	.comm	_MDIO_AN_REG_MASTER_STATUS,4,2  ## @MDIO_AN_REG_MASTER_STATUS
	.comm	_SPEED_10000,4,2                ## @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
L_.str.2:                               ## @.str.2
	.asciz	"SFX7101 AN status 0x%x->Master=%x\n"

	.comm	_LINK_STATUS_LINK_PARTNER_10GXFD_CAPABLE,4,2 ## @LINK_STATUS_LINK_PARTNER_10GXFD_CAPABLE
	.no_dead_strip	_bnx2x_7101_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_7101_read_status
_bnx2x_7101_read_status:                ; @bnx2x_7101_read_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x1]
Lloh0:
	adrp	x24, _MDIO_PMA_DEVAD@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MDIO_PMA_DEVAD@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh2:
	adrp	x23, _MDIO_PMA_LASI_STAT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MDIO_PMA_LASI_STAT@GOTPAGEOFF]
	ldr	w3, [x23]
	add	x4, sp, #8
	mov	x0, x22
	mov	x1, x21
	bl	_bnx2x_cl45_read
	ldr	w2, [x24]
	ldr	w3, [x23]
	add	x4, sp, #12
	mov	x0, x22
	mov	x1, x21
	bl	_bnx2x_cl45_read
Lloh4:
	adrp	x23, _NETIF_MSG_LINK@GOTPAGE
Lloh5:
	ldr	x23, [x23, _NETIF_MSG_LINK@GOTPAGEOFF]
	ldr	w0, [x23]
	ldp	w2, w3, [sp, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	ldr	w2, [x24]
Lloh8:
	adrp	x25, _MDIO_PMA_REG_STATUS@GOTPAGE
Lloh9:
	ldr	x25, [x25, _MDIO_PMA_REG_STATUS@GOTPAGEOFF]
	ldr	w3, [x25]
	add	x4, sp, #8
	mov	x0, x22
	mov	x1, x21
	bl	_bnx2x_cl45_read
	ldr	w2, [x24]
	ldr	w3, [x25]
	add	x4, sp, #12
	mov	x0, x22
	mov	x1, x21
	bl	_bnx2x_cl45_read
	ldr	w0, [x23]
	ldp	w2, w3, [sp, #8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
	ldr	w8, [sp, #12]
	and	w24, w8, #0x4
	tbz	w8, #2, LBB0_3
; %bb.1:
Lloh12:
	adrp	x8, _MDIO_AN_DEVAD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MDIO_AN_DEVAD@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _MDIO_AN_REG_MASTER_STATUS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MDIO_AN_REG_MASTER_STATUS@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x22
	mov	x1, x21
	bl	_bnx2x_cl45_read
Lloh18:
	adrp	x8, _SPEED_10000@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SPEED_10000@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh22:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
	ldr	w0, [x23]
	ldr	w2, [sp, #8]
	and	w3, w2, #0x4000
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DP
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_bnx2x_ext_phy_10G_an_resolve
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_bnx2x_ext_phy_resolve_fc
	ldrb	w8, [sp, #9]
	tbz	w8, #3, LBB0_3
; %bb.2:
Lloh26:
	adrp	x8, _LINK_STATUS_LINK_PARTNER_10GXFD_CAPABLE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _LINK_STATUS_LINK_PARTNER_10GXFD_CAPABLE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_3:
	lsr	w0, w24, #2
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.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	"10G-base-T LASI status 0x%x->0x%x\n"

	.comm	_MDIO_PMA_REG_STATUS,4,2        ; @MDIO_PMA_REG_STATUS
l_.str.1:                               ; @.str.1
	.asciz	"10G-base-T PMA status 0x%x->0x%x\n"

	.comm	_MDIO_AN_DEVAD,4,2              ; @MDIO_AN_DEVAD
	.comm	_MDIO_AN_REG_MASTER_STATUS,4,2  ; @MDIO_AN_REG_MASTER_STATUS
	.comm	_SPEED_10000,4,2                ; @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
l_.str.2:                               ; @.str.2
	.asciz	"SFX7101 AN status 0x%x->Master=%x\n"

	.comm	_LINK_STATUS_LINK_PARTNER_10GXFD_CAPABLE,4,2 ; @LINK_STATUS_LINK_PARTNER_10GXFD_CAPABLE
	.no_dead_strip	_bnx2x_7101_read_status
.subsections_via_symbols
