	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_phy_m88_get_info
_e1000_phy_m88_get_info:                ## @e1000_phy_m88_get_info
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	%rax, 48(%rsi)
	movq	_M88E1000_PHY_SPEC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_e1000_read_phy_reg
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	movl	-20(%rbp), %eax
	movq	_M88E1000_PSCR_10BT_EXT_DIST_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_M88E1000_PSCR_10BT_EXT_DIST_ENABLE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	testl	%edx, %edx
	jne	LBB0_2
## %bb.3:
	movq	_e1000_10bt_ext_dist_enable_normal@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_e1000_10bt_ext_dist_enable_lower@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rcx), %ecx
	movl	%ecx, 40(%r14)
	movq	_M88E1000_PSCR_POLARITY_REVERSAL@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_M88E1000_PSCR_POLARITY_REVERSAL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:
	movq	_e1000_polarity_reversal_enabled@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_e1000_polarity_reversal_disabled@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_e1000_check_polarity
	testq	%rax, %rax
	jne	LBB0_13
## %bb.8:
	movl	-24(%rbp), %eax
	movl	%eax, 32(%r14)
	movq	_M88E1000_PHY_SPEC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1000_read_phy_reg
	testq	%rax, %rax
	jne	LBB0_13
## %bb.9:
	movl	-20(%rbp), %eax
	movq	_M88E1000_PSSR_MDIX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_M88E1000_PSSR_MDIX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movslq	%edx, %rcx
	movq	%rcx, 24(%r14)
	movq	_M88E1000_PSSR_SPEED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_M88E1000_PSSR_1000MBS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_12
## %bb.10:
	movq	_M88E1000_PSSR_CABLE_LENGTH@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_M88E1000_PSSR_CABLE_LENGTH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	cltq
	movq	%rax, 16(%r14)
	movq	_PHY_1000T_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1000_read_phy_reg
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:
	movl	-20(%rbp), %eax
	movq	_SR_1000T_LOCAL_RX_STATUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_SR_1000T_LOCAL_RX_STATUS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	testl	%edx, %edx
	movq	_e1000_1000t_rx_status_ok@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_e1000_1000t_rx_status_not_ok@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	%rdx, %rcx
	cmoveq	%rsi, %rcx
	movq	%rcx, 8(%r14)
	movq	_SR_1000T_REMOTE_RX_STATUS@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_SR_1000T_REMOTE_RX_STATUS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	testl	%eax, %eax
	cmoveq	%rsi, %rdx
	movq	%rdx, (%r14)
LBB0_12:
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M88E1000_PHY_SPEC_CTRL,4,2     ## @M88E1000_PHY_SPEC_CTRL
	.comm	_M88E1000_PSCR_10BT_EXT_DIST_ENABLE,4,2 ## @M88E1000_PSCR_10BT_EXT_DIST_ENABLE
	.comm	_M88E1000_PSCR_10BT_EXT_DIST_ENABLE_SHIFT,4,2 ## @M88E1000_PSCR_10BT_EXT_DIST_ENABLE_SHIFT
	.comm	_e1000_10bt_ext_dist_enable_lower,4,2 ## @e1000_10bt_ext_dist_enable_lower
	.comm	_e1000_10bt_ext_dist_enable_normal,4,2 ## @e1000_10bt_ext_dist_enable_normal
	.comm	_M88E1000_PSCR_POLARITY_REVERSAL,4,2 ## @M88E1000_PSCR_POLARITY_REVERSAL
	.comm	_M88E1000_PSCR_POLARITY_REVERSAL_SHIFT,4,2 ## @M88E1000_PSCR_POLARITY_REVERSAL_SHIFT
	.comm	_e1000_polarity_reversal_disabled,4,2 ## @e1000_polarity_reversal_disabled
	.comm	_e1000_polarity_reversal_enabled,4,2 ## @e1000_polarity_reversal_enabled
	.comm	_M88E1000_PHY_SPEC_STATUS,4,2   ## @M88E1000_PHY_SPEC_STATUS
	.comm	_M88E1000_PSSR_MDIX,4,2         ## @M88E1000_PSSR_MDIX
	.comm	_M88E1000_PSSR_MDIX_SHIFT,4,2   ## @M88E1000_PSSR_MDIX_SHIFT
	.comm	_M88E1000_PSSR_SPEED,4,2        ## @M88E1000_PSSR_SPEED
	.comm	_M88E1000_PSSR_1000MBS,4,2      ## @M88E1000_PSSR_1000MBS
	.comm	_M88E1000_PSSR_CABLE_LENGTH,4,2 ## @M88E1000_PSSR_CABLE_LENGTH
	.comm	_M88E1000_PSSR_CABLE_LENGTH_SHIFT,4,2 ## @M88E1000_PSSR_CABLE_LENGTH_SHIFT
	.comm	_PHY_1000T_STATUS,4,2           ## @PHY_1000T_STATUS
	.comm	_SR_1000T_LOCAL_RX_STATUS,4,2   ## @SR_1000T_LOCAL_RX_STATUS
	.comm	_SR_1000T_LOCAL_RX_STATUS_SHIFT,4,2 ## @SR_1000T_LOCAL_RX_STATUS_SHIFT
	.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	_SR_1000T_REMOTE_RX_STATUS,4,2  ## @SR_1000T_REMOTE_RX_STATUS
	.comm	_SR_1000T_REMOTE_RX_STATUS_SHIFT,4,2 ## @SR_1000T_REMOTE_RX_STATUS_SHIFT
	.comm	_E1000_SUCCESS,8,3              ## @E1000_SUCCESS
	.no_dead_strip	_e1000_phy_m88_get_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_phy_m88_get_info
