	.file	"extr_e1000_hw.c_e1000_setup_copper_link.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"gbe_dhg_phy_setup failed!\n"
.LC1:
	.string	"Forcing speed and duplex\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Error Forcing Speed and Duplex\n"
	.section	.rodata.str1.1
.LC3:
	.string	"Valid link established!!!\n"
.LC4:
	.string	"Unable to establish link!!!\n"
	.text
	.p2align 4
	.type	e1000_setup_copper_link, @function
e1000_setup_copper_link:
.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
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	e1000_copper_link_preconfig@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR 0[rbp]
	cmp	rax, QWORD PTR e1000_phy_igp[rip]
	mov	rdi, rbp
	je	.L20
	cmp	rax, QWORD PTR e1000_phy_m88[rip]
	je	.L21
	call	gbe_dhg_phy_setup@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L22
.L4:
	cmp	QWORD PTR 8[rbp], 0
	je	.L6
	mov	rdi, rbp
	call	e1000_copper_link_autoneg@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L1
.L8:
	mov	ebx, 10
	lea	r13, 4[rsp]
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR PHY_STATUS[rip]
	mov	rdx, r13
	mov	rdi, rbp
	call	e1000_read_phy_reg@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L1
	mov	esi, DWORD PTR PHY_STATUS[rip]
	mov	rdx, r13
	mov	rdi, rbp
	call	e1000_read_phy_reg@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L1
	mov	eax, DWORD PTR 4[rsp]
	test	DWORD PTR MII_SR_LINK_STATUS[rip], eax
	jne	.L23
	mov	edi, 10
	call	udelay@PLT
	sub	ebx, 1
	jne	.L7
	lea	rdi, .LC4[rip]
	call	e_dbg@PLT
	mov	r12, QWORD PTR E1000_SUCCESS[rip]
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	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
.L6:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	e_dbg@PLT
	mov	rdi, rbp
	call	e1000_phy_force_speed_duplex@PLT
	mov	r12, rax
	test	rax, rax
	je	.L8
	lea	rdi, .LC2[rip]
	call	e_dbg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	call	e1000_copper_link_mgp_setup@PLT
	mov	r12, rax
	test	rax, rax
	je	.L4
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	call	e1000_copper_link_igp_setup@PLT
	mov	r12, rax
	test	rax, rax
	je	.L4
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rdi, .LC0[rip]
	call	e_dbg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, rbp
	call	e1000_copper_link_postconfig@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L1
	lea	rdi, .LC3[rip]
	call	e_dbg@PLT
	mov	r12, QWORD PTR E1000_SUCCESS[rip]
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	e1000_setup_copper_link, .-e1000_setup_copper_link
	.comm	e1000_phy_m88,8,8
	.comm	e1000_phy_igp,8,8
	.comm	PHY_STATUS,4,4
	.comm	MII_SR_LINK_STATUS,4,4
	.comm	E1000_SUCCESS,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_e1000_hw.c_e1000_setup_copper_link.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"gbe_dhg_phy_setup failed!\012\000"
	.align	2
.LC1:
	.ascii	"Forcing speed and duplex\012\000"
	.align	2
.LC2:
	.ascii	"Error Forcing Speed and Duplex\012\000"
	.align	2
.LC3:
	.ascii	"Valid link established!!!\012\000"
	.align	2
.LC4:
	.ascii	"Unable to establish link!!!\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_setup_copper_link, %function
e1000_setup_copper_link:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L25
	sub	sp, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r5, r0
	bl	e1000_copper_link_preconfig
	subs	r4, r0, #0
	bne	.L1
	ldr	r2, .L25+4
	ldr	r3, [r5]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L20
	ldr	r2, .L25+8
	mov	r0, r5
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L21
	bl	gbe_dhg_phy_setup
	subs	r4, r0, #0
	bne	.L22
.L4:
	ldr	r3, [r5, #4]
	cmp	r3, #0
	beq	.L6
	mov	r0, r5
	bl	e1000_copper_link_autoneg
	subs	r4, r0, #0
	bne	.L1
.L8:
	mov	r6, #10
	ldr	r7, .L25+12
	ldr	r8, .L25+16
.L7:
	mov	r2, sp
	mov	r0, r5
	ldr	r1, [r7]
	bl	e1000_read_phy_reg
	subs	r4, r0, #0
	bne	.L1
	mov	r2, sp
	mov	r0, r5
	ldr	r1, [r7]
	bl	e1000_read_phy_reg
	subs	r4, r0, #0
	bne	.L1
	ldr	r2, [sp]
	ldr	r3, [r8]
	tst	r2, r3
	bne	.L23
	mov	r0, #10
	bl	udelay
	subs	r6, r6, #1
	bne	.L7
	ldr	r0, .L25+20
	bl	e_dbg
	ldr	r3, .L25+24
	ldr	r4, [r3]
.L1:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r0, .L25+28
	bl	e_dbg
	mov	r0, r5
	bl	e1000_phy_force_speed_duplex
	subs	r4, r0, #0
	beq	.L8
	ldr	r0, .L25+32
	bl	e_dbg
	b	.L1
.L21:
	bl	e1000_copper_link_mgp_setup
	subs	r4, r0, #0
	beq	.L4
	b	.L1
.L20:
	mov	r0, r5
	bl	e1000_copper_link_igp_setup
	subs	r4, r0, #0
	beq	.L4
	b	.L1
.L22:
	ldr	r0, .L25+36
	bl	e_dbg
	b	.L1
.L23:
	mov	r0, r5
	bl	e1000_copper_link_postconfig
	subs	r4, r0, #0
	bne	.L1
	ldr	r0, .L25+40
	bl	e_dbg
	ldr	r3, .L25+24
	ldr	r4, [r3]
	b	.L1
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC5
	.word	e1000_phy_igp
	.word	e1000_phy_m88
	.word	PHY_STATUS
	.word	MII_SR_LINK_STATUS
	.word	.LC4
	.word	E1000_SUCCESS
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.word	.LC3
	.size	e1000_setup_copper_link, .-e1000_setup_copper_link
	.comm	e1000_phy_m88,4,4
	.comm	e1000_phy_igp,4,4
	.comm	PHY_STATUS,4,4
	.comm	MII_SR_LINK_STATUS,4,4
	.comm	E1000_SUCCESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
