	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_8706_8726_read_status
_bnx2x_8706_8726_read_status:           ## @bnx2x_8706_8726_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, %rbx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r15
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_MDIO_PMA_LASI_RXSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %r13
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r13, %r8
	callq	_bnx2x_cl45_read
	movq	_MDIO_PMA_LASI_TXSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_PMA_LASI_TXCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_sfp_mask_fault
	movl	(%r12), %edx
	movq	_MDIO_PMA_LASI_STAT@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	leaq	-44(%rbp), %r8
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_cl45_read
	movl	(%r12), %edx
	movl	(%r14), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r13, %r8
	callq	_bnx2x_cl45_read
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %edx
	movl	-48(%rbp), %ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_RX_SD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %r8
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_cl45_read
	movq	_MDIO_PCS_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_PCS_REG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-52(%rbp), %r8
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_cl45_read
	movq	_MDIO_AN_DEVAD@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_MDIO_AN_REG_LINK_STATUS@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r13, %r8
	callq	_bnx2x_cl45_read
	movl	(%r14), %edx
	movl	(%r12), %ecx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r13, %r8
	callq	_bnx2x_cl45_read
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-56(%rbp), %edx
	movl	-52(%rbp), %ecx
	movl	-48(%rbp), %r8d
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movl	-56(%rbp), %ecx
	andl	-52(%rbp), %ecx
	andl	$1, %ecx
	movl	-48(%rbp), %eax
	movl	%eax, %edx
	andl	$2, %edx
	xorl	%r13d, %r13d
	orl	%ecx, %edx
	setne	%r14b
	je	LBB0_5
## %bb.1:
	testb	$2, %al
	je	LBB0_2
## %bb.3:
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_SPEED_10000@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_bnx2x_ext_phy_resolve_fc
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
LBB0_5:
	movq	(%r12), %rax
	movq	_SPEED_10000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.6:
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_PMA_LASI_TXSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %r8
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_cl45_read
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_PMA_LASI_TXSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	leaq	-44(%rbp), %r8
	callq	_bnx2x_cl45_read
	testb	$1, -44(%rbp)
	je	LBB0_8
## %bb.7:
	movl	$1, 8(%r12)
LBB0_8:
	movb	%r14b, %r13b
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	"XGXS 8706/8726\n"

	.comm	_MDIO_PMA_DEVAD,4,2             ## @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_LASI_RXSTAT,4,2       ## @MDIO_PMA_LASI_RXSTAT
	.comm	_MDIO_PMA_LASI_TXSTAT,4,2       ## @MDIO_PMA_LASI_TXSTAT
	.comm	_MDIO_PMA_LASI_TXCTRL,4,2       ## @MDIO_PMA_LASI_TXCTRL
	.comm	_MDIO_PMA_LASI_STAT,4,2         ## @MDIO_PMA_LASI_STAT
L_.str.1:                               ## @.str.1
	.asciz	"8706/8726 LASI status 0x%x--> 0x%x\n"

	.comm	_MDIO_PMA_REG_RX_SD,4,2         ## @MDIO_PMA_REG_RX_SD
	.comm	_MDIO_PCS_DEVAD,4,2             ## @MDIO_PCS_DEVAD
	.comm	_MDIO_PCS_REG_STATUS,4,2        ## @MDIO_PCS_REG_STATUS
	.comm	_MDIO_AN_DEVAD,4,2              ## @MDIO_AN_DEVAD
	.comm	_MDIO_AN_REG_LINK_STATUS,4,2    ## @MDIO_AN_REG_LINK_STATUS
L_.str.2:                               ## @.str.2
	.asciz	"8706/8726 rx_sd 0x%x pcs_status 0x%x 1Gbps link_status 0x%x\n"

	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_SPEED_10000,8,3                ## @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.no_dead_strip	_bnx2x_8706_8726_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_8706_8726_read_status
_bnx2x_8706_8726_read_status:           ; @bnx2x_8706_8726_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]
Lloh0:
	adrp	x23, _NETIF_MSG_LINK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NETIF_MSG_LINK@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
Lloh4:
	adrp	x24, _MDIO_PMA_DEVAD@GOTPAGE
