	.file	"extr_xgbe-phy-v2.c_xgbe_phy_start.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"redriver mdio port not compatible (%u)\n"
	.text
	.p2align 4
	.type	xgbe_phy_start, @function
xgbe_phy_start:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	rbp, QWORD PTR 32[rdi]
	call	[QWORD PTR [rdi]]
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	cmp	QWORD PTR 16[rbp], 0
	je	.L3
	mov	eax, DWORD PTR 12[rbp]
	test	eax, eax
	jne	.L3
	mov	esi, DWORD PTR 8[rbp]
	mov	edx, DWORD PTR XGBE_MDIO_MODE_CL22[rip]
	mov	rdi, rbx
	call	[QWORD PTR 24[rbx]]
	mov	r12d, eax
	test	eax, eax
	jne	.L13
.L3:
	mov	esi, DWORD PTR 4[rbp]
	mov	rdi, rbx
	call	xgbe_phy_set_mode@PLT
	mov	rdi, rbx
	call	xgbe_phy_cdr_track@PLT
	cmp	DWORD PTR 0[rbp], 128
	je	.L14
	mov	rdi, rbx
	call	xgbe_phy_find_phy_device@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L15
.L1:
	mov	eax, r12d
	pop	rbx
	.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
.L15:
	.cfi_restore_state
	mov	rdi, rbx
	call	[QWORD PTR 8[rbx]]
	mov	eax, r12d
	pop	rbx
	.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
.L14:
	.cfi_restore_state
	mov	rdi, rbx
	call	xgbe_phy_sfp_detect@PLT
	mov	rdi, rbx
	call	xgbe_phy_find_phy_device@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edx, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR 16[rbx]
	lea	rsi, .LC0[rip]
	call	netdev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	xgbe_phy_start, .-xgbe_phy_start
	.comm	XGBE_MDIO_MODE_CL22,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-phy-v2.c_xgbe_phy_start.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"redriver mdio port not compatible (%u)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xgbe_phy_start, %function
xgbe_phy_start:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, [r0]
	mov	r5, r0
	ldr	r6, [r0, #16]
	blx	r3
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, [r6, #16]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [r6, #12]
	cmp	r3, #0
	bne	.L3
	ldr	r2, .L19
	mov	r0, r5
	ldr	r3, [r5, #12]
	ldr	r2, [r2]
	ldr	r1, [r6, #8]
	blx	r3
	subs	r4, r0, #0
	bne	.L16
.L3:
	ldr	r1, [r6, #4]
	mov	r0, r5
	bl	xgbe_phy_set_mode
	mov	r0, r5
	bl	xgbe_phy_cdr_track
	ldr	r3, [r6]
	cmp	r3, #128
	beq	.L17
	mov	r0, r5
	bl	xgbe_phy_find_phy_device
	subs	r4, r0, #0
	bne	.L18
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L18:
	mov	r0, r5
	ldr	r3, [r5, #4]
	blx	r3
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L17:
	mov	r0, r5
	bl	xgbe_phy_sfp_detect
	mov	r0, r5
	bl	xgbe_phy_find_phy_device
	subs	r4, r0, #0
	beq	.L1
	b	.L18
.L16:
	ldr	r2, [r6, #8]
	ldr	r0, [r5, #8]
	ldr	r1, .L19+4
	bl	netdev_err
	b	.L1
.L20:
	.align	2
.L19:
	.word	XGBE_MDIO_MODE_CL22
	.word	.LC0
	.size	xgbe_phy_start, .-xgbe_phy_start
	.comm	XGBE_MDIO_MODE_CL22,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
