	.file	"extr_phy.c_e1000e_phy_force_speed_duplex_igp.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"IGP PSCR: %X\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Waiting for forced speed/duplex link on IGP phy.\n"
	.align 8
.LC2:
	.string	"Link taking longer than expected.\n"
	.text
	.p2align 4
	.globl	e1000e_phy_force_speed_duplex_igp
	.type	e1000e_phy_force_speed_duplex_igp, @function
e1000e_phy_force_speed_duplex_igp:
.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	esi, DWORD PTR MII_BMCR[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	r12, rsp
	mov	rdx, r12
	call	e1e_rphy@PLT
	test	rax, rax
	je	.L10
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rsi, r12
	mov	rdi, rbp
	call	e1000e_phy_force_speed_duplex_setup@PLT
	mov	edx, DWORD PTR [rsp]
	mov	esi, DWORD PTR MII_BMCR[rip]
	mov	rdi, rbp
	call	e1e_wphy@PLT
	test	rax, rax
	jne	.L1
	mov	esi, DWORD PTR IGP01E1000_PHY_PORT_CTRL[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	e1e_rphy@PLT
	test	rax, rax
	jne	.L1
	mov	edx, DWORD PTR IGP01E1000_PSCR_AUTO_MDIX[rip]
	mov	esi, DWORD PTR IGP01E1000_PHY_PORT_CTRL[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR IGP01E1000_PSCR_FORCE_MDI_MDIX[rip]
	not	edx
	and	edx, DWORD PTR [rsp]
	mov	DWORD PTR [rsp], edx
	call	e1e_wphy@PLT
	test	rax, rax
	jne	.L1
	mov	esi, DWORD PTR [rsp]
	lea	rdi, .LC0[rip]
	call	e_dbg@PLT
	mov	edi, 1
	call	udelay@PLT
	mov	rax, QWORD PTR 0[rbp]
	test	rax, rax
	je	.L1
	lea	rdi, .LC1[rip]
	xor	eax, eax
	lea	r12, 4[rsp]
	call	e_dbg@PLT
	mov	rcx, r12
	mov	edx, 100000
	mov	rdi, rbp
	mov	esi, DWORD PTR PHY_FORCE_LIMIT[rip]
	call	e1000e_phy_has_link_generic@PLT
	test	rax, rax
	jne	.L1
	mov	edx, DWORD PTR 4[rsp]
	test	edx, edx
	je	.L12
.L3:
	mov	esi, DWORD PTR PHY_FORCE_LIMIT[rip]
	mov	rcx, r12
	mov	edx, 100000
	mov	rdi, rbp
	call	e1000e_phy_has_link_generic@PLT
	jmp	.L1
.L12:
	lea	rdi, .LC2[rip]
	call	e_dbg@PLT
	jmp	.L3
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	e1000e_phy_force_speed_duplex_igp, .-e1000e_phy_force_speed_duplex_igp
	.comm	PHY_FORCE_LIMIT,4,4
	.comm	MII_BMCR,4,4
	.comm	IGP01E1000_PSCR_FORCE_MDI_MDIX,4,4
	.comm	IGP01E1000_PSCR_AUTO_MDIX,4,4
	.comm	IGP01E1000_PHY_PORT_CTRL,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_phy.c_e1000e_phy_force_speed_duplex_igp.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"IGP PSCR: %X\012\000"
	.align	2
.LC1:
	.ascii	"Waiting for forced speed/duplex link on IGP phy.\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"Link taking longer than expected.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	e1000e_phy_force_speed_duplex_igp
	.syntax unified
	.arm
	.fpu softvfp
	.type	e1000e_phy_force_speed_duplex_igp, %function
e1000e_phy_force_speed_duplex_igp:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r5, .L13
	sub	sp, sp, #20
	ldr	r3, .L13+4
	ldr	r1, [r5]
	add	r2, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r4, r0
	bl	e1e_rphy
	cmp	r0, #0
	beq	.L10
.L1:
	ldr	r3, .L13+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L10:
	add	r1, sp, #4
	mov	r0, r4
	bl	e1000e_phy_force_speed_duplex_setup
	mov	r0, r4
	ldr	r1, [r5]
	ldr	r2, [sp, #4]
	bl	e1e_wphy
	cmp	r0, #0
	bne	.L1
	ldr	r5, .L13+8
	mov	r0, r4
	ldr	r1, [r5]
	add	r2, sp, #4
	bl	e1e_rphy
	cmp	r0, #0
	bne	.L1
	ldr	r2, .L13+12
	ldr	r3, .L13+16
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [sp, #4]
	orr	r3, r3, r1
	bic	r2, r2, r3
	mov	r0, r4
	ldr	r1, [r5]
	str	r2, [sp, #4]
	bl	e1e_wphy
	cmp	r0, #0
	bne	.L1
	ldr	r1, [sp, #4]
	ldr	r0, .L13+20
	bl	e_dbg
	mov	r0, #1
	bl	udelay
	ldr	r0, [r4]
	cmp	r0, #0
	beq	.L1
	ldr	r5, .L13+24
	ldr	r0, .L13+28
	bl	e_dbg
	mov	r0, r4
	ldr	r1, [r5]
	ldr	r2, .L13+32
	add	r3, sp, #8
	bl	e1000e_phy_has_link_generic
	cmp	r0, #0
	bne	.L1
	ldr	r3, [sp, #8]
	cmp	r3, #0
	beq	.L12
.L3:
	mov	r0, r4
	ldr	r1, [r5]
	ldr	r2, .L13+32
	add	r3, sp, #8
	bl	e1000e_phy_has_link_generic
	b	.L1
.L12:
	ldr	r0, .L13+36
	bl	e_dbg
	b	.L3
.L11:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	MII_BMCR
	.word	.LC3
	.word	IGP01E1000_PHY_PORT_CTRL
	.word	IGP01E1000_PSCR_FORCE_MDI_MDIX
	.word	IGP01E1000_PSCR_AUTO_MDIX
	.word	.LC0
	.word	PHY_FORCE_LIMIT
	.word	.LC1
	.word	100000
	.word	.LC2
	.size	e1000e_phy_force_speed_duplex_igp, .-e1000e_phy_force_speed_duplex_igp
	.comm	PHY_FORCE_LIMIT,4,4
	.comm	MII_BMCR,4,4
	.comm	IGP01E1000_PSCR_FORCE_MDI_MDIX,4,4
	.comm	IGP01E1000_PSCR_AUTO_MDIX,4,4
	.comm	IGP01E1000_PHY_PORT_CTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
