	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Atari800_StateSave             ## -- Begin function Atari800_StateSave
	.p2align	4, 0x90
_Atari800_StateSave:                    ## @Atari800_StateSave
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_Atari800_tv_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_Atari800_TV_PAL@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	%edx, -20(%rbp)
	leaq	-20(%rbp), %r14
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_StateSav_SaveUBYTE
	movq	_Atari800_machine_type@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -20(%rbp)
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_StateSav_SaveUBYTE
	movq	(%rbx), %rax
	movq	_Atari800_MACHINE_XLXE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_Atari800_builtin_basic@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	leaq	-20(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_StateSav_SaveUBYTE
	movq	_Atari800_keyboard_leds@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_StateSav_SaveUBYTE
	movq	_Atari800_f_keys@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_StateSav_SaveUBYTE
	movq	_Atari800_jumper@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_StateSav_SaveUBYTE
	movq	_Atari800_builtin_game@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_StateSav_SaveUBYTE
	movq	_Atari800_keyboard_detached@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_StateSav_SaveUBYTE
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Atari800_tv_mode,8,3           ## @Atari800_tv_mode
	.comm	_Atari800_TV_PAL,8,3            ## @Atari800_TV_PAL
	.comm	_Atari800_machine_type,8,3      ## @Atari800_machine_type
	.comm	_Atari800_MACHINE_XLXE,8,3      ## @Atari800_MACHINE_XLXE
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Atari800_StateSave             ; -- Begin function Atari800_StateSave
	.p2align	2
_Atari800_StateSave:                    ; @Atari800_StateSave
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _Atari800_tv_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Atari800_tv_mode@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _Atari800_TV_PAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _Atari800_TV_PAL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	str	w8, [sp, #12]
	add	x0, sp, #12
	mov	w1, #1
	bl	_StateSav_SaveUBYTE
Lloh6:
	adrp	x19, _Atari800_machine_type@GOTPAGE
Lloh7:
	ldr	x19, [x19, _Atari800_machine_type@GOTPAGEOFF]
	ldr	x8, [x19]
	str	w8, [sp, #12]
	add	x0, sp, #12
	mov	w1, #1
	bl	_StateSav_SaveUBYTE
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _Atari800_MACHINE_XLXE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _Atari800_MACHINE_XLXE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _Atari800_builtin_basic@GOTPAGE
Lloh12:
	ldr	x8, [x8, _Atari800_builtin_basic@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	add	x0, sp, #12
	mov	w1, #1
	bl	_StateSav_SaveUBYTE
Lloh14:
	adrp	x8, _Atari800_keyboard_leds@GOTPAGE
Lloh15:
	ldr	x8, [x8, _Atari800_keyboard_leds@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	add	x0, sp, #12
	mov	w1, #1
	bl	_StateSav_SaveUBYTE
Lloh17:
	adrp	x8, _Atari800_f_keys@GOTPAGE
Lloh18:
	ldr	x8, [x8, _Atari800_f_keys@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	add	x0, sp, #12
	mov	w1, #1
	bl	_StateSav_SaveUBYTE
Lloh20:
	adrp	x8, _Atari800_jumper@GOTPAGE
Lloh21:
	ldr	x8, [x8, _Atari800_jumper@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	add	x0, sp, #12
	mov	w1, #1
	bl	_StateSav_SaveUBYTE
Lloh23:
	adrp	x8, _Atari800_builtin_game@GOTPAGE
Lloh24:
	ldr	x8, [x8, _Atari800_builtin_game@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	add	x0, sp, #12
	mov	w1, #1
	bl	_StateSav_SaveUBYTE
Lloh26:
	adrp	x8, _Atari800_keyboard_detached@GOTPAGE
Lloh27:
	ldr	x8, [x8, _Atari800_keyboard_detached@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	add	x0, sp, #12
	mov	w1, #1
	bl	_StateSav_SaveUBYTE
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_Atari800_tv_mode,8,3           ; @Atari800_tv_mode
	.comm	_Atari800_TV_PAL,8,3            ; @Atari800_TV_PAL
	.comm	_Atari800_machine_type,8,3      ; @Atari800_machine_type
	.comm	_Atari800_MACHINE_XLXE,8,3      ; @Atari800_MACHINE_XLXE
	.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
.subsections_via_symbols
