	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GUI_MsgBoxClose                ## -- Begin function GUI_MsgBoxClose
	.p2align	4, 0x90
_GUI_MsgBoxClose:                       ## @GUI_MsgBoxClose
	.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
	movq	_message_box@GOTPCREL(%rip), %r14
	cmpq	$0, 56(%r14)
	je	LBB0_19
## %bb.1:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%r14)
	movq	_msgboxthread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_LWP_JoinThread
	movq	24(%r14), %rax
	cmpl	$-159, (%rax)
	jl	LBB0_11
## %bb.2:
	movl	$-60, %r12d
	movl	$248, %r15d
	movq	_WHITE@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_gxSetScreen
	movq	24(%r14), %rax
	movl	(%rax), %eax
	addl	$100, %eax
	addl	$60, %r12d
	addl	$-60, %r15d
	cmpl	%eax, %r12d
	jge	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_GUI_DrawMenu
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_bg_color@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gxClearScreen
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r14), %rdi
	leal	-88(%r15), %ebx
	movq	8(%rdi), %rcx
	movl	(%rdi), %r8d
	movl	$166, %esi
	movl	%ebx, %edx
	movl	$230, %r9d
	callq	_gxDrawTexture
	movq	16(%r14), %rdi
	movq	8(%rdi), %rcx
	movl	(%rdi), %r8d
	movl	$166, %esi
	movl	%ebx, %edx
	movl	$255, %r9d
	callq	_gxDrawTexture
	movq	48(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r14), %rax
	movq	24(%r14), %rcx
	movq	8(%rcx), %rcx
	movl	$166, %edx
	addq	%rdx, %rcx
	movl	(%rax), %eax
	movl	%eax, %edx
	addl	$-20, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	addl	$-20, %eax
	sarl	%eax
	leal	(%r15,%rax), %r8d
	addl	$-68, %r8d
	movl	(%r13), %r9d
	movl	$20, %esi
	movl	$166, %edx
	callq	_FONT_writeCenter
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	40(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r14), %rax
	movq	8(%rax), %rcx
	movl	$166, %eax
	addq	%rax, %rcx
	movl	(%r13), %r9d
	movl	$18, %esi
	movl	$166, %edx
	movl	%r15d, %r8d
	callq	_FONT_writeCenter
	jmp	LBB0_10
LBB0_11:
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.12:
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.13:
	movq	_Key_B_png@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rcx)
LBB0_14:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_Key_A_png@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
LBB0_16:
	callq	_GUI_DrawMenu
	jmp	LBB0_18
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_bg_color@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gxClearScreen
LBB0_18:
	xorl	%eax, %eax
	callq	_gxSetScreen
	leaq	24(%r14), %rdi
	callq	_gxTextureClose
	leaq	16(%r14), %rdi
	callq	_gxTextureClose
	leaq	8(%r14), %rdi
	callq	_gxTextureClose
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gxTextureClose                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_message_box,64,3               ## @message_box
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_msgboxthread,4,2               ## @msgboxthread
	.comm	_bg_color,4,2                   ## @bg_color
	.comm	_WHITE,8,3                      ## @WHITE
	.comm	_Key_B_png,4,2                  ## @Key_B_png
	.comm	_Key_A_png,4,2                  ## @Key_A_png
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GUI_MsgBoxClose                ; -- Begin function GUI_MsgBoxClose
	.p2align	2
_GUI_MsgBoxClose:                       ; @GUI_MsgBoxClose
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x19, _message_box@GOTPAGE
Lloh1:
	ldr	x19, [x19, _message_box@GOTPAGEOFF]
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_17
; %bb.1:
Lloh2:
	adrp	x8, _FALSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x19, #56]
Lloh5:
	adrp	x8, _msgboxthread@GOTPAGE
Lloh6:
	ldr	x8, [x8, _msgboxthread@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_LWP_JoinThread
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	cmn	w8, #159
	b.lt	LBB0_11
; %bb.2:
	mov	w22, #-60
	mov	w20, #248
Lloh8:
	adrp	x23, _bg_color@GOTPAGE
Lloh9:
	ldr	x23, [x23, _bg_color@GOTPAGEOFF]
Lloh10:
	adrp	x24, _WHITE@GOTPAGE
Lloh11:
	ldr	x24, [x24, _WHITE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_gxSetScreen
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	add	w8, w8, #100
	add	w22, w22, #60
	sub	w20, w20, #60
	cmp	w22, w8
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_GUI_DrawMenu
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x23]
	bl	_gxClearScreen
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x19, #24]
	sub	w21, w20, #88
	ldr	x3, [x0, #8]
	ldr	w4, [x0]
	mov	w1, #166
	mov	x2, x21
	mov	w5, #230
	bl	_gxDrawTexture
	ldr	x0, [x19, #16]
	ldr	x3, [x0, #8]
	ldr	w4, [x0]
	mov	w1, #166
	mov	x2, x21
	mov	w5, #255
	bl	_gxDrawTexture
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x9, x8, [x19, #16]
	ldr	x8, [x8, #8]
	add	x3, x8, #166
	ldr	w8, [x9]
	sub	w9, w8, #20
	sub	w8, w8, #19
	cmp	w9, #0
	csel	w8, w8, w9, lt
	add	w8, w20, w8, asr #1
	sub	w4, w8, #68
	ldr	w5, [x24]
	mov	w1, #20
	mov	w2, #166
	bl	_FONT_writeCenter
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	add	x3, x8, #166
	ldr	w5, [x24]
	mov	w1, #18
	mov	w2, #166
	mov	x4, x20
	bl	_FONT_writeCenter
	b	LBB0_3
LBB0_11:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_18
; %bb.12:
	ldr	x8, [x0]
	ldr	x9, [x8]
	cbz	x9, LBB0_14
; %bb.13:
Lloh12:
	adrp	x10, _Key_B_png@GOTPAGE
Lloh13:
	ldr	x10, [x10, _Key_B_png@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	str	w10, [x9]
LBB0_14:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_16
; %bb.15:
Lloh15:
	adrp	x9, _Key_A_png@GOTPAGE
Lloh16:
	ldr	x9, [x9, _Key_A_png@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	str	w9, [x8]
LBB0_16:
	bl	_GUI_DrawMenu
	b	LBB0_19
LBB0_17:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
Lloh18:
	adrp	x8, _bg_color@GOTPAGE
Lloh19:
	ldr	x8, [x8, _bg_color@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_gxClearScreen
LBB0_19:
	bl	_gxSetScreen
	add	x0, x19, #24
	bl	_gxTextureClose
	add	x0, x19, #16
	bl	_gxTextureClose
	add	x0, x19, #8
	bl	_gxTextureClose
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_gxTextureClose
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_message_box,64,3               ; @message_box
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_msgboxthread,4,2               ; @msgboxthread
	.comm	_bg_color,4,2                   ; @bg_color
	.comm	_WHITE,8,3                      ; @WHITE
	.comm	_Key_B_png,4,2                  ; @Key_B_png
	.comm	_Key_A_png,4,2                  ; @Key_A_png
.subsections_via_symbols
