	.file	"extr_jme.c_jme_mdio_read.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"phy(%d) read timeout : %d\n"
	.text
	.p2align 4
	.type	jme_mdio_read, @function
jme_mdio_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	netdev_priv@PLT
	cmp	DWORD PTR MII_BMSR[rip], r14d
	mov	rbx, rax
	sete	r13b
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, r15d
	call	smi_phy_addr@PLT
	mov	edi, r14d
	mov	ebp, eax
	mov	eax, DWORD PTR SMI_OP_REQ[rip]
	mov	DWORD PTR 12[rsp], eax
	call	smi_reg_addr@PLT
	mov	esi, DWORD PTR JME_SMI[rip]
	mov	edx, ebp
	mov	rdi, rbx
	or	edx, eax
	or	edx, DWORD PTR 12[rsp]
	call	jwrite32@PLT
	xor	eax, eax
	call	wmb@PLT
	imul	ebp, DWORD PTR JME_PHY_TIMEOUT[rip], 50
	test	ebp, ebp
	jg	.L5
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L15:
	sub	ebp, 1
	je	.L6
.L5:
	mov	edi, 20
	call	udelay@PLT
	mov	esi, DWORD PTR JME_SMI[rip]
	mov	rdi, rbx
	call	jread32@PLT
	mov	r12d, eax
	test	DWORD PTR SMI_OP_REQ[rip], eax
	jne	.L15
.L4:
	test	r13d, r13d
	je	.L16
	xor	r13d, r13d
	jmp	.L2
.L3:
	jne	.L4
.L6:
	mov	edx, r14d
	mov	esi, r15d
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
	ret
.L16:
	.cfi_restore_state
	mov	eax, DWORD PTR SMI_DATA_MASK[rip]
	mov	ecx, DWORD PTR SMI_DATA_SHIFT[rip]
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	and	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	sar	eax, cl
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	jme_mdio_read, .-jme_mdio_read
	.comm	SMI_OP_REQ,4,4
	.comm	SMI_DATA_SHIFT,4,4
	.comm	SMI_DATA_MASK,4,4
	.comm	MII_BMSR,4,4
	.comm	JME_SMI,4,4
	.comm	JME_PHY_TIMEOUT,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_jme.c_jme_mdio_read.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"phy(%d) read timeout : %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	jme_mdio_read, %function
jme_mdio_read:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r2
	sub	sp, sp, #20
	str	r1, [sp, #12]
	bl	netdev_priv
	ldr	r3, .L17
	mov	r5, r0
	ldr	r8, [r3]
	ldr	r7, .L17+4
	sub	r3, r8, r9
	clz	r3, r3
	ldr	r6, .L17+8
	lsr	r3, r3, #5
	ldr	fp, .L17+12
	str	r3, [sp, #8]
.L2:
	ldr	r0, [sp, #12]
	ldr	r8, [r7]
	bl	smi_phy_addr
	mov	r3, r0
	mov	r0, r9
	ldr	r10, [r6]
	str	r3, [sp, #4]
	bl	smi_reg_addr
	ldr	r3, [sp, #4]
	mov	r1, r8
	orr	r2, r3, r0
	orr	r2, r2, r10
	mov	r0, r5
	bl	jwrite32
	bl	wmb
	ldr	r3, [fp]
	add	r3, r3, r3, lsl #2
	add	r3, r3, r3, lsl #2
	lsl	r8, r3, #1
	cmp	r8, #0
	bgt	.L5
	b	.L3
.L15:
	subs	r8, r8, #1
	beq	.L6
.L5:
	mov	r0, #20
	bl	udelay
	mov	r0, r5
	ldr	r1, [r7]
	bl	jread32
	ldr	r2, [r6]
	mov	r4, r0
	tst	r0, r2
	bne	.L15
.L4:
	ldr	r3, [sp, #8]
	cmp	r3, #0
	beq	.L16
	mov	r3, #0
	str	r3, [sp, #8]
	b	.L2
.L3:
	bne	.L4
.L6:
	mov	r2, r9
	ldr	r1, [sp, #12]
	ldr	r0, .L17+16
	bl	pr_err
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	ldr	r2, .L17+20
	ldr	r3, .L17+24
	ldr	r0, [r2]
	ldr	r3, [r3]
	and	r0, r0, r4
	asr	r0, r0, r3
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	.align	2
.L17:
	.word	MII_BMSR
	.word	JME_SMI
	.word	SMI_OP_REQ
	.word	JME_PHY_TIMEOUT
	.word	.LC0
	.word	SMI_DATA_MASK
	.word	SMI_DATA_SHIFT
	.size	jme_mdio_read, .-jme_mdio_read
	.comm	SMI_OP_REQ,4,4
	.comm	SMI_DATA_SHIFT,4,4
	.comm	SMI_DATA_MASK,4,4
	.comm	MII_BMSR,4,4
	.comm	JME_SMI,4,4
	.comm	JME_PHY_TIMEOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
