	.file	"extr_80003es2lan.c_e1000_init_hw_80003es2lan.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Error initializing identification LED\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Initializing the IEEE VLAN\n"
.LC2:
	.string	"Zeroing the MTA\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"Error disabling far-end loopback\n"
	.text
	.p2align 4
	.type	e1000_init_hw_80003es2lan, @function
e1000_init_hw_80003es2lan:
.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
	mov	rbp, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	e1000_initialize_hw_bits_80003es2lan@PLT
	mov	rdi, rbp
	call	[QWORD PTR 32[rbp]]
	test	rax, rax
	jne	.L19
.L2:
	lea	rdi, .LC1[rip]
	call	e_dbg@PLT
	mov	rdi, rbp
	call	[QWORD PTR 24[rbp]]
	mov	esi, DWORD PTR 40[rbp]
	mov	rdi, rbp
	call	e1000e_init_rx_addrs@PLT
	lea	rdi, .LC2[rip]
	call	e_dbg@PLT
	mov	eax, DWORD PTR 8[rbp]
	mov	DWORD PTR 4[rsp], 0
	test	eax, eax
	jle	.L3
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, DWORD PTR E1000_MTA[rip]
	xor	ecx, ecx
	mov	rdi, rbp
	call	E1000_WRITE_REG_ARRAY@PLT
	mov	eax, DWORD PTR 4[rsp]
	lea	edx, 1[rax]
	mov	DWORD PTR 4[rsp], edx
	cmp	edx, DWORD PTR 8[rbp]
	jl	.L4
.L3:
	mov	rdi, rbp
	call	[QWORD PTR 16[rbp]]
	mov	r12, rax
	test	rax, rax
	je	.L20
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	esi, DWORD PTR E1000_KMRNCTRLSTA_INBAND_PARAM[rip]
	mov	rdx, rsp
	mov	rdi, rbp
	call	e1000_read_kmrn_reg_80003es2lan@PLT
	test	rax, rax
	jne	.L6
	mov	esi, DWORD PTR E1000_KMRNCTRLSTA_INBAND_PARAM[rip]
	mov	edx, DWORD PTR [rsp]
	mov	rdi, rbp
	or	edx, DWORD PTR E1000_KMRNCTRLSTA_IBIST_DISABLE[rip]
	mov	DWORD PTR [rsp], edx
	call	e1000_write_kmrn_reg_80003es2lan@PLT
	test	rax, rax
	jne	.L6
