	.file	"extr_ich8lan.c_e1000_k1_workaround_lv.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	e1000_k1_workaround_lv, @function
e1000_k1_workaround_lv:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 12[rsp], 0
	mov	rax, QWORD PTR e1000_pch2lan[rip]
	cmp	QWORD PTR [rdi], rax
	je	.L2
.L4:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR HV_M_STATUS[rip]
	lea	rdx, 12[rsp]
	mov	rbp, rdi
	call	e1e_rphy@PLT
	test	rax, rax
	jne	.L1
	mov	edx, DWORD PTR 12[rsp]
	mov	eax, DWORD PTR HV_M_STATUS_LINK_UP[rip]
	or	eax, DWORD PTR HV_M_STATUS_AUTONEG_COMPLETE[rip]
	and	edx, eax
	cmp	eax, edx
	jne	.L4
	mov	edi, DWORD PTR FEXTNVM4[rip]
	call	er32@PLT
	mov	esi, DWORD PTR I82579_LPI_CTRL[rip]
	lea	rdx, 16[rsp]
	mov	rdi, rbp
	mov	ebx, DWORD PTR E1000_FEXTNVM4_BEACON_DURATION_MASK[rip]
	mov	r12d, eax
	call	e1e_rphy@PLT
	test	rax, rax
	jne	.L1
	not	ebx
	mov	eax, DWORD PTR 16[rsp]
	mov	edx, DWORD PTR I82579_LPI_CTRL_FORCE_PLL_LOCK_COUNT[rip]
	mov	ecx, DWORD PTR 12[rsp]
	and	ebx, r12d
	test	DWORD PTR HV_M_STATUS_SPEED_1000[rip], ecx
	jne	.L12
	or	eax, edx
	or	ebx, DWORD PTR E1000_FEXTNVM4_BEACON_DURATION_16USEC[rip]
	mov	DWORD PTR 16[rsp], eax
	mov	esi, ebx
.L7:
	mov	edi, DWORD PTR FEXTNVM4[rip]
	call	ew32@PLT
	mov	edx, DWORD PTR 16[rsp]
	mov	esi, DWORD PTR I82579_LPI_CTRL[rip]
	mov	rdi, rbp
	call	e1e_wphy@PLT
	jmp	.L1
.L12:
	not	edx
	mov	esi, DWORD PTR HV_PM_CTRL[rip]
	mov	rdi, rbp
	mov	r12d, DWORD PTR E1000_FEXTNVM4_BEACON_DURATION_8USEC[rip]
	and	eax, edx
	lea	rdx, 20[rsp]
	mov	DWORD PTR 16[rsp], eax
	call	e1e_rphy@PLT
	test	rax, rax
	jne	.L1
	mov	edx, DWORD PTR HV_PM_CTRL_PLL_STOP_IN_K1_GIGA[rip]
	mov	esi, DWORD PTR HV_PM_CTRL[rip]
	mov	rdi, rbp
	not	edx
	and	edx, DWORD PTR 20[rsp]
	mov	DWORD PTR 20[rsp], edx
	call	e1e_wphy@PLT
	test	rax, rax
	jne	.L1
	mov	esi, r12d
	or	esi, ebx
	jmp	.L7
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	e1000_k1_workaround_lv, .-e1000_k1_workaround_lv
	.comm	e1000_pch2lan,8,8
	.comm	I82579_LPI_CTRL_FORCE_PLL_LOCK_COUNT,4,4
	.comm	I82579_LPI_CTRL,4,4
	.comm	HV_PM_CTRL_PLL_STOP_IN_K1_GIGA,4,4
	.comm	HV_PM_CTRL,4,4
	.comm	HV_M_STATUS_SPEED_1000,4,4
	.comm	HV_M_STATUS_LINK_UP,4,4
	.comm	HV_M_STATUS_AUTONEG_COMPLETE,4,4
	.comm	HV_M_STATUS,4,4
	.comm	FEXTNVM4,4,4
	.comm	E1000_FEXTNVM4_BEACON_DURATION_MASK,4,4
	.comm	E1000_FEXTNVM4_BEACON_DURATION_8USEC,4,4
	.comm	E1000_FEXTNVM4_BEACON_DURATION_16USEC,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_k1_workaround_lv.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	e1000_k1_workaround_lv, %function
