	.file	"extr_xgbe-mdio.c_xgbe_phy_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"axgbe AN lock"
	.text
	.p2align 4
	.type	xgbe_phy_init, @function
xgbe_phy_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	lea	rsi, .LC0[rip]
	mov	rbx, rdi
	add	rdi, 96
	call	sx_init@PLT
	mov	eax, DWORD PTR MDIO_MMD_PCS[rip]
	mov	edx, DWORD PTR [rbx]
	mov	DWORD PTR 92[rbx], eax
	mov	eax, DWORD PTR SUPPORTED_Autoneg[rip]
	or	eax, DWORD PTR SUPPORTED_Pause[rip]
	or	eax, DWORD PTR SUPPORTED_Asym_Pause[rip]
	or	eax, DWORD PTR SUPPORTED_Backplane[rip]
	or	eax, DWORD PTR SUPPORTED_10000baseKR_Full[rip]
	mov	DWORD PTR 8[rbx], eax
	cmp	edx, 128
	je	.L2
	cmp	edx, 129
	jne	.L3
	or	eax, DWORD PTR SUPPORTED_1000baseKX_Full[rip]
	mov	DWORD PTR 8[rbx], eax
.L3:
	mov	edx, DWORD PTR MDIO_PMA_10GBR_FECABLE[rip]
	mov	esi, DWORD PTR MDIO_MMD_PMAPMD[rip]
	mov	rdi, rbx
	call	XMDIO_READ@PLT
	mov	edx, DWORD PTR MDIO_PMA_10GBR_FECABLE_ABLE[rip]
	mov	r8d, eax
	mov	eax, DWORD PTR MDIO_PMA_10GBR_FECABLE_ERRABLE[rip]
	or	eax, edx
	and	eax, r8d
	mov	DWORD PTR 4[rbx], eax
	test	edx, eax
	jne	.L4
	mov	ecx, DWORD PTR 8[rbx]
.L5:
	mov	rdi, QWORD PTR 80[rbx]
	mov	rsi, QWORD PTR 72[rbx]
	mov	QWORD PTR 64[rbx], 0
	mov	eax, DWORD PTR AUTONEG_ENABLE[rip]
	mov	r8d, DWORD PTR ADVERTISED_Asym_Pause[rip]
	mov	QWORD PTR 40[rbx], 0
	mov	QWORD PTR 24[rbx], rsi
	mov	DWORD PTR 56[rbx], eax
	mov	eax, DWORD PTR SPEED_UNKNOWN[rip]
	mov	QWORD PTR 16[rbx], rdi
	mov	DWORD PTR 52[rbx], eax
	mov	eax, DWORD PTR DUPLEX_UNKNOWN[rip]
	mov	DWORD PTR 48[rbx], eax
	mov	eax, DWORD PTR 88[rbx]
	mov	DWORD PTR 32[rbx], eax
	mov	eax, DWORD PTR ADVERTISED_Pause[rip]
	or	eax, r8d
	mov	edx, eax
	or	eax, ecx
	not	edx
	and	edx, ecx
	test	rdi, rdi
	cmove	eax, edx
	mov	DWORD PTR 12[rbx], eax
	test	rsi, rsi
	je	.L1
	xor	DWORD PTR 12[rbx], r8d
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	eax, DWORD PTR 8[rbx]
	or	eax, DWORD PTR SUPPORTED_10000baseR_FEC[rip]
	mov	DWORD PTR 8[rbx], eax
	mov	ecx, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	or	eax, DWORD PTR SUPPORTED_2500baseX_Full[rip]
	mov	DWORD PTR 8[rbx], eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	xgbe_phy_init, .-xgbe_phy_init
	.comm	SUPPORTED_Pause,4,4
	.comm	SUPPORTED_Backplane,4,4
	.comm	SUPPORTED_Autoneg,4,4
	.comm	SUPPORTED_Asym_Pause,4,4
	.comm	SUPPORTED_2500baseX_Full,4,4
	.comm	SUPPORTED_1000baseKX_Full,4,4
	.comm	SUPPORTED_10000baseR_FEC,4,4
	.comm	SUPPORTED_10000baseKR_Full,4,4
	.comm	SPEED_UNKNOWN,4,4
	.comm	MDIO_PMA_10GBR_FECABLE_ERRABLE,4,4
	.comm	MDIO_PMA_10GBR_FECABLE_ABLE,4,4
	.comm	MDIO_PMA_10GBR_FECABLE,4,4
	.comm	MDIO_MMD_PMAPMD,4,4
	.comm	MDIO_MMD_PCS,4,4
	.comm	DUPLEX_UNKNOWN,4,4
	.comm	AUTONEG_ENABLE,4,4
	.comm	ADVERTISED_Pause,4,4
	.comm	ADVERTISED_Asym_Pause,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_xgbe-mdio.c_xgbe_phy_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"axgbe AN lock\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xgbe_phy_init, %function