.L7:
	xor	edi, edi
	call	TXDCTL@PLT
	mov	edi, eax
	call	er32@PLT
	mov	r12d, DWORD PTR E1000_TXDCTL_WTHRESH[rip]
	xor	edi, edi
	not	r12d
	and	eax, r12d
	mov	r12d, DWORD PTR E1000_TXDCTL_FULL_TX_DESC_WB[rip]
	or	r12d, DWORD PTR E1000_TXDCTL_COUNT_DESC[rip]
	or	r12d, eax
	call	TXDCTL@PLT
	mov	esi, r12d
	mov	edi, eax
	call	ew32@PLT
	mov	edi, 1
	call	TXDCTL@PLT
	mov	edi, eax
	call	er32@PLT
	mov	r12d, DWORD PTR E1000_TXDCTL_WTHRESH[rip]
	mov	edi, 1
	not	r12d
	and	eax, r12d
	mov	r12d, DWORD PTR E1000_TXDCTL_FULL_TX_DESC_WB[rip]
	or	r12d, DWORD PTR E1000_TXDCTL_COUNT_DESC[rip]
	or	r12d, eax
	call	TXDCTL@PLT
	mov	esi, r12d
	mov	edi, eax
	call	ew32@PLT
	mov	edi, DWORD PTR TCTL[rip]
	call	er32@PLT
	mov	edi, DWORD PTR TCTL[rip]
	or	eax, DWORD PTR E1000_TCTL_RTLC[rip]
	mov	esi, eax
	call	ew32@PLT
	mov	edi, DWORD PTR TCTL_EXT[rip]
	call	er32@PLT
	mov	edi, DWORD PTR TCTL_EXT[rip]
	mov	r8d, eax
	mov	eax, DWORD PTR E1000_TCTL_EXT_GCEX_MASK[rip]
	not	eax
	and	eax, r8d
	or	eax, DWORD PTR DEFAULT_TCTL_EXT_GCEX_80003ES2LAN[rip]
	mov	esi, eax
	call	ew32@PLT
	mov	edi, DWORD PTR TIPG[rip]
	call	er32@PLT
	mov	edi, DWORD PTR TIPG[rip]
	mov	r8d, eax
	mov	eax, DWORD PTR E1000_TIPG_IPGT_MASK[rip]
	not	eax
	and	eax, r8d
	or	eax, DWORD PTR DEFAULT_TIPG_IPGT_1000_80003ES2LAN[rip]
	mov	esi, eax
	call	ew32@PLT
	mov	esi, DWORD PTR E1000_FFLT[rip]
	mov	edx, 1
	mov	rdi, rbp
	call	E1000_READ_REG_ARRAY@PLT
	mov	esi, DWORD PTR E1000_FFLT[rip]
	mov	edx, 1
	mov	rdi, rbp
	and	eax, -1048577
	mov	ecx, eax
	call	E1000_WRITE_REG_ARRAY@PLT
	mov	ecx, DWORD PTR E1000_KMRNCTRLSTA_OFFSET_SHIFT[rip]
	mov	esi, DWORD PTR E1000_KMRNCTRLSTA_OFFSET[rip]
	mov	rdi, rbp
	mov	DWORD PTR 0[rbp], 1
	lea	rdx, 4[rsp]
	sar	esi, cl
	call	e1000_read_kmrn_reg_80003es2lan@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L8
	mov	eax, DWORD PTR 4[rsp]
	and	eax, DWORD PTR E1000_KMRNCTRLSTA_OPMODE_MASK[rip]
	cmp	eax, DWORD PTR E1000_KMRNCTRLSTA_OPMODE_INBAND_MDIO[rip]
	je	.L22
.L8:
	mov	rdi, rbp
	call	e1000_clear_hw_cntrs_80003es2lan@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rdi, .LC3[rip]
	call	e_dbg@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L19:
	lea	rdi, .LC0[rip]
	call	e_dbg@PLT
	jmp	.L2
.L22:
	mov	DWORD PTR 0[rbp], 0
	jmp	.L8
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	e1000_init_hw_80003es2lan, .-e1000_init_hw_80003es2lan
	.comm	TIPG,4,4
	.comm	TCTL_EXT,4,4
	.comm	TCTL,4,4
	.comm	E1000_TXDCTL_WTHRESH,4,4
	.comm	E1000_TXDCTL_FULL_TX_DESC_WB,4,4
	.comm	E1000_TXDCTL_COUNT_DESC,4,4
	.comm	E1000_TIPG_IPGT_MASK,4,4
	.comm	E1000_TCTL_RTLC,4,4
	.comm	E1000_TCTL_EXT_GCEX_MASK,4,4
	.comm	E1000_MTA,4,4
	.comm	E1000_KMRNCTRLSTA_OPMODE_MASK,4,4
	.comm	E1000_KMRNCTRLSTA_OPMODE_INBAND_MDIO,4,4
	.comm	E1000_KMRNCTRLSTA_OFFSET_SHIFT,4,4
	.comm	E1000_KMRNCTRLSTA_OFFSET,4,4
	.comm	E1000_KMRNCTRLSTA_INBAND_PARAM,4,4
	.comm	E1000_KMRNCTRLSTA_IBIST_DISABLE,4,4
	.comm	E1000_FFLT,4,4
	.comm	DEFAULT_TIPG_IPGT_1000_80003ES2LAN,4,4
	.comm	DEFAULT_TCTL_EXT_GCEX_80003ES2LAN,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_80003es2lan.c_e1000_init_hw_80003es2lan.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error initializing identification LED\012\000"
	.align	2
