	.file	"extr_ich8lan.c_e1000_resume_workarounds_pchlan.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to init PHY flow ret_val=%d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Failed to setup iRST\n"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"Error %d in resume workarounds\n"
	.text
	.p2align 4
	.globl	e1000_resume_workarounds_pchlan
	.type	e1000_resume_workarounds_pchlan, @function
e1000_resume_workarounds_pchlan:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR e1000_pch2lan[rip]
	cmp	QWORD PTR 24[rdi], rax
	jge	.L13
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rbx, rdi
	call	e1000_init_phy_workarounds_pchlan@PLT
	test	rax, rax
	jne	.L15
	mov	rax, QWORD PTR e1000_phy_i217[rip]
	cmp	QWORD PTR [rbx], rax
	jne	.L1
	mov	rdi, rbx
	call	[QWORD PTR 16[rbx]]
	test	rax, rax
	jne	.L16
	mov	esi, DWORD PTR I217_LPI_GPIO_CTRL[rip]
	lea	r12, 4[rsp]
	mov	rdi, rbx
	mov	rdx, r12
	call	e1e_rphy_locked@PLT
	mov	edx, DWORD PTR I217_LPI_GPIO_CTRL_AUTO_EN_LPI[rip]
	mov	esi, DWORD PTR I217_LPI_GPIO_CTRL[rip]
	mov	rdi, rbx
	not	edx
	and	edx, DWORD PTR 4[rsp]
	mov	DWORD PTR 4[rsp], edx
	call	e1e_wphy_locked@PLT
	mov	edi, DWORD PTR FWSM[rip]
	call	er32@PLT
	test	DWORD PTR E1000_ICH_FWSM_FW_VALID[rip], eax
	jne	.L7
	mov	esi, DWORD PTR I217_MEMPWR[rip]
	mov	rdx, r12
	mov	rdi, rbx
	call	e1e_rphy_locked@PLT
	test	rax, rax
	jne	.L8
	mov	esi, DWORD PTR I217_MEMPWR[rip]
	mov	edx, DWORD PTR 4[rsp]
	mov	rdi, rbx
	or	edx, DWORD PTR I217_MEMPWR_DISABLE_SMB_RELEASE[rip]
	mov	DWORD PTR 4[rsp], edx
	call	e1e_wphy_locked@PLT
	mov	esi, DWORD PTR I217_PROXY_CTRL[rip]
	xor	edx, edx
	mov	rdi, rbx
	call	e1e_wphy_locked@PLT
.L7:
	mov	esi, DWORD PTR I217_CGFREG[rip]
	mov	rdx, r12
	mov	rdi, rbx
	call	e1e_rphy_locked@PLT
	test	rax, rax
	je	.L17
.L8:
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	e_dbg@PLT
.L9:
	mov	rdi, rbx
	call	[QWORD PTR 8[rbx]]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	e_dbg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edx, DWORD PTR I217_CGFREG_ENABLE_MTA_RESET[rip]
	mov	esi, DWORD PTR I217_CGFREG[rip]
	mov	rdi, rbx
	not	edx
	and	edx, DWORD PTR 4[rsp]
	mov	DWORD PTR 4[rsp], edx
	call	e1e_wphy_locked@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	e_dbg@PLT
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	e1000_resume_workarounds_pchlan, .-e1000_resume_workarounds_pchlan
	.comm	e1000_phy_i217,8,8
	.comm	e1000_pch2lan,8,8
	.comm	I217_PROXY_CTRL,4,4
	.comm	I217_MEMPWR_DISABLE_SMB_RELEASE,4,4
	.comm	I217_MEMPWR,4,4
	.comm	I217_LPI_GPIO_CTRL_AUTO_EN_LPI,4,4
	.comm	I217_LPI_GPIO_CTRL,4,4
	.comm	I217_CGFREG_ENABLE_MTA_RESET,4,4
	.comm	I217_CGFREG,4,4
	.comm	FWSM,4,4
	.comm	E1000_ICH_FWSM_FW_VALID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ich8lan.c_e1000_resume_workarounds_pchlan.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to init PHY flow ret_val=%d\012\000"
	.align	2
.LC1:
	.ascii	"Failed to setup iRST\012\000"
	.align	2
