	.file	"extr_dm9000.c_dm9000_phy_read.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"phy_read[%02x] -> %04x\n"
	.text
	.p2align 4
	.type	dm9000_phy_read, @function
dm9000_phy_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r15d, r15d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	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, 8
	.cfi_def_cfa_offset 64
	call	netdev_priv@PLT
	mov	rbp, rax
	mov	rdi, rax
	call	mutex_lock@PLT
	lea	r14, 4[rbp]
	mov	rsi, r15
	mov	rdi, r14
	call	spin_lock_irqsave@PLT
	mov	edi, DWORD PTR 8[rbp]
	call	readb@PLT
	mov	edx, DWORD PTR DM9000_PHY[rip]
	mov	esi, DWORD PTR DM9000_EPAR[rip]
	mov	rdi, rbp
	mov	r12d, eax
	or	edx, r13d
	call	iow@PLT
	mov	esi, DWORD PTR DM9000_EPCR[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR EPCR_ERPRR[rip]
	or	edx, DWORD PTR EPCR_EPOS[rip]
	call	iow@PLT
	mov	esi, DWORD PTR 8[rbp]
	mov	edi, r12d
	call	writeb@PLT
	mov	rsi, r15
	mov	rdi, r14
	call	spin_unlock_irqrestore@PLT
	mov	rdi, rbp
	mov	esi, 1
	call	dm9000_msleep@PLT
	mov	rsi, r15
	mov	rdi, r14
	call	spin_lock_irqsave@PLT
	mov	edi, DWORD PTR 8[rbp]
	call	readb@PLT
	mov	esi, DWORD PTR DM9000_EPCR[rip]
	xor	edx, edx
	mov	rdi, rbp
	mov	ebx, eax
	call	iow@PLT
	mov	esi, DWORD PTR DM9000_EPDRH[rip]
	mov	rdi, rbp
	call	ior@PLT
	mov	esi, DWORD PTR DM9000_EPDRL[rip]
	mov	rdi, rbp
	mov	r12d, eax
	call	ior@PLT
	mov	esi, DWORD PTR 8[rbp]
	mov	edi, ebx
	sal	r12d, 8
	or	r12d, eax
	call	writeb@PLT
	mov	rsi, r15
	mov	rdi, r14
	call	spin_unlock_irqrestore@PLT
	mov	rdi, rbp
	call	mutex_unlock@PLT
	mov	r8d, r12d
	mov	ecx, r13d
	mov	rdi, rbp
	lea	rdx, .LC0[rip]
	mov	esi, 5
	call	dm9000_dbg@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
	.cfi_endproc
.LFE0:
	.size	dm9000_phy_read, .-dm9000_phy_read
	.comm	EPCR_ERPRR,4,4
	.comm	EPCR_EPOS,4,4
	.comm	DM9000_PHY,4,4
	.comm	DM9000_EPDRL,4,4
	.comm	DM9000_EPDRH,4,4
	.comm	DM9000_EPCR,4,4
	.comm	DM9000_EPAR,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_dm9000.c_dm9000_phy_read.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"phy_read[%02x] -> %04x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dm9000_phy_read, %function
dm9000_phy_read:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	sub	sp, sp, #8
	mov	r6, r2
	bl	netdev_priv
	mov	r8, #0
	mov	r4, r0
	add	r7, r0, #4
	bl	mutex_lock
	mov	r1, r8
	mov	r0, r7
	bl	spin_lock_irqsave
	ldr	r0, [r4, #8]
	bl	readb
	mov	r5, r0
	ldr	r2, .L4
	ldr	r3, .L4+4
	ldr	r2, [r2]
	ldr	r1, [r3]
	orr	r2, r6, r2
	mov	r0, r4
	bl	iow
	ldr	r2, .L4+8
	ldr	r3, .L4+12
	ldr	r9, .L4+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r9]
	orr	r2, r2, r3
	mov	r0, r4
	bl	iow
	ldr	r1, [r4, #8]
	mov	r0, r5
	bl	writeb
	mov	r1, r8
	mov	r0, r7
	bl	spin_unlock_irqrestore
	mov	r0, r4
	mov	r1, #1
	bl	dm9000_msleep
	mov	r1, r8
	mov	r0, r7
	bl	spin_lock_irqsave
	ldr	r0, [r4, #8]
	bl	readb
	mov	r2, r8
	mov	r10, r0
	ldr	r1, [r9]
	mov	r0, r4
	bl	iow
	ldr	r3, .L4+20
	mov	r0, r4
	ldr	r1, [r3]
	bl	ior
	ldr	r3, .L4+24
	mov	r9, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	ior
	mov	r5, r0
	ldr	r1, [r4, #8]
	mov	r0, r10
	bl	writeb
	mov	r1, r8
	mov	r0, r7
	bl	spin_unlock_irqrestore
	orr	r5, r5, r9, lsl #8
	mov	r0, r4
	bl	mutex_unlock
	mov	r3, r6
	mov	r0, r4
	mov	r1, #5
	ldr	r2, .L4+28
	str	r5, [sp]
	bl	dm9000_dbg
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	.align	2
.L4:
	.word	DM9000_PHY
	.word	DM9000_EPAR
	.word	EPCR_ERPRR
	.word	EPCR_EPOS
	.word	DM9000_EPCR
	.word	DM9000_EPDRH
	.word	DM9000_EPDRL
	.word	.LC0
	.size	dm9000_phy_read, .-dm9000_phy_read
	.comm	EPCR_ERPRR,4,4
	.comm	EPCR_EPOS,4,4
	.comm	DM9000_PHY,4,4
	.comm	DM9000_EPDRL,4,4
	.comm	DM9000_EPDRH,4,4
	.comm	DM9000_EPCR,4,4
	.comm	DM9000_EPAR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
