	.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
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	testl	%edi, %edi
	je	LBB0_1
## %bb.3:
	imull	$200000, %ebx, %edi             ## imm = 0x30D40
	callq	_delay
	leaq	L_.str.1(%rip), %rdi
	callq	_uart_send_string
	addl	$48, %ebx
	movl	%ebx, %edi
	callq	_uart_send
	leaq	L_.str.2(%rip), %rdi
	callq	_uart_send_string
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_4
LBB0_1:
	movl	$115200, %edi                   ## imm = 0x1C200
	callq	_uart_init
	movq	_is_uart_inited@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	$48, %edi
	callq	_uart_send
	leaq	L_.str(%rip), %rdi
	callq	_uart_send_string
	imull	$200000, %ebx, %edi             ## imm = 0x30D40
	callq	_delay
	leaq	L_.str.1(%rip), %rdi
	callq	_uart_send_string
	addl	$48, %ebx
	movl	%ebx, %edi
	callq	_uart_send
	leaq	L_.str.2(%rip), %rdi
	callq	_uart_send_string
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_uart_recv
	movl	%eax, %edi
	callq	_uart_send
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_is_uart_inited,4,2             ## @is_uart_inited
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\r\n"

L_.str.1:                               ## @.str.1
	.asciz	"Hello, world! From processor <"

L_.str.2:                               ## @.str.2
	.asciz	">\r\n"

.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	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, x0
	mov	w20, #3392
	movk	w20, #3, lsl #16
	cbz	w0, LBB0_3
; %bb.1:
	mul	w0, w19, w20
	bl	_delay
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_uart_send_string
	add	w0, w19, #48
	bl	_uart_send
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_uart_send_string
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	b	LBB0_2
LBB0_3:
	mov	w0, #49664
	movk	w0, #1, lsl #16
	bl	_uart_init
Lloh4:
	adrp	x8, _is_uart_inited@GOTPAGE
Lloh5:
	ldr	x8, [x8, _is_uart_inited@GOTPAGEOFF]
	mov	w9, #1
Lloh6:
	str	w9, [x8]
	mov	w0, #48
	bl	_uart_send
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_uart_send_string
	mul	w0, w19, w20
	bl	_delay
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_uart_send_string
	add	w0, w19, #48
	bl	_uart_send
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_uart_send_string
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_uart_recv
	bl	_uart_send
	b	LBB0_4
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_is_uart_inited,4,2             ; @is_uart_inited
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\r\n"

l_.str.1:                               ; @.str.1
	.asciz	"Hello, world! From processor <"

l_.str.2:                               ; @.str.2
	.asciz	">\r\n"

.subsections_via_symbols
