	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_KeyEvent                    ## -- Begin function UI_KeyEvent
	.p2align	4, 0x90
_UI_KeyEvent:                           ## @UI_KeyEvent
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	je	LBB0_7
## %bb.1:
	movl	%edi, %eax
	movq	_uis@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.2:
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	movl	%eax, %edi
	callq	*%rcx
	testq	%rax, %rax
	jg	LBB0_6
	jmp	LBB0_7
LBB0_4:
	movl	%eax, %esi
	callq	_Menu_DefaultKey
	testq	%rax, %rax
	jle	LBB0_7
LBB0_6:
	movq	_menu_null_sound@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.8:
	movq	_CHAN_LOCAL_SOUND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	popq	%rbp
	jmp	_trap_S_StartLocalSound         ## TAILCALL
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_uis,8,3                        ## @uis
	.comm	_menu_null_sound,8,3            ## @menu_null_sound
	.comm	_CHAN_LOCAL_SOUND,4,2           ## @CHAN_LOCAL_SOUND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_KeyEvent                    ; -- Begin function UI_KeyEvent
	.p2align	2
_UI_KeyEvent:                           ; @UI_KeyEvent
	.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
	cbz	w1, LBB0_6
; %bb.1:
	mov	x8, x0
Lloh0:
	adrp	x9, _uis@GOTPAGE
Lloh1:
	ldr	x9, [x9, _uis@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x9]
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x9, [x0]
	cbz	x9, LBB0_4
; %bb.3:
	mov	x0, x8
	blr	x9
	b	LBB0_5
LBB0_4:
	mov	x1, x8
	bl	_Menu_DefaultKey
LBB0_5:
Lloh3:
	adrp	x8, _menu_null_sound@GOTPAGE
Lloh4:
	ldr	x8, [x8, _menu_null_sound@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, #1
	ccmp	x0, x8, #4, ge
	b.ne	LBB0_7
LBB0_6:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh6:
	adrp	x8, _CHAN_LOCAL_SOUND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CHAN_LOCAL_SOUND@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_trap_S_StartLocalSound
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_uis,8,3                        ; @uis
	.comm	_menu_null_sound,8,3            ; @menu_null_sound
	.comm	_CHAN_LOCAL_SOUND,4,2           ; @CHAN_LOCAL_SOUND
.subsections_via_symbols
