	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_in_menu_wait_any               ## -- Begin function in_menu_wait_any
	.p2align	4, 0x90
_in_menu_wait_any:                      ## @in_menu_wait_any
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_menu_key_state@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	leaq	-44(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_in_update_keycode
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	leaq	-44(%rbp), %r15
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_menu_key_state@GOTPCREL(%rip), %rsi
	movl	(%rsi), %eax
	cmpl	%eax, %r13d
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_in_update_keycode
	testl	%eax, %eax
	jns	LBB0_2
LBB0_5:
	movq	_menu_key_state@GOTPCREL(%rip), %rsi
	movl	(%rsi), %eax
	jmp	LBB0_6
LBB0_3:
	movl	-44(%rbp), %ecx
	movq	_menu_last_used_dev@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
LBB0_6:
	movq	_PBTN_CHAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%rsi)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_menu_key_state,4,2             ## @menu_key_state
	.comm	_menu_last_used_dev,4,2         ## @menu_last_used_dev
	.comm	_PBTN_CHAR,4,2                  ## @PBTN_CHAR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_in_menu_wait_any               ; -- Begin function in_menu_wait_any
	.p2align	2
_in_menu_wait_any:                      ; @in_menu_wait_any
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _menu_key_state@GOTPAGE
Lloh1:
	ldr	x21, [x21, _menu_key_state@GOTPAGEOFF]
	ldr	w22, [x21]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [sp, #8]
	add	x0, sp, #8
	add	x1, sp, #12
	mov	x2, x20
	mov	x3, x19
	bl	_in_update_keycode
	tbnz	w0, #31, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x21]
	cmp	w22, w0
	b.eq	LBB0_1
; %bb.3:
	ldr	w8, [sp, #8]
Lloh2:
	adrp	x9, _menu_last_used_dev@GOTPAGE
Lloh3:
	ldr	x9, [x9, _menu_last_used_dev@GOTPAGEOFF]
Lloh4:
	str	w8, [x9]
	b	LBB0_5
LBB0_4:
	ldr	w0, [x21]
LBB0_5:
Lloh5:
	adrp	x8, _PBTN_CHAR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PBTN_CHAR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	bic	w8, w0, w8
	str	w8, [x21]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_menu_key_state,4,2             ; @menu_key_state
	.comm	_menu_last_used_dev,4,2         ; @menu_last_used_dev
	.comm	_PBTN_CHAR,4,2                  ; @PBTN_CHAR
.subsections_via_symbols
