	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_get_phy_info_m88        ## -- Begin function e1000e_get_phy_info_m88
	.p2align	4, 0x90
_e1000e_get_phy_info_m88:               ## @e1000e_get_phy_info_m88
	.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), %rax
	movq	_e1000_media_type_copper@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	leaq	-16(%rbp), %rcx
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_e1000e_phy_has_link_generic
	testq	%rax, %rax
	jne	LBB0_15
## %bb.4:
	cmpl	$0, -16(%rbp)
	je	LBB0_5
## %bb.6:
	movq	_M88E1000_PHY_SPEC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_15
## %bb.7:
	movq	_M88E1000_PSCR_POLARITY_REVERSAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	-12(%rbp), %eax
	setne	%cl
	movl	%ecx, 8(%rbx)
	movq	%rbx, %rdi
	callq	_e1000_check_polarity_m88
	testq	%rax, %rax
	jne	LBB0_15
## %bb.8:
	movq	_M88E1000_PHY_SPEC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_15
## %bb.9:
	movl	-12(%rbp), %eax
	movq	_M88E1000_PSSR_MDIX@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movl	%edx, 12(%rbx)
	movq	_M88E1000_PSSR_SPEED@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_M88E1000_PSSR_1000MBS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.10:
	movq	%rbx, %rdi
	callq	*40(%rbx)
	testq	%rax, %rax
	jne	LBB0_15
## %bb.11:
	movq	_MII_STAT1000@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_15
## %bb.12:
	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, 24(%rbx)
	movq	_LPA_1000REMRXOK@GOTPCREL(%rip), %rsi
	andl	(%rsi), %eax
	cmoveq	%rdx, %rcx
	movq	%rcx, 16(%rbx)
	jmp	LBB0_14
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	callq	_e_dbg
	movq	_E1000_ERR_CONFIG@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_13:
	movq	_E1000_CABLE_LENGTH_UNDEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_e1000_1000t_rx_status_undefined@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	%rax, 16(%rbx)
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_media_type_copper,8,3    ## @e1000_media_type_copper
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Phy info is only valid for copper media\n"

	.comm	_E1000_ERR_CONFIG,8,3           ## @E1000_ERR_CONFIG
L_.str.1:                               ## @.str.1
	.asciz	"Phy info is only valid if link is up\n"

	.comm	_M88E1000_PHY_SPEC_CTRL,4,2     ## @M88E1000_PHY_SPEC_CTRL
	.comm	_M88E1000_PSCR_POLARITY_REVERSAL,4,2 ## @M88E1000_PSCR_POLARITY_REVERSAL
	.comm	_M88E1000_PHY_SPEC_STATUS,4,2   ## @M88E1000_PHY_SPEC_STATUS
	.comm	_M88E1000_PSSR_MDIX,4,2         ## @M88E1000_PSSR_MDIX
	.comm	_M88E1000_PSSR_SPEED,4,2        ## @M88E1000_PSSR_SPEED
	.comm	_M88E1000_PSSR_1000MBS,4,2      ## @M88E1000_PSSR_1000MBS
	.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	_e1000e_get_phy_info_m88        ; -- Begin function e1000e_get_phy_info_m88
	.p2align	2
_e1000e_get_phy_info_m88:               ; @e1000e_get_phy_info_m88
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _e1000_media_type_copper@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_media_type_copper@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.1:
	mov	x19, x0
	add	x3, sp, #8
	mov	w1, #1
	mov	w2, #0
	bl	_e1000e_phy_has_link_generic
	cbnz	x0, LBB0_12
; %bb.2:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_13
; %bb.3:
Lloh3:
	adrp	x8, _M88E1000_PHY_SPEC_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M88E1000_PHY_SPEC_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy
	cbnz	x0, LBB0_12
; %bb.4:
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x9, _M88E1000_PSCR_POLARITY_REVERSAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _M88E1000_PSCR_POLARITY_REVERSAL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_e1000_check_polarity_m88
	cbnz	x0, LBB0_12
; %bb.5:
Lloh9:
	adrp	x8, _M88E1000_PHY_SPEC_STATUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _M88E1000_PHY_SPEC_STATUS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy
	cbnz	x0, LBB0_12
