	.file	"extr_7990.c_init_restart_lance.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"LANCE unopened after %d ticks, csr0=%4.4x.\n"
	.text
	.p2align 4
	.type	init_restart_lance, @function
init_restart_lance:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	esi, DWORD PTR LE_CSR0[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	xor	ebp, ebp
	call	WRITERAP@PLT
	mov	esi, DWORD PTR LE_C0_INIT[rip]
	mov	rdi, r12
	call	WRITERDP@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	xor	eax, eax
	add	ebp, 1
	call	barrier@PLT
	cmp	ebp, 100
	je	.L3
.L2:
	mov	rdi, r12
	call	READRDP@PLT
	mov	r8d, eax
	mov	eax, DWORD PTR LE_C0_ERR[rip]
	or	eax, DWORD PTR LE_C0_IDON[rip]
	test	eax, r8d
	je	.L4
	mov	rdi, r12
	call	READRDP@PLT
	and	eax, DWORD PTR LE_C0_ERR[rip]
	mov	r13d, eax
	jne	.L3
	mov	esi, DWORD PTR LE_C0_IDON[rip]
	mov	rdi, r12
	call	WRITERDP@PLT
	mov	esi, DWORD PTR LE_C0_INEA[rip]
	mov	rdi, r12
	or	esi, DWORD PTR LE_C0_STRT[rip]
	call	WRITERDP@PLT
.L1:
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, r12
	mov	r13d, -1
	call	READRDP@PLT
	mov	esi, ebp
	lea	rdi, .LC0[rip]
	mov	edx, eax
	call	printk@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	init_restart_lance, .-init_restart_lance
	.comm	LE_CSR0,4,4
	.comm	LE_C0_STRT,4,4
	.comm	LE_C0_INIT,4,4
	.comm	LE_C0_INEA,4,4
	.comm	LE_C0_IDON,4,4
	.comm	LE_C0_ERR,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_7990.c_init_restart_lance.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"LANCE unopened after %d ticks, csr0=%4.4x.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_restart_lance, %function
init_restart_lance:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r3, .L15
	mov	r4, #0
	ldr	r1, [r3]
	bl	WRITERAP
	ldr	r3, .L15+4
	mov	r0, r5
	ldr	r1, [r3]
	bl	WRITERDP
	ldr	r6, .L15+8
	ldr	r7, .L15+12
	b	.L2
.L4:
	add	r4, r4, #1
	bl	barrier
	cmp	r4, #100
	beq	.L3
.L2:
	mov	r0, r5
	bl	READRDP
	ldr	r3, [r6]
	ldr	r2, [r7]
	orr	r3, r3, r2
	tst	r3, r0
	beq	.L4
	mov	r0, r5
	bl	READRDP
	ldr	r6, [r6]
	ands	r6, r0, r6
	bne	.L3
	ldr	r1, [r7]
	mov	r0, r5
	bl	WRITERDP
	ldr	r2, .L15+16
	ldr	r3, .L15+20
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r0, r5
	orr	r1, r1, r3
	bl	WRITERDP
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r0, r5
	bl	READRDP
	mov	r1, r4
	mov	r2, r0
	ldr	r0, .L15+24
	bl	printk
	mvn	r6, #0
	b	.L1
.L16:
	.align	2
.L15:
	.word	LE_CSR0
	.word	LE_C0_INIT
	.word	LE_C0_ERR
	.word	LE_C0_IDON
	.word	LE_C0_INEA
	.word	LE_C0_STRT
	.word	.LC0
	.size	init_restart_lance, .-init_restart_lance
	.comm	LE_CSR0,4,4
	.comm	LE_C0_STRT,4,4
	.comm	LE_C0_INIT,4,4
	.comm	LE_C0_INEA,4,4
	.comm	LE_C0_IDON,4,4
	.comm	LE_C0_ERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
