	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GUI_WaitPrompt                 ## -- Begin function GUI_WaitPrompt
	.p2align	4, 0x90
_GUI_WaitPrompt:                        ## @GUI_WaitPrompt
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_SILENT@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_message_box@GOTPCREL(%rip), %r15
	leaq	4(%r15), %rdi
	callq	_gxTextureClose
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_GUI_MsgBoxOpen
	movq	_Key_A_png@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_gxTextureOpenPNG
	movl	%eax, (%r15)
	movq	_m_input@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movq	_PAD_BUTTON_A@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %ecx
	testl	%eax, %ecx
	je	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_VIDEO_WaitVSync
	movl	(%r14), %eax
	jmp	LBB0_2
LBB0_3:
	testl	%eax, %ecx
	jne	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_VIDEO_WaitVSync
	movl	(%rbx), %eax
	testl	%eax, (%r14)
	je	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_GUI_MsgBoxClose                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SILENT,8,3                     ## @SILENT
	.comm	_message_box,8,2                ## @message_box
	.comm	_Key_A_png,4,2                  ## @Key_A_png
	.comm	_m_input,4,2                    ## @m_input
	.comm	_PAD_BUTTON_A,4,2               ## @PAD_BUTTON_A
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GUI_WaitPrompt                 ; -- Begin function GUI_WaitPrompt
	.p2align	2
_GUI_WaitPrompt:                        ; @GUI_WaitPrompt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _SILENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SILENT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x1
	mov	x20, x0
Lloh3:
	adrp	x21, _message_box@GOTPAGE
Lloh4:
	ldr	x21, [x21, _message_box@GOTPAGEOFF]
	add	x0, x21, #4
	bl	_gxTextureClose
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_GUI_MsgBoxOpen
Lloh5:
	adrp	x8, _Key_A_png@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Key_A_png@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_gxTextureOpenPNG
Lloh8:
	adrp	x19, _m_input@GOTPAGE
Lloh9:
	ldr	x19, [x19, _m_input@GOTPAGEOFF]
	str	w0, [x21]
	ldr	w8, [x19]
Lloh10:
	adrp	x20, _PAD_BUTTON_A@GOTPAGE
Lloh11:
	ldr	x20, [x20, _PAD_BUTTON_A@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_VIDEO_WaitVSync
	ldr	w8, [x19]
	b	LBB0_3
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_VIDEO_WaitVSync
	ldr	w8, [x19]
	ldr	w9, [x20]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	tst	w9, w8
	b.eq	LBB0_5
; %bb.7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_GUI_MsgBoxClose
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SILENT,8,3                     ; @SILENT
	.comm	_message_box,8,2                ; @message_box
	.comm	_Key_A_png,4,2                  ; @Key_A_png
	.comm	_m_input,4,2                    ; @m_input
	.comm	_PAD_BUTTON_A,4,2               ; @PAD_BUTTON_A
.subsections_via_symbols
