	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GUI_MsgBoxOpen                 ## -- Begin function GUI_MsgBoxOpen
	.p2align	4, 0x90
_GUI_MsgBoxOpen:                        ## @GUI_MsgBoxOpen
	.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	_SILENT@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_21
## %bb.1:
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_GUI_MsgBoxUpdate
	movq	_message_box@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_2
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_Frame_s2_png@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_gxTextureOpenPNG
	movq	%rax, 8(%r12)
	movq	_Frame_s2_title_png@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_gxTextureOpenPNG
	movq	%rax, 16(%r12)
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.3:
	movq	_Frame_throbber_png@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_gxTextureOpenPNG
	movq	%rax, 32(%r12)
LBB0_4:
	movq	24(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.5:
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	movq	$0, (%rcx)
LBB0_7:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	$0, (%rax)
LBB0_9:
	movq	8(%r12), %rax
	movl	(%rax), %ebx
	cmpl	$-159, %ebx
	jl	LBB0_20
## %bb.10:
	leal	160(%rbx), %r13d
	negl	%ebx
	testq	%rdi, %rdi
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:
	callq	_GUI_DrawMenu
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:
	movq	_bg_color@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gxClearScreen
LBB0_14:
	movq	8(%r12), %rdi
	movq	8(%rdi), %rcx
	movl	(%rdi), %r8d
	movl	$166, %esi
	movl	%ebx, %edx
	movl	$230, %r9d
	callq	_gxDrawTexture
	movq	16(%r12), %rdi
	movq	8(%rdi), %rcx
	movl	(%rdi), %r8d
	movl	$166, %esi
	movl	%ebx, %edx
	movl	$255, %r9d
	callq	_gxDrawTexture
	testq	%r15, %r15
	je	LBB0_16
## %bb.15:
	movq	8(%r12), %rax
	movq	16(%r12), %rdx
	movq	8(%rax), %rcx
	movl	$166, %eax
	addq	%rax, %rcx
	movl	(%rdx), %eax
	movl	%eax, %edx
	addl	$-20, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	addl	$-20, %eax
	sarl	%eax
	leal	(%rbx,%rax), %r8d
	addl	$20, %r8d
	movq	_WHITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r15, %rdi
	movl	$20, %esi
	movl	$166, %edx
	callq	_FONT_writeCenter
LBB0_16:
	testq	%r14, %r14
	je	LBB0_18
## %bb.17:
	movq	8(%r12), %rax
	movq	8(%rax), %rcx
	movl	$166, %eax
	addq	%rax, %rcx
	leal	88(%rbx), %r8d
	movq	_WHITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, %rdi
	movl	$18, %esi
	movl	$166, %edx
	callq	_FONT_writeCenter
LBB0_18:
	xorl	%eax, %eax
	callq	_gxSetScreen
	cmpl	$61, %r13d
	jl	LBB0_20
## %bb.19:
	addl	$-60, %r13d
	movq	24(%r12), %rdi
	addl	$60, %ebx
	testq	%rdi, %rdi
	jne	LBB0_12
	jmp	LBB0_13
LBB0_20:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	_MsgBox_Thread@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_msgboxthread@GOTPCREL(%rip), %rdi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$70, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LWP_CreateThread               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SILENT,8,3                     ## @SILENT
	.comm	_message_box,40,3               ## @message_box
	.comm	_Frame_s2_png,4,2               ## @Frame_s2_png
	.comm	_Frame_s2_title_png,4,2         ## @Frame_s2_title_png
	.comm	_Frame_throbber_png,4,2         ## @Frame_throbber_png
	.comm	_bg_color,4,2                   ## @bg_color
	.comm	_WHITE,8,3                      ## @WHITE
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_msgboxthread,4,2               ## @msgboxthread
	.comm	_MsgBox_Thread,8,3              ## @MsgBox_Thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GUI_MsgBoxOpen                 ; -- Begin function GUI_MsgBoxOpen
	.p2align	2
_GUI_MsgBoxOpen:                        ; @GUI_MsgBoxOpen
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _SILENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SILENT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	bl	_GUI_MsgBoxUpdate
Lloh3:
	adrp	x19, _message_box@GOTPAGE
Lloh4:
	ldr	x19, [x19, _message_box@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh5:
	adrp	x8, _Frame_s2_png@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Frame_s2_png@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_gxTextureOpenPNG
	str	x0, [x19, #8]
Lloh8:
	adrp	x8, _Frame_s2_title_png@GOTPAGE
Lloh9:
	ldr	x8, [x8, _Frame_s2_title_png@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_gxTextureOpenPNG
	str	x0, [x19, #16]
	cbz	w22, LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _Frame_throbber_png@GOTPAGE
Lloh12:
	ldr	x8, [x8, _Frame_throbber_png@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_gxTextureOpenPNG
	str	x0, [x19, #32]
LBB0_5:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_10
; %bb.6:
	ldr	x8, [x0]
	ldr	x9, [x8]
	cbz	x9, LBB0_8
; %bb.7:
	str	xzr, [x9]
LBB0_8:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_10
; %bb.9:
	str	xzr, [x8]
LBB0_10:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmn	w8, #159
	b.lt	LBB0_20
; %bb.11:
	add	w23, w8, #160
	neg	w22, w8
Lloh14:
	adrp	x24, _bg_color@GOTPAGE
Lloh15:
	ldr	x24, [x24, _bg_color@GOTPAGEOFF]
Lloh16:
	adrp	x25, _WHITE@GOTPAGE
Lloh17:
	ldr	x25, [x25, _WHITE@GOTPAGEOFF]
	cbz	x0, LBB0_13
LBB0_12:
	bl	_GUI_DrawMenu
	b	LBB0_14
LBB0_13:
	ldr	w0, [x24]
	bl	_gxClearScreen
LBB0_14:
	ldr	x0, [x19, #8]
	ldr	x3, [x0, #8]
	ldr	w4, [x0]
	mov	w1, #166
	mov	x2, x22
	mov	w5, #230
	bl	_gxDrawTexture
	ldr	x0, [x19, #16]
	ldr	x3, [x0, #8]
	ldr	w4, [x0]
	mov	w1, #166
	mov	x2, x22
	mov	w5, #255
	bl	_gxDrawTexture
	cbz	x21, LBB0_16
; %bb.15:
	ldp	x8, x9, [x19, #8]
	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, w22, w8, asr #1
	add	w4, w8, #20
	ldr	w5, [x25]
	mov	x0, x21
	mov	w1, #20
	mov	w2, #166
	bl	_FONT_writeCenter
LBB0_16:
	cbz	x20, LBB0_18
; %bb.17:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	add	x3, x8, #166
	add	w4, w22, #88
	ldr	w5, [x25]
	mov	x0, x20
	mov	w1, #18
	mov	w2, #166
	bl	_FONT_writeCenter
LBB0_18:
	bl	_gxSetScreen
	cmp	w23, #61
	b.lt	LBB0_20
; %bb.19:
	sub	w23, w23, #60
	ldr	x0, [x19, #24]
	add	w22, w22, #60
	cbnz	x0, LBB0_12
	b	LBB0_13
LBB0_20:
Lloh18:
	adrp	x8, _TRUE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh21:
	adrp	x8, _MsgBox_Thread@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MsgBox_Thread@GOTPAGEOFF]
Lloh23:
	ldr	x1, [x8]
Lloh24:
	adrp	x0, _msgboxthread@GOTPAGE
Lloh25:
	ldr	x0, [x0, _msgboxthread@GOTPAGEOFF]
	mov	x2, x19
	mov	x3, #0
	mov	w4, #0
	mov	w5, #70
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_LWP_CreateThread
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SILENT,8,3                     ; @SILENT
	.comm	_message_box,40,3               ; @message_box
	.comm	_Frame_s2_png,4,2               ; @Frame_s2_png
	.comm	_Frame_s2_title_png,4,2         ; @Frame_s2_title_png
	.comm	_Frame_throbber_png,4,2         ; @Frame_throbber_png
	.comm	_bg_color,4,2                   ; @bg_color
	.comm	_WHITE,8,3                      ; @WHITE
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_msgboxthread,4,2               ; @msgboxthread
	.comm	_MsgBox_Thread,8,3              ; @MsgBox_Thread
.subsections_via_symbols
