	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Devices_PatchOS                ## -- Begin function Devices_PatchOS
	.p2align	4, 0x90
_Devices_PatchOS:                       ## @Devices_PatchOS
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_Atari800_os_version@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$15, %eax
	ja	LBB0_6
## %bb.1:
	cltq
	leaq	l_switch.table.Devices_PatchOS(%rip), %rcx
	movl	(%rcx,%rax,4), %ebx
	movl	$5, %r12d
	movq	_BINLOAD_loading_basic@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	$3, %ebx
	decl	%r12d
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	1(%rbx), %edi
	callq	_MEMORY_dGetWord
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_MEMORY_dGetByte
	cmpl	$69, %eax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%r13)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_Devices_TABLE_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%r15d, %edi
	callq	_MEMORY_dGetWord
	incl	%eax
	movq	_ehopen_addr@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_Devices_TABLE_CLOS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%r15d, %edi
	callq	_MEMORY_dGetWord
	incl	%eax
	movq	_ehclos_addr@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_Devices_TABLE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%r15d, %edi
	callq	_MEMORY_dGetWord
	incl	%eax
	movq	_ehread_addr@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_Devices_TABLE_WRIT@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_MEMORY_dGetWord
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edi
	movq	_ehwrit_addr@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	movq	_ready_prompt@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ready_ptr@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_ESC_EHWRIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_Devices_IgnoreReady@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_ESC_AddEscRts
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_5
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_Atari800_os_version,4,2        ## @Atari800_os_version
	.comm	_BINLOAD_loading_basic,4,2      ## @BINLOAD_loading_basic
	.comm	_Devices_TABLE_OPEN,4,2         ## @Devices_TABLE_OPEN
	.comm	_ehopen_addr,4,2                ## @ehopen_addr
	.comm	_Devices_TABLE_CLOS,4,2         ## @Devices_TABLE_CLOS
	.comm	_ehclos_addr,4,2                ## @ehclos_addr
	.comm	_Devices_TABLE_READ,4,2         ## @Devices_TABLE_READ
	.comm	_ehread_addr,4,2                ## @ehread_addr
	.comm	_Devices_TABLE_WRIT,4,2         ## @Devices_TABLE_WRIT
	.comm	_ehwrit_addr,4,2                ## @ehwrit_addr
	.comm	_ready_prompt,4,2               ## @ready_prompt
	.comm	_ready_ptr,4,2                  ## @ready_ptr
	.comm	_ESC_EHWRIT,4,2                 ## @ESC_EHWRIT
	.comm	_Devices_IgnoreReady,4,2        ## @Devices_IgnoreReady
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_Devices_E_Read,4,2             ## @Devices_E_Read
	.comm	_Devices_E_Write,4,2            ## @Devices_E_Write
	.comm	_Devices_K_Read,4,2             ## @Devices_K_Read
	.comm	_Devices_P_Close,4,2            ## @Devices_P_Close
	.comm	_Devices_P_Init,4,2             ## @Devices_P_Init
	.comm	_Devices_P_Open,4,2             ## @Devices_P_Open
	.comm	_Devices_P_Status,4,2           ## @Devices_P_Status
	.comm	_Devices_P_Write,4,2            ## @Devices_P_Write
	.comm	_Devices_TABLE_INIT,4,2         ## @Devices_TABLE_INIT
	.comm	_Devices_TABLE_STAT,4,2         ## @Devices_TABLE_STAT
	.comm	_Devices_enable_p_patch,4,2     ## @Devices_enable_p_patch
	.comm	_ESC_EHREAD,4,2                 ## @ESC_EHREAD
	.comm	_ESC_KHREAD,4,2                 ## @ESC_KHREAD
	.comm	_ESC_PHCLOS,4,2                 ## @ESC_PHCLOS
	.comm	_ESC_PHINIT,4,2                 ## @ESC_PHINIT
	.comm	_ESC_PHOPEN,4,2                 ## @ESC_PHOPEN
	.comm	_ESC_PHSTAT,4,2                 ## @ESC_PHSTAT
	.comm	_ESC_PHWRIT,4,2                 ## @ESC_PHWRIT
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.Devices_PatchOS
l_switch.table.Devices_PatchOS:
	.long	50222                           ## 0xc42e
	.long	50155                           ## 0xc3eb
	.long	61667                           ## 0xf0e3
	.long	50235                           ## 0xc43b
	.long	50220                           ## 0xc42c
	.long	50222                           ## 0xc42e
	.long	50222                           ## 0xc42e
	.long	50222                           ## 0xc42e
	.long	50222                           ## 0xc42e
	.long	50222                           ## 0xc42e
	.long	50236                           ## 0xc43c
	.long	61667                           ## 0xf0e3
	.long	61667                           ## 0xf0e3
	.long	50297                           ## 0xc479
	.long	50426                           ## 0xc4fa
	.long	61667                           ## 0xf0e3

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Devices_PatchOS                ; -- Begin function Devices_PatchOS
	.p2align	2
