	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RDevice_OPEN                   ## -- Begin function RDevice_OPEN
	.p2align	4, 0x90
_RDevice_OPEN:                          ## @RDevice_OPEN
	.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
	movq	_CPU_regA@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_CPU_regY@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_bufend@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_Devices_ICAX2Z@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Peek
	movq	_Devices_ICAX1Z@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Peek
	movl	%eax, %ebx
	movq	_Devices_ICDNOZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MEMORY_dGetByte
	testb	$4, %bl
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DBG_APRINT
LBB0_2:
	testb	$8, %bl
	jne	LBB0_4
## %bb.3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_DBG_APRINT                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CPU_regA,4,2                   ## @CPU_regA
	.comm	_CPU_regY,4,2                   ## @CPU_regY
	.comm	_CPU_ClrN,4,2                   ## @CPU_ClrN
	.comm	_bufend,8,3                     ## @bufend
	.comm	_Devices_ICAX2Z,4,2             ## @Devices_ICAX2Z
	.comm	_Devices_ICAX1Z,4,2             ## @Devices_ICAX1Z
	.comm	_Devices_ICDNOZ,4,2             ## @Devices_ICDNOZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"R*: Open for Reading..."

L_.str.1:                               ## @.str.1
	.asciz	"R*: Open for Writing..."

	.comm	_RDevice_serial_enabled,8,3     ## @RDevice_serial_enabled
	.comm	_inetaddress,4,2                ## @inetaddress
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RDevice_OPEN                   ; -- Begin function RDevice_OPEN
	.p2align	2
_RDevice_OPEN:                          ; @RDevice_OPEN
	.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
Lloh0:
	adrp	x8, _CPU_regA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPU_regA@GOTPAGEOFF]
	mov	w9, #1
Lloh2:
	str	w9, [x8]
Lloh3:
	adrp	x8, _CPU_regY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CPU_regY@GOTPAGEOFF]
Lloh5:
	str	w9, [x8]
Lloh6:
	adrp	x8, _bufend@GOTPAGE
Lloh7:
	ldr	x8, [x8, _bufend@GOTPAGEOFF]
Lloh8:
	str	xzr, [x8]
Lloh9:
	adrp	x8, _Devices_ICAX2Z@GOTPAGE
Lloh10:
	ldr	x8, [x8, _Devices_ICAX2Z@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_Peek
Lloh12:
	adrp	x8, _Devices_ICAX1Z@GOTPAGE
Lloh13:
	ldr	x8, [x8, _Devices_ICAX1Z@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_Peek
	mov	x19, x0
Lloh15:
	adrp	x8, _Devices_ICDNOZ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _Devices_ICDNOZ@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_MEMORY_dGetByte
	tbz	w19, #2, LBB0_2
; %bb.1:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG_APRINT
LBB0_2:
	tbnz	w19, #3, LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DBG_APRINT
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_CPU_regA,4,2                   ; @CPU_regA
	.comm	_CPU_regY,4,2                   ; @CPU_regY
	.comm	_CPU_ClrN,4,2                   ; @CPU_ClrN
	.comm	_bufend,8,3                     ; @bufend
	.comm	_Devices_ICAX2Z,4,2             ; @Devices_ICAX2Z
	.comm	_Devices_ICAX1Z,4,2             ; @Devices_ICAX1Z
	.comm	_Devices_ICDNOZ,4,2             ; @Devices_ICDNOZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"R*: Open for Reading..."

l_.str.1:                               ; @.str.1
	.asciz	"R*: Open for Writing..."

	.comm	_RDevice_serial_enabled,8,3     ; @RDevice_serial_enabled
	.comm	_inetaddress,4,2                ; @inetaddress
.subsections_via_symbols
