	.file	"extr_e1000_hw.c_e1000_copper_link_autoneg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"e1000_copper_link_autoneg"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Reconfiguring auto-neg advertisement params\n"
	.align 8
.LC2:
	.string	"Error Setting up Auto-Negotiation\n"
	.section	.rodata.str1.1
.LC3:
	.string	"Restarting Auto-Neg\n"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Error while waiting for autoneg to complete\n"
	.text
	.p2align 4
	.type	e1000_copper_link_autoneg, @function
e1000_copper_link_autoneg:
.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
	mov	rbx, rdi
	lea	rdi, .LC0[rip]
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	e_dbg@PLT
	mov	eax, DWORD PTR AUTONEG_ADVERTISE_SPEED_DEFAULT[rip]
	mov	edx, eax
	and	edx, DWORD PTR 24[rbx]
	cmovne	eax, edx
	mov	DWORD PTR 24[rbx], eax
	mov	rax, QWORD PTR e1000_phy_8201[rip]
	cmp	QWORD PTR [rbx], rax
	jne	.L4
	mov	eax, DWORD PTR AUTONEG_ADVERTISE_10_100_ALL[rip]
	and	DWORD PTR 24[rbx], eax
.L4:
	lea	rdi, .LC1[rip]
	call	e_dbg@PLT
	mov	rdi, rbx
	call	e1000_phy_setup_autoneg@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L14
	lea	rdi, .LC3[rip]
	call	e_dbg@PLT
	mov	esi, DWORD PTR PHY_CTRL[rip]
	lea	rdx, 4[rsp]
	mov	rdi, rbx
	call	e1000_read_phy_reg@PLT
	mov	r12, rax
	test	rax, rax
	je	.L15
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	esi, DWORD PTR PHY_CTRL[rip]
	mov	edx, DWORD PTR MII_CR_AUTO_NEG_EN[rip]
	mov	rdi, rbx
	or	edx, DWORD PTR MII_CR_RESTART_AUTO_NEG[rip]
	or	edx, DWORD PTR 4[rsp]
	mov	DWORD PTR 4[rsp], edx
	call	e1000_write_phy_reg@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L1
	cmp	QWORD PTR 16[rbx], 0
	jne	.L17
.L7:
	mov	DWORD PTR 8[rbx], 1
	mov	r12, QWORD PTR E1000_SUCCESS[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	lea	rdi, .LC2[rip]
	call	e_dbg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, rbx
	call	e1000_wait_autoneg@PLT
	mov	r12, rax
	test	rax, rax
	je	.L7
	lea	rdi, .LC4[rip]
	call	e_dbg@PLT
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	e1000_copper_link_autoneg, .-e1000_copper_link_autoneg
	.comm	e1000_phy_8201,8,8
	.comm	PHY_CTRL,4,4
	.comm	MII_CR_RESTART_AUTO_NEG,4,4
	.comm	MII_CR_AUTO_NEG_EN,4,4
	.comm	E1000_SUCCESS,8,8
	.comm	AUTONEG_ADVERTISE_SPEED_DEFAULT,4,4
	.comm	AUTONEG_ADVERTISE_10_100_ALL,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_e1000_hw.c_e1000_copper_link_autoneg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"e1000_copper_link_autoneg\000"
	.align	2
.LC1:
	.ascii	"Reconfiguring auto-neg advertisement params\012\000"
	.align	2
.LC2:
	.ascii	"Error Setting up Auto-Negotiation\012\000"
	.align	2
.LC3:
	.ascii	"Restarting Auto-Neg\012\000"
	.align	2
.LC4:
	.ascii	"Error while waiting for autoneg to complete\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	e1000_copper_link_autoneg, %function
e1000_copper_link_autoneg:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r3, .L21
	sub	sp, sp, #8
	ldr	r0, .L21+4
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	e_dbg
	ldr	r3, .L21+8
	ldr	r2, [r5, #12]
	ldr	r3, [r3]
	ldr	r0, .L21+12
	ands	r2, r3, r2
	movne	r3, r2
	ldr	r1, [r5]
	ldr	r2, [r0]
	str	r3, [r5, #12]
	cmp	r1, r2
	ldreq	r2, .L21+16
	ldr	r0, .L21+20
	ldreq	r2, [r2]
	andeq	r3, r3, r2
	streq	r3, [r5, #12]
	bl	e_dbg
	mov	r0, r5
	bl	e1000_phy_setup_autoneg
	subs	r4, r0, #0
	bne	.L17
	ldr	r6, .L21+24
	ldr	r0, .L21+28
	bl	e_dbg
	mov	r2, sp
	mov	r0, r5
	ldr	r1, [r6]
	bl	e1000_read_phy_reg
	subs	r4, r0, #0
	beq	.L18
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L18:
	ldr	r3, .L21+32
	ldr	r2, .L21+36
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [sp]
	orr	r2, r2, r1
	orr	r2, r2, r3
	mov	r0, r5
	ldr	r1, [r6]
	str	r2, [sp]
	bl	e1000_write_phy_reg
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, [r5, #8]
	cmp	r3, #0
	bne	.L20
.L7:
	mov	r2, #1
	ldr	r3, .L21+40
	str	r2, [r5, #4]
	ldr	r4, [r3]
	b	.L1
.L17:
	ldr	r0, .L21+44
	bl	e_dbg
	b	.L1
.L20:
	mov	r0, r5
	bl	e1000_wait_autoneg
	subs	r4, r0, #0
	beq	.L7
	ldr	r0, .L21+48
	bl	e_dbg
	b	.L1
.L19:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC5
	.word	.LC0
	.word	AUTONEG_ADVERTISE_SPEED_DEFAULT
	.word	e1000_phy_8201
	.word	AUTONEG_ADVERTISE_10_100_ALL
	.word	.LC1
	.word	PHY_CTRL
	.word	.LC3
	.word	MII_CR_RESTART_AUTO_NEG
	.word	MII_CR_AUTO_NEG_EN
	.word	E1000_SUCCESS
	.word	.LC2
	.word	.LC4
	.size	e1000_copper_link_autoneg, .-e1000_copper_link_autoneg
	.comm	e1000_phy_8201,4,4
	.comm	PHY_CTRL,4,4
	.comm	MII_CR_RESTART_AUTO_NEG,4,4
	.comm	MII_CR_AUTO_NEG_EN,4,4
	.comm	E1000_SUCCESS,4,4
	.comm	AUTONEG_ADVERTISE_SPEED_DEFAULT,4,4
	.comm	AUTONEG_ADVERTISE_10_100_ALL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
