	.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), %eax
	movl	%eax, 4(%r14)
	movq	_LE_C0_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	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
	movl	(%r14), %ecx
	movl	(%r12), %eax
	movl	(%r15), %edx
	orl	%eax, %edx
	testl	%ecx, %edx
	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:
	andl	(%r14), %eax
	je	LBB0_6
LBB0_5:
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_err
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_6:
	movl	(%r15), %eax
	movl	%eax, (%r14)
	movq	_LE_C0_INEA@GOTPCREL(%rip), %rax
	movq	_LE_C0_STRT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	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	"unopened after %d ticks, csr0=%04x\n"

	.comm	_EIO,4,2                        ## @EIO
	.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	w19, #0
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _LE_CSR0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LE_CSR0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #4]
Lloh3:
	adrp	x8, _LE_C0_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LE_C0_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20]
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
	ldr	w9, [x20]
	ldr	w8, [x22]
	ldr	w10, [x21]
	orr	w10, w10, w8
	tst	w10, w9
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_barrier
	add	w19, w19, #1
	cmp	w19, #100
	b.ne	LBB0_1
	b	LBB0_4
LBB0_3:
	ldr	w9, [x20]
	tst	w8, w9
	b.eq	LBB0_5
LBB0_4:
	ldr	w2, [x20]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_err
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	w0, #0
	ldr	w8, [x21]
	str	w8, [x20]
Lloh15:
	adrp	x8, _LE_C0_INEA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LE_C0_INEA@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _LE_C0_STRT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _LE_C0_STRT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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	"unopened after %d ticks, csr0=%04x\n"

	.comm	_EIO,4,2                        ; @EIO
	.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
