	.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
	leal	48(%rbx), %eax
	movb	%al, -10(%rbp)
	movb	$0, -9(%rbp)
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	imull	$100000, %ebx, %edi             ## imm = 0x186A0
	callq	_delay
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
	callq	_uart_init
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_uart_send_string
	leaq	-10(%rbp), %rdi
	callq	_uart_send_string
	leaq	L_.str.1(%rip), %rdi
	callq	_uart_send_string
	testl	%ebx, %ebx
	je	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_uart_recv
	movl	%eax, %edi
	callq	_uart_send
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Hello from processor "

L_.str.1:                               ## @.str.1
	.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:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	w8, w0, #48
	strb	w8, [sp, #14]
	strb	wzr, [sp, #15]
	cbz	w0, LBB0_2
; %bb.1:
	mov	w8, #34464
	movk	w8, #1, lsl #16
	mul	w0, w19, w8
	bl	_delay
	b	LBB0_3
LBB0_2:
	bl	_uart_init
LBB0_3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_uart_send_string
	add	x0, sp, #14
	bl	_uart_send_string
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_uart_send_string
	cbz	w19, LBB0_5
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	b	LBB0_4
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	bl	_uart_recv
	bl	_uart_send
	b	LBB0_5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Hello from processor "

l_.str.1:                               ; @.str.1
	.asciz	"\r\n"

.subsections_via_symbols
