	.file	"extr_xilinx_axienet_mdio.c_axienet_mdio_read.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"axienet_mdio_read(phy_id=%i, reg=%x) == %x\n"
	.text
	.p2align 4
	.type	axienet_mdio_read, @function
axienet_mdio_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	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR [rdi]
	mov	rdi, rbx
	call	axienet_mdio_wait_until_ready@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	ecx, DWORD PTR XAE_MDIO_MCR_REGAD_SHIFT[rip]
	mov	edx, r14d
	mov	eax, DWORD PTR XAE_MDIO_MCR_INITIATE_MASK[rip]
	mov	rdi, rbx
	or	eax, DWORD PTR XAE_MDIO_MCR_OP_READ_MASK[rip]
	mov	esi, DWORD PTR XAE_MDIO_MCR_OFFSET[rip]
	sal	edx, cl
	mov	ecx, DWORD PTR XAE_MDIO_MCR_PHYAD_SHIFT[rip]
	and	edx, DWORD PTR XAE_MDIO_MCR_REGAD_MASK[rip]
	or	edx, eax
	mov	eax, r13d
	sal	eax, cl
	and	eax, DWORD PTR XAE_MDIO_MCR_PHYAD_MASK[rip]
	or	edx, eax
	call	axienet_iow@PLT
	mov	rdi, rbx
	call	axienet_mdio_wait_until_ready@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	esi, DWORD PTR XAE_MDIO_MRD_OFFSET[rip]
	mov	rdi, rbx
	call	axienet_ior@PLT
	mov	edi, DWORD PTR [rbx]
	mov	ecx, r14d
	mov	edx, r13d
	movzx	r12d, ax
	lea	rsi, .LC0[rip]
	mov	r8d, r12d
	call	dev_dbg@PLT
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.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	axienet_mdio_read, .-axienet_mdio_read
	.comm	XAE_MDIO_MRD_OFFSET,4,4
	.comm	XAE_MDIO_MCR_REGAD_SHIFT,4,4
	.comm	XAE_MDIO_MCR_REGAD_MASK,4,4
	.comm	XAE_MDIO_MCR_PHYAD_SHIFT,4,4
	.comm	XAE_MDIO_MCR_PHYAD_MASK,4,4
	.comm	XAE_MDIO_MCR_OP_READ_MASK,4,4
	.comm	XAE_MDIO_MCR_OFFSET,4,4
	.comm	XAE_MDIO_MCR_INITIATE_MASK,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_xilinx_axienet_mdio.c_axienet_mdio_read.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"axienet_mdio_read(phy_id=%i, reg=%x) == %x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	axienet_mdio_read, %function
axienet_mdio_read:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r7, [r0]
	sub	sp, sp, #12
	mov	r0, r7
	mov	r5, r1
	mov	r6, r2
	bl	axienet_mdio_wait_until_ready
	subs	r4, r0, #0
	blt	.L1
	ldr	r2, .L5
	ldr	r3, .L5+4
	ldr	r2, [r2]
	ldr	r0, .L5+8
	ldr	r3, [r3]
	ldr	r1, .L5+12
	ldr	ip, [r0]
	ldr	r1, [r1]
	and	r3, r3, r6, lsl r2
	ldr	r0, .L5+16
	ldr	r2, .L5+20
	orr	r1, r1, ip
	ldr	r0, [r0]
	ldr	r2, [r2]
	orr	r3, r3, r1
	ldr	r1, .L5+24
	and	r2, r2, r5, lsl r0
	ldr	r1, [r1]
	orr	r2, r3, r2
	mov	r0, r7
	bl	axienet_iow
	mov	r0, r7
	bl	axienet_mdio_wait_until_ready
	subs	r4, r0, #0
	blt	.L1
	ldr	r3, .L5+28
	mov	r0, r7
	ldr	r1, [r3]
	bl	axienet_ior
	mov	r4, r0
	lsl	r4, r4, #16
	lsr	r4, r4, #16
	ldr	r0, [r7]
	mov	r3, r6
	mov	r2, r5
	ldr	r1, .L5+32
	str	r4, [sp]
	bl	dev_dbg
.L1:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	.align	2
.L5:
	.word	XAE_MDIO_MCR_REGAD_SHIFT
	.word	XAE_MDIO_MCR_REGAD_MASK
	.word	XAE_MDIO_MCR_OP_READ_MASK
	.word	XAE_MDIO_MCR_INITIATE_MASK
	.word	XAE_MDIO_MCR_PHYAD_SHIFT
	.word	XAE_MDIO_MCR_PHYAD_MASK
	.word	XAE_MDIO_MCR_OFFSET
	.word	XAE_MDIO_MRD_OFFSET
	.word	.LC0
	.size	axienet_mdio_read, .-axienet_mdio_read
	.comm	XAE_MDIO_MRD_OFFSET,4,4
	.comm	XAE_MDIO_MCR_REGAD_SHIFT,4,4
	.comm	XAE_MDIO_MCR_REGAD_MASK,4,4
	.comm	XAE_MDIO_MCR_PHYAD_SHIFT,4,4
	.comm	XAE_MDIO_MCR_PHYAD_MASK,4,4
	.comm	XAE_MDIO_MCR_OP_READ_MASK,4,4
	.comm	XAE_MDIO_MCR_OFFSET,4,4
	.comm	XAE_MDIO_MCR_INITIATE_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
