	.file	"extr_e1000_phy.c_e1000_copper_link_setup_igp.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"e1000_copper_link_setup_igp"
.LC1:
	.string	"Error resetting the PHY.\n"
.LC2:
	.string	"Error Disabling LPLU D3\n"
.LC3:
	.string	"Error Disabling LPLU D0\n"
	.text
	.p2align 4
	.globl	e1000_copper_link_setup_igp
	.type	e1000_copper_link_setup_igp, @function
e1000_copper_link_setup_igp:
.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
	lea	rdi, .LC0[rip]
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	DEBUGFUNC@PLT
	mov	rdi, rbp
	call	[QWORD PTR 64[rbp]]
	test	rax, rax
	jne	.L31
	mov	edi, 100
	call	msec_delay@PLT
	mov	rax, QWORD PTR e1000_phy_igp[rip]
	cmp	QWORD PTR 8[rbp], rax
	je	.L32
.L4:
	mov	rax, QWORD PTR 48[rbp]
	test	rax, rax
	je	.L5
	mov	esi, DWORD PTR FALSE[rip]
	mov	rdi, rbp
	call	rax
	mov	r12, rax
	test	rax, rax
	jne	.L33
.L5:
	lea	r13, 4[rsp]
	mov	esi, DWORD PTR IGP01E1000_PHY_PORT_CTRL[rip]
	mov	rdi, rbp
	mov	rdx, r13
	call	[QWORD PTR 40[rbp]]
	mov	r12, rax
	test	rax, rax
	jne	.L1
	mov	esi, DWORD PTR IGP01E1000_PSCR_AUTO_MDIX[rip]
	mov	ecx, DWORD PTR 4[rsp]
	mov	eax, DWORD PTR 16[rbp]
	mov	edx, esi
	not	edx
	and	edx, ecx
	cmp	eax, 1
	je	.L6
	cmp	eax, 2
	jne	.L34
	or	edx, DWORD PTR IGP01E1000_PSCR_FORCE_MDI_MDIX[rip]
	mov	DWORD PTR 4[rsp], edx
.L9:
	mov	esi, DWORD PTR IGP01E1000_PHY_PORT_CTRL[rip]
	mov	rdi, rbp
	call	[QWORD PTR 32[rbp]]
	mov	r12, rax
	test	rax, rax
	jne	.L1
	mov	r12, QWORD PTR 0[rbp]
	test	r12, r12
	je	.L1
	mov	rax, QWORD PTR ADVERTISE_1000_FULL[rip]
	cmp	QWORD PTR 24[rbp], rax
	jne	.L11
	mov	esi, DWORD PTR IGP01E1000_PHY_PORT_CONFIG[rip]
	mov	rdx, r13
	mov	rdi, rbp
	call	[QWORD PTR 40[rbp]]
	mov	r12, rax
	test	rax, rax
	jne	.L1
	mov	edx, DWORD PTR IGP01E1000_PSCFR_SMART_SPEED[rip]
	mov	esi, DWORD PTR IGP01E1000_PHY_PORT_CONFIG[rip]
	mov	rdi, rbp
	not	edx
	and	edx, DWORD PTR 4[rsp]
	mov	DWORD PTR 4[rsp], edx
	call	[QWORD PTR 32[rbp]]
	mov	r12, rax
	test	rax, rax
	jne	.L1
	mov	esi, DWORD PTR PHY_1000T_CTRL[rip]
	mov	rdx, r13
	mov	rdi, rbp
	call	[QWORD PTR 40[rbp]]
	mov	r12, rax
	test	rax, rax
	jne	.L1
	mov	edx, DWORD PTR CR_1000T_MS_ENABLE[rip]
	mov	esi, DWORD PTR PHY_1000T_CTRL[rip]
	mov	rdi, rbp
	not	edx
	and	edx, DWORD PTR 4[rsp]
	mov	DWORD PTR 4[rsp], edx
	call	[QWORD PTR 32[rbp]]
	mov	r12, rax
	test	rax, rax
	jne	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, rbp
	call	e1000_set_master_slave_mode@PLT
	mov	r12, rax
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L35
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	rax, r12
	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
.L32:
	.cfi_restore_state
	mov	esi, DWORD PTR FALSE[rip]
	mov	rdi, rbp
	call	[QWORD PTR 56[rbp]]
	mov	r12, rax
	test	rax, rax
	je	.L4
	lea	rdi, .LC2[rip]
	call	DEBUGOUT@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	lea	rdi, .LC1[rip]
	mov	r12, rax
	call	DEBUGOUT@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L34:
	or	esi, ecx
	mov	DWORD PTR 4[rsp], esi
	mov	edx, esi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L33:
	lea	rdi, .LC3[rip]
	call	DEBUGOUT@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR IGP01E1000_PSCR_FORCE_MDI_MDIX[rip]
	not	eax
	and	edx, eax
	mov	DWORD PTR 4[rsp], edx
	jmp	.L9
.L35:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	e1000_copper_link_setup_igp, .-e1000_copper_link_setup_igp
	.comm	e1000_phy_igp,8,8
	.comm	PHY_1000T_CTRL,4,4
	.comm	IGP01E1000_PSCR_FORCE_MDI_MDIX,4,4
	.comm	IGP01E1000_PSCR_AUTO_MDIX,4,4
	.comm	IGP01E1000_PSCFR_SMART_SPEED,4,4
	.comm	IGP01E1000_PHY_PORT_CTRL,4,4
	.comm	IGP01E1000_PHY_PORT_CONFIG,4,4
	.comm	FALSE,4,4
	.comm	CR_1000T_MS_ENABLE,4,4
	.comm	ADVERTISE_1000_FULL,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_phy.c_e1000_copper_link_setup_igp.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"e1000_copper_link_setup_igp\000"
	.align	2