; %bb.6:
	ldr	w8, [sp, #12]
Lloh12:
	adrp	x9, _M88E1000_PSSR_MDIX@GOTPAGE
Lloh13:
	ldr	x9, [x9, _M88E1000_PSSR_MDIX@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w9, ne
	str	w9, [x19, #12]
Lloh15:
	adrp	x9, _M88E1000_PSSR_SPEED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _M88E1000_PSSR_SPEED@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh18:
	adrp	x9, _M88E1000_PSSR_1000MBS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _M88E1000_PSSR_1000MBS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.7:
	ldr	x8, [x19, #40]
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_12
; %bb.8:
Lloh21:
	adrp	x8, _MII_STAT1000@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MII_STAT1000@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy
	cbnz	x0, LBB0_12
; %bb.9:
	ldr	w8, [sp, #12]
Lloh24:
	adrp	x9, _LPA_1000LOCALRXOK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _LPA_1000LOCALRXOK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _e1000_1000t_rx_status_ok@GOTPAGE
Lloh28:
	ldr	x10, [x10, _e1000_1000t_rx_status_ok@GOTPAGEOFF]
Lloh29:
	ldr	x10, [x10]
Lloh30:
	adrp	x11, _e1000_1000t_rx_status_not_ok@GOTPAGE
Lloh31:
	ldr	x11, [x11, _e1000_1000t_rx_status_not_ok@GOTPAGEOFF]
Lloh32:
	ldr	x11, [x11]
	tst	w9, w8
Lloh33:
	adrp	x9, _LPA_1000REMRXOK@GOTPAGE
Lloh34:
	ldr	x9, [x9, _LPA_1000REMRXOK@GOTPAGEOFF]
	csel	x12, x11, x10, eq
Lloh35:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x8, x11, x10, eq
	str	x12, [x19, #24]
	b	LBB0_15
LBB0_10:
Lloh36:
	adrp	x0, l_.str@PAGE
Lloh37:
	add	x0, x0, l_.str@PAGEOFF
LBB0_11:
	bl	_e_dbg
Lloh38:
	adrp	x8, _E1000_ERR_CONFIG@GOTPAGE
Lloh39:
	ldr	x8, [x8, _E1000_ERR_CONFIG@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	neg	x0, x8
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_13:
Lloh41:
	adrp	x0, l_.str.1@PAGE
Lloh42:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_14:
	mov	x0, #0
Lloh43:
	adrp	x8, _E1000_CABLE_LENGTH_UNDEFINED@GOTPAGE
Lloh44:
	ldr	x8, [x8, _E1000_CABLE_LENGTH_UNDEFINED@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	str	w8, [x19, #32]
Lloh46:
	adrp	x8, _e1000_1000t_rx_status_undefined@GOTPAGE
Lloh47:
	ldr	x8, [x8, _e1000_1000t_rx_status_undefined@GOTPAGEOFF]
Lloh48:
	ldr	x8, [x8]
	str	x8, [x19, #24]
LBB0_15:
	str	x8, [x19, #16]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_media_type_copper,8,3    ; @e1000_media_type_copper
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Phy info is only valid for copper media\n"

	.comm	_E1000_ERR_CONFIG,8,3           ; @E1000_ERR_CONFIG
l_.str.1:                               ; @.str.1
	.asciz	"Phy info is only valid if link is up\n"

	.comm	_M88E1000_PHY_SPEC_CTRL,4,2     ; @M88E1000_PHY_SPEC_CTRL
	.comm	_M88E1000_PSCR_POLARITY_REVERSAL,4,2 ; @M88E1000_PSCR_POLARITY_REVERSAL
	.comm	_M88E1000_PHY_SPEC_STATUS,4,2   ; @M88E1000_PHY_SPEC_STATUS
	.comm	_M88E1000_PSSR_MDIX,4,2         ; @M88E1000_PSSR_MDIX
	.comm	_M88E1000_PSSR_SPEED,4,2        ; @M88E1000_PSSR_SPEED
	.comm	_M88E1000_PSSR_1000MBS,4,2      ; @M88E1000_PSSR_1000MBS
	.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
