	.file	"extr_ich8lan.c_e1000_configure_k1_ich8lan.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	e1000_configure_k1_ich8lan
	.type	e1000_configure_k1_ich8lan, @function
e1000_configure_k1_ich8lan:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR E1000_KMRNCTRLSTA_K1_CONFIG[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rdx, 4[rsp]
	mov	DWORD PTR 4[rsp], 0
	call	e1000e_read_kmrn_reg_locked@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L1
	mov	eax, DWORD PTR E1000_KMRNCTRLSTA_K1_ENABLE[rip]
	mov	edx, DWORD PTR 4[rsp]
	mov	rdi, rbp
	mov	esi, DWORD PTR E1000_KMRNCTRLSTA_K1_CONFIG[rip]
	mov	ecx, eax
	not	eax
	and	eax, edx
	or	ecx, edx
	test	ebx, ebx
	cmove	ecx, eax
	mov	edx, ecx
	mov	DWORD PTR 4[rsp], ecx
	call	e1000e_write_kmrn_reg_locked@PLT
	mov	r12, rax
	test	rax, rax
	je	.L8
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, 40
	mov	edi, 20
	call	usleep_range@PLT
	mov	edi, DWORD PTR CTRL_EXT[rip]
	call	er32@PLT
	mov	edi, DWORD PTR CTRL[rip]
	mov	ebp, eax
	call	er32@PLT
	mov	esi, DWORD PTR E1000_CTRL_SPD_1000[rip]
	or	esi, DWORD PTR E1000_CTRL_SPD_100[rip]
	mov	edi, DWORD PTR CTRL[rip]
	not	esi
	mov	r13d, eax
	and	esi, eax
	or	esi, DWORD PTR E1000_CTRL_FRCSPD[rip]
	call	ew32@PLT
	mov	esi, DWORD PTR E1000_CTRL_EXT_SPD_BYPS[rip]
	mov	edi, DWORD PTR CTRL_EXT[rip]
	or	esi, ebp
	call	ew32@PLT
	xor	eax, eax
	call	e1e_flush@PLT
	mov	esi, 40
	mov	edi, 20
	call	usleep_range@PLT
	mov	edi, DWORD PTR CTRL[rip]
	mov	esi, r13d
	call	ew32@PLT
	mov	edi, DWORD PTR CTRL_EXT[rip]
	mov	esi, ebp
	call	ew32@PLT
	xor	eax, eax
	call	e1e_flush@PLT
	mov	esi, 40
	mov	edi, 20
	call	usleep_range@PLT
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	e1000_configure_k1_ich8lan, .-e1000_configure_k1_ich8lan
	.comm	E1000_KMRNCTRLSTA_K1_ENABLE,4,4
	.comm	E1000_KMRNCTRLSTA_K1_CONFIG,4,4
	.comm	E1000_CTRL_SPD_1000,4,4
	.comm	E1000_CTRL_SPD_100,4,4
	.comm	E1000_CTRL_FRCSPD,4,4
	.comm	E1000_CTRL_EXT_SPD_BYPS,4,4
	.comm	CTRL_EXT,4,4
	.comm	CTRL,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_configure_k1_ich8lan.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	e1000_configure_k1_ich8lan
	.syntax unified
	.arm
	.fpu softvfp
	.type	e1000_configure_k1_ich8lan, %function
e1000_configure_k1_ich8lan:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L10
	sub	sp, sp, #8
	ldr	r3, .L10+4
	mov	r4, r1
	mov	r2, sp
	ldr	r1, [r6]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r7, r0
	str	ip, [sp]
	bl	e1000e_read_kmrn_reg_locked
	subs	r5, r0, #0
	bne	.L1
	ldr	r3, .L10+8
	ldr	r2, [sp]
	ldr	r3, [r3]
	cmp	r4, #0
	orrne	r2, r3, r2
	biceq	r2, r2, r3
	mov	r0, r7
	ldr	r1, [r6]
	str	r2, [sp]
	bl	e1000e_write_kmrn_reg_locked
	subs	r5, r0, #0
	beq	.L8
.L1:
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r7, .L10+12
	mov	r1, #40
	mov	r0, #20
	bl	usleep_range
	ldr	r0, [r7]
	bl	er32
	ldr	r8, .L10+16
	mov	r4, r0
	ldr	r0, [r8]
	bl	er32
	mov	r6, r0
	ldr	r2, .L10+20
	ldr	r3, .L10+24
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, .L10+28
	orr	r3, r3, r1
	ldr	r1, [r2]
	bic	r3, r0, r3
	orr	r1, r3, r1
	ldr	r0, [r8]
	bl	ew32
	ldr	r3, .L10+32
	ldr	r0, [r7]
	ldr	r1, [r3]
	orr	r1, r4, r1
	bl	ew32
	bl	e1e_flush
	mov	r1, #40
	mov	r0, #20
	bl	usleep_range
	mov	r1, r6
	ldr	r0, [r8]
	bl	ew32
	mov	r1, r4
	ldr	r0, [r7]
	bl	ew32
	bl	e1e_flush
	mov	r1, #40
	mov	r0, #20
	bl	usleep_range
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	E1000_KMRNCTRLSTA_K1_CONFIG
	.word	.LC0
	.word	E1000_KMRNCTRLSTA_K1_ENABLE
	.word	CTRL_EXT
	.word	CTRL
	.word	E1000_CTRL_SPD_100
	.word	E1000_CTRL_SPD_1000
	.word	E1000_CTRL_FRCSPD
	.word	E1000_CTRL_EXT_SPD_BYPS
	.size	e1000_configure_k1_ich8lan, .-e1000_configure_k1_ich8lan
	.comm	E1000_KMRNCTRLSTA_K1_ENABLE,4,4
	.comm	E1000_KMRNCTRLSTA_K1_CONFIG,4,4
	.comm	E1000_CTRL_SPD_1000,4,4
	.comm	E1000_CTRL_SPD_100,4,4
	.comm	E1000_CTRL_FRCSPD,4,4
	.comm	E1000_CTRL_EXT_SPD_BYPS,4,4
	.comm	CTRL_EXT,4,4
	.comm	CTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