.LC1:
	.ascii	"Error resetting the PHY.\012\000"
	.align	2
.LC2:
	.ascii	"Error Disabling LPLU D3\012\000"
	.align	2
.LC3:
	.ascii	"Error Disabling LPLU D0\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	e1000_copper_link_setup_igp
	.syntax unified
	.arm
	.fpu softvfp
	.type	e1000_copper_link_setup_igp, %function
e1000_copper_link_setup_igp:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r3, .L36
	sub	sp, sp, #8
	ldr	r0, .L36+4
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	DEBUGFUNC
	mov	r0, r5
	ldr	r3, [r5, #32]
	blx	r3
	subs	r4, r0, #0
	bne	.L31
	mov	r0, #100
	bl	msec_delay
	ldr	r3, .L36+8
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L32
.L4:
	ldr	r3, [r5, #24]
	cmp	r3, #0
	beq	.L5
	ldr	r2, .L36+12
	mov	r0, r5
	ldr	r1, [r2]
	blx	r3
	subs	r4, r0, #0
	bne	.L33
.L5:
	ldr	r6, .L36+16
	mov	r2, sp
	mov	r0, r5
	ldr	r1, [r6]
	ldr	r3, [r5, #20]
	blx	r3
	subs	r4, r0, #0
	bne	.L1
	ldr	r2, .L36+20
	ldr	r3, [r5, #8]
	ldr	r0, [r2]
	ldr	r1, [sp]
	cmp	r3, #1
	bic	r2, r1, r0
	beq	.L6
	cmp	r3, #2
	bne	.L34
	ldr	r3, .L36+24
	ldr	r3, [r3]
	orr	r2, r2, r3
	str	r2, [sp]
.L9:
	mov	r0, r5
	ldr	r1, [r6]
	ldr	r3, [r5, #16]
	blx	r3
	subs	r4, r0, #0
	bne	.L1
	ldr	r4, [r5]
	cmp	r4, #0
	beq	.L1
	ldr	r3, .L36+28
	ldr	r2, [r5, #12]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L11
	ldr	r6, .L36+32
	mov	r2, sp
	mov	r0, r5
	ldr	r3, [r5, #20]
	ldr	r1, [r6]
	blx	r3
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, .L36+36
	ldr	r2, [sp]
	ldr	r3, [r3]
	mov	r0, r5
	bic	r2, r2, r3
	ldr	r1, [r6]
	ldr	r3, [r5, #16]
	str	r2, [sp]
	blx	r3
	subs	r4, r0, #0
	bne	.L1
	ldr	r6, .L36+40
	mov	r2, sp
	mov	r0, r5
	ldr	r1, [r6]
	ldr	r3, [r5, #20]
	blx	r3
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, .L36+44
	ldr	r2, [sp]
	ldr	r3, [r3]
	mov	r0, r5
	bic	r2, r2, r3
	ldr	r1, [r6]
	ldr	r3, [r5, #16]
	str	r2, [sp]
	blx	r3
	subs	r4, r0, #0
	bne	.L1
.L11:
	mov	r0, r5
	bl	e1000_set_master_slave_mode
	mov	r4, r0
.L1:
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L32:
	ldr	r2, .L36+12
	mov	r0, r5
	ldr	r3, [r5, #28]
	ldr	r1, [r2]
	blx	r3
	subs	r4, r0, #0
	beq	.L4
	ldr	r0, .L36+48
	bl	DEBUGOUT
	b	.L1
.L31:
	ldr	r0, .L36+52
	bl	DEBUGOUT
	b	.L1
.L34:
	orr	r2, r0, r1
	str	r2, [sp]
	b	.L9
.L33:
	ldr	r0, .L36+56
	bl	DEBUGOUT
	b	.L1
.L6:
	ldr	r3, .L36+24
	ldr	r3, [r3]
	bic	r2, r2, r3
	str	r2, [sp]
	b	.L9
.L35:
	bl	__stack_chk_fail
.L37:
	.align	2
.L36:
	.word	.LC4
	.word	.LC0
	.word	e1000_phy_igp
	.word	FALSE
	.word	IGP01E1000_PHY_PORT_CTRL
	.word	IGP01E1000_PSCR_AUTO_MDIX
	.word	IGP01E1000_PSCR_FORCE_MDI_MDIX
	.word	ADVERTISE_1000_FULL
	.word	IGP01E1000_PHY_PORT_CONFIG
	.word	IGP01E1000_PSCFR_SMART_SPEED
	.word	PHY_1000T_CTRL
	.word	CR_1000T_MS_ENABLE
	.word	.LC2
	.word	.LC1
	.word	.LC3
	.size	e1000_copper_link_setup_igp, .-e1000_copper_link_setup_igp
	.comm	e1000_phy_igp,4,4
	.comm	PHY_1000T_CTRL,4,4
	.comm	IGP01E1000_PSCR_FORCE_MDI_MDIX,4,4
	.comm	IGP01E1000_PSCR_AUTO_MDIX,4,4
	.comm	IGP01E1000_PSCFR_SMART_SPEED,4,4
	.comm	IGP01E1000_PHY_PORT_CTRL,4,4
	.comm	IGP01E1000_PHY_PORT_CONFIG,4,4
	.comm	FALSE,4,4
	.comm	CR_1000T_MS_ENABLE,4,4
	.comm	ADVERTISE_1000_FULL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
