	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_get_phy_info_82577       ## -- Begin function e1000_get_phy_info_82577
	.p2align	4, 0x90
_e1000_get_phy_info_82577:              ## @e1000_get_phy_info_82577
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	-16(%rbp), %rcx
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_e1000e_phy_has_link_generic
	testq	%rax, %rax
	je	LBB0_1
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, -16(%rbp)
	je	LBB0_2
## %bb.3:
	movl	$1, (%rbx)
	movq	%rbx, %rdi
	callq	_e1000_check_polarity_82577
	testq	%rax, %rax
	jne	LBB0_11
## %bb.4:
	movq	_I82577_PHY_STATUS_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_11
## %bb.5:
	movl	-12(%rbp), %eax
	movq	_I82577_PHY_STATUS2_MDIX@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movl	%edx, 4(%rbx)
	movq	_I82577_PHY_STATUS2_SPEED_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_I82577_PHY_STATUS2_SPEED_1000MBPS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.6:
	movq	%rbx, %rdi
	callq	*32(%rbx)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:
	movq	_MII_STAT1000@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:
	movl	-12(%rbp), %eax
	movq	_LPA_1000LOCALRXOK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_e1000_1000t_rx_status_ok@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_e1000_1000t_rx_status_not_ok@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rcx, %rsi
	cmoveq	%rdx, %rsi
	movq	%rsi, 16(%rbx)
	movq	_LPA_1000REMRXOK@GOTPCREL(%rip), %rsi
	andl	(%rsi), %eax
	cmoveq	%rdx, %rcx
	movq	%rcx, 8(%rbx)
	jmp	LBB0_10
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	movq	_E1000_ERR_CONFIG@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_E1000_CABLE_LENGTH_UNDEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_e1000_1000t_rx_status_undefined@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	%rax, 8(%rbx)
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Phy info is only valid if link is up\n"

	.comm	_E1000_ERR_CONFIG,8,3           ## @E1000_ERR_CONFIG
	.comm	_I82577_PHY_STATUS_2,4,2        ## @I82577_PHY_STATUS_2
	.comm	_I82577_PHY_STATUS2_MDIX,4,2    ## @I82577_PHY_STATUS2_MDIX
	.comm	_I82577_PHY_STATUS2_SPEED_MASK,4,2 ## @I82577_PHY_STATUS2_SPEED_MASK
	.comm	_I82577_PHY_STATUS2_SPEED_1000MBPS,4,2 ## @I82577_PHY_STATUS2_SPEED_1000MBPS
	.comm	_MII_STAT1000,4,2               ## @MII_STAT1000
	.comm	_LPA_1000LOCALRXOK,4,2          ## @LPA_1000LOCALRXOK
	.comm	_e1000_1000t_rx_status_ok,8,3   ## @e1000_1000t_rx_status_ok
	.comm	_e1000_1000t_rx_status_not_ok,8,3 ## @e1000_1000t_rx_status_not_ok
	.comm	_LPA_1000REMRXOK,4,2            ## @LPA_1000REMRXOK
	.comm	_E1000_CABLE_LENGTH_UNDEFINED,4,2 ## @E1000_CABLE_LENGTH_UNDEFINED
	.comm	_e1000_1000t_rx_status_undefined,8,3 ## @e1000_1000t_rx_status_undefined
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_get_phy_info_82577       ; -- Begin function e1000_get_phy_info_82577
	.p2align	2
_e1000_get_phy_info_82577:              ; @e1000_get_phy_info_82577
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x3, sp, #8
	mov	w1, #1
	mov	w2, #0
	bl	_e1000e_phy_has_link_generic
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_9
; %bb.3:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_e1000_check_polarity_82577
	cbnz	x0, LBB0_1
; %bb.4:
Lloh0:
	adrp	x8, _I82577_PHY_STATUS_2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I82577_PHY_STATUS_2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy
	cbnz	x0, LBB0_1
; %bb.5:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _I82577_PHY_STATUS2_MDIX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I82577_PHY_STATUS2_MDIX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w9, ne
	str	w9, [x19, #4]
Lloh6:
	adrp	x9, _I82577_PHY_STATUS2_SPEED_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I82577_PHY_STATUS2_SPEED_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh9:
	adrp	x9, _I82577_PHY_STATUS2_SPEED_1000MBPS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _I82577_PHY_STATUS2_SPEED_1000MBPS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.6:
	ldr	x8, [x19, #32]
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_1
; %bb.7:
Lloh12:
	adrp	x8, _MII_STAT1000@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MII_STAT1000@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy
	cbnz	x0, LBB0_1
; %bb.8:
	ldr	w8, [sp, #12]
Lloh15:
	adrp	x9, _LPA_1000LOCALRXOK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _LPA_1000LOCALRXOK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _e1000_1000t_rx_status_ok@GOTPAGE
Lloh19:
	ldr	x10, [x10, _e1000_1000t_rx_status_ok@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
Lloh21:
	adrp	x11, _e1000_1000t_rx_status_not_ok@GOTPAGE
Lloh22:
	ldr	x11, [x11, _e1000_1000t_rx_status_not_ok@GOTPAGEOFF]
Lloh23:
	ldr	x11, [x11]
	tst	w9, w8
Lloh24:
	adrp	x9, _LPA_1000REMRXOK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _LPA_1000REMRXOK@GOTPAGEOFF]
	csel	x12, x11, x10, eq
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x8, x11, x10, eq
	str	x12, [x19, #16]
	b	LBB0_11
LBB0_9:
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
Lloh29:
	adrp	x8, _E1000_ERR_CONFIG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _E1000_ERR_CONFIG@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	neg	x0, x8
	b	LBB0_1
LBB0_10:
	mov	x0, #0
Lloh32:
	adrp	x8, _E1000_CABLE_LENGTH_UNDEFINED@GOTPAGE
Lloh33:
	ldr	x8, [x8, _E1000_CABLE_LENGTH_UNDEFINED@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh35:
	adrp	x8, _e1000_1000t_rx_status_undefined@GOTPAGE
Lloh36:
	ldr	x8, [x8, _e1000_1000t_rx_status_undefined@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_11:
	str	x8, [x19, #8]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Phy info is only valid if link is up\n"

	.comm	_E1000_ERR_CONFIG,8,3           ; @E1000_ERR_CONFIG
	.comm	_I82577_PHY_STATUS_2,4,2        ; @I82577_PHY_STATUS_2
	.comm	_I82577_PHY_STATUS2_MDIX,4,2    ; @I82577_PHY_STATUS2_MDIX
	.comm	_I82577_PHY_STATUS2_SPEED_MASK,4,2 ; @I82577_PHY_STATUS2_SPEED_MASK
	.comm	_I82577_PHY_STATUS2_SPEED_1000MBPS,4,2 ; @I82577_PHY_STATUS2_SPEED_1000MBPS
	.comm	_MII_STAT1000,4,2               ; @MII_STAT1000
	.comm	_LPA_1000LOCALRXOK,4,2          ; @LPA_1000LOCALRXOK
	.comm	_e1000_1000t_rx_status_ok,8,3   ; @e1000_1000t_rx_status_ok
	.comm	_e1000_1000t_rx_status_not_ok,8,3 ; @e1000_1000t_rx_status_not_ok
	.comm	_LPA_1000REMRXOK,4,2            ; @LPA_1000REMRXOK
	.comm	_E1000_CABLE_LENGTH_UNDEFINED,4,2 ; @E1000_CABLE_LENGTH_UNDEFINED
	.comm	_e1000_1000t_rx_status_undefined,8,3 ; @e1000_1000t_rx_status_undefined
.subsections_via_symbols
