	.file	"extr_lan743x_ethtool.c_lan743x_eeprom_confirm_not_busy.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"EEPROM is busy\n"
	.text
	.p2align 4
	.type	lan743x_eeprom_confirm_not_busy, @function
lan743x_eeprom_confirm_not_busy:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbx, QWORD PTR jiffies[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, 100
	mov	edi, 40
	call	usleep_range@PLT
	mov	rsi, QWORD PTR HZ[rip]
	mov	rdi, QWORD PTR jiffies[rip]
	add	rsi, rbx
	call	time_after@PLT
	test	eax, eax
	jne	.L11
.L3:
	mov	esi, DWORD PTR E2P_CMD[rip]
	mov	rdi, rbp
	call	lan743x_csr_read@PLT
	and	eax, DWORD PTR E2P_CMD_EPC_BUSY_[rip]
	jne	.L12
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edx, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR drv[rip]
	mov	rdi, rbp
	lea	rcx, .LC0[rip]
	call	netif_warn@PLT
	mov	eax, DWORD PTR EIO[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	lan743x_eeprom_confirm_not_busy, .-lan743x_eeprom_confirm_not_busy
	.comm	jiffies,8,8
	.comm	drv,4,4
	.comm	HZ,8,8
	.comm	EIO,4,4
	.comm	E2P_CMD_EPC_BUSY_,4,4
	.comm	E2P_CMD,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_lan743x_ethtool.c_lan743x_eeprom_confirm_not_busy.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"EEPROM is busy\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lan743x_eeprom_confirm_not_busy, %function
lan743x_eeprom_confirm_not_busy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r5, .L11
	ldr	r7, .L11+4
	ldr	r9, [r5]
	ldr	r6, .L11+8
	ldr	r8, .L11+12
.L3:
	mov	r0, r4
	ldr	r1, [r7]
	bl	lan743x_csr_read
	ldr	r3, [r6]
	ands	r0, r0, r3
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r1, #100
	mov	r0, #40
	bl	usleep_range
	ldr	r1, [r8]
	ldr	r0, [r5]
	add	r1, r9, r1
	bl	time_after
	cmp	r0, #0
	beq	.L3
	ldr	r2, .L11+16
	mov	r0, r4
	ldr	r1, [r2]
	ldr	r3, .L11+20
	ldr	r2, [r4]
	bl	netif_warn
	ldr	r3, .L11+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	jiffies
	.word	E2P_CMD
	.word	E2P_CMD_EPC_BUSY_
	.word	HZ
	.word	drv
	.word	.LC0
	.word	EIO
	.size	lan743x_eeprom_confirm_not_busy, .-lan743x_eeprom_confirm_not_busy
	.comm	jiffies,4,4
	.comm	drv,4,4
	.comm	HZ,4,4
	.comm	EIO,4,4
	.comm	E2P_CMD_EPC_BUSY_,4,4
	.comm	E2P_CMD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
