	.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
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%edi, %edi
	callq	_psp_pad_read
	movl	%eax, %ebx
	movq	_PSP_CTRL_HOME@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_sceDisplayWaitVblankStart
LBB0_2:
	movq	_PBTN_SELECT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_PGS_Menu@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_engineState@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_4:
	movq	_CONFIGURABLE_KEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PicoPad@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$0, (%rax)
	movq	_PicoAHW@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PAHW_PICO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	andl	%ebx, %esi
	xorl	%edi, %edi
	callq	_RunEventsPico
LBB0_6:
	movq	_movie_data@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_emu_updateMovie                ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PSP_CTRL_HOME,4,2              ## @PSP_CTRL_HOME
	.comm	_PBTN_SELECT,4,2                ## @PBTN_SELECT
	.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	_reset_timing,4,2               ## @reset_timing
	.comm	_PicoAHW,8,3                    ## @PicoAHW
	.comm	_PAHW_PICO,8,3                  ## @PAHW_PICO
	.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	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	w0, #0
	bl	_psp_pad_read
	mov	x19, x0
Lloh0:
	adrp	x8, _PSP_CTRL_HOME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSP_CTRL_HOME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	bl	_sceDisplayWaitVblankStart
LBB0_2:
Lloh3:
	adrp	x8, _PBTN_SELECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PBTN_SELECT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _PGS_Menu@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PGS_Menu@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _engineState@GOTPAGE
Lloh10:
	ldr	x9, [x9, _engineState@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
LBB0_4:
Lloh12:
	adrp	x8, _CONFIGURABLE_KEYS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CONFIGURABLE_KEYS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _PicoPad@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PicoPad@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _PicoAHW@GOTPAGE
Lloh19:
	ldr	x10, [x10, _PicoAHW@GOTPAGEOFF]
	str	xzr, [x9]
Lloh20:
	ldr	x9, [x10]
Lloh21:
	adrp	x10, _PAHW_PICO@GOTPAGE
Lloh22:
	ldr	x10, [x10, _PAHW_PICO@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.5:
	and	w1, w8, w19
	mov	w0, #0
	bl	_RunEventsPico
LBB0_6:
Lloh24:
	adrp	x8, _movie_data@GOTPAGE
Lloh25:
	ldr	x8, [x8, _movie_data@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_emu_updateMovie
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_PSP_CTRL_HOME,4,2              ; @PSP_CTRL_HOME
	.comm	_PBTN_SELECT,4,2                ; @PBTN_SELECT
	.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	_reset_timing,4,2               ; @reset_timing
	.comm	_PicoAHW,8,3                    ; @PicoAHW
	.comm	_PAHW_PICO,8,3                  ; @PAHW_PICO
	.comm	_movie_data,8,3                 ; @movie_data
	.no_dead_strip	_updateKeys
.subsections_via_symbols
