	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_phy_is_accessible_pchlan
_e1000_phy_is_accessible_pchlan:        ## @e1000_phy_is_accessible_pchlan
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	$0, -28(%rbp)
	movq	_MII_PHYSID1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-28(%rbp), %rdx
	callq	_e1e_rphy_locked
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movl	-28(%rbp), %r14d
	cmpl	$65535, %r14d                   ## imm = 0xFFFF
	je	LBB0_4
## %bb.2:
	movq	_MII_PHYSID2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	callq	_e1e_rphy_locked
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movl	-28(%rbp), %eax
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_8
LBB0_4:
	movl	(%rbx), %esi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	callq	_e1e_rphy_locked
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.5:
	movl	-28(%rbp), %r14d
	cmpl	$65535, %r14d                   ## imm = 0xFFFF
	je	LBB0_12
## %bb.6:
	movq	_MII_PHYSID2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	callq	_e1e_rphy_locked
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.7:
	movl	-28(%rbp), %eax
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	je	LBB0_12
LBB0_8:
	shll	$16, %r14d
	movq	_PHY_REVISION_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	andl	%eax, %edx
	orl	%r14d, %edx
	movl	8(%r15), %esi
	testl	%esi, %esi
	je	LBB0_10
## %bb.9:
	cmpl	%edx, %esi
	jne	LBB0_11
	jmp	LBB0_17
LBB0_10:
	testl	%edx, %edx
	je	LBB0_11
## %bb.21:
	movl	%edx, 8(%r15)
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, 12(%r15)
	jmp	LBB0_17
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	(%r15), %rax
	movq	_e1000_pch_lpt@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_16
## %bb.13:
	movq	%r15, %rdi
	callq	*24(%r15)
	movq	%r15, %rdi
	callq	_e1000_set_mdio_slow_mode_hv
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	callq	_e1000e_get_phy_id
	movq	%rax, %rbx
LBB0_15:
	movq	%r15, %rdi
	callq	*16(%r15)
LBB0_16:
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	jne	LBB0_20
LBB0_17:
	movq	(%r15), %rax
	movq	_e1000_pch_lpt@GOTPCREL(%rip), %rcx
	movl	$1, %r14d
	cmpq	(%rcx), %rax
	jl	LBB0_20
## %bb.18:
	movq	_FWSM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_ICH_FWSM_FW_VALID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_20
## %bb.19:
	movq	_CV_SMB_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	callq	_e1e_rphy_locked
	movq	_CV_SMB_CTRL_FORCE_SMBUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-28(%rbp), %edx
	movl	%edx, -28(%rbp)
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_e1e_wphy_locked
	movq	_CTRL_EXT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_er32
	movq	_E1000_CTRL_EXT_FORCE_SMBUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edi
	callq	_ew32
LBB0_20:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_PHYSID1,4,2                ## @MII_PHYSID1
	.comm	_MII_PHYSID2,4,2                ## @MII_PHYSID2
	.comm	_PHY_REVISION_MASK,4,2          ## @PHY_REVISION_MASK
	.comm	_e1000_pch_lpt,8,3              ## @e1000_pch_lpt
	.comm	_FWSM,4,2                       ## @FWSM
	.comm	_E1000_ICH_FWSM_FW_VALID,4,2    ## @E1000_ICH_FWSM_FW_VALID
	.comm	_CV_SMB_CTRL,4,2                ## @CV_SMB_CTRL
	.comm	_CV_SMB_CTRL_FORCE_SMBUS,4,2    ## @CV_SMB_CTRL_FORCE_SMBUS
	.comm	_CTRL_EXT,4,2                   ## @CTRL_EXT
	.comm	_E1000_CTRL_EXT_FORCE_SMBUS,4,2 ## @E1000_CTRL_EXT_FORCE_SMBUS
	.no_dead_strip	_e1000_phy_is_accessible_pchlan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_phy_is_accessible_pchlan