.LC1:
	.ascii	"Initializing the IEEE VLAN\012\000"
	.align	2
.LC2:
	.ascii	"Zeroing the MTA\012\000"
	.align	2
.LC3:
	.ascii	"Error disabling far-end loopback\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	e1000_init_hw_80003es2lan, %function
e1000_init_hw_80003es2lan:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r3, .L22
	sub	sp, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	e1000_initialize_hw_bits_80003es2lan
	mov	r0, r4
	ldr	r3, [r4, #16]
	blx	r3
	cmp	r0, #0
	bne	.L19
.L2:
	ldr	r0, .L22+4
	bl	e_dbg
	ldr	r3, [r4, #12]
	mov	r0, r4
	blx	r3
	ldr	r1, [r4, #20]
	mov	r0, r4
	bl	e1000e_init_rx_addrs
	ldr	r0, .L22+8
	bl	e_dbg
	mov	r2, #0
	ldr	r3, [r4, #4]
	str	r2, [sp, #8]
	cmp	r3, r2
	ble	.L3
	ldr	r5, .L22+12
.L4:
	mov	r3, #0
	mov	r0, r4
	ldr	r1, [r5]
	bl	E1000_WRITE_REG_ARRAY
	ldr	r2, [sp, #8]
	ldr	r3, [r4, #4]
	add	r2, r2, #1
	cmp	r2, r3
	str	r2, [sp, #8]
	blt	.L4
.L3:
	mov	r0, r4
	ldr	r3, [r4, #8]
	blx	r3
	subs	r5, r0, #0
	beq	.L20
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	ldr	r5, .L22+16
	mov	r0, r4
	ldr	r1, [r5]
	add	r2, sp, #4
	bl	e1000_read_kmrn_reg_80003es2lan
	cmp	r0, #0
	bne	.L6
	ldr	r3, .L22+20
	ldr	r2, [sp, #4]
	ldr	r3, [r3]
	mov	r0, r4
	orr	r2, r2, r3
	ldr	r1, [r5]
	str	r2, [sp, #4]
	bl	e1000_write_kmrn_reg_80003es2lan
	cmp	r0, #0
	bne	.L6
.L7:
	mov	r0, #0
	bl	TXDCTL
	bl	er32
	ldr	r6, .L22+24
	ldr	r8, .L22+28
	ldr	r7, .L22+32
	ldr	r1, [r6]
	ldr	r5, [r8]
	ldr	r3, [r7]
	bic	r5, r0, r5
	orr	r3, r3, r1
	orr	r5, r3, r5
	mov	r0, #0
	bl	TXDCTL
	mov	r1, r5
	bl	ew32
	mov	r0, #1
	bl	TXDCTL
	bl	er32
	ldr	r1, [r6]
	ldr	r5, [r8]
	ldr	r3, [r7]
	bic	r5, r0, r5
	orr	r3, r3, r1
	orr	r5, r3, r5
	ldr	r6, .L22+36
	mov	r0, #1
	bl	TXDCTL
	mov	r1, r5
	bl	ew32
	ldr	r0, [r6]
	bl	er32
	mov	r1, r0
	ldr	r3, .L22+40
	ldr	r5, .L22+44
	ldr	r3, [r3]
	ldr	r0, [r6]
	orr	r1, r1, r3
	bl	ew32
	ldr	r0, [r5]
	bl	er32
	ldr	r3, .L22+48
	ldr	r2, .L22+52
	ldr	r3, [r3]
	ldr	r1, [r2]
	bic	r3, r0, r3
	ldr	r6, .L22+56
	orr	r1, r3, r1
	ldr	r0, [r5]
	bl	ew32
	ldr	r0, [r6]
	bl	er32
	ldr	r3, .L22+60
	ldr	r2, .L22+64
	ldr	r3, [r3]
	ldr	r1, [r2]
	bic	r3, r0, r3
	ldr	r5, .L22+68
	orr	r1, r3, r1
	ldr	r0, [r6]
	bl	ew32
	ldr	r1, [r5]
	mov	r2, #1
	mov	r0, r4
	bl	E1000_READ_REG_ARRAY
	ldr	r1, [r5]
	bic	r3, r0, #1048576
	mov	r2, #1
	mov	r0, r4
	bl	E1000_WRITE_REG_ARRAY
	mov	r2, #1
	ldr	r1, .L22+72
	ldr	r3, .L22+76
	ldr	r1, [r1]
	ldr	r3, [r3]
	mov	r0, r4
	str	r2, [r4]
	asr	r1, r1, r3
	add	r2, sp, #8
	bl	e1000_read_kmrn_reg_80003es2lan
	subs	r5, r0, #0
	bne	.L8
	ldr	r3, .L22+80
	ldr	r2, .L22+84
	ldr	r1, [r3]
	ldr	r3, [sp, #8]
	ldr	r2, [r2]
	and	r3, r3, r1
	cmp	r3, r2
	streq	r5, [r4]
.L8:
	mov	r0, r4
	bl	e1000_clear_hw_cntrs_80003es2lan
	b	.L1
.L6:
	ldr	r0, .L22+88
	bl	e_dbg
	b	.L7
.L19:
	ldr	r0, .L22+92
	bl	e_dbg
	b	.L2
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC4
	.word	.LC1
	.word	.LC2
	.word	E1000_MTA
	.word	E1000_KMRNCTRLSTA_INBAND_PARAM
	.word	E1000_KMRNCTRLSTA_IBIST_DISABLE
	.word	E1000_TXDCTL_COUNT_DESC
	.word	E1000_TXDCTL_WTHRESH
	.word	E1000_TXDCTL_FULL_TX_DESC_WB
	.word	TCTL
	.word	E1000_TCTL_RTLC
	.word	TCTL_EXT
	.word	E1000_TCTL_EXT_GCEX_MASK
	.word	DEFAULT_TCTL_EXT_GCEX_80003ES2LAN
	.word	TIPG
	.word	E1000_TIPG_IPGT_MASK
	.word	DEFAULT_TIPG_IPGT_1000_80003ES2LAN
	.word	E1000_FFLT
	.word	E1000_KMRNCTRLSTA_OFFSET
	.word	E1000_KMRNCTRLSTA_OFFSET_SHIFT
	.word	E1000_KMRNCTRLSTA_OPMODE_MASK
	.word	E1000_KMRNCTRLSTA_OPMODE_INBAND_MDIO
	.word	.LC3
	.word	.LC0
	.size	e1000_init_hw_80003es2lan, .-e1000_init_hw_80003es2lan
	.comm	TIPG,4,4
	.comm	TCTL_EXT,4,4
	.comm	TCTL,4,4
	.comm	E1000_TXDCTL_WTHRESH,4,4
	.comm	E1000_TXDCTL_FULL_TX_DESC_WB,4,4
	.comm	E1000_TXDCTL_COUNT_DESC,4,4
	.comm	E1000_TIPG_IPGT_MASK,4,4
	.comm	E1000_TCTL_RTLC,4,4
	.comm	E1000_TCTL_EXT_GCEX_MASK,4,4
	.comm	E1000_MTA,4,4
	.comm	E1000_KMRNCTRLSTA_OPMODE_MASK,4,4
	.comm	E1000_KMRNCTRLSTA_OPMODE_INBAND_MDIO,4,4
	.comm	E1000_KMRNCTRLSTA_OFFSET_SHIFT,4,4
	.comm	E1000_KMRNCTRLSTA_OFFSET,4,4
	.comm	E1000_KMRNCTRLSTA_INBAND_PARAM,4,4
	.comm	E1000_KMRNCTRLSTA_IBIST_DISABLE,4,4
	.comm	E1000_FFLT,4,4
	.comm	DEFAULT_TIPG_IPGT_1000_80003ES2LAN,4,4
	.comm	DEFAULT_TCTL_EXT_GCEX_80003ES2LAN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
