	.file	"extr_ip1000phy.c_ip1000phy_reset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ip1000phy_reset, @function
ip1000phy_reset:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	call	mii_phy_reset@PLT
	mov	esi, DWORD PTR IP1000PHY_MII_BMCR[rip]
	mov	rdi, rbp
	call	PHY_READ@PLT
	mov	edx, DWORD PTR IP1000PHY_BMCR_AUTOEN[rip]
	or	edx, DWORD PTR IP1000PHY_BMCR_FDX[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR MII_BMCR[rip]
	not	edx
	and	edx, eax
	call	PHY_WRITE@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR MIIF_PHYPRIV0[rip], eax
	jne	.L5
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	ip1000phy_load_dspcode@PLT
	.cfi_endproc
.LFE0:
	.size	ip1000phy_reset, .-ip1000phy_reset
	.comm	MII_BMCR,4,4
	.comm	MIIF_PHYPRIV0,4,4
	.comm	IP1000PHY_MII_BMCR,4,4
	.comm	IP1000PHY_BMCR_FDX,4,4
	.comm	IP1000PHY_BMCR_AUTOEN,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_ip1000phy.c_ip1000phy_reset.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ip1000phy_reset, %function
ip1000phy_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	mii_phy_reset
	ldr	r3, .L5
	mov	r0, r4
	ldr	r1, [r3]
	bl	PHY_READ
	ldr	r3, .L5+4
	ldr	r2, .L5+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L5+12
	orr	r2, r3, r2
	bic	r2, r0, r2
	ldr	r1, [r1]
	mov	r0, r4
	bl	PHY_WRITE
	ldr	r3, .L5+16
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	popeq	{r4, pc}
	mov	r0, r4
	pop	{r4, lr}
	b	ip1000phy_load_dspcode
.L6:
	.align	2
.L5:
	.word	IP1000PHY_MII_BMCR
	.word	IP1000PHY_BMCR_AUTOEN
	.word	IP1000PHY_BMCR_FDX
	.word	MII_BMCR
	.word	MIIF_PHYPRIV0
	.size	ip1000phy_reset, .-ip1000phy_reset
	.comm	MII_BMCR,4,4
	.comm	MIIF_PHYPRIV0,4,4
	.comm	IP1000PHY_MII_BMCR,4,4
	.comm	IP1000PHY_BMCR_FDX,4,4
	.comm	IP1000PHY_BMCR_AUTOEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
