	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_resume_workarounds_pchlan ## -- Begin function e1000_resume_workarounds_pchlan
	.p2align	4, 0x90
_e1000_resume_workarounds_pchlan:       ## @e1000_resume_workarounds_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	24(%rdi), %rax
	movq	_e1000_pch2lan@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	callq	_e1000_init_phy_workarounds_pchlan
	testq	%rax, %rax
	je	LBB0_2
## %bb.13:
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_e_dbg                          ## TAILCALL
LBB0_2:
	movq	(%rbx), %rax
	movq	_e1000_phy_i217@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.3:
	movq	%rbx, %rdi
	callq	*16(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_e_dbg
	jmp	LBB0_12
LBB0_5:
	movq	_I217_LPI_GPIO_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1e_rphy_locked
	movq	_I217_LPI_GPIO_CTRL_AUTO_EN_LPI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-20(%rbp), %edx
	movl	%edx, -20(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_e1e_wphy_locked
	movq	_FWSM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_ICH_FWSM_FW_VALID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
LBB0_8:
	movq	_I217_CGFREG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1e_rphy_locked
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	_I217_CGFREG_ENABLE_MTA_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-20(%rbp), %edx
	movl	%edx, -20(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_e1e_wphy_locked
	jmp	LBB0_11
LBB0_6:
	movq	_I217_MEMPWR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1e_rphy_locked
	testq	%rax, %rax
	je	LBB0_7
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_e_dbg
LBB0_11:
	movq	%rbx, %rdi
	callq	*8(%rbx)
	jmp	LBB0_12
LBB0_7:
	movq	_I217_MEMPWR_DISABLE_SMB_RELEASE@GOTPCREL(%rip), %rax
	movl	-20(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -20(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_e1e_wphy_locked
	movq	_I217_PROXY_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_e1e_wphy_locked
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_pch2lan,8,3              ## @e1000_pch2lan
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to init PHY flow ret_val=%d\n"

	.comm	_e1000_phy_i217,8,3             ## @e1000_phy_i217
L_.str.1:                               ## @.str.1
	.asciz	"Failed to setup iRST\n"

	.comm	_I217_LPI_GPIO_CTRL,4,2         ## @I217_LPI_GPIO_CTRL
	.comm	_I217_LPI_GPIO_CTRL_AUTO_EN_LPI,4,2 ## @I217_LPI_GPIO_CTRL_AUTO_EN_LPI
	.comm	_FWSM,4,2                       ## @FWSM
	.comm	_E1000_ICH_FWSM_FW_VALID,4,2    ## @E1000_ICH_FWSM_FW_VALID
	.comm	_I217_MEMPWR,4,2                ## @I217_MEMPWR
	.comm	_I217_MEMPWR_DISABLE_SMB_RELEASE,4,2 ## @I217_MEMPWR_DISABLE_SMB_RELEASE
	.comm	_I217_PROXY_CTRL,4,2            ## @I217_PROXY_CTRL
	.comm	_I217_CGFREG,4,2                ## @I217_CGFREG
	.comm	_I217_CGFREG_ENABLE_MTA_RESET,4,2 ## @I217_CGFREG_ENABLE_MTA_RESET
L_.str.2:                               ## @.str.2
	.asciz	"Error %d in resume workarounds\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_resume_workarounds_pchlan ; -- Begin function e1000_resume_workarounds_pchlan
	.p2align	2
_e1000_resume_workarounds_pchlan:       ; @e1000_resume_workarounds_pchlan
	.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, #24]
Lloh0:
	adrp	x9, _e1000_pch2lan@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_pch2lan@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_12
; %bb.1:
	mov	x19, x0
	bl	_e1000_init_phy_workarounds_pchlan
	cbz	x0, LBB0_3
; %bb.2:
	str	x0, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
	b	LBB0_12
LBB0_3:
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _e1000_phy_i217@GOTPAGE
Lloh6:
	ldr	x9, [x9, _e1000_phy_i217@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.4:
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_e_dbg
	b	LBB0_12
LBB0_6:
Lloh10:
	adrp	x20, _I217_LPI_GPIO_CTRL@GOTPAGE
Lloh11:
	ldr	x20, [x20, _I217_LPI_GPIO_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy_locked
Lloh12:
	adrp	x8, _I217_LPI_GPIO_CTRL_AUTO_EN_LPI@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I217_LPI_GPIO_CTRL_AUTO_EN_LPI@GOTPAGEOFF]
Lloh14:
	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
Lloh15:
	adrp	x8, _FWSM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FWSM@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_er32
Lloh18:
	adrp	x8, _E1000_ICH_FWSM_FW_VALID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _E1000_ICH_FWSM_FW_VALID@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_9
LBB0_7:
Lloh21:
	adrp	x20, _I217_CGFREG@GOTPAGE
Lloh22:
	ldr	x20, [x20, _I217_CGFREG@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy_locked
	cbnz	x0, LBB0_10
; %bb.8:
Lloh23:
	adrp	x8, _I217_CGFREG_ENABLE_MTA_RESET@GOTPAGE
Lloh24:
	ldr	x8, [x8, _I217_CGFREG_ENABLE_MTA_RESET@GOTPAGEOFF]
Lloh25:
	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
	b	LBB0_11
LBB0_9:
Lloh26:
	adrp	x20, _I217_MEMPWR@GOTPAGE
Lloh27:
	ldr	x20, [x20, _I217_MEMPWR@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy_locked
	cbz	x0, LBB0_13
LBB0_10:
	str	x0, [sp]
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_e_dbg
LBB0_11:
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	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:
Lloh30:
	adrp	x8, _I217_MEMPWR_DISABLE_SMB_RELEASE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _I217_MEMPWR_DISABLE_SMB_RELEASE@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_e1e_wphy_locked
Lloh33:
	adrp	x8, _I217_PROXY_CTRL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _I217_PROXY_CTRL@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_e1e_wphy_locked
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_pch2lan,8,3              ; @e1000_pch2lan
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to init PHY flow ret_val=%d\n"

	.comm	_e1000_phy_i217,8,3             ; @e1000_phy_i217
l_.str.1:                               ; @.str.1
	.asciz	"Failed to setup iRST\n"

	.comm	_I217_LPI_GPIO_CTRL,4,2         ; @I217_LPI_GPIO_CTRL
	.comm	_I217_LPI_GPIO_CTRL_AUTO_EN_LPI,4,2 ; @I217_LPI_GPIO_CTRL_AUTO_EN_LPI
	.comm	_FWSM,4,2                       ; @FWSM
	.comm	_E1000_ICH_FWSM_FW_VALID,4,2    ; @E1000_ICH_FWSM_FW_VALID
	.comm	_I217_MEMPWR,4,2                ; @I217_MEMPWR
	.comm	_I217_MEMPWR_DISABLE_SMB_RELEASE,4,2 ; @I217_MEMPWR_DISABLE_SMB_RELEASE
	.comm	_I217_PROXY_CTRL,4,2            ; @I217_PROXY_CTRL
	.comm	_I217_CGFREG,4,2                ; @I217_CGFREG
	.comm	_I217_CGFREG_ENABLE_MTA_RESET,4,2 ; @I217_CGFREG_ENABLE_MTA_RESET
l_.str.2:                               ; @.str.2
	.asciz	"Error %d in resume workarounds\n"

.subsections_via_symbols