_e1000_phy_is_accessible_pchlan:        ; @e1000_phy_is_accessible_pchlan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x20, _MII_PHYSID1@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MII_PHYSID1@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_e1e_rphy_locked
	ldr	w22, [sp, #12]
	cmp	x0, #0
	mov	w23, #65535
	ccmp	w22, w23, #4, eq
Lloh2:
	adrp	x21, _e1000_pch_lpt@GOTPAGE
Lloh3:
	ldr	x21, [x21, _e1000_pch_lpt@GOTPAGEOFF]
	b.eq	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _MII_PHYSID2@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MII_PHYSID2@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy_locked
	ldr	w8, [sp, #12]
	cmp	x0, #0
	ccmp	w8, w23, #4, eq
	b.ne	LBB0_4
LBB0_2:
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy_locked
	mov	x20, x0
	ldr	w22, [sp, #12]
	cmp	x0, #0
	ccmp	w22, w23, #4, eq
	b.eq	LBB0_9
; %bb.3:
Lloh7:
	adrp	x8, _MII_PHYSID2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MII_PHYSID2@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy_locked
	mov	x20, x0
	ldr	w8, [sp, #12]
	cmp	x0, #0
	mov	w9, #65535
	ccmp	w8, w9, #4, eq
	b.eq	LBB0_9
LBB0_4:
Lloh10:
	adrp	x9, _PHY_REVISION_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PHY_REVISION_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	and	w10, w9, w8
	orr	w10, w10, w22, lsl #16
	ldr	w11, [x19, #8]
	cbz	w11, LBB0_6
; %bb.5:
	cmp	w11, w10
	b.ne	LBB0_8
	b	LBB0_15
LBB0_6:
	cbz	w10, LBB0_8
; %bb.7:
	bic	w8, w8, w9
	stp	w10, w8, [x19, #8]
	b	LBB0_15
LBB0_8:
	mov	x20, #0
LBB0_9:
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ge	LBB0_13
; %bb.10:
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_e1000_set_mdio_slow_mode_hv
	mov	x20, x0
	cbnz	x0, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_e1000e_get_phy_id
	mov	x20, x0
LBB0_12:
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
LBB0_13:
	cbz	x20, LBB0_15
; %bb.14:
	mov	w0, #0
	b	LBB0_19
LBB0_15:
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.lt	LBB0_18
; %bb.16:
Lloh13:
	adrp	x8, _FWSM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FWSM@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_er32
Lloh16:
	adrp	x8, _E1000_ICH_FWSM_FW_VALID@GOTPAGE
Lloh17:
	ldr	x8, [x8, _E1000_ICH_FWSM_FW_VALID@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_18
; %bb.17:
Lloh19:
	adrp	x20, _CV_SMB_CTRL@GOTPAGE
Lloh20:
	ldr	x20, [x20, _CV_SMB_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy_locked
Lloh21:
	adrp	x8, _CV_SMB_CTRL_FORCE_SMBUS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CV_SMB_CTRL_FORCE_SMBUS@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_e1e_wphy_locked
Lloh24:
	adrp	x19, _CTRL_EXT@GOTPAGE
Lloh25:
	ldr	x19, [x19, _CTRL_EXT@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_er32
Lloh26:
	adrp	x8, _E1000_CTRL_EXT_FORCE_SMBUS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _E1000_CTRL_EXT_FORCE_SMBUS@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w0, [x19]
	bl	_ew32
LBB0_18:
	mov	w0, #1
LBB0_19:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_PHYSID1,4,2                ; @MII_PHYSID1
	.comm	_MII_PHYSID2,4,2                ; @MII_PHYSID2
	.comm	_PHY_REVISION_MASK,4,2          ; @PHY_REVISION_MASK
	.comm	_e1000_pch_lpt,8,3              ; @e1000_pch_lpt
	.comm	_FWSM,4,2                       ; @FWSM
	.comm	_E1000_ICH_FWSM_FW_VALID,4,2    ; @E1000_ICH_FWSM_FW_VALID
	.comm	_CV_SMB_CTRL,4,2                ; @CV_SMB_CTRL
	.comm	_CV_SMB_CTRL_FORCE_SMBUS,4,2    ; @CV_SMB_CTRL_FORCE_SMBUS
	.comm	_CTRL_EXT,4,2                   ; @CTRL_EXT
	.comm	_E1000_CTRL_EXT_FORCE_SMBUS,4,2 ; @E1000_CTRL_EXT_FORCE_SMBUS
	.no_dead_strip	_e1000_phy_is_accessible_pchlan
.subsections_via_symbols
