	.file	"extr_80003es2lan.c_e1000_cfg_kmrn_10_100_80003es2lan.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	e1000_cfg_kmrn_10_100_80003es2lan, @function
e1000_cfg_kmrn_10_100_80003es2lan:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rdx, QWORD PTR E1000_KMRNCTRLSTA_HD_CTRL_10_100_DEFAULT[rip]
	mov	esi, DWORD PTR E1000_KMRNCTRLSTA_OFFSET_HD_CTRL[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 8[rsp], rdx
	call	e1000_write_kmrn_reg_80003es2lan@PLT
	mov	r12, rax
	test	rax, rax
	je	.L13
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR TIPG[rip]
	lea	rbx, 8[rsp]
	lea	rbp, 16[rsp]
	call	er32@PLT
	mov	edi, DWORD PTR TIPG[rip]
	mov	r8, rax
	mov	rax, QWORD PTR E1000_TIPG_IPGT_MASK[rip]
	not	rax
	and	rax, r8
	or	rax, QWORD PTR DEFAULT_TIPG_IPGT_10_100_80003ES2LAN[rip]
	mov	rsi, rax
	call	ew32@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	mov	esi, DWORD PTR GG82563_PHY_KMRN_MODE_CTRL[rip]
	mov	rdx, rbp
	mov	rdi, r14
	call	e1e_rphy@PLT
	test	rax, rax
	jne	.L9
	mov	rdx, QWORD PTR 8[rsp]
	mov	rax, QWORD PTR 16[rsp]
	add	r12, 1
	cmp	rdx, rax
	je	.L3
	cmp	QWORD PTR GG82563_MAX_KMRN_RETRY[rip], r12
	jle	.L15
.L4:
	mov	esi, DWORD PTR GG82563_PHY_KMRN_MODE_CTRL[rip]
	mov	rdx, rbx
	mov	rdi, r14
	call	e1e_rphy@PLT
	test	rax, rax
	je	.L16
.L9:
	mov	r12, rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rax, rdx
.L3:
	mov	rcx, QWORD PTR GG82563_KMCR_PASS_FALSE_CARRIER[rip]
	mov	rdx, rcx
	not	rdx
	and	rdx, rax
	cmp	QWORD PTR HALF_DUPLEX[rip], r13
	je	.L17
.L6:
	mov	esi, DWORD PTR GG82563_PHY_KMRN_MODE_CTRL[rip]
	mov	rdi, r14
	mov	QWORD PTR 8[rsp], rdx
	call	e1e_wphy@PLT
	mov	r12, rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	or	rcx, rax
	mov	rdx, rcx
	jmp	.L6
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	e1000_cfg_kmrn_10_100_80003es2lan, .-e1000_cfg_kmrn_10_100_80003es2lan
	.comm	TIPG,4,4
	.comm	HALF_DUPLEX,8,8
	.comm	GG82563_PHY_KMRN_MODE_CTRL,4,4
	.comm	GG82563_MAX_KMRN_RETRY,8,8
	.comm	GG82563_KMCR_PASS_FALSE_CARRIER,8,8
	.comm	E1000_TIPG_IPGT_MASK,8,8
	.comm	E1000_KMRNCTRLSTA_OFFSET_HD_CTRL,4,4
	.comm	E1000_KMRNCTRLSTA_HD_CTRL_10_100_DEFAULT,8,8
	.comm	DEFAULT_TIPG_IPGT_10_100_80003ES2LAN,8,8
	.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_cfg_kmrn_10_100_80003es2lan.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_cfg_kmrn_10_100_80003es2lan, %function
e1000_cfg_kmrn_10_100_80003es2lan:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L17
	ldr	r2, .L17+4
	mov	r8, r1
	ldr	r2, [r2]
	ldr	r1, [r3]
	ldr	r3, .L17+8
	sub	sp, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r5, r0
	str	r2, [sp, #4]
	bl	e1000_write_kmrn_reg_80003es2lan
	subs	r4, r0, #0
	beq	.L13
.L1:
	ldr	r3, .L17+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r7, .L17+12
	ldr	r6, .L17+16
	ldr	r0, [r7]
	bl	er32
	ldr	r3, .L17+20
	ldr	r2, .L17+24
	ldr	r3, [r3]
	ldr	r1, [r2]
	bic	r3, r0, r3
	orr	r1, r3, r1
	ldr	r0, [r7]
	bl	ew32
	ldr	r7, .L17+28
	b	.L4
.L16:
	mov	r0, r5
	ldr	r1, [r6]
	add	r2, sp, #8
	bl	e1e_rphy
	cmp	r0, #0
	bne	.L9
	ldr	r3, [sp, #4]
	ldr	r2, [sp, #8]
	add	r4, r4, #1
	cmp	r3, r2
	beq	.L3
	ldr	r2, [r7]
	cmp	r2, r4
	ble	.L15
.L4:
	mov	r0, r5
	ldr	r1, [r6]
	add	r2, sp, #4
	bl	e1e_rphy
	cmp	r0, #0
	beq	.L16
.L9:
	mov	r4, r0
	b	.L1
.L15:
	mov	r2, r3
.L3:
	ldr	r3, .L17+32
	ldr	r1, .L17+36
	ldr	r3, [r3]
	ldr	r1, [r1]
	cmp	r3, r8
	orreq	r2, r1, r2
	bicne	r2, r2, r1
	mov	r0, r5
	ldr	r1, [r6]
	str	r2, [sp, #4]
	bl	e1e_wphy
	mov	r4, r0
	b	.L1
.L14:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	E1000_KMRNCTRLSTA_OFFSET_HD_CTRL
	.word	E1000_KMRNCTRLSTA_HD_CTRL_10_100_DEFAULT
	.word	.LC0
	.word	TIPG
	.word	GG82563_PHY_KMRN_MODE_CTRL
	.word	E1000_TIPG_IPGT_MASK
	.word	DEFAULT_TIPG_IPGT_10_100_80003ES2LAN
	.word	GG82563_MAX_KMRN_RETRY
	.word	HALF_DUPLEX
	.word	GG82563_KMCR_PASS_FALSE_CARRIER
	.size	e1000_cfg_kmrn_10_100_80003es2lan, .-e1000_cfg_kmrn_10_100_80003es2lan
	.comm	TIPG,4,4
	.comm	HALF_DUPLEX,4,4
	.comm	GG82563_PHY_KMRN_MODE_CTRL,4,4
	.comm	GG82563_MAX_KMRN_RETRY,4,4
	.comm	GG82563_KMCR_PASS_FALSE_CARRIER,4,4
	.comm	E1000_TIPG_IPGT_MASK,4,4
	.comm	E1000_KMRNCTRLSTA_OFFSET_HD_CTRL,4,4
	.comm	E1000_KMRNCTRLSTA_HD_CTRL_10_100_DEFAULT,4,4
	.comm	DEFAULT_TIPG_IPGT_10_100_80003ES2LAN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
