	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_beri_getc                      ## -- Begin function beri_getc
	.p2align	4, 0x90
_beri_getc:                             ## @beri_getc
	.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	_uart_readable
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_buffer_valid@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_buffer_data@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_buffer_valid,8,3               ## @buffer_valid
	.comm	_buffer_data,4,2                ## @buffer_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_beri_getc                      ; -- Begin function beri_getc
	.p2align	2
_beri_getc:                             ; @beri_getc
	.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
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_uart_readable
	cbz	w0, LBB0_1
; %bb.2:
Lloh0:
	adrp	x8, _buffer_valid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _buffer_valid@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
Lloh3:
	adrp	x8, _buffer_data@GOTPAGE
Lloh4:
	ldr	x8, [x8, _buffer_data@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_buffer_valid,8,3               ; @buffer_valid
	.comm	_buffer_data,4,2                ; @buffer_data
.subsections_via_symbols
