	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Devices_GetBasicCommand
_Devices_GetBasicCommand:               ## @Devices_GetBasicCommand
	.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	_basic_command_ptr@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	leaq	1(%rax), %rcx
	movq	%rcx, (%rbx)
	movsbl	(%rax), %ecx
	movq	_CPU_regA@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_CPU_regY@GOTPCREL(%rip), %rcx
	movl	$1, (%rcx)
	cmpb	$0, 1(%rax)
	jne	LBB0_7
## %bb.2:
	movq	_BINLOAD_loading_basic@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_BINLOAD_LOADING_BASIC_SAVED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_BINLOAD_LOADING_BASIC_LISTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_4:
	movq	_ehopen_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ESC_EHOPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_Devices_OpenBasicFile@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_ESC_AddEscRts
LBB0_5:
	movq	$0, (%rbx)
LBB0_6:
	movq	_Devices_RestoreEHREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CPU_rts_handler@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_basic_command_ptr,8,3          ## @basic_command_ptr
	.comm	_CPU_regA,4,2                   ## @CPU_regA
	.comm	_CPU_regY,4,2                   ## @CPU_regY
	.comm	_CPU_ClrN,4,2                   ## @CPU_ClrN
	.comm	_BINLOAD_loading_basic,8,3      ## @BINLOAD_loading_basic
	.comm	_BINLOAD_LOADING_BASIC_SAVED,8,3 ## @BINLOAD_LOADING_BASIC_SAVED
	.comm	_BINLOAD_LOADING_BASIC_LISTED,8,3 ## @BINLOAD_LOADING_BASIC_LISTED
	.comm	_ehopen_addr,4,2                ## @ehopen_addr
	.comm	_ESC_EHOPEN,4,2                 ## @ESC_EHOPEN
	.comm	_Devices_OpenBasicFile,4,2      ## @Devices_OpenBasicFile
	.comm	_Devices_RestoreEHREAD,4,2      ## @Devices_RestoreEHREAD
	.comm	_CPU_rts_handler,4,2            ## @CPU_rts_handler
	.comm	_Devices_E_Read,4,2             ## @Devices_E_Read
	.comm	_ESC_EHREAD,4,2                 ## @ESC_EHREAD
	.comm	_ehread_addr,4,2                ## @ehread_addr
	.no_dead_strip	_Devices_GetBasicCommand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Devices_GetBasicCommand
_Devices_GetBasicCommand:               ; @Devices_GetBasicCommand
	.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	x19, _basic_command_ptr@GOTPAGE
Lloh1:
	ldr	x19, [x19, _basic_command_ptr@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.1:
	add	x9, x8, #1
	str	x9, [x19]
	ldrsb	w9, [x8]
Lloh2:
	adrp	x10, _CPU_regA@GOTPAGE
Lloh3:
	ldr	x10, [x10, _CPU_regA@GOTPAGEOFF]
Lloh4:
	str	w9, [x10]
Lloh5:
	adrp	x9, _CPU_regY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CPU_regY@GOTPAGEOFF]
	mov	w10, #1
Lloh7:
	str	w10, [x9]
	ldrb	w8, [x8, #1]
	cbnz	w8, LBB0_6
; %bb.2:
Lloh8:
	adrp	x8, _BINLOAD_loading_basic@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BINLOAD_loading_basic@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _BINLOAD_LOADING_BASIC_SAVED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BINLOAD_LOADING_BASIC_SAVED@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _BINLOAD_LOADING_BASIC_LISTED@GOTPAGE
Lloh15:
	ldr	x10, [x10, _BINLOAD_LOADING_BASIC_LISTED@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.3:
Lloh17:
	adrp	x8, _ehopen_addr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ehopen_addr@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _ESC_EHOPEN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ESC_EHOPEN@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _Devices_OpenBasicFile@GOTPAGE
Lloh24:
	ldr	x8, [x8, _Devices_OpenBasicFile@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	bl	_ESC_AddEscRts
LBB0_4:
	str	xzr, [x19]
LBB0_5:
Lloh26:
	adrp	x8, _Devices_RestoreEHREAD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _Devices_RestoreEHREAD@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _CPU_rts_handler@GOTPAGE
Lloh30:
	ldr	x9, [x9, _CPU_rts_handler@GOTPAGEOFF]
Lloh31:
	str	w8, [x9]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_basic_command_ptr,8,3          ; @basic_command_ptr
	.comm	_CPU_regA,4,2                   ; @CPU_regA
	.comm	_CPU_regY,4,2                   ; @CPU_regY
	.comm	_CPU_ClrN,4,2                   ; @CPU_ClrN
	.comm	_BINLOAD_loading_basic,8,3      ; @BINLOAD_loading_basic
	.comm	_BINLOAD_LOADING_BASIC_SAVED,8,3 ; @BINLOAD_LOADING_BASIC_SAVED
	.comm	_BINLOAD_LOADING_BASIC_LISTED,8,3 ; @BINLOAD_LOADING_BASIC_LISTED
	.comm	_ehopen_addr,4,2                ; @ehopen_addr
	.comm	_ESC_EHOPEN,4,2                 ; @ESC_EHOPEN
	.comm	_Devices_OpenBasicFile,4,2      ; @Devices_OpenBasicFile
	.comm	_Devices_RestoreEHREAD,4,2      ; @Devices_RestoreEHREAD
	.comm	_CPU_rts_handler,4,2            ; @CPU_rts_handler
	.comm	_Devices_E_Read,4,2             ; @Devices_E_Read
	.comm	_ESC_EHREAD,4,2                 ; @ESC_EHREAD
	.comm	_ehread_addr,4,2                ; @ehread_addr
	.no_dead_strip	_Devices_GetBasicCommand
.subsections_via_symbols
