	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Devices_RestoreHandler
_Devices_RestoreHandler:                ## @Devices_RestoreHandler
	.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
	movl	%edi, %ebx
	movl	%esi, %edi
	callq	_ESC_Remove
	movq	_MEMORY_os@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_Atari800_machine_type@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_Atari800_MACHINE_800@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	leal	-55296(%rax,%rbx), %ecx
	leal	-49152(%rax,%rbx), %edi
	cmovel	%ecx, %edi
	movl	%ebx, %esi
	movl	$3, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_MEMORY_dCopyToMem              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MEMORY_os,4,2                  ## @MEMORY_os
	.comm	_Atari800_machine_type,8,3      ## @Atari800_machine_type
	.comm	_Atari800_MACHINE_800,8,3       ## @Atari800_MACHINE_800
	.no_dead_strip	_Devices_RestoreHandler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Devices_RestoreHandler
_Devices_RestoreHandler:                ; @Devices_RestoreHandler
	.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
	mov	x19, x0
	mov	x0, x1
	bl	_ESC_Remove
Lloh0:
	adrp	x8, _MEMORY_os@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEMORY_os@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _Atari800_machine_type@GOTPAGE
Lloh4:
	ldr	x9, [x9, _Atari800_machine_type@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _Atari800_MACHINE_800@GOTPAGE
Lloh7:
	ldr	x10, [x10, _Atari800_MACHINE_800@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	mov	w9, #-49152
	mov	w10, #-55296
	csel	w9, w10, w9, eq
	add	w8, w8, w19
	add	w0, w8, w9
	mov	x1, x19
	mov	w2, #3
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_MEMORY_dCopyToMem
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MEMORY_os,4,2                  ; @MEMORY_os
	.comm	_Atari800_machine_type,8,3      ; @Atari800_machine_type
	.comm	_Atari800_MACHINE_800,8,3       ; @Atari800_MACHINE_800
	.no_dead_strip	_Devices_RestoreHandler
.subsections_via_symbols