e1000_k1_workaround_lv:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r2, .L13
	ldr	r1, [r0]
	ldr	r2, [r2]
	ldr	ip, .L13+4
	sub	sp, sp, #20
	cmp	r1, r2
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	str	r3, [sp]
	beq	.L2
.L4:
	mov	r0, #0
.L1:
	ldr	r3, .L13+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	ldr	r3, .L13+8
	mov	r2, sp
	ldr	r1, [r3]
	mov	r4, r0
	bl	e1e_rphy
	cmp	r0, #0
	bne	.L1
	ldr	r2, .L13+12
	ldr	r3, .L13+16
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [sp]
	orr	r3, r3, r1
	bics	r3, r3, r2
	bne	.L4
	ldr	r7, .L13+20
	ldr	r6, .L13+24
	ldr	r0, [r7]
	bl	er32
	ldr	r3, .L13+28
	mov	r5, r0
	ldr	r1, [r6]
	mov	r0, r4
	add	r2, sp, #4
	ldr	r8, [r3]
	bl	e1e_rphy
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L13+32
	ldr	r1, [sp]
	ldr	r2, [r3]
	ldr	r3, .L13+36
	tst	r1, r2
	bic	r5, r5, r8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	bne	.L12
	ldr	r1, .L13+40
	orr	r3, r3, r2
	ldr	r1, [r1]
	str	r3, [sp, #4]
	orr	r1, r5, r1
.L7:
	ldr	r0, [r7]
	bl	ew32
	mov	r0, r4
	ldr	r1, [r6]
	ldr	r2, [sp, #4]
	bl	e1e_wphy
	b	.L1
.L12:
	ldr	r9, .L13+44
	ldr	ip, .L13+48
	bic	r3, r3, r2
	mov	r0, r4
	ldr	r1, [r9]
	add	r2, sp, #8
	ldr	r8, [ip]
	str	r3, [sp, #4]
	bl	e1e_rphy
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L13+52
	ldr	r2, [sp, #8]
	ldr	r3, [r3]
	ldr	r1, [r9]
	bic	r2, r2, r3
	mov	r0, r4
	str	r2, [sp, #8]
	bl	e1e_wphy
	cmp	r0, #0
	orreq	r1, r8, r5
	beq	.L7
	b	.L1
.L11:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	e1000_pch2lan
	.word	.LC0
	.word	HV_M_STATUS
	.word	HV_M_STATUS_AUTONEG_COMPLETE
	.word	HV_M_STATUS_LINK_UP
	.word	FEXTNVM4
	.word	I82579_LPI_CTRL
	.word	E1000_FEXTNVM4_BEACON_DURATION_MASK
	.word	HV_M_STATUS_SPEED_1000
	.word	I82579_LPI_CTRL_FORCE_PLL_LOCK_COUNT
	.word	E1000_FEXTNVM4_BEACON_DURATION_16USEC
	.word	HV_PM_CTRL
	.word	E1000_FEXTNVM4_BEACON_DURATION_8USEC
	.word	HV_PM_CTRL_PLL_STOP_IN_K1_GIGA
	.size	e1000_k1_workaround_lv, .-e1000_k1_workaround_lv
	.comm	e1000_pch2lan,4,4
	.comm	I82579_LPI_CTRL_FORCE_PLL_LOCK_COUNT,4,4
	.comm	I82579_LPI_CTRL,4,4
	.comm	HV_PM_CTRL_PLL_STOP_IN_K1_GIGA,4,4
	.comm	HV_PM_CTRL,4,4
	.comm	HV_M_STATUS_SPEED_1000,4,4
	.comm	HV_M_STATUS_LINK_UP,4,4
	.comm	HV_M_STATUS_AUTONEG_COMPLETE,4,4
	.comm	HV_M_STATUS,4,4
	.comm	FEXTNVM4,4,4
	.comm	E1000_FEXTNVM4_BEACON_DURATION_MASK,4,4
	.comm	E1000_FEXTNVM4_BEACON_DURATION_8USEC,4,4
	.comm	E1000_FEXTNVM4_BEACON_DURATION_16USEC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