xgbe_phy_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r1, .L14
	add	r0, r0, #64
	bl	sx_init
	ldr	r3, .L14+4
	ldr	r2, .L14+8
	ldr	r1, .L14+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	ip, .L14+16
	ldr	r0, [r1]
	orr	r3, r3, r2
	ldr	r2, .L14+20
	ldr	r1, .L14+24
	ldr	ip, [ip]
	orr	r3, r3, r0
	ldr	r0, [r2]
	ldr	r2, [r4]
	ldr	r1, [r1]
	orr	r3, r3, ip
	orr	r3, r3, r0
	cmp	r2, #128
	str	r1, [r4, #60]
	str	r3, [r4, #8]
	beq	.L2
	cmp	r2, #129
	ldreq	r2, .L14+28
	ldreq	r2, [r2]
	orreq	r3, r2, r3
	streq	r3, [r4, #8]
.L3:
	ldr	r3, .L14+32
	ldr	r2, .L14+36
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r4
	bl	XMDIO_READ
	ldr	r2, .L14+40
	ldr	r3, .L14+44
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, .L14+48
	orr	r3, r2, r3
	and	r0, r0, r3
	tst	r2, r0
	str	r0, [r4, #4]
	mov	r0, #0
	ldrne	r3, .L14+52
	ldrne	r2, [r4, #8]
	ldr	ip, [r1]
	ldrne	r3, [r3]
	ldr	r1, .L14+56
	orrne	r2, r2, r3
	ldr	r1, [r1]
	ldr	r3, .L14+60
	str	r1, [r4, #36]
	ldr	r3, [r3]
	ldr	r1, [r4, #52]
	ldreq	r2, [r4, #8]
	orr	r3, ip, r3
	ldr	lr, .L14+64
	strne	r2, [r4, #8]
	str	r1, [r4, #16]
	cmp	r1, r0
	ldr	r1, [r4, #48]
	bic	r6, r2, r3
	orrne	r3, r3, r2
	strne	r3, [r4, #12]
	ldr	r5, [lr]
	streq	r6, [r4, #12]
	ldr	lr, .L14+68
	cmp	r1, #0
	ldrne	r3, [r4, #12]
	ldr	lr, [lr]
	str	r0, [r4, #44]
	str	r0, [r4, #28]
	ldr	r0, [r4, #56]
	eorne	ip, ip, r3
	str	r5, [r4, #40]
	str	lr, [r4, #32]
	str	r0, [r4, #24]
	str	r1, [r4, #20]
	strne	ip, [r4, #12]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r2, .L14+72
	ldr	r2, [r2]
	orr	r3, r2, r3
	str	r3, [r4, #8]
	b	.L3
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	SUPPORTED_Autoneg
	.word	SUPPORTED_Pause
	.word	SUPPORTED_Asym_Pause
	.word	SUPPORTED_Backplane
	.word	SUPPORTED_10000baseKR_Full
	.word	MDIO_MMD_PCS
	.word	SUPPORTED_1000baseKX_Full
	.word	MDIO_MMD_PMAPMD
	.word	MDIO_PMA_10GBR_FECABLE
	.word	MDIO_PMA_10GBR_FECABLE_ABLE
	.word	MDIO_PMA_10GBR_FECABLE_ERRABLE
	.word	ADVERTISED_Asym_Pause
	.word	SUPPORTED_10000baseR_FEC
	.word	SPEED_UNKNOWN
	.word	ADVERTISED_Pause
	.word	AUTONEG_ENABLE
	.word	DUPLEX_UNKNOWN
	.word	SUPPORTED_2500baseX_Full
	.size	xgbe_phy_init, .-xgbe_phy_init
	.comm	SUPPORTED_Pause,4,4
	.comm	SUPPORTED_Backplane,4,4
	.comm	SUPPORTED_Autoneg,4,4
	.comm	SUPPORTED_Asym_Pause,4,4
	.comm	SUPPORTED_2500baseX_Full,4,4
	.comm	SUPPORTED_1000baseKX_Full,4,4
	.comm	SUPPORTED_10000baseR_FEC,4,4
	.comm	SUPPORTED_10000baseKR_Full,4,4
	.comm	SPEED_UNKNOWN,4,4
	.comm	MDIO_PMA_10GBR_FECABLE_ERRABLE,4,4
	.comm	MDIO_PMA_10GBR_FECABLE_ABLE,4,4
	.comm	MDIO_PMA_10GBR_FECABLE,4,4
	.comm	MDIO_MMD_PMAPMD,4,4
	.comm	MDIO_MMD_PCS,4,4
	.comm	DUPLEX_UNKNOWN,4,4
	.comm	AUTONEG_ENABLE,4,4
	.comm	ADVERTISED_Pause,4,4
	.comm	ADVERTISED_Asym_Pause,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
