	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wait_for_input                 ## -- Begin function wait_for_input
	.p2align	4, 0x90
_wait_for_input:                        ## @wait_for_input
	.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
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	xorl	%eax, %eax
	callq	_aptMainLoop
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_KEY_START@GOTPCREL(%rip), %rbx
	movq	_KEY_SELECT@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_hidScanInput
	xorl	%eax, %eax
	callq	_hidKeysDown
	testl	%eax, (%rbx)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, (%r14)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1000000, %edi                  ## imm = 0xF4240
	callq	_svcSleepThread
	xorl	%eax, %eax
	callq	_aptMainLoop
	testq	%rax, %rax
	jne	LBB0_2
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_stdout,4,2                     ## @stdout
	.comm	_KEY_START,4,2                  ## @KEY_START
	.comm	_KEY_SELECT,4,2                 ## @KEY_SELECT
	.comm	_select_pressed,4,2             ## @select_pressed
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"\n\nPress Start.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wait_for_input                 ; -- Begin function wait_for_input
	.p2align	2
_wait_for_input:                        ; @wait_for_input
	.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	x0, l_str@PAGE
Lloh1:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh2:
	adrp	x8, _stdout@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_fflush
	bl	_aptMainLoop
	cbz	x0, LBB0_5
; %bb.1:
Lloh5:
	adrp	x19, _KEY_START@GOTPAGE
Lloh6:
	ldr	x19, [x19, _KEY_START@GOTPAGEOFF]
Lloh7:
	adrp	x20, _KEY_SELECT@GOTPAGE
Lloh8:
	ldr	x20, [x20, _KEY_SELECT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_hidScanInput
	bl	_hidKeysDown
	ldr	w8, [x19]
	tst	w8, w0
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x20]
	tst	w8, w0
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #16960
	movk	w0, #15, lsl #16
	bl	_svcSleepThread
	bl	_aptMainLoop
	cbnz	x0, LBB0_2
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_stdout,4,2                     ; @stdout
	.comm	_KEY_START,4,2                  ; @KEY_START
	.comm	_KEY_SELECT,4,2                 ; @KEY_SELECT
	.comm	_select_pressed,4,2             ; @select_pressed
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"\n\nPress Start.\n"

.subsections_via_symbols