.LC2:
	.ascii	"Error %d in resume workarounds\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	e1000_resume_workarounds_pchlan
	.syntax unified
	.arm
	.fpu softvfp
	.type	e1000_resume_workarounds_pchlan, %function
e1000_resume_workarounds_pchlan:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L18
	ldr	r2, [r0, #12]
	ldr	r3, [r3]
	ldr	r1, .L18+4
	sub	sp, sp, #8
	cmp	r2, r3
	ldr	r1, [r1]
	str	r1, [sp, #4]
	mov	r1,#0
	bge	.L13
.L1:
	ldr	r3, .L18+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L13:
	mov	r4, r0
	bl	e1000_init_phy_workarounds_pchlan
	subs	r1, r0, #0
	bne	.L15
	ldr	r3, .L18+8
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L1
	mov	r0, r4
	ldr	r3, [r4, #8]
	blx	r3
	cmp	r0, #0
	bne	.L16
	ldr	r5, .L18+12
	mov	r2, sp
	ldr	r1, [r5]
	mov	r0, r4
	bl	e1e_rphy_locked
	ldr	r3, .L18+16
	ldr	r2, [sp]
	ldr	r3, [r3]
	ldr	r1, [r5]
	bic	r2, r2, r3
	mov	r0, r4
	str	r2, [sp]
	bl	e1e_wphy_locked
	ldr	r3, .L18+20
	ldr	r0, [r3]
	bl	er32
	ldr	r3, .L18+24
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L7
	ldr	r6, .L18+28
	mov	r2, sp
	mov	r0, r4
	ldr	r1, [r6]
	bl	e1e_rphy_locked
	subs	r5, r0, #0
	bne	.L8
	ldr	r3, .L18+32
	ldr	r2, [sp]
	ldr	r3, [r3]
	ldr	r1, [r6]
	orr	r2, r2, r3
	mov	r0, r4
	str	r2, [sp]
	bl	e1e_wphy_locked
	ldr	r3, .L18+36
	mov	r2, r5
	mov	r0, r4
	ldr	r1, [r3]
	bl	e1e_wphy_locked
.L7:
	ldr	r6, .L18+40
	mov	r2, sp
	mov	r0, r4
	ldr	r1, [r6]
	bl	e1e_rphy_locked
	subs	r5, r0, #0
	beq	.L17
.L8:
	mov	r1, r5
	ldr	r0, .L18+44
	bl	e_dbg
.L9:
	mov	r0, r4
	ldr	r3, [r4, #4]
	blx	r3
	b	.L1
.L15:
	ldr	r0, .L18+48
	bl	e_dbg
	b	.L1
.L17:
	ldr	r3, .L18+52
	ldr	r2, [sp]
	ldr	r3, [r3]
	mov	r0, r4
	bic	r2, r2, r3
	ldr	r1, [r6]
	str	r2, [sp]
	bl	e1e_wphy_locked
	b	.L9
.L16:
	ldr	r0, .L18+56
	bl	e_dbg
	b	.L1
.L14:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	e1000_pch2lan
	.word	.LC3
	.word	e1000_phy_i217
	.word	I217_LPI_GPIO_CTRL
	.word	I217_LPI_GPIO_CTRL_AUTO_EN_LPI
	.word	FWSM
	.word	E1000_ICH_FWSM_FW_VALID
	.word	I217_MEMPWR
	.word	I217_MEMPWR_DISABLE_SMB_RELEASE
	.word	I217_PROXY_CTRL
	.word	I217_CGFREG
	.word	.LC2
	.word	.LC0
	.word	I217_CGFREG_ENABLE_MTA_RESET
	.word	.LC1
	.size	e1000_resume_workarounds_pchlan, .-e1000_resume_workarounds_pchlan
	.comm	e1000_phy_i217,4,4
	.comm	e1000_pch2lan,4,4
	.comm	I217_PROXY_CTRL,4,4
	.comm	I217_MEMPWR_DISABLE_SMB_RELEASE,4,4
	.comm	I217_MEMPWR,4,4
	.comm	I217_LPI_GPIO_CTRL_AUTO_EN_LPI,4,4
	.comm	I217_LPI_GPIO_CTRL,4,4
	.comm	I217_CGFREG_ENABLE_MTA_RESET,4,4
	.comm	I217_CGFREG,4,4
	.comm	FWSM,4,4
	.comm	E1000_ICH_FWSM_FW_VALID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
