	.file	"extr_meson-gxl.c_meson_gxl_read_status.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"LPA corruption - aneg restart\n"
	.text
	.p2align 4
	.type	meson_gxl_read_status, @function
meson_gxl_read_status:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rax, QWORD PTR AUTONEG_ENABLE[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	cmp	QWORD PTR [rdi], rax
	je	.L18
.L2:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	genphy_read_status@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	call	genphy_aneg_done@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	je	.L2
	mov	edx, DWORD PTR LPI_STATUS[rip]
	mov	esi, DWORD PTR BANK_WOL[rip]
	mov	rdi, rbp
	call	meson_gxl_read_reg@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	esi, DWORD PTR MII_LPA[rip]
	mov	rdi, rbp
	call	phy_read@PLT
	mov	ebx, eax
	test	eax, eax
	js	.L5
	mov	esi, DWORD PTR MII_EXPANSION[rip]
	mov	rdi, rbp
	call	phy_read@PLT
	test	eax, eax
	js	.L6
	test	DWORD PTR LPI_STATUS_RSV12[rip], r12d
	je	.L4
	test	DWORD PTR EXPANSION_NWAY[rip], eax
	je	.L2
	test	DWORD PTR LPA_LPACK[rip], ebx
	jne	.L2
.L4:
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	phydev_dbg@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	genphy_restart_aneg@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	r12d, eax
.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
.L5:
	.cfi_restore_state
	mov	r12d, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	meson_gxl_read_status, .-meson_gxl_read_status
	.comm	MII_LPA,4,4
	.comm	MII_EXPANSION,4,4
	.comm	LPI_STATUS_RSV12,4,4
	.comm	LPI_STATUS,4,4
	.comm	LPA_LPACK,4,4
	.comm	EXPANSION_NWAY,4,4
	.comm	BANK_WOL,4,4
	.comm	AUTONEG_ENABLE,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_meson-gxl.c_meson_gxl_read_status.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"LPA corruption - aneg restart\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	meson_gxl_read_status, %function
meson_gxl_read_status:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L16
	ldr	r2, [r0]
	ldr	r3, [r3]
	push	{r4, r5, r6, lr}
	cmp	r2, r3
	mov	r4, r0
	beq	.L15
.L2:
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	genphy_read_status
.L15:
	bl	genphy_aneg_done
	subs	r5, r0, #0
	blt	.L1
	beq	.L2
	ldr	r3, .L16+4
	ldr	r2, .L16+8
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	meson_gxl_read_reg
	subs	r5, r0, #0
	blt	.L1
	ldr	r3, .L16+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	phy_read
	subs	r6, r0, #0
	blt	.L5
	ldr	r3, .L16+16
	mov	r0, r4
	ldr	r1, [r3]
	bl	phy_read
	cmp	r0, #0
	blt	.L6
	ldr	r3, .L16+20
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L4
	ldr	r3, .L16+24
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L2
	ldr	r3, .L16+28
	ldr	r3, [r3]
	tst	r6, r3
	bne	.L2
.L4:
	mov	r0, r4
	ldr	r1, .L16+32
	bl	phydev_dbg
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	genphy_restart_aneg
.L6:
	mov	r5, r0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L5:
	mov	r5, r6
	b	.L1
.L17:
	.align	2
.L16:
	.word	AUTONEG_ENABLE
	.word	BANK_WOL
	.word	LPI_STATUS
	.word	MII_LPA
	.word	MII_EXPANSION
	.word	LPI_STATUS_RSV12
	.word	EXPANSION_NWAY
	.word	LPA_LPACK
	.word	.LC0
	.size	meson_gxl_read_status, .-meson_gxl_read_status
	.comm	MII_LPA,4,4
	.comm	MII_EXPANSION,4,4
	.comm	LPI_STATUS_RSV12,4,4
	.comm	LPI_STATUS,4,4
	.comm	LPA_LPACK,4,4
	.comm	EXPANSION_NWAY,4,4
	.comm	BANK_WOL,4,4
	.comm	AUTONEG_ENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
