	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_serial_byte                ## -- Begin function get_serial_byte
	.p2align	4, 0x90
_get_serial_byte:                       ## @get_serial_byte
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_serial_recv
	movq	%rax, _get_serial_byte.code(%rip)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_debug_hex
	leaq	L_.str(%rip), %rdi
	callq	_debug
	movq	_get_serial_byte.code(%rip), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_get_serial_byte.code,8,3 ## @get_serial_byte.code
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_serial_byte                ; -- Begin function get_serial_byte
	.p2align	2
_get_serial_byte:                       ; @get_serial_byte
	.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
	adrp	x19, _get_serial_byte.code@PAGE
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_serial_recv
	str	x0, [x19, _get_serial_byte.code@PAGEOFF]
	cbz	x0, LBB0_1
; %bb.2:
	bl	_debug_hex
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug
	ldr	x0, [x19, _get_serial_byte.code@PAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_get_serial_byte.code,8,3 ; @get_serial_byte.code
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" "

.subsections_via_symbols
