	.file	"extr_lantiq_etop.c_ltq_etop_mdio_rd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ltq_etop_mdio_rd, @function
ltq_etop_mdio_rd:
.LFB0:
	.cfi_startproc
	endbr64
	mov	ecx, DWORD PTR MDIO_REG_OFFSET[rip]
	and	edx, DWORD PTR MDIO_REG_MASK[rip]
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, edx
	and	esi, DWORD PTR MDIO_ADDR_MASK[rip]
	mov	edx, DWORD PTR MDIO_REQUEST[rip]
	sal	ebp, cl
	mov	ecx, DWORD PTR MDIO_ADDR_OFFSET[rip]
	or	edx, DWORD PTR MDIO_READ[rip]
	or	ebp, edx
	sal	esi, cl
	or	ebp, esi
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, DWORD PTR LTQ_ETOP_MDIO[rip]
	call	ltq_etop_r32@PLT
	test	DWORD PTR MDIO_REQUEST[rip], eax
	jne	.L2
	mov	esi, DWORD PTR LTQ_ETOP_MDIO[rip]
	mov	edi, ebp
	call	ltq_etop_w32@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR LTQ_ETOP_MDIO[rip]
	call	ltq_etop_r32@PLT
	test	DWORD PTR MDIO_REQUEST[rip], eax
	jne	.L3
	mov	edi, DWORD PTR LTQ_ETOP_MDIO[rip]
	call	ltq_etop_r32@PLT
	pop	rbp
	.cfi_def_cfa_offset 8
	and	eax, DWORD PTR MDIO_VAL_MASK[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	ltq_etop_mdio_rd, .-ltq_etop_mdio_rd
	.comm	MDIO_VAL_MASK,4,4
	.comm	MDIO_REQUEST,4,4
	.comm	MDIO_REG_OFFSET,4,4
	.comm	MDIO_REG_MASK,4,4
	.comm	MDIO_READ,4,4
	.comm	MDIO_ADDR_OFFSET,4,4
	.comm	MDIO_ADDR_MASK,4,4
	.comm	LTQ_ETOP_MDIO,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_lantiq_etop.c_ltq_etop_mdio_rd.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ltq_etop_mdio_rd, %function
ltq_etop_mdio_rd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L8
	ldr	r3, .L8+4
	push	{r4, r5, r6, lr}
	ldr	r6, [ip]
	ldr	r5, .L8+8
	ldr	ip, [r3]
	ldr	r3, .L8+12
	ldr	r0, .L8+16
	ldr	lr, [r3]
	ldr	r3, [r5]
	and	r6, r6, r2
	ldr	r0, [r0]
	ldr	r2, .L8+20
	orr	r3, r3, ip
	orr	r6, r3, r6, lsl r0
	ldr	r3, [r2]
	and	r1, r1, lr
	ldr	r4, .L8+24
	orr	r6, r6, r1, lsl r3
.L2:
	ldr	r0, [r4]
	bl	ltq_etop_r32
	ldr	r3, [r5]
	tst	r0, r3
	bne	.L2
	mov	r0, r6
	ldr	r1, [r4]
	bl	ltq_etop_w32
.L3:
	ldr	r0, [r4]
	bl	ltq_etop_r32
	ldr	r3, [r5]
	tst	r0, r3
	bne	.L3
	ldr	r0, [r4]
	bl	ltq_etop_r32
	ldr	r3, .L8+28
	ldr	r3, [r3]
	and	r0, r0, r3
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	MDIO_REG_MASK
	.word	MDIO_READ
	.word	MDIO_REQUEST
	.word	MDIO_ADDR_MASK
	.word	MDIO_REG_OFFSET
	.word	MDIO_ADDR_OFFSET
	.word	LTQ_ETOP_MDIO
	.word	MDIO_VAL_MASK
	.size	ltq_etop_mdio_rd, .-ltq_etop_mdio_rd
	.comm	MDIO_VAL_MASK,4,4
	.comm	MDIO_REQUEST,4,4
	.comm	MDIO_REG_OFFSET,4,4
	.comm	MDIO_REG_MASK,4,4
	.comm	MDIO_READ,4,4
	.comm	MDIO_ADDR_OFFSET,4,4
	.comm	MDIO_ADDR_MASK,4,4
	.comm	LTQ_ETOP_MDIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
