	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kernel_main                    ## -- Begin function kernel_main
	.p2align	4, 0x90
_kernel_main:                           ## @kernel_main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	callq	_uart_init
	movq	_putc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_init_printf
	xorl	%eax, %eax
	callq	_irq_vector_init
	xorl	%eax, %eax
	callq	_timer_init
	xorl	%eax, %eax
	callq	_enable_interrupt_controller
	xorl	%eax, %eax
	callq	_enable_irq
	movq	_PF_KTHREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_kernel_process@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_copy_process
	testl	%eax, %eax
	js	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_schedule
	jmp	LBB0_1
LBB0_2:
	leaq	L_.str(%rip), %rdi
	popq	%rbp
	jmp	_printf                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_putc,4,2                       ## @putc
	.comm	_PF_KTHREAD,4,2                 ## @PF_KTHREAD
	.comm	_kernel_process,4,2             ## @kernel_process
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error while starting kernel process"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kernel_main                    ; -- Begin function kernel_main
	.p2align	2
_kernel_main:                           ; @kernel_main
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_uart_init
Lloh0:
	adrp	x8, _putc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _putc@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_init_printf
	bl	_irq_vector_init
	bl	_timer_init
	bl	_enable_interrupt_controller
	bl	_enable_irq
Lloh3:
	adrp	x8, _PF_KTHREAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PF_KTHREAD@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, _kernel_process@GOTPAGE
Lloh7:
	ldr	x1, [x1, _kernel_process@GOTPAGEOFF]
	mov	w2, #0
	mov	w3, #0
	bl	_copy_process
	tbnz	w0, #31, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_schedule
	b	LBB0_1
LBB0_2:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_printf
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_putc,4,2                       ; @putc
	.comm	_PF_KTHREAD,4,2                 ; @PF_KTHREAD
	.comm	_kernel_process,4,2             ; @kernel_process
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error while starting kernel process"

.subsections_via_symbols
