	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function autoboot
_autoboot:                              ## @autoboot
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_autoboot_tried@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	cmpl	$-1, %edi
	jne	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	leaq	-72(%rbp), %rsi
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_strtol
	cmpq	-72(%rbp), %rbx
	movl	$10, %r12d
	cmovnel	%eax, %r12d
	jmp	LBB0_4
LBB0_2:
	movl	$10, %r12d
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	$0, -64(%rbp)
	leaq	-64(%rbp), %rdx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_loadakernel
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	testl	%r12d, %r12d
	js	LBB0_16
## %bb.8:
	xorl	%edi, %edi
	callq	_time
	movq	%rax, %r13
	testq	%r14, %r14
	leaq	L_.str.4(%rip), %rsi
	cmovneq	%r14, %rsi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	xorl	%eax, %eax
	callq	_ischar
	testq	%rax, %rax
	je	LBB0_9
LBB0_14:
	xorl	%eax, %eax
	callq	_getchar
	cmpl	$10, %eax
	je	LBB0_16
## %bb.15:
	cmpl	$13, %eax
	jne	LBB0_17
LBB0_16:
	leaq	L_.str.8(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_printf
	movl	$10, %edi
	callq	_putchar
	leaq	L_.str.9(%rip), %rax
	movq	%rax, -64(%rbp)
	movq	$0, -56(%rbp)
	leaq	-64(%rbp), %rsi
	movl	$1, %edi
	callq	_command_boot
	jmp	LBB0_19
LBB0_9:
	movl	%r12d, %r12d
	addq	%r13, %r12
	leaq	L_.str.5(%rip), %r14
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	xorl	%eax, %eax
	callq	_ischar
	testq	%rax, %rax
	jne	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	callq	_time
	movq	%r12, %rdx
	subq	%rax, %rdx
	jle	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %rbx
	cmpq	%r13, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	$1, %rdx
	leaq	L_.str.7(%rip), %rcx
	leaq	L_.str.6(%rip), %rax
	cmoveq	%rax, %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_printf
	movq	%rbx, %r13
	jmp	LBB0_13
LBB0_17:
	movl	$10, %edi
	callq	_putchar
	movq	_CMD_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_6:
	leaq	L_.str.2(%rip), %rax
	movq	_command_errmsg@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_CMD_ERROR@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.20:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_autoboot_tried,4,2             ## @autoboot_tried
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"autoboot_delay"

L_.str.1:                               ## @.str.1
	.asciz	"kernelname"

L_.str.2:                               ## @.str.2
	.asciz	"no valid kernel found"

	.comm	_command_errmsg,8,3             ## @command_errmsg
	.comm	_CMD_ERROR,4,2                  ## @CMD_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"%s\n"

L_.str.4:                               ## @.str.4
	.asciz	"Hit [Enter] to boot immediately, or any other key for command prompt."

L_.str.5:                               ## @.str.5
	.asciz	"\rBooting [%s] in %d second%s... "

L_.str.6:                               ## @.str.6
	.space	1

L_.str.7:                               ## @.str.7
	.asciz	"s"

L_.str.8:                               ## @.str.8
	.asciz	"\rBooting [%s]...               "

L_.str.9:                               ## @.str.9
	.asciz	"boot"

	.comm	_CMD_OK,4,2                     ## @CMD_OK
	.no_dead_strip	_autoboot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function autoboot
_autoboot:                              ; @autoboot
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, _autoboot_tried@GOTPAGE
Lloh4:
	ldr	x8, [x8, _autoboot_tried@GOTPAGEOFF]
	mov	w9, #1
Lloh5:
	str	w9, [x8]
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	mov	w20, #10
	cbz	x0, LBB0_3
; %bb.2:
	mov	x19, x0
	add	x1, sp, #16
	mov	w2, #0
	bl	_strtol
	ldr	x8, [sp, #16]
	cmp	x19, x8
	csel	w20, w20, w0, eq
LBB0_3:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	mov	x19, x0
	cbnz	x0, LBB0_5
; %bb.4:
	str	xzr, [sp, #24]
	add	x2, sp, #24
	mov	w1, #0
	bl	_loadakernel
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	mov	x19, x0
	cbz	x0, LBB0_16
LBB0_5:
	tbnz	w20, #31, LBB0_9
; %bb.6:
	mov	x0, #0
	bl	_time
	mov	x22, x0
Lloh12:
	adrp	x8, l_.str.4@PAGE
Lloh13:
	add	x8, x8, l_.str.4@PAGEOFF
	cmp	x21, #0
	csel	x1, x8, x21, eq
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	bl	_ischar
	cbz	x0, LBB0_10
LBB0_7:
	bl	_getchar
	cmp	w0, #10
	b.eq	LBB0_9
; %bb.8:
	cmp	w0, #13
	b.ne	LBB0_15
LBB0_9:
Lloh16:
	adrp	x0, l_.str.8@PAGE
Lloh17:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	x1, x19
	bl	_printf
	mov	w0, #10
	bl	_putchar
Lloh18:
	adrp	x8, l_.str.9@PAGE
Lloh19:
	add	x8, x8, l_.str.9@PAGEOFF
	stp	x8, xzr, [sp, #24]
	add	x1, sp, #24
	mov	w0, #1
	bl	_command_boot
	b	LBB0_18
LBB0_10:
	add	x23, x22, w20, uxtw
Lloh20:
	adrp	x24, l_.str.7@PAGE
Lloh21:
	add	x24, x24, l_.str.7@PAGEOFF
Lloh22:
	adrp	x25, l_.str.6@PAGE
Lloh23:
	add	x25, x25, l_.str.6@PAGEOFF
Lloh24:
	adrp	x20, l_.str.5@PAGE
Lloh25:
	add	x20, x20, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_ischar
	cbnz	x0, LBB0_7
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, #0
	bl	_time
	subs	x8, x23, x0
	b.le	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x21, x0
	cmp	x0, x22
	b.eq	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	x8, #1
	csel	x9, x25, x24, eq
	stp	x8, x9, [sp]
	mov	x0, x20
	mov	x1, x19
	bl	_printf
	mov	x22, x21
	b	LBB0_11
LBB0_15:
	mov	w0, #10
	bl	_putchar
Lloh26:
	adrp	x8, _CMD_OK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CMD_OK@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh28:
	adrp	x8, _command_errmsg@GOTPAGE
Lloh29:
	ldr	x8, [x8, _command_errmsg@GOTPAGEOFF]
Lloh30:
	adrp	x9, l_.str.2@PAGE
Lloh31:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh32:
	str	x9, [x8]
Lloh33:
	adrp	x8, _CMD_ERROR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CMD_ERROR@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
LBB0_18:
	ldr	x8, [sp, #40]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_autoboot_tried,4,2             ; @autoboot_tried
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"autoboot_delay"

l_.str.1:                               ; @.str.1
	.asciz	"kernelname"

l_.str.2:                               ; @.str.2
	.asciz	"no valid kernel found"

	.comm	_command_errmsg,8,3             ; @command_errmsg
	.comm	_CMD_ERROR,4,2                  ; @CMD_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"%s\n"

l_.str.4:                               ; @.str.4
	.asciz	"Hit [Enter] to boot immediately, or any other key for command prompt."

l_.str.5:                               ; @.str.5
	.asciz	"\rBooting [%s] in %d second%s... "

l_.str.6:                               ; @.str.6
	.space	1

l_.str.7:                               ; @.str.7
	.asciz	"s"

l_.str.8:                               ; @.str.8
	.asciz	"\rBooting [%s]...               "

l_.str.9:                               ; @.str.9
	.asciz	"boot"

	.comm	_CMD_OK,4,2                     ; @CMD_OK
	.no_dead_strip	_autoboot
.subsections_via_symbols