_e1000_phy_m88_get_info:                ; @e1000_phy_m88_get_info
	.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, x1
	mov	x20, x0
	ldr	x8, [x0]
	str	x8, [x1, #48]
Lloh0:
	adrp	x8, _M88E1000_PHY_SPEC_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M88E1000_PHY_SPEC_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_e1000_read_phy_reg
	cbnz	x0, LBB0_7
; %bb.1:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _M88E1000_PSCR_10BT_EXT_DIST_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _M88E1000_PSCR_10BT_EXT_DIST_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh6:
	adrp	x10, _M88E1000_PSCR_10BT_EXT_DIST_ENABLE_SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _M88E1000_PSCR_10BT_EXT_DIST_ENABLE_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	asr	w9, w9, w10
Lloh9:
	adrp	x10, _e1000_10bt_ext_dist_enable_lower@GOTPAGE
Lloh10:
	ldr	x10, [x10, _e1000_10bt_ext_dist_enable_lower@GOTPAGEOFF]
Lloh11:
	adrp	x11, _e1000_10bt_ext_dist_enable_normal@GOTPAGE
Lloh12:
	ldr	x11, [x11, _e1000_10bt_ext_dist_enable_normal@GOTPAGEOFF]
	cmp	w9, #0
	csel	x9, x11, x10, eq
	ldr	w9, [x9]
	str	w9, [x19, #40]
Lloh13:
	adrp	x9, _M88E1000_PSCR_POLARITY_REVERSAL@GOTPAGE
Lloh14:
	ldr	x9, [x9, _M88E1000_PSCR_POLARITY_REVERSAL@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh16:
	adrp	x9, _M88E1000_PSCR_POLARITY_REVERSAL_SHIFT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _M88E1000_PSCR_POLARITY_REVERSAL_SHIFT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh19:
	adrp	x9, _e1000_polarity_reversal_disabled@GOTPAGE
Lloh20:
	ldr	x9, [x9, _e1000_polarity_reversal_disabled@GOTPAGEOFF]
Lloh21:
	adrp	x10, _e1000_polarity_reversal_enabled@GOTPAGE
Lloh22:
	ldr	x10, [x10, _e1000_polarity_reversal_enabled@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #36]
	add	x1, sp, #8
	mov	x0, x20
	bl	_e1000_check_polarity
	cbnz	x0, LBB0_7
; %bb.2:
	ldr	w8, [sp, #8]
	str	w8, [x19, #32]
Lloh23:
	adrp	x8, _M88E1000_PHY_SPEC_STATUS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _M88E1000_PHY_SPEC_STATUS@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_e1000_read_phy_reg
	cbnz	x0, LBB0_7
; %bb.3:
	ldr	w8, [sp, #12]
Lloh26:
	adrp	x9, _M88E1000_PSSR_MDIX@GOTPAGE
Lloh27:
	ldr	x9, [x9, _M88E1000_PSSR_MDIX@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh29:
	adrp	x10, _M88E1000_PSSR_MDIX_SHIFT@GOTPAGE
Lloh30:
	ldr	x10, [x10, _M88E1000_PSSR_MDIX_SHIFT@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	asr	w9, w9, w10
	sxtw	x9, w9
	str	x9, [x19, #24]
Lloh32:
	adrp	x9, _M88E1000_PSSR_SPEED@GOTPAGE
Lloh33:
	ldr	x9, [x9, _M88E1000_PSSR_SPEED@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh35:
	adrp	x10, _M88E1000_PSSR_1000MBS@GOTPAGE
Lloh36:
	ldr	x10, [x10, _M88E1000_PSSR_1000MBS@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_6
; %bb.4:
Lloh38:
	adrp	x9, _M88E1000_PSSR_CABLE_LENGTH@GOTPAGE
Lloh39:
	ldr	x9, [x9, _M88E1000_PSSR_CABLE_LENGTH@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh41:
	adrp	x9, _M88E1000_PSSR_CABLE_LENGTH_SHIFT@GOTPAGE
Lloh42:
	ldr	x9, [x9, _M88E1000_PSSR_CABLE_LENGTH_SHIFT@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	asr	w8, w8, w9
	sxtw	x8, w8
	str	x8, [x19, #16]
Lloh44:
	adrp	x8, _PHY_1000T_STATUS@GOTPAGE
Lloh45:
	ldr	x8, [x8, _PHY_1000T_STATUS@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_e1000_read_phy_reg
	cbnz	x0, LBB0_7
; %bb.5:
	ldr	w8, [sp, #12]
Lloh47:
	adrp	x9, _SR_1000T_LOCAL_RX_STATUS@GOTPAGE
Lloh48:
	ldr	x9, [x9, _SR_1000T_LOCAL_RX_STATUS@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh50:
	adrp	x10, _SR_1000T_LOCAL_RX_STATUS_SHIFT@GOTPAGE
Lloh51:
	ldr	x10, [x10, _SR_1000T_LOCAL_RX_STATUS_SHIFT@GOTPAGEOFF]
Lloh52:
	ldr	w10, [x10]
	asr	w9, w9, w10
Lloh53:
	adrp	x10, _e1000_1000t_rx_status_ok@GOTPAGE
Lloh54:
	ldr	x10, [x10, _e1000_1000t_rx_status_ok@GOTPAGEOFF]
Lloh55:
	ldr	x10, [x10]
Lloh56:
	adrp	x11, _e1000_1000t_rx_status_not_ok@GOTPAGE
Lloh57:
	ldr	x11, [x11, _e1000_1000t_rx_status_not_ok@GOTPAGEOFF]
	cmp	w9, #0
Lloh58:
	adrp	x9, _SR_1000T_REMOTE_RX_STATUS@GOTPAGE
Lloh59:
	ldr	x9, [x9, _SR_1000T_REMOTE_RX_STATUS@GOTPAGEOFF]
Lloh60:
	ldr	x11, [x11]
Lloh61:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh62:
	adrp	x9, _SR_1000T_REMOTE_RX_STATUS_SHIFT@GOTPAGE
Lloh63:
	ldr	x9, [x9, _SR_1000T_REMOTE_RX_STATUS_SHIFT@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
	asr	w8, w8, w9
	csel	x9, x11, x10, eq
	cmp	w8, #0
	csel	x8, x11, x10, eq
	stp	x8, x9, [x19]
LBB0_6:
Lloh65:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh66:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh67:
	ldr	x0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh60
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.cfi_endproc
                                        ; -- End function
	.comm	_M88E1000_PHY_SPEC_CTRL,4,2     ; @M88E1000_PHY_SPEC_CTRL
	.comm	_M88E1000_PSCR_10BT_EXT_DIST_ENABLE,4,2 ; @M88E1000_PSCR_10BT_EXT_DIST_ENABLE
	.comm	_M88E1000_PSCR_10BT_EXT_DIST_ENABLE_SHIFT,4,2 ; @M88E1000_PSCR_10BT_EXT_DIST_ENABLE_SHIFT
	.comm	_e1000_10bt_ext_dist_enable_lower,4,2 ; @e1000_10bt_ext_dist_enable_lower
	.comm	_e1000_10bt_ext_dist_enable_normal,4,2 ; @e1000_10bt_ext_dist_enable_normal
	.comm	_M88E1000_PSCR_POLARITY_REVERSAL,4,2 ; @M88E1000_PSCR_POLARITY_REVERSAL
	.comm	_M88E1000_PSCR_POLARITY_REVERSAL_SHIFT,4,2 ; @M88E1000_PSCR_POLARITY_REVERSAL_SHIFT
	.comm	_e1000_polarity_reversal_disabled,4,2 ; @e1000_polarity_reversal_disabled
	.comm	_e1000_polarity_reversal_enabled,4,2 ; @e1000_polarity_reversal_enabled
	.comm	_M88E1000_PHY_SPEC_STATUS,4,2   ; @M88E1000_PHY_SPEC_STATUS
	.comm	_M88E1000_PSSR_MDIX,4,2         ; @M88E1000_PSSR_MDIX
	.comm	_M88E1000_PSSR_MDIX_SHIFT,4,2   ; @M88E1000_PSSR_MDIX_SHIFT
	.comm	_M88E1000_PSSR_SPEED,4,2        ; @M88E1000_PSSR_SPEED
	.comm	_M88E1000_PSSR_1000MBS,4,2      ; @M88E1000_PSSR_1000MBS
	.comm	_M88E1000_PSSR_CABLE_LENGTH,4,2 ; @M88E1000_PSSR_CABLE_LENGTH
	.comm	_M88E1000_PSSR_CABLE_LENGTH_SHIFT,4,2 ; @M88E1000_PSSR_CABLE_LENGTH_SHIFT
	.comm	_PHY_1000T_STATUS,4,2           ; @PHY_1000T_STATUS
	.comm	_SR_1000T_LOCAL_RX_STATUS,4,2   ; @SR_1000T_LOCAL_RX_STATUS
	.comm	_SR_1000T_LOCAL_RX_STATUS_SHIFT,4,2 ; @SR_1000T_LOCAL_RX_STATUS_SHIFT
	.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	_SR_1000T_REMOTE_RX_STATUS,4,2  ; @SR_1000T_REMOTE_RX_STATUS
	.comm	_SR_1000T_REMOTE_RX_STATUS_SHIFT,4,2 ; @SR_1000T_REMOTE_RX_STATUS_SHIFT
	.comm	_E1000_SUCCESS,8,3              ; @E1000_SUCCESS
	.no_dead_strip	_e1000_phy_m88_get_info
.subsections_via_symbols
