	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Atari800_StateRead             ## -- Begin function Atari800_StateRead
	.p2align	4, 0x90
_Atari800_StateRead:                    ## @Atari800_StateRead
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	leaq	-12(%rbp), %rbx
	cmpl	$7, %edi
	jl	LBB0_9
## %bb.1:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_StateSav_ReadUBYTE
	cmpl	$0, -12(%rbp)
	jne	LBB0_2
## %bb.3:
	movq	_Atari800_TV_NTSC@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_9:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_StateSav_ReadUBYTE
	cmpl	$0, -12(%rbp)
	jne	LBB0_10
## %bb.11:
	movq	_Atari800_TV_PAL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_2:
	movq	_Atari800_TV_PAL@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	callq	_Atari800_SetTVMode
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_StateSav_ReadUBYTE
	movl	-12(%rbp), %edi
	testl	%edi, %edi
	js	LBB0_6
## %bb.5:
	movq	_Atari800_MACHINE_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jl	LBB0_7
LBB0_6:
	movq	_Atari800_MACHINE_XLXE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -12(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_Log_print
	movl	-12(%rbp), %edi
LBB0_7:
	callq	_Atari800_SetMachineType
	movq	_Atari800_machine_type@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_Atari800_MACHINE_XLXE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_27
## %bb.8:
	leaq	-12(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_StateSav_ReadUBYTE
	xorl	%eax, %eax
	cmpl	$0, -12(%rbp)
	setne	%al
	movq	_Atari800_builtin_basic@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_StateSav_ReadUBYTE
	xorl	%eax, %eax
	cmpl	$0, -12(%rbp)
	setne	%al
	movq	_Atari800_keyboard_leds@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_StateSav_ReadUBYTE
	xorl	%eax, %eax
	cmpl	$0, -12(%rbp)
	setne	%al
	movq	_Atari800_f_keys@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_StateSav_ReadUBYTE
	xorl	%eax, %eax
	cmpl	$0, -12(%rbp)
	setne	%al
	movq	_Atari800_jumper@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_Atari800_UpdateJumper
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_StateSav_ReadUBYTE
	xorl	%eax, %eax
	cmpl	$0, -12(%rbp)
	setne	%al
	movq	_Atari800_builtin_game@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_StateSav_ReadUBYTE
	xorl	%eax, %eax
	cmpl	$0, -12(%rbp)
	setne	%al
	movq	_Atari800_keyboard_detached@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_Atari800_UpdateKeyboardDetached
	jmp	LBB0_27
LBB0_10:
	movq	_Atari800_TV_NTSC@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %edi
	callq	_Atari800_SetTVMode
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_StateSav_ReadUBYTE
	leaq	-24(%rbp), %rdi
	movl	$1, %esi
	callq	_StateSav_ReadINT
	movl	-12(%rbp), %eax
	cmpq	$9, %rax
	ja	LBB0_25
## %bb.13:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_14:
	movq	_Atari800_MACHINE_800@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_Atari800_machine_type@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_MEMORY_ram_size@GOTPCREL(%rip), %rax
	movl	$48, (%rax)
	jmp	LBB0_26
LBB0_25:
	movq	_Atari800_MACHINE_XLXE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_Atari800_machine_type@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_MEMORY_ram_size@GOTPCREL(%rip), %rax
	movl	$64, (%rax)
	leaq	L_.str.1(%rip), %rdi
	callq	_Log_print
	jmp	LBB0_26
LBB0_15:
	movq	_Atari800_MACHINE_XLXE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_Atari800_machine_type@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_MEMORY_ram_size@GOTPCREL(%rip), %rax
	movl	$64, (%rax)
	jmp	LBB0_26
LBB0_16:
	movq	_Atari800_MACHINE_XLXE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_Atari800_machine_type@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_MEMORY_ram_size@GOTPCREL(%rip), %rax
	movl	$128, (%rax)
	jmp	LBB0_26
LBB0_17:
	movq	_Atari800_MACHINE_XLXE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_Atari800_machine_type@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_MEMORY_RAM_320_COMPY_SHOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MEMORY_ram_size@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_26
LBB0_18:
	movq	_Atari800_MACHINE_5200@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_20:
	movq	_Atari800_MACHINE_800@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_21:
	movq	_Atari800_MACHINE_XLXE@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
	movq	_Atari800_machine_type@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_MEMORY_ram_size@GOTPCREL(%rip), %rax
	movl	$16, (%rax)
	jmp	LBB0_26
LBB0_22:
	movq	_Atari800_MACHINE_XLXE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_Atari800_machine_type@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_MEMORY_ram_size@GOTPCREL(%rip), %rax
	movl	$576, (%rax)                    ## imm = 0x240
	jmp	LBB0_26
LBB0_23:
	movq	_Atari800_MACHINE_XLXE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_Atari800_machine_type@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_MEMORY_ram_size@GOTPCREL(%rip), %rax
	movl	$1088, (%rax)                   ## imm = 0x440
	jmp	LBB0_26
LBB0_24:
	movq	_Atari800_MACHINE_XLXE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_Atari800_machine_type@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_MEMORY_ram_size@GOTPCREL(%rip), %rax
	movl	$192, (%rax)
LBB0_26:
	leaq	-16(%rbp), %rdi
	movl	$1, %esi
	callq	_StateSav_ReadINT
	leaq	-28(%rbp), %rdi
	movl	$1, %esi
	callq	_StateSav_ReadINT
	leaq	-20(%rbp), %rdi
	movl	$1, %esi
	callq	_StateSav_ReadINT
	movq	_Atari800_machine_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Atari800_SetMachineType
LBB0_27:
	xorl	%eax, %eax
	callq	_load_roms
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_17
	.long	L0_0_set_18
	.long	L0_0_set_20
	.long	L0_0_set_21
	.long	L0_0_set_22
	.long	L0_0_set_23
	.long	L0_0_set_24
	.end_data_region
                                        ## -- End function
	.comm	_Atari800_TV_PAL,4,2            ## @Atari800_TV_PAL
	.comm	_Atari800_TV_NTSC,4,2           ## @Atari800_TV_NTSC
	.comm	_Atari800_MACHINE_SIZE,4,2      ## @Atari800_MACHINE_SIZE
	.comm	_Atari800_MACHINE_XLXE,4,2      ## @Atari800_MACHINE_XLXE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Warning: Bad machine type read in from state save, defaulting to XL/XE"

	.comm	_Atari800_machine_type,4,2      ## @Atari800_machine_type
	.comm	_Atari800_builtin_basic,4,2     ## @Atari800_builtin_basic
	.comm	_Atari800_keyboard_leds,4,2     ## @Atari800_keyboard_leds
	.comm	_Atari800_f_keys,4,2            ## @Atari800_f_keys
	.comm	_Atari800_jumper,4,2            ## @Atari800_jumper
	.comm	_Atari800_builtin_game,4,2      ## @Atari800_builtin_game
	.comm	_Atari800_keyboard_detached,4,2 ## @Atari800_keyboard_detached
	.comm	_Atari800_MACHINE_800,4,2       ## @Atari800_MACHINE_800
	.comm	_MEMORY_ram_size,4,2            ## @MEMORY_ram_size
	.comm	_MEMORY_RAM_320_COMPY_SHOP,4,2  ## @MEMORY_RAM_320_COMPY_SHOP
	.comm	_Atari800_MACHINE_5200,4,2      ## @Atari800_MACHINE_5200
L_.str.1:                               ## @.str.1
	.asciz	"Warning: Bad machine type read in from state save, defaulting to 800 XL"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Atari800_StateRead             ; -- Begin function Atari800_StateRead
	.p2align	2
_Atari800_StateRead:                    ; @Atari800_StateRead
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	w0, #7
	b.lt	LBB0_6
; %bb.1:
	sub	x0, x29, #20
	mov	w1, #1
	bl	_StateSav_ReadUBYTE
Lloh0:
	adrp	x8, _Atari800_TV_PAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Atari800_TV_PAL@GOTPAGEOFF]
	ldur	w9, [x29, #-20]
Lloh2:
	adrp	x10, _Atari800_TV_NTSC@GOTPAGE
Lloh3:
	ldr	x10, [x10, _Atari800_TV_NTSC@GOTPAGEOFF]
	cmp	w9, #0
	csel	x8, x10, x8, eq
	ldr	w0, [x8]
	bl	_Atari800_SetTVMode
	sub	x0, x29, #20
	mov	w1, #1
	bl	_StateSav_ReadUBYTE
	ldur	w0, [x29, #-20]
	tbnz	w0, #31, LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _Atari800_MACHINE_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _Atari800_MACHINE_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w0, w8
	b.lt	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _Atari800_MACHINE_XLXE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _Atari800_MACHINE_XLXE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	stur	w8, [x29, #-20]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Log_print
	ldur	w0, [x29, #-20]
LBB0_4:
	bl	_Atari800_SetMachineType
Lloh12:
	adrp	x8, _Atari800_machine_type@GOTPAGE
Lloh13:
	ldr	x8, [x8, _Atari800_machine_type@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _Atari800_MACHINE_XLXE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _Atari800_MACHINE_XLXE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_22
; %bb.5:
	sub	x0, x29, #20
	mov	w1, #1
	bl	_StateSav_ReadUBYTE
	ldur	w8, [x29, #-20]
	cmp	w8, #0
	cset	w8, ne
Lloh18:
	adrp	x9, _Atari800_builtin_basic@GOTPAGE
Lloh19:
	ldr	x9, [x9, _Atari800_builtin_basic@GOTPAGEOFF]
Lloh20:
	str	w8, [x9]
	sub	x0, x29, #20
	mov	w1, #1
	bl	_StateSav_ReadUBYTE
	ldur	w8, [x29, #-20]
	cmp	w8, #0
	cset	w8, ne
Lloh21:
	adrp	x9, _Atari800_keyboard_leds@GOTPAGE
Lloh22:
	ldr	x9, [x9, _Atari800_keyboard_leds@GOTPAGEOFF]
Lloh23:
	str	w8, [x9]
	sub	x0, x29, #20
	mov	w1, #1
	bl	_StateSav_ReadUBYTE
	ldur	w8, [x29, #-20]
	cmp	w8, #0
	cset	w8, ne
Lloh24:
	adrp	x9, _Atari800_f_keys@GOTPAGE
Lloh25:
	ldr	x9, [x9, _Atari800_f_keys@GOTPAGEOFF]
Lloh26:
	str	w8, [x9]
	sub	x0, x29, #20
	mov	w1, #1
	bl	_StateSav_ReadUBYTE
	ldur	w8, [x29, #-20]
	cmp	w8, #0
	cset	w8, ne
Lloh27:
	adrp	x9, _Atari800_jumper@GOTPAGE
Lloh28:
	ldr	x9, [x9, _Atari800_jumper@GOTPAGEOFF]
Lloh29:
	str	w8, [x9]
	bl	_Atari800_UpdateJumper
	sub	x0, x29, #20
	mov	w1, #1
	bl	_StateSav_ReadUBYTE
	ldur	w8, [x29, #-20]
	cmp	w8, #0
	cset	w8, ne
Lloh30:
	adrp	x9, _Atari800_builtin_game@GOTPAGE
Lloh31:
	ldr	x9, [x9, _Atari800_builtin_game@GOTPAGEOFF]
Lloh32:
	str	w8, [x9]
	sub	x0, x29, #20
	mov	w1, #1
	bl	_StateSav_ReadUBYTE
	ldur	w8, [x29, #-20]
	cmp	w8, #0
	cset	w8, ne
Lloh33:
	adrp	x9, _Atari800_keyboard_detached@GOTPAGE
Lloh34:
	ldr	x9, [x9, _Atari800_keyboard_detached@GOTPAGEOFF]
Lloh35:
	str	w8, [x9]
	bl	_Atari800_UpdateKeyboardDetached
	b	LBB0_22
LBB0_6:
	sub	x0, x29, #20
	mov	w1, #1
	bl	_StateSav_ReadUBYTE
Lloh36:
	adrp	x8, _Atari800_TV_PAL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _Atari800_TV_PAL@GOTPAGEOFF]
	ldur	w9, [x29, #-20]
Lloh38:
	adrp	x10, _Atari800_TV_NTSC@GOTPAGE
Lloh39:
	ldr	x10, [x10, _Atari800_TV_NTSC@GOTPAGEOFF]
	cmp	w9, #0
	csel	x8, x8, x10, eq
	ldr	w0, [x8]
	bl	_Atari800_SetTVMode
	sub	x0, x29, #20
	mov	w1, #1
	bl	_StateSav_ReadUBYTE
	add	x0, sp, #20
	mov	w1, #1
	bl	_StateSav_ReadINT
	ldur	w8, [x29, #-20]
Lloh40:
	adrp	x19, _Atari800_machine_type@GOTPAGE
Lloh41:
	ldr	x19, [x19, _Atari800_machine_type@GOTPAGEOFF]
	cmp	w8, #9
	b.hi	LBB0_9
; %bb.7:
Lloh42:
	adrp	x9, lJTI0_0@PAGE
Lloh43:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
Lloh44:
	adrp	x8, _Atari800_MACHINE_800@GOTPAGE
Lloh45:
	ldr	x8, [x8, _Atari800_MACHINE_800@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh47:
	adrp	x8, _MEMORY_ram_size@GOTPAGE
Lloh48:
	ldr	x8, [x8, _MEMORY_ram_size@GOTPAGEOFF]
	mov	w9, #48
	b	LBB0_20
LBB0_9:
Lloh49:
	adrp	x8, _Atari800_MACHINE_XLXE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _Atari800_MACHINE_XLXE@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh52:
	adrp	x8, _MEMORY_ram_size@GOTPAGE
Lloh53:
	ldr	x8, [x8, _MEMORY_ram_size@GOTPAGEOFF]
	mov	w9, #64
Lloh54:
	str	w9, [x8]
Lloh55:
	adrp	x0, l_.str.1@PAGE
Lloh56:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Log_print
	b	LBB0_21
LBB0_10:
Lloh57:
	adrp	x8, _Atari800_MACHINE_XLXE@GOTPAGE
Lloh58:
	ldr	x8, [x8, _Atari800_MACHINE_XLXE@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh60:
	adrp	x8, _MEMORY_ram_size@GOTPAGE
Lloh61:
	ldr	x8, [x8, _MEMORY_ram_size@GOTPAGEOFF]
	mov	w9, #64
	b	LBB0_20
LBB0_11:
Lloh62:
	adrp	x8, _Atari800_MACHINE_XLXE@GOTPAGE
Lloh63:
	ldr	x8, [x8, _Atari800_MACHINE_XLXE@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh65:
	adrp	x8, _MEMORY_ram_size@GOTPAGE
Lloh66:
	ldr	x8, [x8, _MEMORY_ram_size@GOTPAGEOFF]
	mov	w9, #128
	b	LBB0_20
LBB0_12:
Lloh67:
	adrp	x8, _Atari800_MACHINE_XLXE@GOTPAGE
Lloh68:
	ldr	x8, [x8, _Atari800_MACHINE_XLXE@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh70:
	adrp	x8, _MEMORY_RAM_320_COMPY_SHOP@GOTPAGE
Lloh71:
	ldr	x8, [x8, _MEMORY_RAM_320_COMPY_SHOP@GOTPAGEOFF]
Lloh72:
	ldr	w8, [x8]
Lloh73:
	adrp	x9, _MEMORY_ram_size@GOTPAGE
Lloh74:
	ldr	x9, [x9, _MEMORY_ram_size@GOTPAGEOFF]
Lloh75:
	str	w8, [x9]
	b	LBB0_21
LBB0_13:
Lloh76:
	adrp	x8, _Atari800_MACHINE_5200@GOTPAGE
Lloh77:
	ldr	x8, [x8, _Atari800_MACHINE_5200@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
Lloh78:
	adrp	x8, _Atari800_MACHINE_800@GOTPAGE
Lloh79:
	ldr	x8, [x8, _Atari800_MACHINE_800@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh80:
	adrp	x8, _Atari800_MACHINE_XLXE@GOTPAGE
Lloh81:
	ldr	x8, [x8, _Atari800_MACHINE_XLXE@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh82:
	adrp	x8, _MEMORY_ram_size@GOTPAGE
Lloh83:
	ldr	x8, [x8, _MEMORY_ram_size@GOTPAGEOFF]
	mov	w9, #16
	b	LBB0_20
LBB0_17:
Lloh84:
	adrp	x8, _Atari800_MACHINE_XLXE@GOTPAGE
Lloh85:
	ldr	x8, [x8, _Atari800_MACHINE_XLXE@GOTPAGEOFF]
Lloh86:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh87:
	adrp	x8, _MEMORY_ram_size@GOTPAGE
Lloh88:
	ldr	x8, [x8, _MEMORY_ram_size@GOTPAGEOFF]
	mov	w9, #576
	b	LBB0_20
LBB0_18:
Lloh89:
	adrp	x8, _Atari800_MACHINE_XLXE@GOTPAGE
Lloh90:
	ldr	x8, [x8, _Atari800_MACHINE_XLXE@GOTPAGEOFF]
Lloh91:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh92:
	adrp	x8, _MEMORY_ram_size@GOTPAGE
Lloh93:
	ldr	x8, [x8, _MEMORY_ram_size@GOTPAGEOFF]
	mov	w9, #1088
	b	LBB0_20
LBB0_19:
Lloh94:
	adrp	x8, _Atari800_MACHINE_XLXE@GOTPAGE
Lloh95:
	ldr	x8, [x8, _Atari800_MACHINE_XLXE@GOTPAGEOFF]
Lloh96:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh97:
	adrp	x8, _MEMORY_ram_size@GOTPAGE
Lloh98:
	ldr	x8, [x8, _MEMORY_ram_size@GOTPAGEOFF]
	mov	w9, #192
LBB0_20:
	str	w9, [x8]
LBB0_21:
	add	x0, sp, #12
	mov	w1, #1
	bl	_StateSav_ReadINT
	add	x0, sp, #24
	mov	w1, #1
	bl	_StateSav_ReadINT
	add	x0, sp, #16
	mov	w1, #1
	bl	_StateSav_ReadINT
	ldr	w0, [x19]
	bl	_Atari800_SetMachineType
LBB0_22:
	bl	_load_roms
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotStr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotStr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh82, Lloh83
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGot	Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGot	Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_11-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_17-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_19-LBB0_8)>>2
                                        ; -- End function
	.comm	_Atari800_TV_PAL,4,2            ; @Atari800_TV_PAL
	.comm	_Atari800_TV_NTSC,4,2           ; @Atari800_TV_NTSC
	.comm	_Atari800_MACHINE_SIZE,4,2      ; @Atari800_MACHINE_SIZE
	.comm	_Atari800_MACHINE_XLXE,4,2      ; @Atari800_MACHINE_XLXE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Warning: Bad machine type read in from state save, defaulting to XL/XE"

	.comm	_Atari800_machine_type,4,2      ; @Atari800_machine_type
	.comm	_Atari800_builtin_basic,4,2     ; @Atari800_builtin_basic
	.comm	_Atari800_keyboard_leds,4,2     ; @Atari800_keyboard_leds
	.comm	_Atari800_f_keys,4,2            ; @Atari800_f_keys
	.comm	_Atari800_jumper,4,2            ; @Atari800_jumper
	.comm	_Atari800_builtin_game,4,2      ; @Atari800_builtin_game
	.comm	_Atari800_keyboard_detached,4,2 ; @Atari800_keyboard_detached
	.comm	_Atari800_MACHINE_800,4,2       ; @Atari800_MACHINE_800
	.comm	_MEMORY_ram_size,4,2            ; @MEMORY_ram_size
	.comm	_MEMORY_RAM_320_COMPY_SHOP,4,2  ; @MEMORY_RAM_320_COMPY_SHOP
	.comm	_Atari800_MACHINE_5200,4,2      ; @Atari800_MACHINE_5200
l_.str.1:                               ; @.str.1
	.asciz	"Warning: Bad machine type read in from state save, defaulting to 800 XL"

.subsections_via_symbols