Lloh5:
	ldr	x24, [x24, _MDIO_PMA_DEVAD@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh6:
	adrp	x8, _MDIO_PMA_LASI_RXSTAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MDIO_PMA_LASI_RXSTAT@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x4, sp, #40
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
Lloh9:
	adrp	x25, _MDIO_PMA_LASI_TXSTAT@GOTPAGE
Lloh10:
	ldr	x25, [x25, _MDIO_PMA_LASI_TXSTAT@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh11:
	adrp	x8, _MDIO_PMA_LASI_TXCTRL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MDIO_PMA_LASI_TXCTRL@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_sfp_mask_fault
	ldr	w2, [x24]
Lloh14:
	adrp	x26, _MDIO_PMA_LASI_STAT@GOTPAGE
Lloh15:
	ldr	x26, [x26, _MDIO_PMA_LASI_STAT@GOTPAGEOFF]
	ldr	w3, [x26]
	add	x4, sp, #44
	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	w0, [x23]
	ldp	w9, w8, [sp, #40]
	stp	x8, x9, [sp]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
	ldr	w2, [x24]
Lloh18:
	adrp	x8, _MDIO_PMA_REG_RX_SD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MDIO_PMA_REG_RX_SD@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	add	x4, sp, #36
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
Lloh21:
	adrp	x8, _MDIO_PCS_DEVAD@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MDIO_PCS_DEVAD@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x8, _MDIO_PCS_REG_STATUS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MDIO_PCS_REG_STATUS@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	add	x4, sp, #32
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
Lloh27:
	adrp	x26, _MDIO_AN_DEVAD@GOTPAGE
Lloh28:
	ldr	x26, [x26, _MDIO_AN_DEVAD@GOTPAGEOFF]
	ldr	w2, [x26]
Lloh29:
	adrp	x27, _MDIO_AN_REG_LINK_STATUS@GOTPAGE
Lloh30:
	ldr	x27, [x27, _MDIO_AN_REG_LINK_STATUS@GOTPAGEOFF]
	ldr	w3, [x27]
	add	x4, sp, #40
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w2, [x26]
	ldr	w3, [x27]
	add	x4, sp, #40
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w0, [x23]
	ldp	w9, w8, [sp, #32]
	ldr	w10, [sp, #40]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DP
	ldp	w9, w8, [sp, #32]
	and	w9, w8, w9
	ldr	w8, [sp, #40]
	and	w10, w8, #0x2
	bfxil	w10, w9, #0, #1
	cmp	w10, #0
	cset	w23, ne
Lloh33:
	adrp	x26, _SPEED_10000@GOTPAGE
Lloh34:
	ldr	x26, [x26, _SPEED_10000@GOTPAGEOFF]
	cbz	w10, LBB0_2
; %bb.1:
Lloh35:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh36:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
	tst	w8, #0x2
	csel	x8, x9, x26, ne
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_bnx2x_ext_phy_resolve_fc
Lloh37:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	str	w8, [x19, #12]
LBB0_2:
	ldr	x8, [x19]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	w2, [x24]
	ldr	w3, [x25]
	add	x4, sp, #44
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w2, [x24]
	ldr	w3, [x25]
	add	x4, sp, #44
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldrb	w8, [sp, #44]
	tbz	w8, #0, LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_5:
	mov	x0, x23
	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
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"XGXS 8706/8726\n"

	.comm	_MDIO_PMA_DEVAD,4,2             ; @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_LASI_RXSTAT,4,2       ; @MDIO_PMA_LASI_RXSTAT
	.comm	_MDIO_PMA_LASI_TXSTAT,4,2       ; @MDIO_PMA_LASI_TXSTAT
	.comm	_MDIO_PMA_LASI_TXCTRL,4,2       ; @MDIO_PMA_LASI_TXCTRL
	.comm	_MDIO_PMA_LASI_STAT,4,2         ; @MDIO_PMA_LASI_STAT
l_.str.1:                               ; @.str.1
	.asciz	"8706/8726 LASI status 0x%x--> 0x%x\n"

	.comm	_MDIO_PMA_REG_RX_SD,4,2         ; @MDIO_PMA_REG_RX_SD
	.comm	_MDIO_PCS_DEVAD,4,2             ; @MDIO_PCS_DEVAD
	.comm	_MDIO_PCS_REG_STATUS,4,2        ; @MDIO_PCS_REG_STATUS
	.comm	_MDIO_AN_DEVAD,4,2              ; @MDIO_AN_DEVAD
	.comm	_MDIO_AN_REG_LINK_STATUS,4,2    ; @MDIO_AN_REG_LINK_STATUS
l_.str.2:                               ; @.str.2
	.asciz	"8706/8726 rx_sd 0x%x pcs_status 0x%x 1Gbps link_status 0x%x\n"

	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_SPEED_10000,8,3                ; @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.no_dead_strip	_bnx2x_8706_8726_read_status
.subsections_via_symbols
