	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Devices_OpenBasicFile
_Devices_OpenBasicFile:                 ## @Devices_OpenBasicFile
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_BINLOAD_bin_file@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_fseek
	movq	_ehclos_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ESC_EHCLOS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_Devices_CloseBasicFile@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_ESC_AddEscRts
	movq	_ehread_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ESC_EHREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_Devices_ReadBasicFile@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_ESC_AddEscRts
	movq	_CPU_regY@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_2:
	movq	_Devices_RestoreEHOPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CPU_rts_handler@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BINLOAD_bin_file,8,3           ## @BINLOAD_bin_file
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_ehclos_addr,4,2                ## @ehclos_addr
	.comm	_ESC_EHCLOS,4,2                 ## @ESC_EHCLOS
	.comm	_Devices_CloseBasicFile,4,2     ## @Devices_CloseBasicFile
	.comm	_ehread_addr,4,2                ## @ehread_addr
	.comm	_ESC_EHREAD,4,2                 ## @ESC_EHREAD
	.comm	_Devices_ReadBasicFile,4,2      ## @Devices_ReadBasicFile
	.comm	_CPU_regY,4,2                   ## @CPU_regY
	.comm	_CPU_ClrN,4,2                   ## @CPU_ClrN
	.comm	_Devices_RestoreEHOPEN,4,2      ## @Devices_RestoreEHOPEN
	.comm	_CPU_rts_handler,4,2            ## @CPU_rts_handler
	.no_dead_strip	_Devices_OpenBasicFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Devices_OpenBasicFile
_Devices_OpenBasicFile:                 ; @Devices_OpenBasicFile
	.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
Lloh0:
	adrp	x8, _BINLOAD_bin_file@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BINLOAD_bin_file@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_fseek
Lloh6:
	adrp	x8, _ehclos_addr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ehclos_addr@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _ESC_EHCLOS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ESC_EHCLOS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _Devices_CloseBasicFile@GOTPAGE
Lloh13:
	ldr	x8, [x8, _Devices_CloseBasicFile@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_ESC_AddEscRts
Lloh15:
	adrp	x8, _ehread_addr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ehread_addr@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _ESC_EHREAD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ESC_EHREAD@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _Devices_ReadBasicFile@GOTPAGE
Lloh22:
	ldr	x8, [x8, _Devices_ReadBasicFile@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	bl	_ESC_AddEscRts
Lloh24:
	adrp	x8, _CPU_regY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CPU_regY@GOTPAGEOFF]
	mov	w9, #1
Lloh26:
	str	w9, [x8]
LBB0_2:
Lloh27:
	adrp	x8, _Devices_RestoreEHOPEN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _Devices_RestoreEHOPEN@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _CPU_rts_handler@GOTPAGE
Lloh31:
	ldr	x9, [x9, _CPU_rts_handler@GOTPAGEOFF]
Lloh32:
	str	w8, [x9]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_BINLOAD_bin_file,8,3           ; @BINLOAD_bin_file
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_ehclos_addr,4,2                ; @ehclos_addr
	.comm	_ESC_EHCLOS,4,2                 ; @ESC_EHCLOS
	.comm	_Devices_CloseBasicFile,4,2     ; @Devices_CloseBasicFile
	.comm	_ehread_addr,4,2                ; @ehread_addr
	.comm	_ESC_EHREAD,4,2                 ; @ESC_EHREAD
	.comm	_Devices_ReadBasicFile,4,2      ; @Devices_ReadBasicFile
	.comm	_CPU_regY,4,2                   ; @CPU_regY
	.comm	_CPU_ClrN,4,2                   ; @CPU_ClrN
	.comm	_Devices_RestoreEHOPEN,4,2      ; @Devices_RestoreEHOPEN
	.comm	_CPU_rts_handler,4,2            ; @CPU_rts_handler
	.no_dead_strip	_Devices_OpenBasicFile
.subsections_via_symbols
