	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_8705_read_status
_bnx2x_8705_read_status:                ## @bnx2x_8705_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, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rbx
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	_MDIO_WIS_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_WIS_REG_LASI_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %r8
	callq	_bnx2x_cl45_read
	movl	(%r15), %edi
	movl	-44(%rbp), %edx
	leaq	L_.str.1(%rip), %r12
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	_MDIO_WIS_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_WIS_REG_LASI_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %r8
	callq	_bnx2x_cl45_read
	movl	(%r15), %edi
	movl	-44(%rbp), %edx
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_MDIO_PMA_REG_RX_SD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_cl45_read
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$51209, %ecx                    ## imm = 0xC809
	leaq	-44(%rbp), %r12
	movq	%r12, %r8
	callq	_bnx2x_cl45_read
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$51209, %ecx                    ## imm = 0xC809
	movq	%r12, %r8
	callq	_bnx2x_cl45_read
	movl	(%r15), %edi
	movl	-44(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	testb	$1, -48(%rbp)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movl	$768, %eax                      ## imm = 0x300
	andl	-44(%rbp), %eax
	cmpl	$512, %eax                      ## imm = 0x200
	movl	$0, %eax
	jne	LBB0_4
## %bb.3:
	movq	_SPEED_10000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx)
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_bnx2x_ext_phy_resolve_fc
	movl	$1, %eax
LBB0_4:
	addq	$24, %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	"read status 8705\n"

	.comm	_MDIO_WIS_DEVAD,4,2             ## @MDIO_WIS_DEVAD
	.comm	_MDIO_WIS_REG_LASI_STATUS,4,2   ## @MDIO_WIS_REG_LASI_STATUS
L_.str.1:                               ## @.str.1
	.asciz	"8705 LASI status 0x%x\n"

	.comm	_MDIO_PMA_DEVAD,4,2             ## @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_REG_RX_SD,4,2         ## @MDIO_PMA_REG_RX_SD
L_.str.2:                               ## @.str.2
	.asciz	"8705 1.c809 val=0x%x\n"

	.comm	_SPEED_10000,4,2                ## @SPEED_10000
	.no_dead_strip	_bnx2x_8705_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_8705_read_status
_bnx2x_8705_read_status:                ; @bnx2x_8705_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, _NETIF_MSG_LINK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NETIF_MSG_LINK@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
Lloh4:
	adrp	x25, _MDIO_WIS_DEVAD@GOTPAGE
Lloh5:
	ldr	x25, [x25, _MDIO_WIS_DEVAD@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh6:
	adrp	x26, _MDIO_WIS_REG_LASI_STATUS@GOTPAGE
Lloh7:
	ldr	x26, [x26, _MDIO_WIS_REG_LASI_STATUS@GOTPAGEOFF]
	ldr	w3, [x26]
	add	x4, sp, #12
	mov	x0, x22
	mov	x1, x21
	bl	_bnx2x_cl45_read
	ldr	w0, [x24]
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh8:
	adrp	x23, l_.str.1@PAGE
Lloh9:
	add	x23, x23, l_.str.1@PAGEOFF
	mov	x1, x23
	bl	_DP
	ldr	w2, [x25]
	ldr	w3, [x26]
	add	x4, sp, #12
	mov	x0, x22
	mov	x1, x21
	bl	_bnx2x_cl45_read
	ldr	w0, [x24]
	ldr	w8, [sp, #12]
	str	x8, [sp]
	mov	x1, x23
	bl	_DP
Lloh10:
	adrp	x23, _MDIO_PMA_DEVAD@GOTPAGE
Lloh11:
	ldr	x23, [x23, _MDIO_PMA_DEVAD@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh12:
	adrp	x8, _MDIO_PMA_REG_RX_SD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MDIO_PMA_REG_RX_SD@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x22
	mov	x1, x21
	bl	_bnx2x_cl45_read
	ldr	w2, [x23]
	add	x4, sp, #12
	mov	x0, x22
	mov	x1, x21
	mov	w3, #51209
	bl	_bnx2x_cl45_read
	ldr	w2, [x23]
	add	x4, sp, #12
	mov	x0, x22
	mov	x1, x21
	mov	w3, #51209
	bl	_bnx2x_cl45_read
	ldr	w0, [x24]
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DP
	ldrb	w8, [sp, #8]
	tbz	w8, #0, LBB0_3
; %bb.1:
	ldr	w8, [sp, #12]
	and	w8, w8, #0x300
	cmp	w8, #512
	b.ne	LBB0_3
; %bb.2:
Lloh17:
	adrp	x8, _SPEED_10000@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SPEED_10000@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_bnx2x_ext_phy_resolve_fc
	mov	w0, #1
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	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	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read status 8705\n"

	.comm	_MDIO_WIS_DEVAD,4,2             ; @MDIO_WIS_DEVAD
	.comm	_MDIO_WIS_REG_LASI_STATUS,4,2   ; @MDIO_WIS_REG_LASI_STATUS
l_.str.1:                               ; @.str.1
	.asciz	"8705 LASI status 0x%x\n"

	.comm	_MDIO_PMA_DEVAD,4,2             ; @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_REG_RX_SD,4,2         ; @MDIO_PMA_REG_RX_SD
l_.str.2:                               ; @.str.2
	.asciz	"8705 1.c809 val=0x%x\n"

	.comm	_SPEED_10000,4,2                ; @SPEED_10000
	.no_dead_strip	_bnx2x_8705_read_status
.subsections_via_symbols
