	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RDevice_READ                   ## -- Begin function RDevice_READ
	.p2align	4, 0x90
_RDevice_READ:                          ## @RDevice_READ
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_translation@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_bufout@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	cmpl	$13, %ecx
	movl	$155, %ecx
	jne	LBB0_3
LBB0_2:
	movq	_CPU_regA@GOTPCREL(%rip), %rsi
	movl	%ecx, (%rsi)
LBB0_3:
	movq	_bufend@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leal	-1(%rdi), %esi
	movl	%esi, (%rcx)
	testl	%edi, %edi
	jle	LBB0_6
## %bb.4:
	movq	$-1, %rdi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rax,%rdi,4), %esi
	movl	%esi, 4(%rax,%rdi,4)
	movslq	(%rcx), %rsi
	incq	%rdi
	cmpq	%rsi, %rdi
	jl	LBB0_5
LBB0_6:
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.7:
	movq	_linefeeds@GOTPCREL(%rip), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_12
## %bb.8:
	cmpl	$10, (%rax)
	jne	LBB0_12
## %bb.9:
	testl	%esi, %esi
	js	LBB0_12
## %bb.10:
	movq	$-1, %rdx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%rax,%rdx,4), %esi
	movl	%esi, 4(%rax,%rdx,4)
	movslq	(%rcx), %rsi
	incq	%rdx
	cmpq	%rsi, %rdx
	jl	LBB0_11
LBB0_12:
	movq	_CPU_regY@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_translation,8,3                ## @translation
	.comm	_bufout,8,3                     ## @bufout
	.comm	_CPU_regA,4,2                   ## @CPU_regA
	.comm	_bufend,4,2                     ## @bufend
	.comm	_linefeeds,8,3                  ## @linefeeds
	.comm	_CPU_regY,4,2                   ## @CPU_regY
	.comm	_CPU_ClrN,4,2                   ## @CPU_ClrN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RDevice_READ                   ; -- Begin function RDevice_READ
	.p2align	2
_RDevice_READ:                          ; @RDevice_READ
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _translation@GOTPAGE
Lloh1:
	ldr	x8, [x8, _translation@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
Lloh3:
	adrp	x8, _bufout@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bufout@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w9, [x8]
	cbz	x10, LBB0_3
; %bb.1:
	cmp	w9, #13
	b.ne	LBB0_4
; %bb.2:
	mov	w9, #155
LBB0_3:
Lloh6:
	adrp	x11, _CPU_regA@GOTPAGE
Lloh7:
	ldr	x11, [x11, _CPU_regA@GOTPAGEOFF]
Lloh8:
	str	w9, [x11]
LBB0_4:
Lloh9:
	adrp	x9, _bufend@GOTPAGE
Lloh10:
	ldr	x9, [x9, _bufend@GOTPAGEOFF]
	ldr	w11, [x9]
	subs	w11, w11, #1
	str	w11, [x9]
	b.lt	LBB0_7
; %bb.5:
	mov	x12, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x11, x8, x12, lsl #2
	add	x13, x12, #1
	ldr	w14, [x11, #4]
	str	w14, [x11]
	ldrsw	x11, [x9]
	cmp	x12, x11
	mov	x12, x13
	b.lt	LBB0_6
LBB0_7:
	cbz	x10, LBB0_13
; %bb.8:
Lloh11:
	adrp	x10, _linefeeds@GOTPAGE
Lloh12:
	ldr	x10, [x10, _linefeeds@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cbz	x10, LBB0_13
; %bb.9:
	ldr	w10, [x8]
	cmp	w10, #10
	b.ne	LBB0_13
; %bb.10:
	tbnz	w11, #31, LBB0_13
; %bb.11:
	mov	x10, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x11, x8, x10, lsl #2
	add	x12, x10, #1
	ldr	w13, [x11, #4]
	str	w13, [x11]
	ldrsw	x11, [x9]
	cmp	x10, x11
	mov	x10, x12
	b.lt	LBB0_12
LBB0_13:
Lloh14:
	adrp	x8, _CPU_regY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CPU_regY@GOTPAGEOFF]
	mov	w9, #1
Lloh16:
	str	w9, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_translation,8,3                ; @translation
	.comm	_bufout,8,3                     ; @bufout
	.comm	_CPU_regA,4,2                   ; @CPU_regA
	.comm	_bufend,4,2                     ; @bufend
	.comm	_linefeeds,8,3                  ; @linefeeds
	.comm	_CPU_regY,4,2                   ; @CPU_regY
	.comm	_CPU_ClrN,4,2                   ; @CPU_ClrN
.subsections_via_symbols
