	.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	_process@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$1, %edx
	callq	_copy_process
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_2:
	movq	_process@GOTPCREL(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$2, %edx
	callq	_copy_process
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.3(%rip), %rdi
	popq	%rbp
	jmp	_printf                         ## TAILCALL
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_schedule
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_putc,4,2                       ## @putc
	.comm	_process,4,2                    ## @process
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"12345"

L_.str.1:                               ## @.str.1
	.asciz	"error while starting process 1"

L_.str.2:                               ## @.str.2
	.asciz	"abcde"

L_.str.3:                               ## @.str.3
	.asciz	"error while starting process 2"

.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	x0, _process@GOTPAGE
Lloh4:
	ldr	x0, [x0, _process@GOTPAGEOFF]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #1
	bl	_copy_process
	cbz	w0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_printf
LBB0_2:
Lloh9:
	adrp	x0, _process@GOTPAGE
Lloh10:
	ldr	x0, [x0, _process@GOTPAGEOFF]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #2
	bl	_copy_process
	cbz	w0, LBB0_4
; %bb.3:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_printf
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_schedule
	b	LBB0_4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_putc,4,2                       ; @putc
	.comm	_process,4,2                    ; @process
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"12345"

l_.str.1:                               ; @.str.1
	.asciz	"error while starting process 1"

l_.str.2:                               ; @.str.2
	.asciz	"abcde"

l_.str.3:                               ; @.str.3
	.asciz	"error while starting process 2"

.subsections_via_symbols
