	.file	"extr_subr.c_mi1_mdio_ext_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mi1_mdio_ext_write, @function
mi1_mdio_ext_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r9, rdi
	mov	r14d, esi
	mov	edi, edx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, r8d
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, QWORD PTR [r9]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	V_MI1_REG_ADDR@PLT
	mov	edi, r14d
	mov	ebx, eax
	call	V_MI1_PHY_ADDR@PLT
	mov	rdi, rbp
	or	ebx, eax
	call	spin_lock@PLT
	mov	esi, DWORD PTR A_ELMER0_PORT0_MI1_ADDR[rip]
	mov	edx, ebx
	mov	rdi, rbp
	call	__t1_tpi_write@PLT
	mov	esi, DWORD PTR A_ELMER0_PORT0_MI1_DATA[rip]
	mov	edx, r13d
	mov	rdi, rbp
	call	__t1_tpi_write@PLT
	mov	edx, DWORD PTR MI1_OP_INDIRECT_ADDRESS[rip]
	mov	esi, DWORD PTR A_ELMER0_PORT0_MI1_OP[rip]
	mov	rdi, rbp
	call	__t1_tpi_write@PLT
	mov	esi, DWORD PTR A_ELMER0_PORT0_MI1_OP[rip]
	mov	rdi, rbp
	call	mi1_wait_until_ready@PLT
	mov	esi, DWORD PTR A_ELMER0_PORT0_MI1_DATA[rip]
	mov	edx, r12d
	mov	rdi, rbp
	call	__t1_tpi_write@PLT
	mov	edx, DWORD PTR MI1_OP_INDIRECT_WRITE[rip]
	mov	esi, DWORD PTR A_ELMER0_PORT0_MI1_OP[rip]
	mov	rdi, rbp
	call	__t1_tpi_write@PLT
	mov	esi, DWORD PTR A_ELMER0_PORT0_MI1_OP[rip]
	mov	rdi, rbp
	call	mi1_wait_until_ready@PLT
	mov	rdi, rbp
	call	spin_unlock@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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	mi1_mdio_ext_write, .-mi1_mdio_ext_write
	.comm	MI1_OP_INDIRECT_WRITE,4,4
	.comm	MI1_OP_INDIRECT_ADDRESS,4,4
	.comm	A_ELMER0_PORT0_MI1_OP,4,4
	.comm	A_ELMER0_PORT0_MI1_DATA,4,4
	.comm	A_ELMER0_PORT0_MI1_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_subr.c_mi1_mdio_ext_write.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mi1_mdio_ext_write, %function
mi1_mdio_ext_write:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r0, r2
	ldr	r4, [ip]
	mov	r7, r1
	mov	r6, r3
	bl	V_MI1_REG_ADDR
	mov	r5, r0
	mov	r0, r7
	bl	V_MI1_PHY_ADDR
	mov	r2, r0
	mov	r0, r4
	orr	r5, r5, r2
	bl	spin_lock
	ldr	r3, .L4
	ldr	r7, .L4+4
	ldr	r1, [r3]
	mov	r2, r5
	mov	r0, r4
	bl	__t1_tpi_write
	mov	r2, r6
	ldr	r1, [r7]
	mov	r0, r4
	bl	__t1_tpi_write
	ldr	r5, .L4+8
	ldr	r3, .L4+12
	ldr	r1, [r5]
	ldr	r2, [r3]
	mov	r0, r4
	bl	__t1_tpi_write
	ldr	r1, [r5]
	mov	r0, r4
	bl	mi1_wait_until_ready
	ldr	r2, [sp, #24]
	ldr	r1, [r7]
	mov	r0, r4
	bl	__t1_tpi_write
	ldr	r3, .L4+16
	ldr	r1, [r5]
	ldr	r2, [r3]
	mov	r0, r4
	bl	__t1_tpi_write
	ldr	r1, [r5]
	mov	r0, r4
	bl	mi1_wait_until_ready
	mov	r0, r4
	bl	spin_unlock
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	.align	2
.L4:
	.word	A_ELMER0_PORT0_MI1_ADDR
	.word	A_ELMER0_PORT0_MI1_DATA
	.word	A_ELMER0_PORT0_MI1_OP
	.word	MI1_OP_INDIRECT_ADDRESS
	.word	MI1_OP_INDIRECT_WRITE
	.size	mi1_mdio_ext_write, .-mi1_mdio_ext_write
	.comm	MI1_OP_INDIRECT_WRITE,4,4
	.comm	MI1_OP_INDIRECT_ADDRESS,4,4
	.comm	A_ELMER0_PORT0_MI1_OP,4,4
	.comm	A_ELMER0_PORT0_MI1_DATA,4,4
	.comm	A_ELMER0_PORT0_MI1_ADDR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
