	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function updateKeys
_updateKeys:                            ## @updateKeys
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	callq	_Framework_PollGetButtons
	movq	_PBTN_HOME@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_PGS_Menu@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_engineState@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_2:
	movq	_PicoPad@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$0, (%rax)
	movq	_movie_data@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.4:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_emu_updateMovie                ## TAILCALL
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PBTN_HOME,4,2                  ## @PBTN_HOME
	.comm	_PGS_Menu,4,2                   ## @PGS_Menu
	.comm	_engineState,4,2                ## @engineState
	.comm	_CONFIGURABLE_KEYS,4,2          ## @CONFIGURABLE_KEYS
	.comm	_PicoPad,8,3                    ## @PicoPad
	.comm	_PsndOut,8,3                    ## @PsndOut
	.comm	_currentConfig,4,2              ## @currentConfig
	.comm	_noticeMsg,4,2                  ## @noticeMsg
	.comm	_noticeMsgTime,4,2              ## @noticeMsgTime
	.comm	_movie_data,8,3                 ## @movie_data
	.no_dead_strip	_updateKeys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function updateKeys
_updateKeys:                            ; @updateKeys
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_Framework_PollGetButtons
Lloh0:
	adrp	x8, _PBTN_HOME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PBTN_HOME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PGS_Menu@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PGS_Menu@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _engineState@GOTPAGE
Lloh7:
	ldr	x9, [x9, _engineState@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
LBB0_2:
Lloh9:
	adrp	x8, _PicoPad@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PicoPad@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	xzr, [x8]
Lloh12:
	adrp	x8, _movie_data@GOTPAGE
Lloh13:
	ldr	x8, [x8, _movie_data@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_emu_updateMovie
LBB0_4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PBTN_HOME,4,2                  ; @PBTN_HOME
	.comm	_PGS_Menu,4,2                   ; @PGS_Menu
	.comm	_engineState,4,2                ; @engineState
	.comm	_CONFIGURABLE_KEYS,4,2          ; @CONFIGURABLE_KEYS
	.comm	_PicoPad,8,3                    ; @PicoPad
	.comm	_PsndOut,8,3                    ; @PsndOut
	.comm	_currentConfig,4,2              ; @currentConfig
	.comm	_noticeMsg,4,2                  ; @noticeMsg
	.comm	_noticeMsgTime,4,2              ; @noticeMsgTime
	.comm	_movie_data,8,3                 ; @movie_data
	.no_dead_strip	_updateKeys
.subsections_via_symbols
