	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_restart_lance
_init_restart_lance:                    ## @init_restart_lance
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_LE_CSR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WRITERAP
	movq	_LE_C0_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_WRITERDP
	movq	_LE_C0_ERR@GOTPCREL(%rip), %r12
	movq	_LE_C0_IDON@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_READRDP
	movl	(%r15), %ecx
	orl	(%r12), %ecx
	testl	%eax, %ecx
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_barrier
	incl	%ebx
	cmpl	$100, %ebx
	jne	LBB0_1
## %bb.3:
	movl	$100, %ebx
	jmp	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	callq	_READRDP
	testl	%eax, (%r12)
	je	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	callq	_READRDP
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_printk
	movl	$-1, %eax
	jmp	LBB0_7
LBB0_6:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_WRITERDP
	movq	_LE_C0_INEA@GOTPCREL(%rip), %rax
	movq	_LE_C0_STRT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_WRITERDP
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LE_CSR0,4,2                    ## @LE_CSR0
	.comm	_LE_C0_INIT,4,2                 ## @LE_C0_INIT
	.comm	_LE_C0_ERR,4,2                  ## @LE_C0_ERR
	.comm	_LE_C0_IDON,4,2                 ## @LE_C0_IDON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LANCE unopened after %d ticks, csr0=%4.4x.\n"

	.comm	_LE_C0_INEA,4,2                 ## @LE_C0_INEA
	.comm	_LE_C0_STRT,4,2                 ## @LE_C0_STRT
	.no_dead_strip	_init_restart_lance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_restart_lance
_init_restart_lance:                    ; @init_restart_lance
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, _LE_CSR0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LE_CSR0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_WRITERAP
Lloh3:
	adrp	x8, _LE_C0_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LE_C0_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_WRITERDP
	mov	w20, #0
Lloh6:
	adrp	x22, _LE_C0_ERR@GOTPAGE
Lloh7:
	ldr	x22, [x22, _LE_C0_ERR@GOTPAGEOFF]
Lloh8:
	adrp	x21, _LE_C0_IDON@GOTPAGE
Lloh9:
	ldr	x21, [x21, _LE_C0_IDON@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_READRDP
	ldr	w8, [x22]
	ldr	w9, [x21]
	orr	w8, w9, w8
	tst	w8, w0
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_barrier
	add	w20, w20, #1
	cmp	w20, #100
	b.ne	LBB0_1
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_READRDP
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_READRDP
	mov	x2, x0
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_printk
	mov	w0, #-1
	b	LBB0_6
LBB0_5:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_WRITERDP
Lloh12:
	adrp	x8, _LE_C0_INEA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LE_C0_INEA@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _LE_C0_STRT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _LE_C0_STRT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_WRITERDP
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LE_CSR0,4,2                    ; @LE_CSR0
	.comm	_LE_C0_INIT,4,2                 ; @LE_C0_INIT
	.comm	_LE_C0_ERR,4,2                  ; @LE_C0_ERR
	.comm	_LE_C0_IDON,4,2                 ; @LE_C0_IDON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LANCE unopened after %d ticks, csr0=%4.4x.\n"

	.comm	_LE_C0_INEA,4,2                 ; @LE_C0_INEA
	.comm	_LE_C0_STRT,4,2                 ; @LE_C0_STRT
	.no_dead_strip	_init_restart_lance
.subsections_via_symbols
