	.file	"extr_pci-skeleton.c_mdio_write.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ENTER\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"EXIT after directly using 8139 internal regs\n"
	.section	.rodata.str1.1
.LC2:
	.string	"EXIT\n"
	.text
	.p2align 4
	.type	mdio_write, @function
mdio_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movsx	rbp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	netdev_priv@PLT
	lea	rdi, .LC0[rip]
	mov	r13d, DWORD PTR Config4[rip]
	mov	r15, QWORD PTR [rax]
	mov	r12, rax
	call	DPRINTK@PLT
	cmp	ebx, 31
	jle	.L2
	cmp	ebp, 7
	jle	.L14
.L3:
	lea	rdi, .LC1[rip]
.L12:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	DPRINTK@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rax, QWORD PTR mii_2_8139_map[rip]
	movsx	rax, DWORD PTR [rax+rbp*4]
	test	eax, eax
	je	.L3
	add	rax, QWORD PTR [r12]
	mov	edi, r14d
	mov	rsi, rax
	call	writew@PLT
	mov	rax, QWORD PTR mii_2_8139_map[rip]
	movsx	rdi, DWORD PTR [rax+rbp*4]
	add	rdi, QWORD PTR [r12]
	call	readw@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	sal	ebx, 23
	movsx	r12, r13d
	sal	ebp, 18
	mov	r13d, ebx
	add	r12, r15
	or	r13d, r14d
	mov	rdi, r12
	call	mdio_sync@PLT
	or	r13d, ebp
	mov	ebp, 31
	or	r13d, 1342308352
	.p2align 4,,10
	.p2align 3
.L6:
	mov	ecx, ebp
	mov	eax, r13d
	mov	ebx, DWORD PTR MDIO_WRITE1[rip]
	mov	rsi, r12
	sar	eax, cl
	test	al, 1
	cmove	ebx, DWORD PTR MDIO_WRITE0[rip]
	sub	ebp, 1
	mov	edi, ebx
	call	writeb@PLT
	xor	eax, eax
	call	mdio_delay@PLT
	mov	edi, DWORD PTR MDIO_CLK[rip]
	mov	rsi, r12
	or	edi, ebx
	call	writeb@PLT
	xor	eax, eax
	call	mdio_delay@PLT
	cmp	ebp, -1
	jne	.L6
	mov	rsi, r12
	xor	edi, edi
	call	writeb@PLT
	xor	eax, eax
	call	mdio_delay@PLT
	mov	edi, DWORD PTR MDIO_CLK[rip]
	mov	rsi, r12
	call	writeb@PLT
	xor	eax, eax
	call	mdio_delay@PLT
	mov	rsi, r12
	xor	edi, edi
	call	writeb@PLT
	xor	eax, eax
	call	mdio_delay@PLT
	mov	edi, DWORD PTR MDIO_CLK[rip]
	mov	rsi, r12
	call	writeb@PLT
	xor	eax, eax
	call	mdio_delay@PLT
	lea	rdi, .LC2[rip]
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	mdio_write, .-mdio_write
	.comm	mii_2_8139_map,8,8
	.comm	MDIO_WRITE1,4,4
	.comm	MDIO_WRITE0,4,4
	.comm	MDIO_CLK,4,4
	.comm	Config4,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_pci-skeleton.c_mdio_write.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ENTER\012\000"
	.align	2
.LC1:
	.ascii	"EXIT after directly using 8139 internal regs\012\000"
	.align	2
.LC2:
	.ascii	"EXIT\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mdio_write, %function
mdio_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	mov	r8, r2
	mov	r7, r3
	bl	netdev_priv
	mov	r5, r0
	ldr	r1, .L14
	ldr	r0, .L14+4
	ldr	r9, [r5]
	ldr	r6, [r1]
	bl	DPRINTK
	cmp	r4, #31
	ble	.L2
	cmp	r8, #7
	bgt	.L3
	ldr	r4, .L14+8
	ldr	r3, [r4]
	ldr	r3, [r3, r8, lsl #2]
	cmp	r3, #0
	bne	.L13
.L3:
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r0, .L14+12
	b	DPRINTK
.L2:
	add	r6, r9, r6
	orr	r4, r7, r4, lsl #23
	mov	r0, r6
	orr	r7, r4, r8, lsl #18
	bl	mdio_sync
	mov	r4, #31
	orr	r7, r7, #1342177280
	ldr	r8, .L14+16
	ldr	r10, .L14+20
	ldr	r9, .L14+24
	orr	r7, r7, #131072
.L6:
	asr	r3, r7, r4
	tst	r3, #1
	ldrne	r5, [r9]
	ldreq	r5, [r10]
	mov	r1, r6
	mov	r0, r5
	bl	writeb
	bl	mdio_delay
	ldr	r0, [r8]
	mov	r1, r6
	sub	r4, r4, #1
	orr	r0, r5, r0
	bl	writeb
	bl	mdio_delay
	cmn	r4, #1
	bne	.L6
	mov	r1, r6
	mov	r0, #0
	bl	writeb
	bl	mdio_delay
	mov	r1, r6
	ldr	r0, [r8]
	bl	writeb
	bl	mdio_delay
	mov	r1, r6
	mov	r0, #0
	bl	writeb
	bl	mdio_delay
	mov	r1, r6
	ldr	r0, [r8]
	bl	writeb
	bl	mdio_delay
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r0, .L14+28
	b	DPRINTK
.L13:
	ldr	r1, [r5]
	mov	r0, r7
	add	r1, r1, r3
	bl	writew
	ldr	r3, [r4]
	ldr	r0, [r5]
	ldr	r3, [r3, r8, lsl #2]
	add	r0, r0, r3
	bl	readw
	b	.L3
.L15:
	.align	2
.L14:
	.word	Config4
	.word	.LC0
	.word	mii_2_8139_map
	.word	.LC1
	.word	MDIO_CLK
	.word	MDIO_WRITE0
	.word	MDIO_WRITE1
	.word	.LC2
	.size	mdio_write, .-mdio_write
	.comm	mii_2_8139_map,4,4
	.comm	MDIO_WRITE1,4,4
	.comm	MDIO_WRITE0,4,4
	.comm	MDIO_CLK,4,4
	.comm	Config4,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
