	.file	"extr_sni_ave.c_ave_mdiobus_read.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to read (phy:%d reg:%x)\n"
	.text
	.p2align 4
	.type	ave_mdiobus_read, @function
ave_mdiobus_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbp, QWORD PTR [rdi]
	mov	rdi, rbp
	call	netdev_priv@PLT
	mov	edi, r13d
	mov	rsi, QWORD PTR AVE_MDIOAR[rip]
	sal	edi, 8
	mov	rbx, rax
	add	rsi, QWORD PTR [rax]
	or	edi, r14d
	call	writel@PLT
	mov	rdi, QWORD PTR AVE_MDIOCTR[rip]
	add	rdi, QWORD PTR [rbx]
	call	readl@PLT
	or	eax, DWORD PTR AVE_MDIOCTR_RREQ[rip]
	mov	rsi, QWORD PTR AVE_MDIOCTR[rip]
	mov	edi, eax
	mov	eax, DWORD PTR AVE_MDIOCTR_WREQ[rip]
	add	rsi, QWORD PTR [rbx]
	not	eax
	and	edi, eax
	call	writel@PLT
	mov	rdi, QWORD PTR AVE_MDIOSR[rip]
	xor	esi, esi
	add	rdi, QWORD PTR [rbx]
	mov	r8d, 2000
	mov	ecx, 20
	mov	edx, 1
	call	readl_poll_timeout@PLT
	test	eax, eax
	jne	.L6
	mov	rdi, QWORD PTR AVE_MDIORDR[rip]
	add	rdi, QWORD PTR [rbx]
	call	readl@PLT
	xor	esi, esi
	mov	edi, 15
	mov	r12d, eax
	call	GENMASK@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	and	r12d, eax
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	r12d, eax
	mov	ecx, r14d
	mov	edx, r13d
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	netdev_err@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ave_mdiobus_read, .-ave_mdiobus_read
	.comm	AVE_MDIOSR_STS,4,4
	.comm	AVE_MDIOSR,8,8
	.comm	AVE_MDIORDR,8,8
	.comm	AVE_MDIOCTR_WREQ,4,4
	.comm	AVE_MDIOCTR_RREQ,4,4
	.comm	AVE_MDIOCTR,8,8
	.comm	AVE_MDIOAR,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_sni_ave.c_ave_mdiobus_read.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to read (phy:%d reg:%x)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ave_mdiobus_read, %function
ave_mdiobus_read:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, [r0]
	sub	sp, sp, #8
	mov	r0, r8
	mov	r7, r2
	mov	r6, r1
	bl	netdev_priv
	mov	r4, r0
	ldr	r3, .L7
	ldr	r1, [r0]
	ldr	r3, [r3]
	ldr	r5, .L7+4
	add	r1, r1, r3
	orr	r0, r7, r6, lsl #8
	bl	writel
	ldr	r3, [r5]
	ldr	r0, [r4]
	add	r0, r0, r3
	bl	readl
	ldr	r2, .L7+8
	ldr	r3, .L7+12
	ldr	ip, [r2]
	ldr	r3, [r3]
	ldr	r2, [r5]
	ldr	r1, [r4]
	orr	r0, r0, ip
	add	r1, r1, r2
	bic	r0, r0, r3
	bl	writel
	mov	r2, #2000
	ldr	r3, .L7+16
	ldr	r0, [r4]
	ldr	r3, [r3]
	mov	r1, #0
	str	r2, [sp]
	add	r0, r0, r3
	mov	r2, #1
	mov	r3, #20
	bl	readl_poll_timeout
	subs	r5, r0, #0
	bne	.L6
	ldr	r3, .L7+20
	ldr	r0, [r4]
	ldr	r3, [r3]
	add	r0, r0, r3
	bl	readl
	mov	r3, r0
	mov	r1, r5
	mov	r0, #15
	mov	r5, r3
	bl	GENMASK
	and	r5, r5, r0
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r3, r7
	mov	r2, r6
	mov	r0, r8
	ldr	r1, .L7+24
	bl	netdev_err
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	AVE_MDIOAR
	.word	AVE_MDIOCTR
	.word	AVE_MDIOCTR_RREQ
	.word	AVE_MDIOCTR_WREQ
	.word	AVE_MDIOSR
	.word	AVE_MDIORDR
	.word	.LC0
	.size	ave_mdiobus_read, .-ave_mdiobus_read
	.comm	AVE_MDIOSR_STS,4,4
	.comm	AVE_MDIOSR,4,4
	.comm	AVE_MDIORDR,4,4
	.comm	AVE_MDIOCTR_WREQ,4,4
	.comm	AVE_MDIOCTR_RREQ,4,4
	.comm	AVE_MDIOCTR,4,4
	.comm	AVE_MDIOAR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
