	.file	"extr_ag71xx.c_ag71xx_mdio_mii_write.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"mii_write: addr=%04x, reg=%04x, value=%04x\n"
	.text
	.p2align 4
	.type	ag71xx_mdio_mii_write, @function
ag71xx_mdio_mii_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r9d, edx
	mov	r8d, esi
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	and	ebx, 31
	sub	rsp, 16
	.cfi_def_cfa_offset 56
	mov	r12, QWORD PTR [rdi]
	mov	esi, DWORD PTR link[rip]
	push	rcx
	.cfi_def_cfa_offset 64
	lea	rcx, .LC0[rip]
	mov	edx, DWORD PTR [r12]
	mov	rdi, r12
	call	netif_dbg@PLT
	mov	ecx, DWORD PTR MII_ADDR_SHIFT[rip]
	movzx	edx, bpl
	mov	rdi, r12
	mov	esi, DWORD PTR AG71XX_REG_MII_ADDR[rip]
	sal	ebx, cl
	or	edx, ebx
	call	ag71xx_wr@PLT
	mov	esi, DWORD PTR AG71XX_REG_MII_CTRL[rip]
	mov	rdi, r12
	mov	edx, r13d
	call	ag71xx_wr@PLT
	add	rsp, 24
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	ag71xx_mdio_wait_busy@PLT
	.cfi_endproc
.LFE0:
	.size	ag71xx_mdio_mii_write, .-ag71xx_mdio_mii_write
	.comm	link,4,4
	.comm	MII_ADDR_SHIFT,4,4
	.comm	AG71XX_REG_MII_CTRL,4,4
	.comm	AG71XX_REG_MII_ADDR,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_ag71xx.c_ag71xx_mdio_mii_write.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"mii_write: addr=%04x, reg=%04x, value=%04x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ag71xx_mdio_mii_write, %function
ag71xx_mdio_mii_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r7, r3
	mov	r4, r2
	mov	r5, r1
	ldr	r6, [r0]
	sub	sp, sp, #20
	ldr	r2, [r6]
	stmib	sp, {r4, r7}
	ldr	r3, .L4
	str	r1, [sp]
	ldr	r1, [r3]
	mov	r0, r6
	ldr	r3, .L4+4
	bl	netif_dbg
	ldr	r2, .L4+8
	ldr	r3, .L4+12
	ldr	r2, [r2]
	and	r5, r5, #31
	and	r4, r4, #255
	ldr	r1, [r3]
	orr	r2, r4, r5, lsl r2
	mov	r0, r6
	bl	ag71xx_wr
	ldr	r3, .L4+16
	mov	r2, r7
	mov	r0, r6
	ldr	r1, [r3]
	bl	ag71xx_wr
	mov	r0, r6
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	ag71xx_mdio_wait_busy
.L5:
	.align	2
.L4:
	.word	link
	.word	.LC0
	.word	MII_ADDR_SHIFT
	.word	AG71XX_REG_MII_ADDR
	.word	AG71XX_REG_MII_CTRL
	.size	ag71xx_mdio_mii_write, .-ag71xx_mdio_mii_write
	.comm	link,4,4
	.comm	MII_ADDR_SHIFT,4,4
	.comm	AG71XX_REG_MII_CTRL,4,4
	.comm	AG71XX_REG_MII_ADDR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
