	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	movq	_LE_CSR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_writereg
	addq	$4, %r14
	movq	_LE_C0_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_writereg
	xorl	%ebx, %ebx
	movq	_LE_C0_IDON@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	testl	%eax, (%r15)
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$10, %edi
	callq	_udelay
	incl	%ebx
	cmpl	$100, %ebx
	jne	LBB0_1
## %bb.3:
	movl	$100, %ebx
	jmp	LBB0_5
LBB0_4:
	movl	(%r14), %ecx
	movq	_LE_C0_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, %eax
	jne	LBB0_5
## %bb.6:
	andl	(%r14), %eax
	je	LBB0_7
LBB0_5:
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_printk
	movl	$-1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_writereg
	movq	_LE_C0_STRT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_writereg
	movq	_LE_C0_INEA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_writereg
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_LE_CSR0,4,2                    ## @LE_CSR0
	.comm	_LE_C0_INIT,4,2                 ## @LE_C0_INIT
	.comm	_LE_C0_IDON,4,2                 ## @LE_C0_IDON
	.comm	_LE_C0_ERR,4,2                  ## @LE_C0_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LANCE unopened after %d ticks, csr0=%4.4x.\n"

	.comm	_LE_C0_STRT,4,2                 ## @LE_C0_STRT
	.comm	_LE_C0_INEA,4,2                 ## @LE_C0_INEA
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _LE_CSR0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LE_CSR0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_writereg
	add	x19, x19, #4
Lloh3:
	adrp	x8, _LE_C0_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LE_C0_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_writereg
	mov	w20, #0
Lloh6:
	adrp	x21, _LE_C0_IDON@GOTPAGE
Lloh7:
	ldr	x21, [x21, _LE_C0_IDON@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	ldr	w9, [x21]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #10
	bl	_udelay
	add	w20, w20, #1
	cmp	w20, #100
	b.ne	LBB0_1
	b	LBB0_5
LBB0_3:
	ldr	w9, [x19]
Lloh8:
	adrp	x8, _LE_C0_ERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LE_C0_ERR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w9
	b.ne	LBB0_5
; %bb.4:
	ldr	w9, [x19]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_5:
	ldr	w2, [x19]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_printk
	mov	w0, #-1
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
LBB0_7:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_writereg
Lloh13:
	adrp	x8, _LE_C0_STRT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LE_C0_STRT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_writereg
Lloh16:
	adrp	x8, _LE_C0_INEA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LE_C0_INEA@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_writereg
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_LE_CSR0,4,2                    ; @LE_CSR0
	.comm	_LE_C0_INIT,4,2                 ; @LE_C0_INIT
	.comm	_LE_C0_IDON,4,2                 ; @LE_C0_IDON
	.comm	_LE_C0_ERR,4,2                  ; @LE_C0_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LANCE unopened after %d ticks, csr0=%4.4x.\n"

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