	.file	"extr_rtl8366_smi.c___rtl8366_mdio_write_reg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__rtl8366_mdio_write_reg, @function
__rtl8366_mdio_write_reg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	eax, eax
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR [rdi]
	mov	r12d, DWORD PTR MDC_REALTEK_PHY_ADDR[rip]
	call	in_interrupt@PLT
	mov	edi, eax
	call	BUG_ON@PLT
	mov	rdi, rbp
	call	mutex_lock@PLT
	mov	esi, r12d
	mov	rdi, rbp
	mov	ecx, DWORD PTR MDC_MDIO_START_OP[rip]
	mov	edx, DWORD PTR MDC_MDIO_START_REG[rip]
	call	[QWORD PTR 8[rbp]]
	mov	esi, r12d
	mov	rdi, rbp
	mov	ecx, DWORD PTR MDC_MDIO_ADDR_OP[rip]
	mov	edx, DWORD PTR MDC_MDIO_CTRL0_REG[rip]
	call	[QWORD PTR 8[rbp]]
	mov	esi, r12d
	mov	rdi, rbp
	mov	ecx, DWORD PTR MDC_MDIO_START_OP[rip]
	mov	edx, DWORD PTR MDC_MDIO_START_REG[rip]
	call	[QWORD PTR 8[rbp]]
	mov	ecx, r14d
	mov	esi, r12d
	mov	rdi, rbp
	mov	edx, DWORD PTR MDC_MDIO_ADDRESS_REG[rip]
	call	[QWORD PTR 8[rbp]]
	mov	esi, r12d
	mov	rdi, rbp
	mov	ecx, DWORD PTR MDC_MDIO_START_OP[rip]
	mov	edx, DWORD PTR MDC_MDIO_START_REG[rip]
	call	[QWORD PTR 8[rbp]]
	mov	ecx, r13d
	mov	esi, r12d
	mov	rdi, rbp
	mov	edx, DWORD PTR MDC_MDIO_DATA_WRITE_REG[rip]
	call	[QWORD PTR 8[rbp]]
	mov	esi, r12d
	mov	rdi, rbp
	mov	ecx, DWORD PTR MDC_MDIO_START_OP[rip]
	mov	edx, DWORD PTR MDC_MDIO_START_REG[rip]
	call	[QWORD PTR 8[rbp]]
	mov	esi, r12d
	mov	rdi, rbp
	mov	ecx, DWORD PTR MDC_MDIO_WRITE_OP[rip]
	mov	edx, DWORD PTR MDC_MDIO_CTRL1_REG[rip]
	call	[QWORD PTR 8[rbp]]
	mov	rdi, rbp
	call	mutex_unlock@PLT
	add	rsp, 8
	.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	__rtl8366_mdio_write_reg, .-__rtl8366_mdio_write_reg
	.comm	MDC_REALTEK_PHY_ADDR,4,4
	.comm	MDC_MDIO_WRITE_OP,4,4
	.comm	MDC_MDIO_START_REG,4,4
	.comm	MDC_MDIO_START_OP,4,4
	.comm	MDC_MDIO_DATA_WRITE_REG,4,4
	.comm	MDC_MDIO_CTRL1_REG,4,4
	.comm	MDC_MDIO_CTRL0_REG,4,4
	.comm	MDC_MDIO_ADDR_OP,4,4
	.comm	MDC_MDIO_ADDRESS_REG,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_rtl8366_smi.c___rtl8366_mdio_write_reg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__rtl8366_mdio_write_reg, %function
__rtl8366_mdio_write_reg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, r1
	mov	r8, r2
	ldr	r3, .L4
	ldr	r4, [r0]
	ldr	r5, [r3]
	ldr	r7, .L4+4
	bl	in_interrupt
	ldr	r6, .L4+8
	bl	BUG_ON
	mov	r0, r4
	bl	mutex_lock
	mov	r1, r5
	ldr	r10, [r4, #4]
	ldr	r3, [r7]
	ldr	r2, [r6]
	mov	r0, r4
	blx	r10
	ldr	r3, .L4+12
	ldr	r2, .L4+16
	mov	r1, r5
	ldr	r10, [r4, #4]
	mov	r0, r4
	ldr	r3, [r3]
	ldr	r2, [r2]
	blx	r10
	mov	r1, r5
	ldr	r3, [r7]
	ldr	r2, [r6]
	mov	r0, r4
	ldr	r10, [r4, #4]
	blx	r10
	ldr	r2, .L4+20
	mov	r3, r9
	mov	r1, r5
	ldr	r9, [r4, #4]
	mov	r0, r4
	ldr	r2, [r2]
	blx	r9
	mov	r1, r5
	ldr	r3, [r7]
	ldr	r2, [r6]
	mov	r0, r4
	ldr	r9, [r4, #4]
	blx	r9
	ldr	r2, .L4+24
	mov	r3, r8
	mov	r1, r5
	mov	r0, r4
	ldr	r8, [r4, #4]
	ldr	r2, [r2]
	blx	r8
	mov	r1, r5
	ldr	r3, [r7]
	ldr	r2, [r6]
	mov	r0, r4
	ldr	r6, [r4, #4]
	blx	r6
	ldr	r3, .L4+28
	ldr	r2, .L4+32
	mov	r1, r5
	ldr	r3, [r3]
	ldr	r2, [r2]
	mov	r0, r4
	ldr	r5, [r4, #4]
	blx	r5
	mov	r0, r4
	bl	mutex_unlock
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	.align	2
.L4:
	.word	MDC_REALTEK_PHY_ADDR
	.word	MDC_MDIO_START_OP
	.word	MDC_MDIO_START_REG
	.word	MDC_MDIO_ADDR_OP
	.word	MDC_MDIO_CTRL0_REG
	.word	MDC_MDIO_ADDRESS_REG
	.word	MDC_MDIO_DATA_WRITE_REG
	.word	MDC_MDIO_WRITE_OP
	.word	MDC_MDIO_CTRL1_REG
	.size	__rtl8366_mdio_write_reg, .-__rtl8366_mdio_write_reg
	.comm	MDC_REALTEK_PHY_ADDR,4,4
	.comm	MDC_MDIO_WRITE_OP,4,4
	.comm	MDC_MDIO_START_REG,4,4
	.comm	MDC_MDIO_START_OP,4,4
	.comm	MDC_MDIO_DATA_WRITE_REG,4,4
	.comm	MDC_MDIO_CTRL1_REG,4,4
	.comm	MDC_MDIO_CTRL0_REG,4,4
	.comm	MDC_MDIO_ADDR_OP,4,4
	.comm	MDC_MDIO_ADDRESS_REG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
