	.file	"extr_b53_mdio.c_b53_mdio_read48.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	b53_mdio_read48, @function
b53_mdio_read48:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rcx
	mov	ecx, DWORD PTR REG_MII_ADDR_READ[rip]
	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	r14, QWORD PTR [rdi]
	call	b53_mdio_op@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	xor	eax, eax
	mov	ebp, 2
.L3:
	mov	rdx, QWORD PTR REG_MII_DATA0[rip]
	mov	esi, DWORD PTR B53_PSEUDO_PHY[rip]
	sal	eax, 16
	mov	rdi, r14
	mov	ebx, eax
	add	rdx, rbp
	sub	rbp, 1
	call	mdiobus_read@PLT
	or	eax, ebx
	cmp	rbp, -1
	jne	.L3
	mov	DWORD PTR 0[r13], eax
.L1:
	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	b53_mdio_read48, .-b53_mdio_read48
	.comm	REG_MII_DATA0,8,8
	.comm	REG_MII_ADDR_READ,4,4
	.comm	B53_PSEUDO_PHY,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_b53_mdio.c_b53_mdio_read48.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b53_mdio_read48, %function
b53_mdio_read48:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L7
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r3
	ldr	r3, [ip]
	ldr	r8, [r0]
	bl	b53_mdio_op
	subs	r6, r0, #0
	bne	.L1
	mov	ip, r6
	mov	r5, #2
	ldr	r10, .L7+4
	ldr	r9, .L7+8
.L3:
	ldr	r2, [r10]
	mov	r0, r8
	add	r2, r5, r2
	ldr	r1, [r9]
	lsl	r4, ip, #16
	bl	mdiobus_read
	sub	r5, r5, #1
	cmn	r5, #1
	orr	ip, r4, r0
	bne	.L3
	str	ip, [r7]
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	.align	2
.L7:
	.word	REG_MII_ADDR_READ
	.word	REG_MII_DATA0
	.word	B53_PSEUDO_PHY
	.size	b53_mdio_read48, .-b53_mdio_read48
	.comm	REG_MII_DATA0,4,4
	.comm	REG_MII_ADDR_READ,4,4
	.comm	B53_PSEUDO_PHY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
