	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LoadState
_LoadState:                             ## @LoadState
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_UI_driver@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_state_filename@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_UI_saved_files_dir@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_UI_n_saved_files_dir@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	callq	*8(%rax)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	callq	*(%rax)
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_StateSav_ReadAtariState
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movl	(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_CantLoad                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UI_driver,8,3                  ## @UI_driver
	.comm	_state_filename,4,2             ## @state_filename
	.comm	_UI_saved_files_dir,4,2         ## @UI_saved_files_dir
	.comm	_UI_n_saved_files_dir,4,2       ## @UI_n_saved_files_dir
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Please wait while loading..."

L_.str.1:                               ## @.str.1
	.asciz	"rb"

	.no_dead_strip	_LoadState
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LoadState
_LoadState:                             ; @LoadState
	.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
Lloh0:
	adrp	x20, _UI_driver@GOTPAGE
Lloh1:
	ldr	x20, [x20, _UI_driver@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
Lloh2:
	adrp	x19, _state_filename@GOTPAGE
Lloh3:
	ldr	x19, [x19, _state_filename@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh4:
	adrp	x9, _UI_saved_files_dir@GOTPAGE
Lloh5:
	ldr	x9, [x9, _UI_saved_files_dir@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x9]
Lloh7:
	adrp	x9, _UI_n_saved_files_dir@GOTPAGE
Lloh8:
	ldr	x9, [x9, _UI_n_saved_files_dir@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x9]
	blr	x8
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	blr	x8
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_StateSav_ReadAtariState
	cbz	w0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_CantLoad
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_UI_driver,8,3                  ; @UI_driver
	.comm	_state_filename,4,2             ; @state_filename
	.comm	_UI_saved_files_dir,4,2         ; @UI_saved_files_dir
	.comm	_UI_n_saved_files_dir,4,2       ; @UI_n_saved_files_dir
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Please wait while loading..."

l_.str.1:                               ; @.str.1
	.asciz	"rb"

	.no_dead_strip	_LoadState
.subsections_via_symbols