_Devices_PatchOS:                       ; @Devices_PatchOS
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x8, _Atari800_os_version@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Atari800_os_version@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #15
	b.hi	LBB0_5
; %bb.1:
	mov	w22, #0
Lloh6:
	adrp	x9, l_switch.table.Devices_PatchOS@PAGE
Lloh7:
	add	x9, x9, l_switch.table.Devices_PatchOS@PAGEOFF
	ldr	w23, [x9, w8, sxtw #2]
Lloh8:
	adrp	x24, _BINLOAD_loading_basic@GOTPAGE
Lloh9:
	ldr	x24, [x24, _BINLOAD_loading_basic@GOTPAGEOFF]
Lloh10:
	adrp	x26, _ready_ptr@GOTPAGE
Lloh11:
	ldr	x26, [x26, _ready_ptr@GOTPAGEOFF]
Lloh12:
	adrp	x27, _ESC_EHWRIT@GOTPAGE
Lloh13:
	ldr	x27, [x27, _ESC_EHWRIT@GOTPAGEOFF]
Lloh14:
	adrp	x28, _Devices_IgnoreReady@GOTPAGE
Lloh15:
	ldr	x28, [x28, _Devices_IgnoreReady@GOTPAGEOFF]
Lloh16:
	adrp	x25, _TRUE@GOTPAGE
Lloh17:
	ldr	x25, [x25, _TRUE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #3
	cmp	w22, #15
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w21, w23, w22
	add	w0, w21, #1
	bl	_MEMORY_dGetWord
	mov	x20, x0
	mov	x0, x21
	bl	_MEMORY_dGetByte
	ldr	w8, [x24]
	cmp	w0, #69
	ccmp	w8, #0, #4, eq
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh18:
	adrp	x8, _Devices_TABLE_OPEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _Devices_TABLE_OPEN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	add	w0, w8, w20
	bl	_MEMORY_dGetWord
	add	w8, w0, #1
Lloh21:
	adrp	x9, _ehopen_addr@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ehopen_addr@GOTPAGEOFF]
Lloh23:
	str	w8, [x9]
Lloh24:
	adrp	x8, _Devices_TABLE_CLOS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _Devices_TABLE_CLOS@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	add	w0, w8, w20
	bl	_MEMORY_dGetWord
	add	w8, w0, #1
Lloh27:
	adrp	x9, _ehclos_addr@GOTPAGE
Lloh28:
	ldr	x9, [x9, _ehclos_addr@GOTPAGEOFF]
Lloh29:
	str	w8, [x9]
Lloh30:
	adrp	x8, _Devices_TABLE_READ@GOTPAGE
Lloh31:
	ldr	x8, [x8, _Devices_TABLE_READ@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	add	w0, w8, w20
	bl	_MEMORY_dGetWord
	add	w8, w0, #1
Lloh33:
	adrp	x9, _ehread_addr@GOTPAGE
Lloh34:
	ldr	x9, [x9, _ehread_addr@GOTPAGEOFF]
Lloh35:
	str	w8, [x9]
Lloh36:
	adrp	x8, _Devices_TABLE_WRIT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _Devices_TABLE_WRIT@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	add	w0, w8, w20
	bl	_MEMORY_dGetWord
	add	w0, w0, #1
Lloh39:
	adrp	x8, _ehwrit_addr@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ehwrit_addr@GOTPAGEOFF]
Lloh41:
	str	w0, [x8]
Lloh42:
	adrp	x8, _ready_prompt@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ready_prompt@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	str	w8, [x26]
	ldr	w1, [x27]
	ldr	w2, [x28]
	bl	_ESC_AddEscRts
	ldr	w19, [x25]
	b	LBB0_2
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotStr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotStr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_Atari800_os_version,4,2        ; @Atari800_os_version
	.comm	_BINLOAD_loading_basic,4,2      ; @BINLOAD_loading_basic
	.comm	_Devices_TABLE_OPEN,4,2         ; @Devices_TABLE_OPEN
	.comm	_ehopen_addr,4,2                ; @ehopen_addr
	.comm	_Devices_TABLE_CLOS,4,2         ; @Devices_TABLE_CLOS
	.comm	_ehclos_addr,4,2                ; @ehclos_addr
	.comm	_Devices_TABLE_READ,4,2         ; @Devices_TABLE_READ
	.comm	_ehread_addr,4,2                ; @ehread_addr
	.comm	_Devices_TABLE_WRIT,4,2         ; @Devices_TABLE_WRIT
	.comm	_ehwrit_addr,4,2                ; @ehwrit_addr
	.comm	_ready_prompt,4,2               ; @ready_prompt
	.comm	_ready_ptr,4,2                  ; @ready_ptr
	.comm	_ESC_EHWRIT,4,2                 ; @ESC_EHWRIT
	.comm	_Devices_IgnoreReady,4,2        ; @Devices_IgnoreReady
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_Devices_E_Read,4,2             ; @Devices_E_Read
	.comm	_Devices_E_Write,4,2            ; @Devices_E_Write
	.comm	_Devices_K_Read,4,2             ; @Devices_K_Read
	.comm	_Devices_P_Close,4,2            ; @Devices_P_Close
	.comm	_Devices_P_Init,4,2             ; @Devices_P_Init
	.comm	_Devices_P_Open,4,2             ; @Devices_P_Open
	.comm	_Devices_P_Status,4,2           ; @Devices_P_Status
	.comm	_Devices_P_Write,4,2            ; @Devices_P_Write
	.comm	_Devices_TABLE_INIT,4,2         ; @Devices_TABLE_INIT
	.comm	_Devices_TABLE_STAT,4,2         ; @Devices_TABLE_STAT
	.comm	_Devices_enable_p_patch,4,2     ; @Devices_enable_p_patch
	.comm	_ESC_EHREAD,4,2                 ; @ESC_EHREAD
	.comm	_ESC_KHREAD,4,2                 ; @ESC_KHREAD
	.comm	_ESC_PHCLOS,4,2                 ; @ESC_PHCLOS
	.comm	_ESC_PHINIT,4,2                 ; @ESC_PHINIT
	.comm	_ESC_PHOPEN,4,2                 ; @ESC_PHOPEN
	.comm	_ESC_PHSTAT,4,2                 ; @ESC_PHSTAT
	.comm	_ESC_PHWRIT,4,2                 ; @ESC_PHWRIT
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.Devices_PatchOS
l_switch.table.Devices_PatchOS:
	.long	50222                           ; 0xc42e
	.long	50155                           ; 0xc3eb
	.long	61667                           ; 0xf0e3
	.long	50235                           ; 0xc43b
	.long	50220                           ; 0xc42c
	.long	50222                           ; 0xc42e
	.long	50222                           ; 0xc42e
	.long	50222                           ; 0xc42e
	.long	50222                           ; 0xc42e
	.long	50222                           ; 0xc42e
	.long	50236                           ; 0xc43c
	.long	61667                           ; 0xf0e3
	.long	61667                           ; 0xf0e3
	.long	50297                           ; 0xc479
	.long	50426                           ; 0xc4fa
	.long	61667                           ; 0xf0e3

.subsections_via_symbols
