	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movl	$15728640, %edi                 ## imm = 0xF00000
	callq	_host_getmem
	leaq	15728640(%rax), %rsi
	movq	%rax, %rdi
	callq	_setheap
	xorl	%eax, %eax
	callq	_cons_probe
	cmpl	$2, %ebx
	jl	LBB0_1
## %bb.2:
	movq	8(%r14), %rbx
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rbx
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_printf
	movq	_kboot_getdev@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_archsw@GOTPCREL(%rip), %rcx
	movl	%eax, 24(%rcx)
	movq	_kboot_copyin@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rcx)
	movq	_kboot_copyout@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rcx)
	movq	_kboot_readin@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rcx)
	movq	_kboot_autoload@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rcx)
	movq	_kboot_loadaddr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movq	_kboot_kseg_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	movq	_bootprog_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_printf
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_setenv
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_setenv
	leaq	L_.str.5(%rip), %rdi
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edx
	callq	_setenv
	leaq	L_.str.7(%rip), %rdi
	leaq	L_.str.8(%rip), %rsi
	movl	$1, %edx
	callq	_setenv
	xorl	%eax, %eax
	callq	_interact
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"Boot device: %s\n"

	.comm	_kboot_getdev,4,2               ## @kboot_getdev
	.comm	_archsw,28,2                    ## @archsw
	.comm	_kboot_copyin,4,2               ## @kboot_copyin
	.comm	_kboot_copyout,4,2              ## @kboot_copyout
	.comm	_kboot_readin,4,2               ## @kboot_readin
	.comm	_kboot_autoload,4,2             ## @kboot_autoload
	.comm	_kboot_loadaddr,4,2             ## @kboot_loadaddr
	.comm	_kboot_kseg_get,4,2             ## @kboot_kseg_get
L_.str.2:                               ## @.str.2
	.asciz	"\n%s"

	.comm	_bootprog_info,8,3              ## @bootprog_info
L_.str.3:                               ## @.str.3
	.asciz	"currdev"

L_.str.4:                               ## @.str.4
	.asciz	"loaddev"

L_.str.5:                               ## @.str.5
	.asciz	"LINES"

L_.str.6:                               ## @.str.6
	.asciz	"24"

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

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	mov	w0, #15728640
	bl	_host_getmem
	add	x1, x0, #3840, lsl #12          ; =15728640
	bl	_setheap
	bl	_cons_probe
	cmp	w20, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	x19, [x19, #8]
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x19, l_.str@PAGE
Lloh1:
	add	x19, x19, l_.str@PAGEOFF
LBB0_3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_printf
Lloh4:
	adrp	x8, _kboot_getdev@GOTPAGE
Lloh5:
	ldr	x8, [x8, _kboot_getdev@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _archsw@GOTPAGE
Lloh8:
	ldr	x9, [x9, _archsw@GOTPAGEOFF]
	str	w8, [x9, #24]
Lloh9:
	adrp	x8, _kboot_copyin@GOTPAGE
Lloh10:
	ldr	x8, [x8, _kboot_copyin@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x10, _kboot_copyout@GOTPAGE
Lloh13:
	ldr	x10, [x10, _kboot_copyout@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _kboot_readin@GOTPAGE
Lloh16:
	ldr	x11, [x11, _kboot_readin@GOTPAGEOFF]
	stp	w10, w8, [x9, #16]
Lloh17:
	ldr	w8, [x11]
Lloh18:
	adrp	x10, _kboot_autoload@GOTPAGE
Lloh19:
	ldr	x10, [x10, _kboot_autoload@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #8]
Lloh21:
	adrp	x8, _kboot_loadaddr@GOTPAGE
Lloh22:
	ldr	x8, [x8, _kboot_loadaddr@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x10, _kboot_kseg_get@GOTPAGE
Lloh25:
	ldr	x10, [x10, _kboot_kseg_get@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	stp	w10, w8, [x9]
Lloh27:
	adrp	x8, _bootprog_info@GOTPAGE
Lloh28:
	ldr	x8, [x8, _bootprog_info@GOTPAGEOFF]
Lloh29:
	ldr	x1, [x8]
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
Lloh32:
	adrp	x0, l_.str.3@PAGE
Lloh33:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	mov	w2, #1
	bl	_setenv
Lloh34:
	adrp	x0, l_.str.4@PAGE
Lloh35:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	mov	w2, #1
	bl	_setenv
Lloh36:
	adrp	x0, l_.str.5@PAGE
Lloh37:
	add	x0, x0, l_.str.5@PAGEOFF
Lloh38:
	adrp	x1, l_.str.6@PAGE
Lloh39:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w2, #1
	bl	_setenv
Lloh40:
	adrp	x0, l_.str.7@PAGE
Lloh41:
	add	x0, x0, l_.str.7@PAGEOFF
Lloh42:
	adrp	x1, l_.str.8@PAGE
Lloh43:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w2, #1
	bl	_setenv
	bl	_interact
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"Boot device: %s\n"

	.comm	_kboot_getdev,4,2               ; @kboot_getdev
	.comm	_archsw,28,2                    ; @archsw
	.comm	_kboot_copyin,4,2               ; @kboot_copyin
	.comm	_kboot_copyout,4,2              ; @kboot_copyout
	.comm	_kboot_readin,4,2               ; @kboot_readin
	.comm	_kboot_autoload,4,2             ; @kboot_autoload
	.comm	_kboot_loadaddr,4,2             ; @kboot_loadaddr
	.comm	_kboot_kseg_get,4,2             ; @kboot_kseg_get
l_.str.2:                               ; @.str.2
	.asciz	"\n%s"

	.comm	_bootprog_info,8,3              ; @bootprog_info
l_.str.3:                               ; @.str.3
	.asciz	"currdev"

l_.str.4:                               ; @.str.4
	.asciz	"loaddev"

l_.str.5:                               ; @.str.5
	.asciz	"LINES"

l_.str.6:                               ; @.str.6
	.asciz	"24"

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

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

.subsections_via_symbols
